From bc256eed734ae5a08b94f00e75576ee7e46ba671 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 23 Mar 2014 09:08:41 +0100 Subject: [PATCH] xbps-src: repair -V --- common/xbps-src/xbps-src.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/xbps-src/xbps-src.sh b/common/xbps-src/xbps-src.sh index 3c97f0ef4e..9e5966e480 100644 --- a/common/xbps-src/xbps-src.sh +++ b/common/xbps-src/xbps-src.sh @@ -287,6 +287,12 @@ read_pkg() { setup_pkg $XBPS_TARGET_PKG $XBPS_CROSS_BUILD } +readonly XBPS_VERSION=$(xbps-uhelper -V|awk '{print $2}') +readonly XBPS_APIVER=$(xbps-uhelper -V|awk '{print $4}') +readonly XBPS_SRC_VERSION="@@XBPS_SRC_VERSION@@" +readonly FAKEROOT_CMD="fakeroot --" +readonly XBPS_MACHINE=$(uname -m) + # # main() # @@ -384,12 +390,6 @@ export XBPS_FETCH_CMD="xbps-uhelper fetch" readonly XBPS_DIGEST_CMD="xbps-uhelper digest" readonly XBPS_CMPVER_CMD="xbps-uhelper cmpver" -readonly XBPS_VERSION=$(xbps-uhelper -V|awk '{print $2}') -readonly XBPS_APIVER=$(xbps-uhelper -V|awk '{print $4}') -readonly XBPS_SRC_VERSION="@@XBPS_SRC_VERSION@@" -readonly FAKEROOT_CMD="fakeroot --" -readonly XBPS_MACHINE=$(uname -m) - XBPS_TARGET="$1" XBPS_TARGET_PKG="$2"