summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-05 08:54:25 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-05 08:54:25 +0000
commit5df2bda18458a62ac5d0b7396ffec19881a8d307 (patch)
tree6985e8d9c7b8f63070ca9c555386f3e8e62bb285 /urpmi.addmedia
parent9194566a0df930304f3fd4fbb811116608187a8a (diff)
downloadurpmi-5df2bda18458a62ac5d0b7396ffec19881a8d307.tar
urpmi-5df2bda18458a62ac5d0b7396ffec19881a8d307.tar.gz
urpmi-5df2bda18458a62ac5d0b7396ffec19881a8d307.tar.bz2
urpmi-5df2bda18458a62ac5d0b7396ffec19881a8d307.tar.xz
urpmi-5df2bda18458a62ac5d0b7396ffec19881a8d307.zip
The mandrake-release package has been renamed as mandrakelinux-release
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-xurpmi.addmedia20
1 files changed, 12 insertions, 8 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia
index 7efd2a6e..735879c9 100755
--- a/urpmi.addmedia
+++ b/urpmi.addmedia
@@ -66,9 +66,9 @@ and [options] are from
%s
", $mirrors) . N(" --version - use specified distribution version, the default is taken
from the version of the distribution told by the
- installed mandrake-release package.
+ installed mandrakelinux-release package.
") . N(" --arch - use specified architecture, the default is arch of
- mandrake-release package installed.
+ mandrakelinux-release package installed.
") . N(" --virtual - create virtual media wich are always up-to-date,
only file:// protocol is allowed.
") . N(" --no-md5sum - disable MD5SUM file checking.
@@ -118,12 +118,16 @@ sub main {
#- get default value unless already provided.
unless ($options{version} && $options{arch}) {
my $db = URPM::DB::open;
- $db->traverse_tag('name', [ qw(mandrake-release basesystem) ], sub {
- my ($pkg) = @_;
- $pkg->release =~ /0\./ and $options{version} ||= 'cooker';
- $options{version} ||= $pkg->version;
- $pkg->arch ne 'noarch' and $options{arch} ||= $pkg->arch;
- });
+ $db->traverse_tag(
+ 'name',
+ [ qw(mandrakelinux-release basesystem) ],
+ sub {
+ my ($pkg) = @_;
+ $pkg->release =~ /0\./ and $options{version} ||= 'cooker';
+ $options{version} ||= $pkg->version;
+ $pkg->arch ne 'noarch' and $options{arch} ||= $pkg->arch;
+ },
+ );
}
#- sanity checks...
$options{distrib} eq 'updates' && $options{version} eq 'cooker' and