Accepting request 107171 from openSUSE:Tools

- avoid breaking shell expansions (forwarded request 107160 from saschpe)

OBS-URL: https://build.opensuse.org/request/show/107171
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/obs-service-format_spec_file?expand=0&rev=26
This commit is contained in:
Stephan Kulow 2012-02-28 18:25:11 +00:00 committed by Git OBS Bridge
commit c6b3863fc8
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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.