The glob syntax here was wrong, and the code cs-adjust-flight did not
handle it properly either. So --rebuild -r has not worked since it
first appeared in:
a1e0e5846f7bb7d82a5db1d7cd643b9f5ca1b9a9
mg-repro-flight: Provide --rebuild to make variant build jobs
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v2: New patch
my @refspecs;
my @varspecs;
my %treespecs;
- while (@changes && $changes[0] =~ m/^[.=+]/) {
+ while (@changes && $changes[0] =~ m/^[.=+]|^-r/) {
local $_ = shift @changes;
if (m/^[.=]/) {
push @refspecs, $_;
rebuild_specs=()
while true; do
case "$1" in
- [.=+]*|-r) rebuild_specs+=("$1"); shift ;;
+ [.=+]*|-r*) rebuild_specs+=("$1"); shift ;;
-B?*) rebuilds_blessing=${1#-B}; shift ;;
-*) badusage ': bad --rebuild option' ;;
*) break ;;