Re: Syncing the mirrors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Feb 2, 2010 at 7:41 PM, Damjan Georgievski <gdamjan@xxxxxxxxx> wrote:
>
> >> >>> - download new packages
> >> >>> - update db
> >> >>> - delete old packages
> >> ...
> > I must be missing something.. isn't --delete-after good enough?
>
> you are missing the fact that it will download the database file
> before it downloads the package files.
> So if I "-Syu" at that time pacman will want to upgrade packages that
> are not on the mirror.
>
> Which is why mirrors must sync the database AFTER syncing the packages.


I thought that was exactly what Damjan said:
- download all new packages
- sync database (or, update db, as he said)
- delete old packages

I don't know how the mirros sync, but if it is with rsync, I guess it would be a
matter of calling it without the delete parameter once, update db, and then
calling rsync with the delete parameter set.

Would this work?


--
Guilherme M. Nogueira
"Any sufficiently advanced technology is indistinguishable from magic."
- Arthur C. Clarke


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux