[pacman-dev] [PATCH 1/1] support http header to indicate an expected failure

Christian Hesse list at eworm.de
Fri May 28 15:55:46 UTC 2021


Allan McRae <allan at archlinux.org> on Fri, 2021/05/28 22:52:
> >> Does this
> >> mean the "new" database on the hosts network could be long out of date,
> >> but as long as it is newer than the local machine being updated, that is
> >> what will be used?  
> > 
> > Well, out-of-date is a term that does barely match here... pacman does
> > known about the date of its current database files only. So yes, more
> > recent database files are used as long as they are newer than the local
> > ones - even if out-of-date compared with a mirror.
> > 
> > That's why the pacredir documentation tells you to run `pacman -Sy` twice
> > to be sure: First run fetches the newest database from local network,
> > second run (where pacredir returns 404) fetches from mirror if a newer
> > version is available.  
> 
> This does very little to convince me that the CacheServer proposal
> should be used for databases.

So let's implement CacheServer for package files only as described
in FS#23407.

Apply my patch anyway to make pacman happy with pacredir. :)
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Best regards             my address:    */=0;b=c[a++];)
putchar(b-1/(/*    Chris            cc -ox -xc - && ./x    */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20210528/6c487f2d/attachment.sig>


More information about the pacman-dev mailing list