Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 18769 Details for
Bug 30360
allow `use` to support ! syntax
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
negate-use-ebuild.sh.patch
f (text/plain), 841 bytes, created by
SpanKY
on 2003-10-04 19:47:21 UTC
(
hide
)
Description:
negate-use-ebuild.sh.patch
Filename:
MIME Type:
Creator:
SpanKY
Created:
2003-10-04 19:47:21 UTC
Size:
841 bytes
patch
obsolete
>--- /raid/ebuild.sh 2003-10-04 22:43:50.184086648 -0400 >+++ /usr/sbin/ebuild.sh 2003-10-03 16:02:40.000000000 -0400 >@@ -82,18 +82,37 @@ > } > > use() { >+ local u="${1}" >+ local neg=0 >+ if [ "${u:0:1}" == "!" ]; then >+ u="${u:1}" >+ neg=1 >+ fi > local x > for x in ${USE}; do >- if [ "${x}" == "${1}" ]; then >- if [ -r /dev/fd/1 ]; then >- tty --quiet < /dev/stdout || echo "${x}" >+ if [ "${x}" == "${u}" ]; then >+ if [ ${neg} -eq 1 ]; then >+ return 1 > else >- echo "${x}" >+ if [ -r /dev/fd/1 ]; then >+ tty --quiet < /dev/stdout || echo "${x}" >+ else >+ echo "${x}" >+ fi >+ return 0 > fi >- return 0 > fi > done >- return 1 >+ if [ ${neg} -eq 1 ]; then >+ if [ -r /dev/fd/1 ]; then >+ tty --quiet < /dev/stdout || echo "${x}" >+ else >+ echo "${x}" >+ fi >+ return 0 >+ else >+ return 1 >+ fi > } > > has() {
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 30360
:
18768
| 18769