summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xurpmq2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpmq b/urpmq
index 7e26c46b..ccb12672 100755
--- a/urpmq
+++ b/urpmq
@@ -172,6 +172,7 @@ if ($query->{env}) {
$urpm->{statedir} = $query->{env};
}
+$urpm->shlock_urpmi_db;
$urpm->configure(nocheck_access => 1,
noskipping => $query->{nodepslist}, noinstalling => $query->{nodepslist}, nodepslist => $query->{nodepslist},
media => $query->{media},
@@ -395,6 +396,7 @@ if ($query->{list_aliases}) {
exit 0;
}
}
+$urpm->unlock_urpmi_db;
#- print sub for query.
my $query_sub = sub {