diff options
-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; } |