aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-02-11 20:37:41 +0000
committerNicolas Vigier <boklm@mageia.org>2011-02-11 20:37:41 +0000
commit730974b8fb1489e40c88a09f742f2fd80cca9281 (patch)
tree749b01cfd0a95c77933f01f84fe1491102d57b64 /lib
parent76a39506b16f4590eb1a59292722156b4ff68699 (diff)
downloadiurt-730974b8fb1489e40c88a09f742f2fd80cca9281.tar
iurt-730974b8fb1489e40c88a09f742f2fd80cca9281.tar.gz
iurt-730974b8fb1489e40c88a09f742f2fd80cca9281.tar.bz2
iurt-730974b8fb1489e40c88a09f742f2fd80cca9281.tar.xz
iurt-730974b8fb1489e40c88a09f742f2fd80cca9281.zip
ignore gpg-pubkey packages in installed packages list
Diffstat (limited to 'lib')
-rw-r--r--lib/Iurt/Chroot.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index 7b18acc..c41f9ea 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -437,7 +437,7 @@ sub create_chroot {
sudo($run, $config, '--untar', $chroot_tar, $tmp_chroot, "./var/log/qa");
my $tmp_urpmi = mktemp("$chroot.tmp.XXXXXX");
- my @installed_pkgs = chomp_(cat_("$tmp_chroot/var/log/qa"));
+ my @installed_pkgs = grep(!/^gpg-pubkey/, chomp_(cat_("$tmp_chroot/var/log/qa")));
my @available_pkgs = chomp_(`urpmq --urpmi-root $tmp_urpmi --use-distrib $run->{urpmi}{distrib_url} --list -f 2>/dev/null`);
my @removed_pkgs = difference2(\@installed_pkgs, \@available_pkgs);
rm_rf($tmp_urpmi);