diff --git a/common/xbps-src/xbps-src.sh b/common/xbps-src/xbps-src.sh index 3c97f0ef4ef..9e5966e4809 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"