diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-02-25 13:39:49 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-02-25 13:39:49 +0000 |
commit | 8db9d53305e27e6e29183503c62c98837828232c (patch) | |
tree | 5ed27ee5238d9e90e609b62a90e61c1e05b24a43 /urpm/cfg.pm | |
parent | 934494543e77f730523da559379f8d0a771feeab (diff) | |
download | urpmi-8db9d53305e27e6e29183503c62c98837828232c.tar urpmi-8db9d53305e27e6e29183503c62c98837828232c.tar.gz urpmi-8db9d53305e27e6e29183503c62c98837828232c.tar.bz2 urpmi-8db9d53305e27e6e29183503c62c98837828232c.tar.xz urpmi-8db9d53305e27e6e29183503c62c98837828232c.zip |
Use generic release file
Diffstat (limited to 'urpm/cfg.pm')
-rw-r--r-- | urpm/cfg.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/cfg.pm b/urpm/cfg.pm index f5186e23..7fad1eed 100644 --- a/urpm/cfg.pm +++ b/urpm/cfg.pm @@ -45,7 +45,7 @@ Returns 1 on success, 0 on failure. my ($arch, $release); sub _init_arch_release () { if (!$arch && !$release) { - open my $f, '/etc/mandrakelinux-release' or return undef; + open my $f, '/etc/release' or return undef; my $l = <$f>; close $f; ($release, $arch) = $l =~ /release (\d+\.\d+).*for (\w+)/; @@ -243,6 +243,6 @@ __END__ =head1 COPYRIGHT -Copyright (C) 2000-2004 Mandrakesoft +Copyright (C) 2000-2005 Mandrakesoft =cut |