summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmdkapplet8
1 files changed, 6 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index 9955b12c..0049496a 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -211,8 +211,8 @@ $icon->signal_connect(popup_menu => sub {
});
$icon->signal_connect(activate => sub {
my %actions = (
- no_update_medium => sub { fork_exec('/usr/sbin/edit-urpm-sources.pl') },
- no_enabled_medium => sub { fork_exec('/usr/sbin/edit-urpm-sources.pl') },
+ no_update_medium => \&add_media,
+ no_enabled_medium => \&add_media,
updates => \&installUpdates,
new_distribution => \&upgrade,
);
@@ -372,6 +372,10 @@ sub upgrade() {
$mdv_update_pid = fork_exec('gurpmi', '--auto', '--auto-select', '--silent-success', if_($root, "--urpmi-root=$root"));
}
+sub add_media() {
+ fork_exec('/usr/sbin/edit-urpm-sources.pl');
+}
+
sub installUpdates() {
my $binfile = $0;
return if $mdv_update_pid;