aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-06 11:20:54 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-06 11:20:54 +0000
commit8b43dffc7df05b38db05eff63801be88b89d62d2 (patch)
treea2e4864b092aaed2085218e3c10db17bae1092b7 /Rpmdrake
parenta80355cf8973ee4465750c4624ab9b1c1ea3094c (diff)
downloadrpmdrake-8b43dffc7df05b38db05eff63801be88b89d62d2.tar
rpmdrake-8b43dffc7df05b38db05eff63801be88b89d62d2.tar.gz
rpmdrake-8b43dffc7df05b38db05eff63801be88b89d62d2.tar.bz2
rpmdrake-8b43dffc7df05b38db05eff63801be88b89d62d2.tar.xz
rpmdrake-8b43dffc7df05b38db05eff63801be88b89d62d2.zip
(perform_installation) display missing packages on console per transaction
Diffstat (limited to 'Rpmdrake')
-rwxr-xr-xRpmdrake/pkg.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index e3f46f01..e7261e92 100755
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -601,6 +601,8 @@ 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) {
+ print N("Installation failed, some files are missing:\n%s\nYou may want to update your urpmi database",
+ join "\n", map { s|([^:]*://[^/:\@]*:)[^/:\@]*(\@.*)|$1xxxx$2|; " $_" } @missing), "\n";
next;
}