aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-10-16 09:41:46 +0000
committerThierry Vignaud <tv@mandriva.org>2009-10-16 09:41:46 +0000
commita9909767dac512edd8ecf674aece402337ff677e (patch)
tree473bdae4baa6fd33bbd22efb8c0ba23e34b4df7d
parent0615413c3f1fadfd216ba47dec3c9c28ec2861ed (diff)
downloadrpmdrake-a9909767dac512edd8ecf674aece402337ff677e.tar
rpmdrake-a9909767dac512edd8ecf674aece402337ff677e.tar.gz
rpmdrake-a9909767dac512edd8ecf674aece402337ff677e.tar.bz2
rpmdrake-a9909767dac512edd8ecf674aece402337ff677e.tar.xz
rpmdrake-a9909767dac512edd8ecf674aece402337ff677e.zip
display a graphical warning when trying more than one instance instead
of silently exiting
-rw-r--r--NEWS3
-rwxr-xr-xrpmdrake3
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 1e8b0226..900c3f6c 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- rpmdrake
+ o display a graphical warning when trying more than one instance
+ instead of silently exiting
- MandrivaUpdate:
o do not display the banner when height <= 480 instead of just < 480
(#54550)
diff --git a/rpmdrake b/rpmdrake
index 6eeb80c5..a21315ec 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -767,7 +767,8 @@ sub run_treeview_dialog {
if (my $pid = is_running('rpmdrake')) {
- die "rpmdrake is already running ($pid)\n";
+ interactive_msg(N("Warning"), N("rpmdrake is already running (pid: $pid)"., yesno => [ N("Quit") ]);
+ exit(0);
}
$w = ugtk2->new(N("Software Management"));