diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-21 15:19:52 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-21 15:19:52 +0000 |
commit | f4c5b3fcf6bbca2fa0fcfcf7ab58819c79caeb50 (patch) | |
tree | 4fa7bebe110c865c2a023c999aaca50aa9b656c5 /urpmq | |
parent | 3036afacd2e78524060d15a759efce21b912c3e1 (diff) | |
download | urpmi-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-x | urpmq | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 { |