From e336525495cb85d4d0a2676b3b176382a23e8c54 Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Thu, 13 Sep 2007 00:17:05 +0000 Subject: [PATCH] Correctly handle the case where an ebuild no longer exists for a package (Bug #188918) svn path=/; revision=435 --- trunk/ChangeLog | 2 ++ trunk/src/revdep-rebuild/revdep-rebuild-rewrite | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/trunk/ChangeLog b/trunk/ChangeLog index 2e174fb..4c939be 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,6 +1,8 @@ 2007-09-12: Paul Varner * eclean: Fix processing of the long arguments to work correctly. (Bug #192345) + * revdep-rebuild: Correctly handle the case where an ebuild no longer + exists for a package (Bug #188918) 2007-08-08: Paul Varner * revdep-rebuild: Fix progress bar to only update when there is a diff --git a/trunk/src/revdep-rebuild/revdep-rebuild-rewrite b/trunk/src/revdep-rebuild/revdep-rebuild-rewrite index 9d9aa6a..057670a 100755 --- a/trunk/src/revdep-rebuild/revdep-rebuild-rewrite +++ b/trunk/src/revdep-rebuild/revdep-rebuild-rewrite @@ -721,7 +721,8 @@ get_build_order() { 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//[[:space:]]/ =}" + RAW_REBUILD_LIST=($RAW_REBUILD_LIST) + RAW_REBUILD_LIST="${RAW_REBUILD_LIST[@]/#/=}" REBUILD_GREP=$(emerge --nodeps $RAW_REBUILD_LIST | sed 's/\[[^]]*\]//g') && emerge --deep $RAW_REBUILD_LIST | sed 's/\[[^]]*\]//g' | grep -F "$REBUILD_GREP" > $LIST.5_order || { -- 2.26.2