diff --git a/obs-service-format_spec_file.changes b/obs-service-format_spec_file.changes index 13f009c..659657f 100644 --- a/obs-service-format_spec_file.changes +++ b/obs-service-format_spec_file.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 27 13:12:13 UTC 2012 - saschpe@suse.de + +- avoid breaking shell expansions + ------------------------------------------------------------------- Fri Feb 24 09:48:57 UTC 2012 - coolo@suse.com diff --git a/prepare_spec b/prepare_spec index 0630f3d..5bd203e 100644 --- a/prepare_spec +++ b/prepare_spec @@ -320,7 +320,7 @@ sub read_and_parse_old_spec { } my %aa; - while ($cur_tag =~ m{([^,\s]+(\s*[<=>]+\s*[^,\s]+)?)}g) { + while ($cur_tag =~ m{([^,\s]+(\s*[<=>]+\s*(?:\%\(.*\)|[^,\s]+))?)}g) { $aa{$1}=1; } # ignore line if it looks like a "usedforbuild" line, i.e.