summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2017-04-02 12:24:48 +0100
committerRĂ©mi Verschelde <rverschelde@gmail.com>2017-04-04 20:06:00 +0200
commit0f4ad0ec62a120258307c5bcad6f68abbb2d369a (patch)
treec32cb6b93cce5df4956815d4dd060a16552377dd
parent4c91aaced1cb66d37bd1aae558b4e3364555d1cc (diff)
downloaddrakx-0f4ad0ec62a120258307c5bcad6f68abbb2d369a.tar
drakx-0f4ad0ec62a120258307c5bcad6f68abbb2d369a.tar.gz
drakx-0f4ad0ec62a120258307c5bcad6f68abbb2d369a.tar.bz2
drakx-0f4ad0ec62a120258307c5bcad6f68abbb2d369a.tar.xz
drakx-0f4ad0ec62a120258307c5bcad6f68abbb2d369a.zip
Fix fast path for do_pkgs::ensure_is_installed().
The refactoring in commit de1fcc27f943f4ae7b8ac4147a36b196c236619e failed to pass $o_file down to is_installed().
-rw-r--r--perl-install/do_pkgs.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/do_pkgs.pm b/perl-install/do_pkgs.pm
index e4b9b0198..1715ac1a8 100644
--- a/perl-install/do_pkgs.pm
+++ b/perl-install/do_pkgs.pm
@@ -38,7 +38,7 @@ If $b_auto is set, (g)urpmi will not ask any questions.
sub ensure_is_installed {
my ($do, $pkg, $o_file, $b_auto) = @_;
- if ($do->is_installed($pkg)) {
+ if ($do->is_installed($pkg, $o_file)) {
return 1;
}