summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-21 15:19:52 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-21 15:19:52 +0000
commitf4c5b3fcf6bbca2fa0fcfcf7ab58819c79caeb50 (patch)
tree4fa7bebe110c865c2a023c999aaca50aa9b656c5 /urpmq
parent3036afacd2e78524060d15a759efce21b912c3e1 (diff)
downloadurpmi-f4c5b3fcf6bbca2fa0fcfcf7ab58819c79caeb50.tar
urpmi-f4c5b3fcf6bbca2fa0fcfcf7ab58819c79caeb50.tar.gz
urpmi-f4c5b3fcf6bbca2fa0fcfcf7ab58819c79caeb50.tar.bz2
urpmi-f4c5b3fcf6bbca2fa0fcfcf7ab58819c79caeb50.tar.xz
urpmi-f4c5b3fcf6bbca2fa0fcfcf7ab58819c79caeb50.zip
move lock functions to urpm::sys
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq8
1 files changed, 4 insertions, 4 deletions
diff --git a/urpmq b/urpmq
index e0d98191..1fc76dc9 100755
--- a/urpmq
+++ b/urpmq
@@ -136,8 +136,8 @@ if ($urpm::args::options{env}) {
if ($urpm::args::options{ignorearch}) { urpm::shunt_ignorearch() }
$urpm::args::options{upgrade} && !$urpm::args::options{env} && !$urpm::args::options{nolock}
- and $urpm->lock_rpm_db;
-$urpm->lock_urpmi_db if !$urpm::args::options{nolock};
+ and urpm::sys::lock_rpm_db($urpm);
+urpm::sys::lock_urpmi_db($urpm) if !$urpm::args::options{nolock};
$urpm->configure(
nocheck_access => 1,
nodepslist => $urpm::args::options{nodepslist},
@@ -424,9 +424,9 @@ if ($urpm::args::options{list_aliases}) {
exit 0;
}
}
-$urpm::args::options{nolock} or $urpm->unlock_urpmi_db;
+$urpm::args::options{nolock} or urpm::sys::unlock_urpmi_db($urpm);
$urpm::args::options{upgrade} && !$urpm::args::options{env} && !$urpm::args::options{nolock}
- and $urpm->unlock_rpm_db;
+ and urpm::sys::unlock_rpm_db($urpm);
#- print sub for query.
my $query_sub = sub {