Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 146053 Details for
Bug 213294
app-portage/gentoolkit revdep-rebuild empty list of skipped packages
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
revdep-rebuild_r478-no-empty-skiplist.patch
revdep-rebuild-no-empty-skiplist.patch (text/plain), 1.49 KB, created by
michael@smith-li.com
on 2008-03-13 18:33:23 UTC
(
hide
)
Description:
revdep-rebuild_r478-no-empty-skiplist.patch
Filename:
MIME Type:
Creator:
michael@smith-li.com
Created:
2008-03-13 18:33:23 UTC
Size:
1.49 KB
patch
obsolete
>Index: revdep-rebuild >=================================================================== >--- revdep-rebuild (revision 478) >+++ revdep-rebuild (working copy) >@@ -841,18 +841,25 @@ > RAW_REBUILD_LIST=$(<"$LIST.4_ebuilds") > if [[ $RAW_REBUILD_LIST ]]; then > export EMERGE_DEFAULT_OPTS="--nospinner --pretend --oneshot --quiet" >- RAW_REBUILD_LIST=($RAW_REBUILD_LIST) >+ RAW_REBUILD_LIST=($RAW_REBUILD_LIST) # convert into array > # If PACKAGE_NAMES is defined we're using slots, not versions > if [[ $PACKAGE_NAMES ]]; then > # Eliminate atoms that can't be built >- for (( i=0; i<${#RAW_REBUILD_LIST[@]}; i++ )); do >- portageq best_visible "$PORTAGE_ROOT" "${RAW_REBUILD_LIST[i]}" >/dev/null && continue >- SKIP_LIST+=("${RAW_REBUILD_LIST[i]}") >+ for i in "${!RAW_REBUILD_LIST[@]}"; do >+ if [[ "${RAW_REBUILD_LIST[i]}" = *[A-Za-z]* ]]; then >+ portageq best_visible "$PORTAGE_ROOT" "${RAW_REBUILD_LIST[i]}" >/dev/null && continue >+ SKIP_LIST+=("${RAW_REBUILD_LIST[i]}") >+ fi > unset RAW_REBUILD_LIST[i] > done > # If RAW_REBUILD_LIST is empty, then we have nothing to build. > if (( ${#RAW_REBUILD_LIST[@]} == 0 )); then >- list_skipped_packages >+ if (( ${#SKIP_LIST[@]} == 0 )); then >+ ewarn "The list of packages to skip is empty, but there are no" >+ ewarn "packages listed to rebuild either. This is a bug." >+ else >+ list_skipped_packages >+ fi > die 1 'Warning: Portage cannot rebuild any of the necessary packages.' > fi > else
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 213294
: 146053