diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-06-18 11:33:59 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-06-18 11:33:59 +0000 |
commit | 7a8b8cca8c0b154c38912f8b4833acf4e85c9151 (patch) | |
tree | 94434e8c2644067cb3b96b9304b04aa010f23d07 | |
parent | 835e16fe255f03a8c73381eccffcdf960fbfa083 (diff) | |
download | urpmi-7a8b8cca8c0b154c38912f8b4833acf4e85c9151.tar urpmi-7a8b8cca8c0b154c38912f8b4833acf4e85c9151.tar.gz urpmi-7a8b8cca8c0b154c38912f8b4833acf4e85c9151.tar.bz2 urpmi-7a8b8cca8c0b154c38912f8b4833acf4e85c9151.tar.xz urpmi-7a8b8cca8c0b154c38912f8b4833acf4e85c9151.zip |
cleanup
-rw-r--r-- | urpm/media.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/urpm/media.pm b/urpm/media.pm index cc7aa684..bdabc44d 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -1489,9 +1489,10 @@ sub _update_medium__parse_if_unmodified__remote { } else { #- try to sync (copy if needed) local copy after restored the previous one. #- this is useful for rsync (?) - if (-e statedir_hdlist_or_synthesis($urpm, $medium, 's')) { + my $previous_hdlist = statedir_hdlist_or_synthesis($urpm, $medium, 's'); + if (-e $previous_hdlist) { copy_and_own( - statedir_hdlist_or_synthesis($urpm, $medium, 's'), + $previous_hdlist, cachedir_with_hdlist($urpm, $medium, 's'), ) or $error->(N("...copying failed")), return; } |