mgorny      14/12/21 09:42:18

  Modified:             xcb-rebuilder.sh
  Log:
  Use sys-apps/gentoo-functions in xcb-rebuilder, bug #504420.
  
  (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 
EFB4464E!)

Revision  Changes    Path
1.4                  x11-libs/libxcb/files/xcb-rebuilder.sh

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/libxcb/files/xcb-rebuilder.sh?rev=1.4&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/libxcb/files/xcb-rebuilder.sh?rev=1.4&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/libxcb/files/xcb-rebuilder.sh?r1=1.3&r2=1.4

Index: xcb-rebuilder.sh
===================================================================
RCS file: /var/cvsroot/gentoo-x86/x11-libs/libxcb/files/xcb-rebuilder.sh,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- xcb-rebuilder.sh    28 Sep 2009 13:13:20 -0000      1.3
+++ xcb-rebuilder.sh    21 Dec 2014 09:42:18 -0000      1.4
@@ -3,7 +3,10 @@
 # To use something besides `emerge` to install packages, set
 # XCB_REBUILDER_INSTALL to that binary.
 
-. /etc/init.d/functions.sh
+if ! . /lib/gentoo/functions.sh 2>/dev/null; then
+       echo 'Please install sys-apps/gentoo-functions and rerun this script.'
+       exit 1
+fi
 
 case ${1} in
        '') ;;




Reply via email to