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

Bug 451396

Summary: app-portage/flaggie-0.2-r3 - Should not remove category/* if there are still packages installed from that category.
Product: Gentoo Linux Reporter: Massimo Burcheri <burcheri.massimo+bugs-gentoo>
Component: Current packagesAssignee: Michał Górny <mgorny>
Status: CONFIRMED ---    
Severity: normal CC: tomwij
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Massimo Burcheri 2013-01-11 13:35:08 UTC
I had
xfce-base/*
in /etc/portage/package.accept_keywords/xall
and this was removed by flaggie --destructive-cleanup eventhough there are still some (not all) packages of that category installed and after the cleanup forced to downgrade.
Any cleanup not matter how destructive should leave the wildcards category/* at least if there is at least one package of the category still installed.

Reproducible: Always
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-11 19:31:06 UTC
Hmm, I guess I didn't think of wildcards when implementing the cleanup. I'm currently quite busy but I will try to fix this in reasonable time.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-12 12:21:49 UTC
(In reply to comment #1)
> Hmm, I guess I didn't think of wildcards when implementing the cleanup. I'm
> currently quite busy but I will try to fix this in reasonable time.

Yes, the cleanup methods use .xmatch() method which doesn't support wildcards.

I've tried to construct an Atom() with wildcards enabled but that doesn't help either.

In [16]: a=portage.dep.Atom('dev-python/*', allow_wildcard=True)

In [17]: db.xmatch('match-all', a)
Out[17]: []