summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-06 17:14:41 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-06 17:14:41 +0000
commit57620b2099fbec0076f965b919a53e240c0eb7bf (patch)
tree92d1530c0ad1872ea62e4248506843586dfbc854
parent78f08d2a608ef492767231aefd1be5cd120ab5ee (diff)
downloadurpmi-57620b2099fbec0076f965b919a53e240c0eb7bf.tar
urpmi-57620b2099fbec0076f965b919a53e240c0eb7bf.tar.gz
urpmi-57620b2099fbec0076f965b919a53e240c0eb7bf.tar.bz2
urpmi-57620b2099fbec0076f965b919a53e240c0eb7bf.tar.xz
urpmi-57620b2099fbec0076f965b919a53e240c0eb7bf.zip
allow providing urpmi parameters in a .urpm-rpmi file so that we can then provide one-click local or remote installation from web
-rwxr-xr-xurpmi5
1 files changed, 5 insertions, 0 deletions
diff --git a/urpmi b/urpmi
index c83a4173..ff53cee5 100755
--- a/urpmi
+++ b/urpmi
@@ -21,6 +21,7 @@
#use strict qw(subs vars refs);
use strict;
use urpm;
+use MDK::Common;
#- contains informations to parse installed system.
my $urpm = new urpm;
@@ -234,6 +235,10 @@ while (defined($_ = shift @argv)) {
}
next;
}
+ if (/\.urpm-rpmi$/) {
+ push @argv, split /\n/, cat_($_);
+ next;
+ }
if ($src) {
push @src_names, $_;
} else {