summaryrefslogtreecommitdiffstats
path: root/urpmi.update
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.update
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.update')
-rwxr-xr-xurpmi.update17
1 files changed, 5 insertions, 12 deletions
diff --git a/urpmi.update b/urpmi.update
index db035fff..0342d96f 100755
--- a/urpmi.update
+++ b/urpmi.update
@@ -20,15 +20,9 @@
#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 (@toupdates, %options);
@@ -39,13 +33,12 @@ sub main {
/^--?c/ and $options{noclean} = 0, next;
/^--?f/ and $options{force} = 1, next;
/^--?noa/ and next; #- default, keeped for compability.
- /^-/ and die sprintf(
-_("usage: urpmi.update [-a] <name> ...
+ /^-/ and die _("usage: urpmi.update [-a] <name> ...
where <name> is a medium name to update.
-a select all non-removable media.
-c clean headers cache directory.
-f force generation of hdlist or base files.
-\nunknown options '%s'\n"), $_);
+\nunknown options '%s'\n", $_);
push @toupdates, $_;
}
@@ -55,7 +48,7 @@ where <name> is a medium name to update.
if ($options{all}) {
@entries == 0 and die _("nothing to update (use urpmi.addmedia to add a media)\n");
} else {
- @toupdates == 0 and die sprintf(_("the entry to update is missing\n(one of %s)\n"), join(", ", @entries));
+ @toupdates == 0 and die _("the entry to update is missing\n(one of %s)\n", join(", ", @entries));
$urpm->select_media(@toupdates);
#- force ignored media to be returned alive.