diff options
Diffstat (limited to 'urpmq')
-rwxr-xr-x | urpmq | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -140,8 +140,8 @@ if ($urpm::args::options{ignorearch}) { urpm::shunt_ignorearch() } my $rpm_lock = $urpm::args::options{upgrade} && !$urpm::args::options{env} && !$urpm::args::options{nolock} - && urpm::sys::lock_rpm_db($urpm); -my $urpmi_lock = !$urpm::args::options{nolock} && urpm::sys::lock_urpmi_db($urpm); + && urpm::lock::rpm_db($urpm); +my $urpmi_lock = !$urpm::args::options{nolock} && urpm::lock::urpmi_db($urpm); urpm::media::configure($urpm, nocheck_access => 1, nodepslist => $urpm::args::options{nodepslist}, @@ -428,8 +428,8 @@ if ($urpm::args::options{list_aliases}) { exit 0; } } -$urpmi_lock and urpm::sys::unlock($urpmi_lock); -$rpm_lock and urpm::sys::unlock($rpm_lock); +$urpmi_lock and $urpmi_lock->unlock; +$rpm_lock and $rpm_lock->unlock; #- print sub for query. my $query_sub = sub { |