Update Build Script.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2014-04-12 15:36:51 +07:00
parent 59a68a3ca2
commit 94a1f34d87
2 changed files with 12 additions and 12 deletions

View file

@ -80,7 +80,7 @@ for dir in \
# The real build starts here # The real build starts here
sh ${package}.SlackBuild || exit 1 sh ${package}.SlackBuild || exit 1
if [ "$INST" = "1" ]; then if [ "$INST" = "1" ]; then
PACKAGE="${package}-$version-${build}*.txz" PACKAGE="${package}-$version-*-${build}*.txz"
if [ -f $TMP/$PACKAGE ]; then if [ -f $TMP/$PACKAGE ]; then
upgradepkg --install-new --reinstall $TMP/$PACKAGE upgradepkg --install-new --reinstall $TMP/$PACKAGE
else else

View file

@ -82,7 +82,7 @@ for dir in \
# The real build starts here # The real build starts here
sh ${package}.SlackBuild || exit 1 sh ${package}.SlackBuild || exit 1
if [ "$INST" = "1" ]; then if [ "$INST" = "1" ]; then
PACKAGE="${package}-$version-${build}*.txz" PACKAGE="${package}-$version-*-${build}*.txz"
if [ -f $TMP/$PACKAGE ]; then if [ -f $TMP/$PACKAGE ]; then
upgradepkg --install-new --reinstall $TMP/$PACKAGE upgradepkg --install-new --reinstall $TMP/$PACKAGE
else else