summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-08-27 17:03:26 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-08-27 17:03:26 +0200
commit7c13acd9f28565aaa2e4ca1e9533e97ed008a044 (patch)
tree71703250ad9c2e0f684fba800dacb6b38422f7c3 /urpm
parentb6834f91d61d50c4ccfea3b5977363829ef3a1f8 (diff)
downloadurpmi-7c13acd9f28565aaa2e4ca1e9533e97ed008a044.tar
urpmi-7c13acd9f28565aaa2e4ca1e9533e97ed008a044.tar.gz
urpmi-7c13acd9f28565aaa2e4ca1e9533e97ed008a044.tar.bz2
urpmi-7c13acd9f28565aaa2e4ca1e9533e97ed008a044.tar.xz
urpmi-7c13acd9f28565aaa2e4ca1e9533e97ed008a044.zip
fix retrieving rpm version with RCs
Diffstat (limited to 'urpm')
-rw-r--r--urpm/select.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/select.pm b/urpm/select.pm
index 03259f71..0b8ae3e5 100644
--- a/urpm/select.pm
+++ b/urpm/select.pm
@@ -719,7 +719,7 @@ sub translate_why_removed_one {
}
sub _libdb_version { $_[0] =~ /libdb-(\S+)\.so/ ? version->new("v$1") : () }
-sub _rpm_version() { `rpm --version` =~ /version ([0-9.]+)(?:-beta.*)?$/ ? version->new("v$1") : () }
+sub _rpm_version() { `rpm --version` =~ /version ([0-9.]+)(?:-(beta|rc).*)?$/ ? version->new("v$1") : () }
sub should_we_migrate_back_rpmdb_db_version {
my ($urpm, $state) = @_;