summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2021-10-31 02:46:50 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2021-10-31 05:38:17 +0100
commitcc60ebdcb51aaa33b212c6161e1706ef4df0c8f3 (patch)
treedbac2e1abc14e1c1832ec844bd7da5098a8edae0 /urpm
parent60d57c688444600942c9fd8b464bd5e0ef286266 (diff)
downloadurpmi-cc60ebdcb51aaa33b212c6161e1706ef4df0c8f3.tar
urpmi-cc60ebdcb51aaa33b212c6161e1706ef4df0c8f3.tar.gz
urpmi-cc60ebdcb51aaa33b212c6161e1706ef4df0c8f3.tar.bz2
urpmi-cc60ebdcb51aaa33b212c6161e1706ef4df0c8f3.tar.xz
urpmi-cc60ebdcb51aaa33b212c6161e1706ef4df0c8f3.zip
Simplify
Diffstat (limited to 'urpm')
-rw-r--r--urpm/select.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/select.pm b/urpm/select.pm
index dbde19a3..7225570f 100644
--- a/urpm/select.pm
+++ b/urpm/select.pm
@@ -726,8 +726,8 @@ sub _rpm_version() {
sub should_we_migrate_back_rpmdb_db_version {
my ($urpm, $state) = @_;
- my ($pkg) = urpm::select::selected_packages_providing($urpm, $state, 'rpm') or return;
- urpm::select::was_pkg_name_installed($state->{rejected}, 'rpm') and return;
+ my ($pkg) = selected_packages_providing($urpm, $state, 'rpm') or return;
+ was_pkg_name_installed($state->{rejected}, 'rpm') and return;
my ($rooted_libbdb_version) = map { _libdb_version($_) } $pkg->requires; # perl_checker: $self = revision
my $rooted_rpm_version = version->new("v" . $pkg->version); # perl_checker: $self = revision