Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 12931 Details for
Bug 22432
qpkg patch: add ability to filter by masked/non-masked
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for /usr/bin/qpkg
qpkg-mask.patch (text/plain), 2.60 KB, created by
Dave Vasilevsky
on 2003-06-08 03:58:47 UTC
(
hide
)
Description:
Patch for /usr/bin/qpkg
Filename:
MIME Type:
Creator:
Dave Vasilevsky
Created:
2003-06-08 03:58:47 UTC
Size:
2.60 KB
patch
obsolete
>--- /usr/bin/qpkg 2003-06-06 10:23:21.000000000 -0400 >+++ qpkg-mod 2003-06-08 04:21:14.000000000 -0400 >@@ -59,6 +59,14 @@ > inst=y > ;; > >+ -m|--masked) >+ grepmask="-L" >+ ;; >+ >+ -n|--non-masked) >+ grepmask="-l" >+ ;; >+ > -U|--uninstalled) > uninst=y > ;; >@@ -168,6 +176,8 @@ > ${BL}-fp, --find-pattern${NO}${T}finds to package that owns file matching *<pattern>* > ${BL}-I, --installed${NO}${T}Include${YL} only${NO} installed packages > ${BL}-U, --uninstalled${NO}${T}Include${YL} only${NO} uninstalled packages >+ ${BL}-m, --masked${NO}${T}Include${YL} only${NO} masked packages >+ ${BL}-n, --non-masked${NO}${T}Include${YL} only${NO} non-masked packages > ${BL}-g, --group${NO}${T}${T}Find by group (can be combined with other searches) > > ${BR}Information Selection: >@@ -215,6 +225,13 @@ > exit > fi > >+if [ "${grepmask}" ]; then >+ mask=`python -c 'import portage; print portage.settings["ACCEPT_KEYWORDS"];' 2> /dev/null` >+ echo -e "Currently accepted keywords: ${BL}${mask}${NO}" >+ echo -e >+ mask=`echo ${mask} | perl -pe 's/\s+/|/'` >+fi >+ > #For the --dups switch only > if [ "${dups}" ]; then > #First dig out the list of packages with duplicates >@@ -302,6 +319,9 @@ > if [ ${arg} ]; then > ipak=`echo ${ipak}|sed -e "s: :\n:g"|grep ${arg}` > fi >+ if [ -n "${mask}" ]; then >+ ipak=`echo ${ipak}|xargs egrep ${grepmask} "^KEYWORDS=.*[[:space:]\"\'](${mask})[[:space:]\"\']"` >+ fi > fi > # not installed packages (yet:-) > if [ ! "${inst}" ]; then >@@ -312,6 +332,9 @@ > if [ ${arg} ]; then > upak=`echo ${upak}|sed -e "s: :\n:g"|grep ${arg}` > fi >+ if [ -n "${mask}" ]; then >+ upak=`echo ${upak}|xargs egrep ${grepmask} "^KEYWORDS=.*[[:space:]\"\'](${mask})[[:space:]\"\']"` >+ fi > fi > fi > >@@ -335,6 +358,11 @@ > desc=`grep DESCRIPTION ${p}| cut -d\" -f2` > echo -e "${T}${BL}${desc}${NO} [ ${YL}${home}${NO} ]" > fi >+ >+ if [ "${mask}" ]; then >+ keywords=`grep KEYWORDS ${p}| cut -d\" -f2` >+ echo -e "${T}Keywords: ${BL}${keywords}${NO}" >+ fi > > if [ "${query}" ]; then > echo -e "${BL}DEPENDED ON BY:${NO}" >@@ -463,9 +491,9 @@ > fi > > done | ( >- if [ ! \( "${tcheck}" -o "${mcheck}" -o "${info}" -o "${list}" -o "${query}" -o ${verb} -gt 0 \) ]; then >+ if [ ! \( "${tcheck}" -o "${mcheck}" -o "${info}" -o "${list}" -o "${query}" -o "${mask}" -o ${verb} -gt 0 \) ]; then > sed -e "s:-r[0-9]\+$::" -e "s:-[0-9][^-]*$::"|sort -k2|uniq -1 >- elif [ ! \( "${tcheck}" -o "${mcheck}" -o "${info}" -o "${list}" -o "${query}" -o ${verb} -lt 2 \) ]; then >+ elif [ ! \( "${tcheck}" -o "${mcheck}" -o "${info}" -o "${list}" -o "${query}" -o "${mask}" -o ${verb} -lt 2 \) ]; then > sort -k2|uniq -1 > else > cat
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 22432
: 12931