summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index 2f7f62ce9..fb2960042 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -939,7 +939,7 @@ sub install($$$;$$) {
delete $packages->{rpmdb}; #- make sure rpmdb is closed before.
- return if $::g_auto_install || !scalar(@$toInstall);
+ return if !@$toInstall;
#- for root loopback'ed /boot
my $loop_boot = loopback::prepare_boot();
@@ -1159,7 +1159,7 @@ sub remove {
delete $packages->{rpmdb}; #- make sure rpmdb is closed before.
- return if $::g_auto_install || !@{$toRemove || []};
+ return if !@{$toRemove || []};
my $db = rpmDbOpenForInstall($prefix) or die "error opening RPM database: ", c::rpmErrorString();
my $trans = $db->create_transaction($prefix);