summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--NEWS3
-rwxr-xr-xmdkapplet9
2 files changed, 10 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 1b524560..e81e4c43 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- mdkapplet:
+ o add support for --rpm-root=foobar and --urpmi-root=foobar
+
Version 2.40 - 8 May 2008, Thierry Vignaud
- mdkapplet:
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";