View previous topic :: View next topic |
Author |
Message |
MonkeeSage n00b
Joined: 23 Jan 2007 Posts: 10
|
Posted: Sat Nov 24, 2007 6:49 am Post subject: ANN: emasked |
|
|
I wrote a small python script (and Haskell source + binary) for seaching /usr/portage/profiles/package.mask for data about masked packages. It shows the masked package(s), who masked them, and the reason for the mask.
Example output of "emasked ghc":
Code: | Package(s):
dev-lang/ghc-bin
Masked by:
Duncan Coutts <dcoutts@gentoo.otg> (05 Nov 2007)
Reason:
dev-lang/ghc-bin is going away, use dev-lang/ghc instead.
You can USE=binary with dev-lang/ghc to get the effect of ghc-bin. |
The usage is: "emasked ATOM" where ATOM is a POSIX regex matching some porition of the package atom.
There may already be a utility like this, I didn't check too much; if there is, this isn't meant to be "better" or anything. I just had a need and thought others might as well.
Get it here: http://monkeesage.prohosts.org/emasked
Regards,
Jordan |
|
Back to top |
|
|
mark_alec Bodhisattva
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Sat Nov 24, 2007 8:57 am Post subject: |
|
|
Moved from Portage & Programming to Documentation, Tips & Tricks. _________________ www.gentoo.org.au || #gentoo-au |
|
Back to top |
|
|
MonkeeSage n00b
Joined: 23 Jan 2007 Posts: 10
|
Posted: Sat Jan 12, 2008 4:17 pm Post subject: Re: ANN: emasked |
|
|
MonkeeSage wrote: | I wrote a small python script (and Haskell source + binary) for seaching /usr/portage/profiles/package.mask for data about masked packages. It shows the masked package(s), who masked them, and the reason for the mask.
Example output of "emasked ghc":
Code: | Package(s):
dev-lang/ghc-bin
Masked by:
Duncan Coutts <dcoutts@gentoo.otg> (05 Nov 2007)
Reason:
dev-lang/ghc-bin is going away, use dev-lang/ghc instead.
You can USE=binary with dev-lang/ghc to get the effect of ghc-bin. |
The usage is: "emasked ATOM" where ATOM is a POSIX regex matching some porition of the package atom.
There may already be a utility like this, I didn't check too much; if there is, this isn't meant to be "better" or anything. I just had a need and thought others might as well.
Get it here: http://monkeesage.prohosts.org/emasked
Regards,
Jordan |
Bump...I can't be the only one who finds this functionality useful?! |
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Sun Jan 13, 2008 6:40 am Post subject: |
|
|
One of the reasons might be that the following is a viable approximation of the above script Code: | grep -B 10 <package-name> /usr/portage/profiles/package.mask |
_________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
|
MonkeeSage n00b
Joined: 23 Jan 2007 Posts: 10
|
Posted: Sun Jan 13, 2008 11:48 pm Post subject: |
|
|
ppurka wrote: | One of the reasons might be that the following is a viable approximation of the above script Code: | grep -B 10 <package-name> /usr/portage/profiles/package.mask |
|
Well...yeah. But mine gives color output and actually groks sections rather than guessing at what line-count would be useful (as well as searching only for package atoms and not matching in the comment section). But yeah, I used something like your example prior to writing this, I just thought somebody (besides me, heh) might find it useful. Guess not.
Regards,
Jordan |
|
Back to top |
|
|
ilm Guru
Joined: 29 Jun 2006 Posts: 310 Location: Brisbane, Australia
|
Posted: Wed Jan 16, 2008 1:33 pm Post subject: |
|
|
Looks nice... now, if only you could write an ebuild for it (or at the very least a .cabal file... )... |
|
Back to top |
|
|
|