summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-19 17:26:08 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-19 17:26:08 +0000
commit26b662e7e31b2fb741af28e1554849e363714c19 (patch)
tree6290dac26da46da80e4b9fc82ba8399a2fe35839
parent18c7b48d5813c4bb3c841b61f446e71cbf34250d (diff)
downloadurpmi-26b662e7e31b2fb741af28e1554849e363714c19.tar
urpmi-26b662e7e31b2fb741af28e1554849e363714c19.tar.gz
urpmi-26b662e7e31b2fb741af28e1554849e363714c19.tar.bz2
urpmi-26b662e7e31b2fb741af28e1554849e363714c19.tar.xz
urpmi-26b662e7e31b2fb741af28e1554849e363714c19.zip
- urpmi.update, urpmi.addmedia, urpmi.removemedia:
o enhancement: only parse updated synthesis
-rw-r--r--NEWS1
-rw-r--r--urpm/media.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 0a7984a6..3ae26f0a 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@
update it at the same time as synthesis is updated)
- urpmi.update, urpmi.addmedia, urpmi.removemedia:
o drop option "-c" which used to clean /var/cache/urpmi/headers
+ o enhancement: only parse updated synthesis
- urpmi:
o do remove __db* on priority-upgrade
(fix regression introduced in 4.10.15)
diff --git a/urpm/media.pm b/urpm/media.pm
index f6c3e70d..366f6363 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -1377,7 +1377,7 @@ sub update_media {
_update_media__handle_some_flags($urpm, $options{forcekey}, $options{all});
my %updates_result;
- foreach my $medium (grep { !$_->{ignore} } @{$urpm->{media}}) {
+ foreach my $medium (grep { !$_->{ignore} && $_->{modified} } @{$urpm->{media}}) {
my $rc = _update_medium($urpm, $medium, %options);
$updates_result{$rc || 'error'}++;
}