diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-28 14:12:59 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-28 14:12:59 +0000 |
commit | 1f3cbe423b6af4f3d84d21e97e0ad5e34fdb286f (patch) | |
tree | 1e8c60aea3df4125772e9b04136b0641ed059e65 /urpm | |
parent | c1ffb1752d1f94b613eda67740632fc65ccedadc (diff) | |
download | urpmi-1f3cbe423b6af4f3d84d21e97e0ad5e34fdb286f.tar urpmi-1f3cbe423b6af4f3d84d21e97e0ad5e34fdb286f.tar.gz urpmi-1f3cbe423b6af4f3d84d21e97e0ad5e34fdb286f.tar.bz2 urpmi-1f3cbe423b6af4f3d84d21e97e0ad5e34fdb286f.tar.xz urpmi-1f3cbe423b6af4f3d84d21e97e0ad5e34fdb286f.zip |
verify {synthesis} is used correctly, and cleanup
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/media.pm | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/urpm/media.pm b/urpm/media.pm index c825b956..c4b6134a 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -1622,17 +1622,15 @@ sub _update_medium_first_pass { $medium->{really_modified} = 1; $urpm->{md5sum_modified} = 1; - if (-e statedir_synthesis($urpm, $medium) || -e statedir_list($urpm, $medium)) { + if (-e statedir_hdlist_or_synthesis($urpm, $medium, 's') || -e statedir_list($urpm, $medium)) { $urpm->{info}(N("updated medium \"%s\"", $medium->{name})); } #- but use newly created file. unlink statedir_hdlist($urpm, $medium); - $medium->{synthesis} and unlink statedir_synthesis($urpm, $medium); - $medium->{list} and unlink statedir_list($urpm, $medium); + unlink statedir_synthesis($urpm, $medium); + $medium->{list} unlink statedir_list($urpm, $medium); unless ($medium->{headers}) { - unlink statedir_synthesis($urpm, $medium); - unlink statedir_hdlist($urpm, $medium); urpm::util::move(cachedir_with_hdlist($urpm, $medium, 's'), statedir_hdlist_or_synthesis($urpm, $medium, 's')); } @@ -1641,7 +1639,7 @@ sub _update_medium_first_pass { } #- and create synthesis file associated. - $medium->{must_build_synthesis} = !$medium->{synthesis}; + $medium->{must_build_synthesis} = !_synthesis_or_not($medium, 's'); } 1; } |