diff options
author | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-03-17 16:51:49 +0000 |
---|---|---|
committer | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-03-17 16:51:49 +0000 |
commit | 2aab9a846f35629b11c666fc274e478a954bb41c (patch) | |
tree | 6c0d0a2bf49500a61a80818c343247dd8b786197 | |
parent | 9e0639740772e511d1473b4be927c4792c82661e (diff) | |
download | draksnapshot-2aab9a846f35629b11c666fc274e478a954bb41c.tar draksnapshot-2aab9a846f35629b11c666fc274e478a954bb41c.tar.gz draksnapshot-2aab9a846f35629b11c666fc274e478a954bb41c.tar.bz2 draksnapshot-2aab9a846f35629b11c666fc274e478a954bb41c.tar.xz draksnapshot-2aab9a846f35629b11c666fc274e478a954bb41c.zip |
revert bogus latest commit
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@239846 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
-rwxr-xr-x | draksnapshot-applet | 43 |
1 files changed, 5 insertions, 38 deletions
diff --git a/draksnapshot-applet b/draksnapshot-applet index 7ffe75e..ce95772 100755 --- a/draksnapshot-applet +++ b/draksnapshot-applet @@ -56,7 +56,7 @@ my %state = ( }, disk_found => { menu => [ 'configure' ], - tt => [ N_("USB discs are available for backups") ] + tt => [ N_("USB discs are availlable for backups") ] }, config_in_progress => { menu => [], @@ -96,22 +96,7 @@ Gtk2->main; ugtk2::exit(0); -my ($config_pid, $checker_pid); - - -my %comm_codes = ( - discs => { - code => 2, - status => 'locked', - log => N_("urpmi database locked") . ", skipping updating urpmi database", - }, - nothing => { - code => 3, - status => 'critical', - log => N_("Error updating media"), - }, -); - +my $config_pid; # Signal management sub harvester { @@ -126,14 +111,6 @@ sub harvester { # we should better check it has really been configured indeed. setAutoStart('FALSE'); ugtk2::exit(0); - } elsif ($checker_pid && $checker_pid == $childpid) { - undef $checker_pid; - my $status = $? >> 8; - my ($state) = grep { $_->{code} eq $status } values %comm_codes; - if ($state) { - logIt($state->{log}); - go2State($state->{status}); - } } push @pids, $childpid; WIFEXITED($?) and refresh_gui(1); @@ -168,19 +145,9 @@ sub silentCheck() { my $w = $::main_window ? $::main_window->window : undef; gtkset_mousecursor_wait($w); - $checker_pid = fork(); - if (defined $checker_pid) { - return if $checker_pid; # parent - - # immediate exit, else forked gtk+ object destructors will badly catch up parent applet - my $_safe = before_leaving { POSIX::_exit(0) }; - - # force refreshing cache: - - detect_devices::probeall_update_cache(); - @discs = grep { $_->{usb_bus} && detect_devices::may_be_a_hd($_) } detect_devices::getSCSI(); - } - + # force refreshing cache: + detect_devices::probeall_update_cache(); + @discs = grep { $_->{usb_bus} && detect_devices::may_be_a_hd($_) } detect_devices::getSCSI(); go2State('okay') if !@discs; # are there any updates ? |