zoobab / quickunpkg

quickunpkg, the other friend of gentoo's quickpkg
16 stars 2 forks source link

New portage require updating "Packages" text file #14

Open asainkujovic opened 2 weeks ago

asainkujovic commented 2 weeks ago

Your script is still listed in gentoo documentation for quickpkg. For older portage (those with default PKGDIR is /var/portage/package) it is working well. But in newer portage (where default PKGDIR is /var/cache/binpkgs) it seems that file /var/cache/binpkgs/Packages need to be created (or our temporary PKGDIR/Packages), so I had to add two lines in the end before last line:

rm *.xpak *.tbz2
PKGDIR=${WORKDIR} emaint --fix binhost
PKGDIR=${WORKDIR} emerge -K "=${CATEGORY}/${PF}"         # last line as it was before, stays the same

Both lines are correct and harmless for older portage too. So can you update your script with this or better solution?

thesamesam commented 1 week ago

Alternatively, you can do FEATURES="-pkgdir-index-trusted" but it'll be slower.