Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 279795 Details for
Bug 374791
tighten 'has' wording so it works with arguments and not whitespace delimited strings
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for eclass/tests/
eclass-tests-v2.patch (text/plain), 395 bytes, created by
Samuli Suominen (RETIRED)
on 2011-07-11 18:58:41 UTC
(
hide
)
Description:
Patch for eclass/tests/
Filename:
MIME Type:
Creator:
Samuli Suominen (RETIRED)
Created:
2011-07-11 18:58:41 UTC
Size:
395 bytes
patch
obsolete
>--- eclass/tests/tests-common.sh.orig 2011-07-11 21:04:16.000000000 +0300 >+++ eclass/tests/tests-common.sh 2011-07-11 21:56:03.000000000 +0300 >@@ -27,5 +27,13 @@ > debug-print "now in section ${*}" > } > >-hasq() { [[ " ${*:2} " == *" $1 "* ]]; } >-has() { hasq "$@"; } >+has() { >+ local needle=$1 >+ shift >+ >+ local x >+ for x in "$@"; do >+ [ "${x}" = "${needle}" ] && return 0 >+ done >+ return 1 >+}
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 374791
:
279719
|
279721
|
279787
| 279795 |
736939