summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-09-02 17:09:57 +0000
committerFrancois Pons <fpons@mandriva.com>2003-09-02 17:09:57 +0000
commit26167ebca83606140e5f0bb0e7278d1fa141953e (patch)
tree4757279ea3cdf4d9c837b6dfe4c2d7fc88a5811c /urpmq
parente604cfd80b7909401afc6d81b933c38e2b9f5b38 (diff)
downloadurpmi-26167ebca83606140e5f0bb0e7278d1fa141953e.tar
urpmi-26167ebca83606140e5f0bb0e7278d1fa141953e.tar.gz
urpmi-26167ebca83606140e5f0bb0e7278d1fa141953e.tar.bz2
urpmi-26167ebca83606140e5f0bb0e7278d1fa141953e.tar.xz
urpmi-26167ebca83606140e5f0bb0e7278d1fa141953e.zip
4.4-30mdk
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 {