summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-05-26 05:48:00 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-05-26 05:48:00 +0000
commit3e81571bb26d8fb964b1f0939cef47ac284c1965 (patch)
treeb66648fd5b0382aaddd77067fc39e925bfe23108
parenta469b956058a42d97711d646e40359ab05c9a7c1 (diff)
downloaddrakx-backup-do-not-use-3e81571bb26d8fb964b1f0939cef47ac284c1965.tar
drakx-backup-do-not-use-3e81571bb26d8fb964b1f0939cef47ac284c1965.tar.gz
drakx-backup-do-not-use-3e81571bb26d8fb964b1f0939cef47ac284c1965.tar.bz2
drakx-backup-do-not-use-3e81571bb26d8fb964b1f0939cef47ac284c1965.tar.xz
drakx-backup-do-not-use-3e81571bb26d8fb964b1f0939cef47ac284c1965.zip
- handle <if set="..."> tag
- hide some stuff when non verbose
-rwxr-xr-xtools/install-xml-file-list4
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));
}
}