diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-19 17:26:20 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-19 17:26:20 +0000 |
commit | 15a4df468b0947e82056d7aebe0acb171309ffce (patch) | |
tree | 1f7eec541dcfb63390a637c3c4672649f2dce6fc /gurpmi2 | |
parent | bb1bc9b3acafa3145afa732efd9e6914d0b63831 (diff) | |
download | urpmi-15a4df468b0947e82056d7aebe0acb171309ffce.tar urpmi-15a4df468b0947e82056d7aebe0acb171309ffce.tar.gz urpmi-15a4df468b0947e82056d7aebe0acb171309ffce.tar.bz2 urpmi-15a4df468b0947e82056d7aebe0acb171309ffce.tar.xz urpmi-15a4df468b0947e82056d7aebe0acb171309ffce.zip |
perl_checker fixes
Diffstat (limited to 'gurpmi2')
-rwxr-xr-x | gurpmi2 | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -67,7 +67,7 @@ sub add_button_box { $_->set_alignment(0.5, 0.5), $hbox->add($_) foreach @buttons; } -sub sync { +sub sync () { $mainw->show; Gtk2->main_iteration while Gtk2->events_pending; } @@ -102,7 +102,7 @@ sub wait_label { my (@all_rpms); foreach (@ARGV) { if (/^-/) { - /^--?[hv?]/ and usage; + /^--?[hv?]/ and usage(); fatal N("Unknown option %s", $_); } push @all_rpms, $_; @@ -149,7 +149,7 @@ $mainw->show_all; Gtk2->main; #- Creates and configure an urpm object for this application to use. -sub configure_urpm { +sub configure_urpm () { my $urpm = new urpm; $urpm->{fatal} = sub { Gtk2::MessageDialog->new($mainw, [qw(modal destroy-with-parent)], 'error', 'ok', $_[1])->run; @@ -231,7 +231,7 @@ sub do_install { : goto &do_install_2; } -sub do_install_2 { +sub do_install_2 () { my @to_install; foreach my $pkg (sort { $a->name cmp $b->name } @{$urpm->{depslist}}[keys %{$state->{selected}}]) { $pkg->arch ne 'src' and push @to_install, scalar $pkg->fullname; @@ -245,7 +245,7 @@ sub do_install_2 { : goto \&do_install_3; } -sub do_install_3 { +sub do_install_3 () { wait_label(N("Package installation...")); my ($local_sources, $list) = $urpm->get_source_packages($state->{selected}); $local_sources || $list or $urpm->{fatal}(3, N("unable to get source packages, aborting")); |