Is package lookaside cache based on file name, or md5sum?
Adam Jackson
ajax at redhat.com
Mon Aug 13 16:47:00 UTC 2012
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 Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 492k 100 492k 0 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
More information about the devel
mailing list