summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
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