summaryrefslogtreecommitdiffstats
path: root/urpmi.removemedia
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-06-21 16:30:03 +0000
committerFrancois Pons <fpons@mandriva.com>2001-06-21 16:30:03 +0000
commit6209217b87298a88b2d183a8e3c877772f09b99c (patch)
tree9534cd1e7a5a876371e4b70a6e6b800a28c047c7 /urpmi.removemedia
parentc9c5ea9a5fd441cf32f3ca072b4f226816aaa8d5 (diff)
downloadurpmi-6209217b87298a88b2d183a8e3c877772f09b99c.tar
urpmi-6209217b87298a88b2d183a8e3c877772f09b99c.tar.gz
urpmi-6209217b87298a88b2d183a8e3c877772f09b99c.tar.bz2
urpmi-6209217b87298a88b2d183a8e3c877772f09b99c.tar.xz
urpmi-6209217b87298a88b2d183a8e3c877772f09b99c.zip
*** empty log message ***
Diffstat (limited to 'urpmi.removemedia')
-rwxr-xr-xurpmi.removemedia17
1 files changed, 5 insertions, 12 deletions
diff --git a/urpmi.removemedia b/urpmi.removemedia
index 72346e21..a173f248 100755
--- a/urpmi.removemedia
+++ b/urpmi.removemedia
@@ -20,26 +20,19 @@
#use strict qw(subs vars refs);
use urpm;
-# for i18n
-use POSIX;
-use Locale::GetText;
-setlocale (LC_ALL, "");
-Locale::GetText::textdomain ("urpmi");
-
-import Locale::GetText I_;
-*_ = *I_;
+#- get I18N translation method.
+import urpm _;
sub main {
my (@toremoves, %options);
foreach (@_) {
/^--?a/ and $options{all} = 1, next;
- /^-/ and die sprintf(
-_("usage: urpmi.removemedia [-a] <name> ...
+ /^-/ and die _("usage: urpmi.removemedia [-a] <name> ...
where <name> is a medium name to remove.
-a select all media.
-\nunknown options '%s'\n"), $_);
+\nunknown options '%s'\n", $_);
push @toremoves, $_;
}
@@ -50,7 +43,7 @@ where <name> is a medium name to remove.
@toremoves = @entries;
@toremoves == 0 and die _("nothing to remove (use urpmi.addmedia to add a media)\n");
}
- @toremoves == 0 and die sprintf(_("the entry to remove is missing\n(one of %s)\n"), join(", ", @entries));
+ @toremoves == 0 and die _("the entry to remove is missing\n(one of %s)\n", join(", ", @entries));
$urpm->remove_media(@toremoves);
$urpm->update_media(noclean => !$options{all});