diff options
author | Funda Wang <fwang@mandriva.org> | 2011-04-04 03:46:36 +0000 |
---|---|---|
committer | Funda Wang <fwang@mandriva.org> | 2011-04-04 03:46:36 +0000 |
commit | 33e9aa81f8a4b6674db33239e77e115ec4f14b66 (patch) | |
tree | b8941a37508eefdda718b8ce1b095b4b4aa28c5c | |
parent | ff22cbda4982684aaf7b86b4d6cb614fb982bc82 (diff) | |
download | drakx-backup-do-not-use-33e9aa81f8a4b6674db33239e77e115ec4f14b66.tar drakx-backup-do-not-use-33e9aa81f8a4b6674db33239e77e115ec4f14b66.tar.gz drakx-backup-do-not-use-33e9aa81f8a4b6674db33239e77e115ec4f14b66.tar.bz2 drakx-backup-do-not-use-33e9aa81f8a4b6674db33239e77e115ec4f14b66.tar.xz drakx-backup-do-not-use-33e9aa81f8a4b6674db33239e77e115ec4f14b66.zip |
only query those installed files
-rwxr-xr-x | tools/install-xml-file-list | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/install-xml-file-list b/tools/install-xml-file-list index 56b7a0a4f..89afc6efd 100755 --- a/tools/install-xml-file-list +++ b/tools/install-xml-file-list @@ -291,7 +291,7 @@ sub install { } elsif ($expand eq 'rpm') { $disallow_from_dir->(); foreach my $rpm (@text_l) { - my @l = chomp_(`rpm -ql $rpm`) or error("rpm $rpm must be installed"); + my @l = chomp_(`rpm -qls $rpm|grep -v \'not installed\'|awk -F\' \' \'{print \$2}\'`) or error("rpm $rpm must be installed"); push @files, @l; } |