summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-19 12:16:49 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-19 12:16:49 +0000
commit3880463a92142896704deca4d341af93be762b84 (patch)
tree083ddaa4280c8f7bd74b0619ebe5d40fd4a9d038 /urpmi.addmedia
parentfa957b2abb16441c131d8242b22579ca63d70c01 (diff)
downloadurpmi-3880463a92142896704deca4d341af93be762b84.tar
urpmi-3880463a92142896704deca4d341af93be762b84.tar.gz
urpmi-3880463a92142896704deca4d341af93be762b84.tar.bz2
urpmi-3880463a92142896704deca4d341af93be762b84.tar.xz
urpmi-3880463a92142896704deca4d341af93be762b84.zip
- all tools:
o drop hdlist support (will be replaced with xml media_info)
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-xurpmi.addmedia15
1 files changed, 7 insertions, 8 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia
index 6b057e2d..fc46d9da 100755
--- a/urpmi.addmedia
+++ b/urpmi.addmedia
@@ -52,9 +52,8 @@ and [options] are from
authentication (format is <user:password>).
") . N(" --update - create an update medium.
") . N(" --probe-synthesis - use synthesis file.
-") . N(" --probe-hdlist - use hdlist file.
-") . N(" --probe-rpms - use rpm files (instead of synthesis/hdlist).
-") . N(" --no-probe - do not try to find any synthesis or hdlist file.
+") . N(" --probe-rpms - use rpm files (instead of synthesis).
+") . N(" --no-probe - do not try to find any synthesis file.
") . N(" --urpmi-root - use another root for urpmi db & rpm installation.
") . N(" --distrib - automatically create all media from an installation
medium.
@@ -88,7 +87,7 @@ if ($options{mirrors_url}) {
$options{force} = 0;
$options{noclean} = 1;
my $urpm = urpm->new_parse_cmdline or usage();
-our ($name, $url, $with, $relative_hdlist) = our @cmdline;
+our ($name, $url, $with, $relative_synthesis) = our @cmdline;
$options{quiet} = 1 if $options{verbose} < 0;
@@ -107,8 +106,8 @@ urpm::media::read_config($urpm);
my $ok = 1;
if ($options{distrib}) {
- $with || $relative_hdlist
- and usage N("no need to give <relative path of hdlist> with --distrib");
+ $with || $relative_synthesis
+ and usage N("no need to give <relative path of synthesis> with --distrib");
my $add_media_callback = $options{interactive} ?
sub {
@@ -140,14 +139,14 @@ if ($options{distrib}) {
$name or usage();
if ($with eq "with") {
- $relative_hdlist or usage N("<relative path of hdlist> missing\n");
+ $relative_synthesis or usage N("<relative path of synthesis> missing\n");
}
if ($options{probe_with} && $options{probe_with} eq 'rpms' && !urpm::file_from_local_url($url)) {
die N("Can't use %s with remote medium", "--probe-rpms");
}
urpm::media::add_medium($urpm,
- $name, $url, $relative_hdlist,
+ $name, $url, $relative_synthesis,
virtual => $options{virtual},
update => $options{update},
ignore => $options{raw},