diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-05-26 05:48:00 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-05-26 05:48:00 +0000 |
commit | 3e81571bb26d8fb964b1f0939cef47ac284c1965 (patch) | |
tree | b66648fd5b0382aaddd77067fc39e925bfe23108 /tools | |
parent | a469b956058a42d97711d646e40359ab05c9a7c1 (diff) | |
download | drakx-3e81571bb26d8fb964b1f0939cef47ac284c1965.tar drakx-3e81571bb26d8fb964b1f0939cef47ac284c1965.tar.gz drakx-3e81571bb26d8fb964b1f0939cef47ac284c1965.tar.bz2 drakx-3e81571bb26d8fb964b1f0939cef47ac284c1965.tar.xz drakx-3e81571bb26d8fb964b1f0939cef47ac284c1965.zip |
- handle <if set="..."> tag
- hide some stuff when non verbose
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/install-xml-file-list | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/install-xml-file-list b/tools/install-xml-file-list index 1fac64ab7..19bebf616 100755 --- a/tools/install-xml-file-list +++ b/tools/install-xml-file-list @@ -70,6 +70,8 @@ sub valid_cond { every { if ($_ eq 'ARCH') { $ARCH =~ /$attr->{$_}/; + } elsif ($_ eq 'set') { + $ENV{$attr->{$_}}; } else { die "<if>: unknown condition $_\n"; } @@ -332,7 +334,7 @@ sub apply_filter { if_($command eq 'gzip', '-9f'), if_($command eq 'strip', '2>/dev/null'), ); - warn "running $command @options @l\n"; + warn "running $command @options @l\n" if $verbose; system(join(' ', $command, @options, @l)); } } |