diff options
author | Michael Scherer <misc@mageia.org> | 2012-02-18 22:18:55 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-02-18 22:18:55 +0000 |
commit | 7b6fb9d3de6397d23095c12c319752bb66d17b54 (patch) | |
tree | f854239ed697ebbd01f6dcd680680bed6d1d7d3a /urpm/cfg.pm | |
parent | c7235d61d1a7971dd3a3420839e1e1c5a6b50a56 (diff) | |
download | urpmi-7b6fb9d3de6397d23095c12c319752bb66d17b54.tar urpmi-7b6fb9d3de6397d23095c12c319752bb66d17b54.tar.gz urpmi-7b6fb9d3de6397d23095c12c319752bb66d17b54.tar.bz2 urpmi-7b6fb9d3de6397d23095c12c319752bb66d17b54.tar.xz urpmi-7b6fb9d3de6397d23095c12c319752bb66d17b54.zip |
fix regexp for arch keyword substition to work on Mageia
Diffstat (limited to 'urpm/cfg.pm')
-rw-r--r-- | urpm/cfg.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/cfg.pm b/urpm/cfg.pm index a48fd0df..c5a964d2 100644 --- a/urpm/cfg.pm +++ b/urpm/cfg.pm @@ -54,8 +54,8 @@ my ($arch, $release); sub _init_arch_release () { if (!$arch && !$release) { my $l = cat_('/etc/release') or return undef; - ($release, $arch) = $l =~ /release (\d+\.\d+).*for (\w+)/; $release = 'cooker' if $l =~ /cooker/i; + ($release, $arch) = $l =~ /release (\d+\.?\d?).*for (\w+)/; } 1; } |