Correctly handle the case where an ebuild no longer exists for a package (Bug #188918)
authorfuzzyray <fuzzyray@gentoo.org>
Thu, 13 Sep 2007 00:17:05 +0000 (00:17 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Thu, 13 Sep 2007 00:17:05 +0000 (00:17 -0000)
svn path=/; revision=435

trunk/ChangeLog
trunk/src/revdep-rebuild/revdep-rebuild-rewrite

index 2e174fb9f9c8fb4e6c169a0d3d3cbaabc052a477..4c939be9091bff12ac463d29d98a028b3bb6167f 100644 (file)
@@ -1,6 +1,8 @@
 2007-09-12: Paul Varner <fuzzyray@gentoo.org>
        * 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 <fuzzyray@gentoo.org>
        * revdep-rebuild: Fix progress bar to only update when there is a
index 9d9aa6a0235fe8ab08055295d9e8d05c296a14ff..057670a5bdd5557faea25883279bd6d4112768cf 100755 (executable)
@@ -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 || {