diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-08-07 07:34:17 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-08-07 07:34:17 +0000 |
commit | 42369c07cca8de9d9d2adc808cdc45cef69aaba6 (patch) | |
tree | d5900c26fc00319ae9b4f58784fa897e162691c9 /mdkapplet | |
parent | 9a6b592c5ee6468d0aa852ff292d98409b1f9790 (diff) | |
download | mgaonline-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-x | mdkapplet | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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"; |