aboutsummaryrefslogtreecommitdiffstats
path: root/gurpmi.addmedia
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-04 11:35:39 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-04 11:35:39 +0000
commitc753b28b6602335f50e208961ba8dde8b884de69 (patch)
tree99e3f84afc1642eb1db08cf415f1ce40346e36b6 /gurpmi.addmedia
parent1504ce98a1ca6c3d82ff5b5a2e91d4bb79be938e (diff)
downloadrpmdrake-c753b28b6602335f50e208961ba8dde8b884de69.tar
rpmdrake-c753b28b6602335f50e208961ba8dde8b884de69.tar.gz
rpmdrake-c753b28b6602335f50e208961ba8dde8b884de69.tar.bz2
rpmdrake-c753b28b6602335f50e208961ba8dde8b884de69.tar.xz
rpmdrake-c753b28b6602335f50e208961ba8dde8b884de69.zip
allow specifying arguments in a file, so that adding-in-one-click is possible
Diffstat (limited to 'gurpmi.addmedia')
-rwxr-xr-xgurpmi.addmedia4
1 files changed, 4 insertions, 0 deletions
diff --git a/gurpmi.addmedia b/gurpmi.addmedia
index 64c44adc..b478f3f6 100755
--- a/gurpmi.addmedia
+++ b/gurpmi.addmedia
@@ -36,6 +36,10 @@ if ($@) {
}
$::isStandalone = 1;
+if (@ARGV == 1 && $ARGV[0] =~ /\.urpm-media$/) {
+ @ARGV = split /\n/, cat_($ARGV[0]);
+}
+
my $update = 0;
if ($ARGV[0] =~ /-?-update/) {
$update = 1;