diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2004-02-04 11:35:39 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2004-02-04 11:35:39 +0000 |
commit | c753b28b6602335f50e208961ba8dde8b884de69 (patch) | |
tree | 99e3f84afc1642eb1db08cf415f1ce40346e36b6 /gurpmi.addmedia | |
parent | 1504ce98a1ca6c3d82ff5b5a2e91d4bb79be938e (diff) | |
download | rpmdrake-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-x | gurpmi.addmedia | 4 |
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; |