summaryrefslogtreecommitdiffstats
path: root/mgaapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-06-21 23:52:29 +0000
committerThierry Vignaud <tv@mageia.org>2013-06-21 23:52:29 +0000
commitaa02f2cdf70906c3066d4a21d8ac3f83d3570ba3 (patch)
tree17730ba36b9a7bbb7c945aca0896ad956908d4cb /mgaapplet
parent6d00b0c63dbaf99d2fcb57b202c1e0d2ce106423 (diff)
downloadmgaonline-aa02f2cdf70906c3066d4a21d8ac3f83d3570ba3.tar
mgaonline-aa02f2cdf70906c3066d4a21d8ac3f83d3570ba3.tar.gz
mgaonline-aa02f2cdf70906c3066d4a21d8ac3f83d3570ba3.tar.bz2
mgaonline-aa02f2cdf70906c3066d4a21d8ac3f83d3570ba3.tar.xz
mgaonline-aa02f2cdf70906c3066d4a21d8ac3f83d3570ba3.zip
simplify
Diffstat (limited to 'mgaapplet')
-rwxr-xr-xmgaapplet2
1 files changed, 1 insertions, 1 deletions
diff --git a/mgaapplet b/mgaapplet
index 0f82b094..967b0889 100755
--- a/mgaapplet
+++ b/mgaapplet
@@ -226,7 +226,7 @@ $icon->signal_connect(activate => sub {
$click_actions{$action}->() if ref $click_actions{$action};
});
foreach my $opt (@ARGV) {
- if ($opt eq '--force' || $opt eq '-f') { setAutoStart('TRUE') }
+ if (member($opt, qw(--force -f))) { setAutoStart('TRUE') }
if ($opt =~ /--(rpm-root|urpmi-root)=(.*)/) {
$::rpmdrake_options{$1}[0] = $2;
}