From 75ccfdf14d6d4c23d07b311372b400855b55fab2 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 14 Feb 2023 01:29:55 -0500 Subject: [PATCH] network/PyRSS2Gen: Fix PRINT_PACKAGE_NAME. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- network/PyRSS2Gen/PyRSS2Gen.SlackBuild | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/network/PyRSS2Gen/PyRSS2Gen.SlackBuild b/network/PyRSS2Gen/PyRSS2Gen.SlackBuild index b978bff199..25f029f261 100644 --- a/network/PyRSS2Gen/PyRSS2Gen.SlackBuild +++ b/network/PyRSS2Gen/PyRSS2Gen.SlackBuild @@ -13,14 +13,6 @@ BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -33,6 +25,11 @@ if [ -z "$ARCH" ]; then esac fi +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + set -e rm -rf $PKG