1
0

Accepting request 107160 from home:saschpe:branches:openSUSE:Tools

- avoid breaking shell expansions

OBS-URL: https://build.opensuse.org/request/show/107160
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-format_spec_file?expand=0&rev=69
This commit is contained in:
Adrian Schröter 2012-02-27 13:57:45 +00:00 committed by Git OBS Bridge
parent 85b911362a
commit 3b671d0090
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.