From 33e9aa81f8a4b6674db33239e77e115ec4f14b66 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Mon, 4 Apr 2011 03:46:36 +0000 Subject: only query those installed files --- tools/install-xml-file-list | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.1