Bug#354925: apt-cacher: cached files of same name but from different path_maps break apt-cacher

2006-03-01 Thread Tony Lewis
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.

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

If true, the cache name is appended to the packages path, and cached files from 
separate 
repositories don't interfere with each other.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (70, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)

Versions of packages apt-cacher depends on:
ii  bzip2 1.0.3-2high-quality block-sorting file co
ii  libwww-perl   5.803-4WWW client/server library for Perl
ii  perl  5.8.8-2Larry Wall's Practical Extraction 

apt-cacher recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#354925: apt-cacher: cached files of same name but from different path_maps break apt-cacher

2006-03-02 Thread Eduard Bloch
#include 
* 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



Bug#354925: apt-cacher: cached files of same name but from different path_maps break apt-cacher

2006-03-02 Thread Matt Zimmerman
On Thu, Mar 02, 2006 at 11:15:05AM +0100, Eduard Bloch wrote:
> #include 
> * 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.

This is only one of many reasons why mixing repositories from different
distributions is not a good idea.  You wouldn't mix Fedora and SuSE RPMs
even though the packaging format is the same; it's equally problematic with
Debian and Ubuntu.

-- 
 - mdz


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#354925: apt-cacher: cached files of same name but from different path_maps break apt-cacher

2006-03-02 Thread Tony and Robyn Lewis

Matt Zimmerman wrote:


This is only one of many reasons why mixing repositories from different
distributions is not a good idea.  You wouldn't mix Fedora and SuSE RPMs
even though the packaging format is the same; it's equally problematic with
Debian and Ubuntu.

  


I *think* you're saying that you agree in principle that apt-cacher 
should separate the repositories :-)


In case you're saying that I shouldn't be mixing debs from different 
distros installed on the one box, you're right, and I'm not.  I'm 
running a mixed Debian and Ubuntu network, and would love apt-cacher 
goodness on both of these.


Tony



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#354925: apt-cacher: cached files of same name but from different path_maps break apt-cacher

2006-03-02 Thread Matt Zimmerman
On Fri, Mar 03, 2006 at 08:19:45AM +1100, Tony and Robyn Lewis wrote:
> In case you're saying that I shouldn't be mixing debs from different 
> distros installed on the one box, you're right, and I'm not.  I'm 
> running a mixed Debian and Ubuntu network, and would love apt-cacher 
> goodness on both of these.

Yes, that's what I was saying.  I didn't realize apt-cacher could be used in
this configuration, in which case, I agree that its assumption is invalid.

-- 
 - mdz


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]