Damjan Georgievski <gdamjan@xxxxxxxxx> writes: >>> >>> - download new packages >>> >>> - update db >>> >>> - delete old packages >>> >>> >>> >>> from http://www.debian.org/mirror/ftpmirror#how >>> ... >>> * MUST perform a 2-stage sync >>> ... >>> Rationale: if archive mirroring is done in a single stage, there will >>> be periods of time >>> during which the index files will reference files not yet mirrored. >> >> 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 don't get it. Why is it such a big problem? If pacman tries to download a package that isn't on the mirror, quit it and try it later...