#include <hallo.h>
* Tony Lewis [Thu, Mar 02 2006, 03:17:18PM]:
> Package: apt-cacher
> Version: 1.5.1
> Severity: normal
> 
> *** Please type your report
> 
> I am caching (amongst others) debian testing and ubuntu dapper repositories.  
> When a package 
> exists in both, and the package has exactly the same filename, the second 
> repository that tries 
> to use it does not download it (because it is already cached), but it 
> mismatches the MD5 sum, 
> and won't install.

Now this is really bad. I have always assumed that Ubuntu people would
modify the version string on every change. However, I had to learn now
the many packages have been rebuilt without such changes.

> Suggest that there might be an option in the config file
>       separate_repositories=1

Unfortunately, it is not that easy. That "path_map" thingie is a new
feature and is not a core concept of apt-cacher (unlinke in apt-proxy).
The packages have always been allowed to downloaded from anywhere (if
not restricted by administrator by setting URL filters) and stored in
the same directory so exactly this separation that you imagine has been
actively avoided, all storage locations have been merged.

Now I can change the code a bit to not remove the parent directories
when storing the files. However the next problem are people that already
have a working cache - the stored files would need to be moved to the
"correct" locations but this is a bit complicated without knowing their
origin.

OTOH... a conversion script could do that since their metadata
(checksums) is stored on some "Packages" file... the transition could be
done transparent by hacking it into the cleanup script... I need to
design the changes correctly (later) or it may break for someone.

Eduard.
-- 
Man muß den Mut haben, eine Verantwortung zu tragen.
                -- Walter Flex

Reply via email to