[pkgcore] #191: pkgspec doesn't handle slots correctly

0 views
Skip to first unread message

pkgcore

unread,
May 14, 2008, 3:29:02 PM5/14/08
to pkgco...@googlegroups.com
#191: pkgspec doesn't handle slots correctly
--------------------------------------+-------------------------------------
Reporter: sput...@quassel-irc.org | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 0.4.7.3
Component: pkgcore | Version: 0.4.7.2
Keywords: |
--------------------------------------+-------------------------------------
I was trying to remove all packages of a given slot.

pmerge -C 'kde-base/*' works and wants to remove all KDE packages as
expected
pmerge -C 'kde-base/*:kde-4' should remove all KDE packages in the given
slot, but that does not work.

Same for pmerge -C '*/*:kde-4', which I'd expect to remove all packages of
the kde-4 slot.

Not using wildcards does not seem to work either; pmerge 'kde-
base/kdm:kde-4' claims it's not finding a match, while emerge 'kde-
base/kdm:kde-4' works fine.

--
Ticket URL: <http://www.pkgcore.org/trac/pkgcore/ticket/191>
pkgcore <http://www.pkgcore.org/trac/pkgcore>
pkgcore package manager

pkgcore

unread,
May 16, 2008, 3:25:10 AM5/16/08
to pkgco...@googlegroups.com
#191: pkgspec doesn't handle slots correctly
---------------------------------------+------------------------------------
Reporter: sput...@quassel-irc.org | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: pkgcore | Version: 0.4.7.2
Resolution: | Keywords:
---------------------------------------+------------------------------------
Changes (by ferringb):

* milestone: 0.4.7.3 =>

Comment:

pmerge 'kde-base/kdm:kde-4' works fine for me; suggest you look at the
pquery --raw results for it, and --debug for pmerge.

Regarding the rest, originally disallowed '*' since enabling it for pmerge
itself is rather fugly- you'll notice 'pmerge dev-util/*' isn't supported,
nor is 'pmerge -C dev-util/*'.

Need a fairly good counter arg to enable that by default on the
commandline, since it's pretty dangerous in most usage.

--
Ticket URL: <http://www.pkgcore.org/trac/pkgcore/ticket/191#comment:1>

pkgcore

unread,
May 16, 2008, 8:00:03 AM5/16/08
to pkgco...@googlegroups.com
#191: pkgspec doesn't handle slots correctly
---------------------------------------+------------------------------------
Reporter: sput...@quassel-irc.org | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: pkgcore | Version: 0.4.7.2
Resolution: | Keywords:
---------------------------------------+------------------------------------
Comment (by sput...@quassel-irc.org):

Hmm, regarding the slots issue, there might be something wrong with
keywords/unmask instead. Need to re-check that.

Refering to wildcards, there should be some sane way to remove (or
reinstall, upgrade, whatever) all packages of a given slot or matching a
wildcarded specs. Maybe it is enough to teach pquery that, such that one
can pipe its output into pmerge then if need be. A --slot option is
definitely missing in pquery (or did I miss it?)... given the fact that I
seem to be able to search for basically everything else, that should be
added somehow, either as a wildcard or as a separate parameter...

--
Ticket URL: <http://www.pkgcore.org/trac/pkgcore/ticket/191#comment:2>

pkgcore

unread,
Jun 21, 2008, 6:13:51 PM6/21/08
to pkgco...@googlegroups.com
#191: parse_match doesn't handle wildcards in all atom aspects correctly/allow
parsing wildcards to pmerge
---------------------------------------+------------------------------------
Reporter: sput...@quassel-irc.org | Owner: masterdriverz
Type: defect | Status: new
Priority: normal | Milestone:
Component: pkgcore | Version: 0.4.7.2
Resolution: | Keywords:
---------------------------------------+------------------------------------
Changes (by masterdriverz):

* owner: => masterdriverz


Comment:

Replying to [comment:1 ferringb]:

> Need a fairly good counter arg to enable that by default on the
commandline, since it's pretty dangerous in most usage.

It's also fairly useful. Example (actually happened), today, I decided I
would only use a kernel installed from my kernel git checkout, so I wanted
to uninstall all kernels installed from ebuilds. `pmerge -C sys-kernel/*`
suits what I want to do perfectly. I don't see why it should be crippled
because people do stupid things. Maybe if we pause and print a warning in
big letters and beep a lot, we can enable it?

Regardless of whether it should be enabled or not, parse_match handles
wildcards in slots/repoid wrong, and also 'cat/*:slot' wrong. This is a
work in progress on my machine.

--
Ticket URL: <http://www.pkgcore.org/trac/pkgcore/ticket/191#comment:3>

pkgcore

unread,
Jul 17, 2010, 8:51:01 PM7/17/10
to pkgco...@googlegroups.com
#191: expand what arguements are allowed to pmerge -C
---------------------------------------+------------------------------------
Reporter: sputnick@… | Owner: masterdriverz
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: pkgcore | Version: 0.4.7.2
Resolution: | Keywords:
---------------------------------------+------------------------------------
Changes (by ferringb):

* type: defect => enhancement


--
Ticket URL: <http://www.pkgcore.org/trac/pkgcore/ticket/191#comment:4>

Reply all
Reply to author
Forward
0 new messages