From aa02f2cdf70906c3066d4a21d8ac3f83d3570ba3 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 21 Jun 2013 23:52:29 +0000 Subject: simplify --- mgaapplet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mgaapplet') 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; } -- cgit v1.2.1