summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-21 22:43:58 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-21 22:43:58 +0000
commitab271008dbfecc725fafdfb4aa41e7d1a6e0f7db (patch)
tree21131b13145f1a207e28d5d537ee0c9a59ff2889
parent6e70ce8bfc255eb3d779c4f72ad76b0b65794e62 (diff)
downloadmgaonline-ab271008dbfecc725fafdfb4aa41e7d1a6e0f7db.tar
mgaonline-ab271008dbfecc725fafdfb4aa41e7d1a6e0f7db.tar.gz
mgaonline-ab271008dbfecc725fafdfb4aa41e7d1a6e0f7db.tar.bz2
mgaonline-ab271008dbfecc725fafdfb4aa41e7d1a6e0f7db.tar.xz
mgaonline-ab271008dbfecc725fafdfb4aa41e7d1a6e0f7db.zip
enable to run another applet instance in --testing mode
-rwxr-xr-xmdkapplet6
1 files changed, 5 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index a0c38cb0..1e0978c2 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -41,7 +41,11 @@ use Rpmdrake::open_db;
if (!find { $_ eq '--auto-update' } @ARGV) {
if (my $pid = mdkonline::is_running('mdkapplet')) {
- die "mdkapplet already running ($pid)\n";
+ if ($::testing) {
+ warn "mdkapplet already running ($pid)\n";
+ } else {
+ die "mdkapplet already running ($pid)\n";
+ }
}
}