diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-04 13:22:11 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-04 13:22:11 +0000 |
commit | 8b190cc23b16ee92c778cc83f34ee74c267a64c9 (patch) | |
tree | f5836e5cea6178b03e30efd6f13aae5fca3f4052 /mdkapplet | |
parent | 4848ed60ea7a1ddb8d773153b5eba141f3ae7540 (diff) | |
download | mgaonline-8b190cc23b16ee92c778cc83f34ee74c267a64c9.tar mgaonline-8b190cc23b16ee92c778cc83f34ee74c267a64c9.tar.gz mgaonline-8b190cc23b16ee92c778cc83f34ee74c267a64c9.tar.bz2 mgaonline-8b190cc23b16ee92c778cc83f34ee74c267a64c9.tar.xz mgaonline-8b190cc23b16ee92c778cc83f34ee74c267a64c9.zip |
(add_media) keep media manager PID around (needed for next commits)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -291,7 +291,7 @@ sub is_there_a_new_distributions() { } -my ($mdv_update_pid, $checker_pid); +my ($mdv_update_pid, $checker_pid, $media_manager_pid); # Signal management sub harvester { @@ -373,8 +373,9 @@ sub upgrade() { } sub add_media() { + return if $media_manager_pid; logIt("Launching 'Software Media Manager'"); - fork_exec('/usr/sbin/edit-urpm-sources.pl', '--no-splash', if_($root, "--urpmi-root=$root")); + $media_manager_pid = fork_exec('/usr/sbin/edit-urpm-sources.pl', '--no-splash', if_($root, "--urpmi-root=$root")); silentCheck(); gtkflush(); } |