From 11cc48f031c017e8746109a9a28782085e2d1292 Mon Sep 17 00:00:00 2001 From: Paul Varner Date: Thu, 6 Mar 2014 10:38:08 -0600 Subject: Update revdep-rebuild.sh to use new path for functions.sh. (Bug 373219) --- bin/revdep-rebuild.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'bin') 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. -- cgit v1.2.3-65-gdbad