summaryrefslogtreecommitdiffstats
path: root/urpmi
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-05-11 14:39:19 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-05-11 14:39:19 +0000
commit38d8da64a27031cee1a079b224bc5430cb81d230 (patch)
tree547293ae28f8381264fdd46d1ae7b5a96596bde0 /urpmi
parent2648c602b20a0f3d60f7dca276843cab084c8808 (diff)
downloadurpmi-38d8da64a27031cee1a079b224bc5430cb81d230.tar
urpmi-38d8da64a27031cee1a079b224bc5430cb81d230.tar.gz
urpmi-38d8da64a27031cee1a079b224bc5430cb81d230.tar.bz2
urpmi-38d8da64a27031cee1a079b224bc5430cb81d230.tar.xz
urpmi-38d8da64a27031cee1a079b224bc5430cb81d230.zip
In gurpmi, the main window was destroyed too early (anthill bug #523)
Diffstat (limited to 'urpmi')
-rwxr-xr-xurpmi3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpmi b/urpmi
index a3f5fdd9..377aa980 100755
--- a/urpmi
+++ b/urpmi
@@ -744,7 +744,6 @@ foreach my $set (@{$state->{transaction} || []}) {
}
}
}
-if ($urpm::args::options{X}) { gurpm::end() }
#- keep a track of error code.
my $exit_code = 0;
@@ -780,6 +779,7 @@ unless ($env) {
#- restart urpmi if needed, keep command line for that.
if ($restart_itself && !$exit_code) {
message(N("restarting urpmi"), 'noX');
+ if ($urpm::args::options{X}) { gurpm::end() }
#- it seems to work correctly with exec instead of system, provided
#- STDOUT or STDERR are not closed before (else no output at all).
#- added --no-priority-upgrade to make sure no restart will be done after this one.
@@ -801,6 +801,7 @@ if ($pid_err && $pid_out) {
if ($urpm::args::options{X}) {
gtkset_mousecursor_normal(); #- to restore a normal cursor in any case
+ gurpm::end();
flush();
}
use POSIX ();