Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 605562

Summary: app-portage/gentoolkit-0.3.3: eclean packages complains about invalid package but does not delete it
Product: Gentoo Linux Reporter: Andrei Slavoiu <ansla80>
Component: Current packagesAssignee: Portage Tools Team <tools-portage>
Status: IN_PROGRESS ---    
Severity: normal CC: asturm, dev-portage, dolsen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=900224
Whiteboard:
Package list:
Runtime testing required: ---

Description Andrei Slavoiu 2017-01-13 10:08:26 UTC
* Building file list for packages cleaning...

!!! Invalid binary package: '/usr/portage/packages/media-gfx/imagemagick-6.9.7.3.tbz2'
!!! Missing metadata key(s): CATEGORY, PF, SLOT. This binary package is not
!!! recoverable and should be deleted.
 * Your packages directory was already clean.

Since it identifies the invalid package it should delete it itself instead of telling the user to delete it manually.
Comment 1 Zac Medico gentoo-dev 2017-01-23 22:35:58 UTC
The portage API has a binarytree.invalids list, but unfortunately it doesn't contain full paths. We're probably going to need a new portage API for this.
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2024-02-05 03:49:39 UTC
I believe this one was fixed and patches added to both portage and eclean and since released.

@sam can you confirm please