aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-07-20 16:02:24 +0200
committerAngelo Naselli <anaselli@linux.it>2014-07-20 16:02:24 +0200
commitdd7e93dd86ba0ef53ed917f8c71964eef62ae9ba (patch)
treeb72f60aceeb3bea6544a2d40e368c836c7a9df89 /lib
parent2ea82cdabc988bf6dbaacd0ff6943489e0fdd6f4 (diff)
downloadmanatools-dd7e93dd86ba0ef53ed917f8c71964eef62ae9ba.tar
manatools-dd7e93dd86ba0ef53ed917f8c71964eef62ae9ba.tar.gz
manatools-dd7e93dd86ba0ef53ed917f8c71964eef62ae9ba.tar.bz2
manatools-dd7e93dd86ba0ef53ed917f8c71964eef62ae9ba.tar.xz
manatools-dd7e93dd86ba0ef53ed917f8c71964eef62ae9ba.zip
wait_msg also adds busy cursor, remove_wait_msg restores it to normal
Diffstat (limited to 'lib')
-rw-r--r--lib/AdminPanel/rpmdragora.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/AdminPanel/rpmdragora.pm b/lib/AdminPanel/rpmdragora.pm
index 4548c7bd..c3e7a9d4 100644
--- a/lib/AdminPanel/rpmdragora.pm
+++ b/lib/AdminPanel/rpmdragora.pm
@@ -393,6 +393,8 @@ sub wait_msg {
$mainw->pollEvent();
#$mainw->recalcLayout();
#$mainw->doneMultipleChanges();
+ yui::YUI::app()->busyCursor();
+
$mainw;
}
@@ -400,6 +402,7 @@ sub remove_wait_msg {
my $w = shift;
#gtkset_mousecursor_normal($w->{rwindow}->window);
$w->destroy;
+ yui::YUI::app()->normalCursor();
}
sub but { " $_[0] " }
@@ -865,6 +868,7 @@ sub update_sources_noninteractive {
sub add_distrib_update_media {
my ($urpm, $mirror, %options) = @_;
+ $DB::single = 1;
#- ensure a unique medium name
my $medium_name = $AdminPanel::rpmdragora::mageia_release =~ /(\d+\.\d+) \((\w+)\)/ ? $2 . $1 . '-' : 'distrib';
my $initial_number = 1 + max map { $_->{name} =~ /\(\Q$medium_name\E(\d+)\b/ ? $1 : 0 } @{$urpm->{media}};