summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-08-07 07:34:17 +0000
committerThierry Vignaud <tv@mandriva.org>2008-08-07 07:34:17 +0000
commit42369c07cca8de9d9d2adc808cdc45cef69aaba6 (patch)
treed5900c26fc00319ae9b4f58784fa897e162691c9 /mdkapplet
parent9a6b592c5ee6468d0aa852ff292d98409b1f9790 (diff)
downloadmgaonline-42369c07cca8de9d9d2adc808cdc45cef69aaba6.tar
mgaonline-42369c07cca8de9d9d2adc808cdc45cef69aaba6.tar.gz
mgaonline-42369c07cca8de9d9d2adc808cdc45cef69aaba6.tar.bz2
mgaonline-42369c07cca8de9d9d2adc808cdc45cef69aaba6.tar.xz
mgaonline-42369c07cca8de9d9d2adc808cdc45cef69aaba6.zip
add support for --rpm-root=foobar and --urpmi-root=foobar
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet9
1 files changed, 7 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index ac1f3449..f6fc3f1d 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -209,8 +209,13 @@ $icon->signal_connect(activate => sub {
);
$actions{$state_global}->() if ref $actions{$state_global};
});
-my ($opt) = @ARGV;
-if ($opt eq '--force' || $opt eq '-f') { setAutoStart('TRUE') }
+foreach my $opt (@ARGV) {
+ if ($opt eq '--force' || $opt eq '-f') { setAutoStart('TRUE') }
+ if ($opt =~ '--(rpm-root|urpmi-root)=(.*)') {
+ $::rpmdrake_options{$1}[0] = $2;
+ }
+}
+
shouldStart() or die "$localfile should be set to TRUE: please use --force or -f option to launch applet\n";