aboutsummaryrefslogtreecommitdiffstats
path: root/gurpmi.addmedia
diff options
context:
space:
mode:
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;