Skip to content

New portage require updating "Packages" text file #14

@asainkujovic

Description

@asainkujovic

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
  • rm line avoid errors shown in emerge command like '...xpak is not valid package'.
  • emaint --fix binhost' generates needed Packages text file.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions