summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm.pm2
-rw-r--r--urpmi.spec5
2 files changed, 5 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index b7dc3055..cdbd7aec 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -447,7 +447,7 @@ sub update_media {
#- try to sync (copy if needed) local copy after restored the previous one.
unlink "$urpm->{cachedir}/partial/$basename";
- $options{force} or
+ $options{force} || ! -e "$urpm->{statedir}/$medium->{hdlist}" or
system("cp", "-a", "$urpm->{statedir}/$medium->{hdlist}", "$urpm->{cachedir}/partial/$basename");
system("wget", "-NP", "$urpm->{cachedir}/partial", "$medium->{url}/$medium->{with_hdlist}");
$? == 0 or $error = 1, $urpm->{error}("wget of [<source_url>/$medium->{with_hdlist}] failed (maybe wget is missing?)");
diff --git a/urpmi.spec b/urpmi.spec
index 104b2e2d..8164a107 100644
--- a/urpmi.spec
+++ b/urpmi.spec
@@ -2,7 +2,7 @@
Name: urpmi
Version: 1.5
-Release: 23mdk
+Release: 24mdk
License: GPL
Source0: %{name}.tar.bz2
Summary: User mode rpm install
@@ -114,6 +114,9 @@ autoirpm.uninstall
%changelog
+* Mon Mar 26 2001 François Pons <fpons@mandrakesoft.com> 1.5-24mdk
+- fixed annoying message when adding a medium (cp).
+
* Fri Mar 23 2001 François Pons <fpons@mandrakesoft.com> 1.5-23mdk
- added synthesis hdlist file support to speed up -m mode.