Is package lookaside cache based on file name, or md5sum?

2012-08-13 Thread Tom Lane
Somebody please refresh my memory on this ... I seem to recall reading
that the lookaside cache stores and retrieves files based on their
md5sum, and won't care if two files with different checksums were given
the same name.  True?

The particular case I have is that I want to re-generate a documentation
PDF file, and re-upload it to lookaside cache, without changing its
name.  So in the sources file the md5sum would change, but not the
file name.  Will that work, or screw things up?

(Possibly this is explained somewhere in the project wiki, but I didn't
find it...)

thanks, tom lane
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Is package lookaside cache based on file name, or md5sum?

2012-08-13 Thread Adam Jackson

On 8/13/12 12:43 PM, Tom Lane wrote:

Somebody please refresh my memory on this ... I seem to recall reading
that the lookaside cache stores and retrieves files based on their
md5sum, and won't care if two files with different checksums were given
the same name.  True?

The particular case I have is that I want to re-generate a documentation
PDF file, and re-upload it to lookaside cache, without changing its
name.  So in the sources file the md5sum would change, but not the
file name.  Will that work, or screw things up?

(Possibly this is explained somewhere in the project wiki, but I didn't
find it...)


~/fedora/libdrm% fedpkg -v sources
Downloading libdrm-2.4.37.tar.bz2
Creating repo object from /home/ajax/fedora/libdrm
Running curl -H Pragma: -o ./libdrm-2.4.37.tar.bz2 -R -S --fail 
http://pkgs.fedoraproject.org/repo/pkgs/libdrm/libdrm-2.4.37.tar.bz2/9765919c28d4a54887576db3680137cc/libdrm-2.4.37.tar.bz2 
directly on the tty
  % Total% Received % Xferd  Average Speed   TimeTime Time 
 Current
 Dload  Upload   Total   SpentLeft 
 Speed
100  492k  100  492k0 0   406k  0  0:00:01  0:00:01 --:--:-- 
 507k



So the format appears to be:

%name / filename / md5 / filename

So yes, that should work fine.

- ajax
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel