From c924edafe63bec31bdfe87643ee65142a90820d9 Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Fri, 14 Mar 2008 03:21:03 +0000 Subject: [PATCH] Fix prepending '=' to slotted atoms (Bug #213328) svn path=/; revision=481 --- trunk/src/revdep-rebuild/revdep-rebuild | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/trunk/src/revdep-rebuild/revdep-rebuild b/trunk/src/revdep-rebuild/revdep-rebuild index 282dee5..592b883 100755 --- a/trunk/src/revdep-rebuild/revdep-rebuild +++ b/trunk/src/revdep-rebuild/revdep-rebuild @@ -808,7 +808,7 @@ get_exact_ebuilds() { elif [[ -r $LIST.3_rebuild && -s $LIST.3_rebuild ]]; then rebuildList=" $(<"$LIST.3_rebuild") " rebuildList=(${rebuildList//[[:space:]]obj[[:space:]]/ }) - get_file_owner "${rebuildList[@]}" > $LIST.4_ebuilds + get_file_owner "${rebuildList[@]}" | sed 's/^/=/' > "$LIST.4_ebuilds" einfo "Generated new $LIST.4_ebuilds" else einfo 'Nothing to rebuild.' @@ -921,15 +921,15 @@ echo # Clean up no longer needed environment variables unset SEARCH_DIRS SEARCH_DIRS_MASK LD_LIBRARY_MASK PORTAGE_ROOT -[[ -r $LIST.5_order && -s $LIST.5_order ]] && - REBUILD_LIST=($(<"$LIST.5_order")) || - REBUILD_LIST=($(sort -u "$LIST.4_ebuilds")) +if [[ -r $LIST.5_order && -s $LIST.5_order ]]; then + REBUILD_LIST=( $(<"$LIST.5_order") ) + REBUILD_LIST="${REBUILD_LIST[@]/#/=}" +else + REBUILD_LIST=$(sort -u "$LIST.4_ebuilds") +fi trap - SIGHUP SIGINT SIGQUIT SIGABRT SIGTERM -REBUILD_LIST="${REBUILD_LIST[@]}" -REBUILD_LIST="=${REBUILD_LIST//[[:space:]]/ =}" - einfo 'All prepared. Starting rebuild' echo "emerge --oneshot ${EMERGE_OPTIONS[@]} $REBUILD_LIST" -- 2.26.2