diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-03-06 11:20:47 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-03-06 11:20:47 +0000 |
commit | a80355cf8973ee4465750c4624ab9b1c1ea3094c (patch) | |
tree | ce8c44dc46e33092de1831c1d24f853da1f79615 /Rpmdrake/pkg.pm | |
parent | 7bca4b20bce9b35fc0d124f3db2784afdfef8eb2 (diff) | |
download | rpmdrake-a80355cf8973ee4465750c4624ab9b1c1ea3094c.tar rpmdrake-a80355cf8973ee4465750c4624ab9b1c1ea3094c.tar.gz rpmdrake-a80355cf8973ee4465750c4624ab9b1c1ea3094c.tar.bz2 rpmdrake-a80355cf8973ee4465750c4624ab9b1c1ea3094c.tar.xz rpmdrake-a80355cf8973ee4465750c4624ab9b1c1ea3094c.zip |
(perform_installation) do display missing packages
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rwxr-xr-x | Rpmdrake/pkg.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index cbb4deb3..e3f46f01 100755 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -503,7 +503,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( Rpmdrake::gurpm::init(1 ? N("Please wait") : N("Package installation..."), N("Initializing..."), transient => $::w->{real_window}); my $distant_progress; my $canceled; - my (@errors, @missing_errors); + my (@errors); my $something_installed; my %sources = %$local_sources; @@ -601,7 +601,6 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( #- check for local files. if (my @missing = grep { m|^/| && ! -e $_ } values %transaction_sources_install, values %transaction_sources) { - push @missing_errors, @missing; next; } @@ -691,7 +690,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( undef $lock; undef $rpm_lock; if (@rpms_install || @rpms_upgrade || @to_remove) { - if (@missing_errors) { + if (my @missing_errors = values %error_sources) { interactive_msg( N("Installation failed"), N("Installation failed, some files are missing:\n%s\n\nYou may want to update your media database.", |