aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-05-08 11:27:35 +0200
committerAngelo Naselli <anaselli@linux.it>2015-05-08 11:27:35 +0200
commitaa290c56c5035272c83d001ba5439fc206ec066f (patch)
treebd2b982460cd3b6188890f4e2c582d79b2c534c9
parent8a9c6878a8aa455d5f3571ad15df121ceccdfbdf (diff)
downloadmanatools-aa290c56c5035272c83d001ba5439fc206ec066f.tar
manatools-aa290c56c5035272c83d001ba5439fc206ec066f.tar.gz
manatools-aa290c56c5035272c83d001ba5439fc206ec066f.tar.bz2
manatools-aa290c56c5035272c83d001ba5439fc206ec066f.tar.xz
manatools-aa290c56c5035272c83d001ba5439fc206ec066f.zip
Fixed restart of rpmdragora and dragoraUpdate in case of priority
packages and ncurses GUI
-rw-r--r--lib/ManaTools/Rpmdragora/pkg.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ManaTools/Rpmdragora/pkg.pm b/lib/ManaTools/Rpmdragora/pkg.pm
index 6d83bded..7ae7f383 100644
--- a/lib/ManaTools/Rpmdragora/pkg.pm
+++ b/lib/ManaTools/Rpmdragora/pkg.pm
@@ -1004,7 +1004,12 @@ you may now inspect some in order to take actions:"),
alarm(0);
# reMDK::Common::DataStructure::member not to ask again questions and the like:
writeconf();
- exec($0, @argv);
+
+ my $err = yui::YUI::app()->runInTerminal(join(" ", $0, @argv, " --ncurses"));
+ if ($err == -1) {
+ exec($0, @argv);
+ }
+ destroy $::main_window if $::main_window;
exit(0);
}