summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm.pm1
-rwxr-xr-xurpmi8
-rw-r--r--urpmi.spec6
-rwxr-xr-xurpmq2
4 files changed, 11 insertions, 6 deletions
diff --git a/urpm.pm b/urpm.pm
index de890ae0..5c7d719a 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -226,6 +226,7 @@ sub probe_medium {
}
}
$medium->{url} ||= $medium->{clear_url};
+ $medium->{removable} ||= $medium->{url} =~ /^removable_([^_:]*)(?:_[^:]*)?:/ && "/dev/$1";
$medium;
}
diff --git a/urpmi b/urpmi
index 643a4c7d..141080ff 100755
--- a/urpmi
+++ b/urpmi
@@ -52,7 +52,7 @@ delete @ENV{qw(ENV BASH_ENV IFS CDPATH)};
sub usage {
#die(_("usage: urpmi [-h] [--auto] [--force] [-a] [-v] package_name|rpm_file [package_names|rpm_files...]\n"));
- die( sprintf ( _("urpmi version %s
+ die( sprintf (_("urpmi version %s
Copyright (C) 1999, 2000 MandrakeSoft.
This is free software and may be redistributed under the terms of the GNU GPL.
@@ -173,7 +173,7 @@ my $ask_choice = sub {
print SAVEOUT "$msg\n";
my $i = 0; foreach (@l) { print SAVEOUT " ", ++$i, "- $_\n"; }
while (1) {
- printf SAVEOUT ( _("What is your choice? (1-%d) "), $i);
+ printf SAVEOUT sprintf(_("What is your choice? (1-%d) "), $i);
$n = <STDIN>;
1 <= $n && $n <= $i and last;
print SAVEOUT _("Sorry, bad choice, try again\n");
@@ -247,7 +247,7 @@ unless ($local_sources || $list) {
}
my @sources = $urpm->upload_source_packages($local_sources, $list, 'force_local', sub {
- my $msg = ( _("Please insert the medium named \"%s\" on device [%s]"), @_);
+ my $msg = sprintf(_("Please insert the medium named \"%s\" on device [%s]"), @_);
my $msg2 = _("Press enter when it's done...");
if ($X) {
my $ok = _("Ok");
@@ -270,7 +270,7 @@ close STDOUT;
sub install {
@_ or return;
- printf SAVEOUT ( _("installing %s\n"), join(' ', @_));
+ printf SAVEOUT sprintf(_("installing %s\n"), join(' ', @_));
log_it(scalar localtime, " @_\n");
system($X ? "grpmi" : ("rpm", $rpm_opt), @_);
if ($?) {
diff --git a/urpmi.spec b/urpmi.spec
index 68c8b93c..a914367d 100644
--- a/urpmi.spec
+++ b/urpmi.spec
@@ -2,7 +2,7 @@
Name: urpmi
Version: 1.5
-Release: 12mdk
+Release: 13mdk
License: GPL
Source0: %{name}.tar.bz2
Summary: User mode rpm install
@@ -113,6 +113,10 @@ autoirpm.uninstall
%changelog
+* Tue Feb 27 2001 François Pons <fpons@mandrakesoft.com> 1.5-13mdk
+- fixed removable cdrom old format extraction.
+- fixed bad i18n usage.
+
* Tue Feb 27 2001 François Pons <fpons@mandrakesoft.com> 1.5-12mdk
- removed use of tee, now forked.
diff --git a/urpmq b/urpmq
index b8370a59..93976237 100755
--- a/urpmq
+++ b/urpmq
@@ -41,7 +41,7 @@ my @names;
sub usage {
#die(_("usage: urpmq [-h] [-d] [-u] [-c] [-g] [-v] [-r] package_name|rpm_file [package_names|rpm_files...]\n"));
- die( sprintf( _("urpmq version %s
+ die( sprintf(_("urpmq version %s
Copyright (C) 2000 MandrakeSoft.
This is free software and may be redistributed under the terms of the GNU GPL.