summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-08-24 11:16:54 +0000
committerThierry Vignaud <tv@mageia.org>2012-08-24 11:16:54 +0000
commit683149d14d258d15bdb6ce5a4eda5475fdcbebb7 (patch)
tree172dad17f5a5dae58236e329dfd5fd044a833437
parent71c5b675469035830093275aeb7eabd8e2645d68 (diff)
downloadurpmi-683149d14d258d15bdb6ce5a4eda5475fdcbebb7.tar
urpmi-683149d14d258d15bdb6ce5a4eda5475fdcbebb7.tar.gz
urpmi-683149d14d258d15bdb6ce5a4eda5475fdcbebb7.tar.bz2
urpmi-683149d14d258d15bdb6ce5a4eda5475fdcbebb7.tar.xz
urpmi-683149d14d258d15bdb6ce5a4eda5475fdcbebb7.zip
(_download_packages) decrease total package count when some files are missing
-rw-r--r--NEWS2
-rw-r--r--urpm/main_loop.pm1
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index ec8683b4..5b68c70d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- decrease total package count when some files are missing
+
Version 7.3 - 24 August 2012
- only search for README.urpmi files in doc files (needs URPM >= 4.13)
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm
index a0d811a6..745494c9 100644
--- a/urpm/main_loop.pm
+++ b/urpm/main_loop.pm
@@ -70,6 +70,7 @@ sub _download_packages {
join("\n", map { " $_->[0]" } @missing))
. "\n" .
N("You may need to update your urpmi database.");
+ $urpm->{nb_install} -= scalar @missing;
}
if (@bad) {
push @msgs, N("Installation failed, bad rpms:\n%s",