summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-25 13:39:49 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-25 13:39:49 +0000
commit8db9d53305e27e6e29183503c62c98837828232c (patch)
tree5ed27ee5238d9e90e609b62a90e61c1e05b24a43 /urpm
parent934494543e77f730523da559379f8d0a771feeab (diff)
downloadurpmi-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')
-rw-r--r--urpm/cfg.pm4
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