summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpmq b/urpmq
index b989a7c7..edbdce5a 100755
--- a/urpmq
+++ b/urpmq
@@ -174,6 +174,7 @@ if ($query->{env}) {
$urpm->{statedir} = $query->{env};
}
+$query->{upgrade} && !$query->{env} && !$query->{root} and $urpm->shlock_rpm_db;
$urpm->shlock_urpmi_db;
$urpm->configure(nocheck_access => 1,
noskipping => $query->{nodepslist}, noinstalling => $query->{nodepslist}, nodepslist => $query->{nodepslist},
@@ -400,6 +401,7 @@ if ($query->{list_aliases}) {
}
}
$urpm->unlock_urpmi_db;
+$query->{upgrade} && !$query->{env} && !$query->{root} and $urpm->unlock_rpm_db;
#- print sub for query.
my $query_sub = sub {