aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-04-04 23:03:48 +0000
committerThierry Vignaud <tv@mageia.org>2012-04-04 23:03:48 +0000
commit44be121fe222b858036acdf3f989860ed91b6e1a (patch)
tree38e48bc92a46f685af5095a4caf2ee072e0d0f94
parentfaed8372f7fab4fdaadd83875b323d193e10ca08 (diff)
downloadiurt-44be121fe222b858036acdf3f989860ed91b6e1a.tar
iurt-44be121fe222b858036acdf3f989860ed91b6e1a.tar.gz
iurt-44be121fe222b858036acdf3f989860ed91b6e1a.tar.bz2
iurt-44be121fe222b858036acdf3f989860ed91b6e1a.tar.xz
iurt-44be121fe222b858036acdf3f989860ed91b6e1a.zip
(check_chroot_need_update) drop unused 'config' parameter
(spot by perl_checker)
-rw-r--r--lib/Iurt/Chroot.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index 32232a3..870d54f 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -260,7 +260,7 @@ sub create_build_chroot {
}
sub check_chroot_need_update {
- my ($tmp_chroot, $run, $config) = @_;
+ my ($tmp_chroot, $run) = @_;
my @installed_pkgs = grep { !/^gpg-pubkey/ } chomp_(cat_("$tmp_chroot/var/log/qa"));
my @available_pkgs = chomp_(`urpmq --use-distrib $run->{urpmi}{distrib_url} --list -f 2>/dev/null`);
@@ -300,7 +300,7 @@ sub create_chroot {
} else {
plog('DEBUG', "decompressing /var/log/qa from $chroot_tar in $tmp_chroot");
sudo($config, '--untar', $chroot_tar, $tmp_chroot, "./var/log/qa");
- $rebuild = check_chroot_need_update($tmp_chroot, $run, $config);
+ $rebuild = check_chroot_need_update($tmp_chroot, $run);
}
if ($rebuild) {