diff options
author | B. Watson <urchlay@slackware.uk> | 2023-02-14 02:43:03 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-02-18 10:07:09 +0700 |
commit | 9b6fb1286ad62b6ce4f66894539af4c15b196707 (patch) | |
tree | bb61ad74a4370602a3ff59731bb2c3f5d4cbe4dd | |
parent | de4da69825fd557298b03f33124f4d04fe539c21 (diff) |
python/pynzb: Fix PRINT_PACKAGE_NAME.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | python/pynzb/pynzb.SlackBuild | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/python/pynzb/pynzb.SlackBuild b/python/pynzb/pynzb.SlackBuild index c6af460f8268..4135804a634c 100644 --- a/python/pynzb/pynzb.SlackBuild +++ b/python/pynzb/pynzb.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 |