diff options
author | Paul Varner <fuzzyray@gentoo.org> | 2014-03-06 10:38:08 -0600 |
---|---|---|
committer | Paul Varner <fuzzyray@gentoo.org> | 2014-03-06 10:38:08 -0600 |
commit | 11cc48f031c017e8746109a9a28782085e2d1292 (patch) | |
tree | 929f71006c04436bd81e008d47ea7a929b24fd93 | |
parent | Fix the broken import statement for sets. (diff) | |
download | gentoolkit-11cc48f031c017e8746109a9a28782085e2d1292.tar.gz gentoolkit-11cc48f031c017e8746109a9a28782085e2d1292.tar.bz2 gentoolkit-11cc48f031c017e8746109a9a28782085e2d1292.zip |
Update revdep-rebuild.sh to use new path for functions.sh. (Bug 373219)
-rwxr-xr-x | bin/revdep-rebuild.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/revdep-rebuild.sh b/bin/revdep-rebuild.sh index 8cf9f79..3179a83 100755 --- a/bin/revdep-rebuild.sh +++ b/bin/revdep-rebuild.sh @@ -309,7 +309,16 @@ setup_color() { # This should still work if NOCOLOR is set by the -C flag or in the user's # environment. [[ $NOCOLOR = yes || $NOCOLOR = true ]] && export RC_NOCOLOR=yes # HACK! (grr) - . /etc/init.d/functions.sh + # TODO: Change location according to Bug 373219 + # Remove /etc/init.d/functions.sh once everything is migrated + if [ -e /lib/gentoo/functions.sh ]; then + . /lib/gentoo/functions.sh + elif [ -e /etc/init.d/functions.sh ]; then + . /etc/init.d/functions.sh + else + echo "Unable to find functions.sh" + exit 1 + fi } ## # Die if an argument is missing. |