diff options
-rw-r--r-- | Rpmdrake/open_db.pm | 1 | ||||
-rw-r--r-- | Rpmdrake/pkg.pm | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Rpmdrake/open_db.pm b/Rpmdrake/open_db.pm index aa3cf9d6..80a28bad 100644 --- a/Rpmdrake/open_db.pm +++ b/Rpmdrake/open_db.pm @@ -89,6 +89,7 @@ sub open_urpmi_db() { my $media = ref $::rpmdrake_options{media} ? join(',', @{$::rpmdrake_options{media}}) : ''; my $searchmedia = join(',', map { $_->{name} } grep { $_->{ignore} && $_->{name} =~ /backport/i } @{$urpm->{media}}); + $urpm->{lock} = urpm::lock::urpmi_db($urpm, undef); urpm::media::configure($urpm, media => $media, if_($searchmedia, searchmedia => $searchmedia)); $urpm; } diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index bdee6b5b..6effac08 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -241,7 +241,7 @@ sub get_pkgs { my $urpm = open_urpmi_db(); - my $_lock = urpm::lock::urpmi_db($urpm); + my $_drop_lock = before_leaving { undef $urpm->{lock} }; # update media list in case warn_about_media() added some: @update_medias = get_update_medias($urpm); |