aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsimplepkg.SlackBuild2
-rw-r--r--src/createpkg8
2 files changed, 5 insertions, 5 deletions
diff --git a/simplepkg.SlackBuild b/simplepkg.SlackBuild
index 8caed86..f218c82 100755
--- a/simplepkg.SlackBuild
+++ b/simplepkg.SlackBuild
@@ -5,7 +5,7 @@
PACKAGE="simplepkg"
PACK_DIR="package-$PACKAGE"
-BUILD="1rha"
+BUILD="2rha"
VERSION="0.4.9pre5"
ARCH="noarch"
LIBEXEC="/usr/libexec/$PACKAGE"
diff --git a/src/createpkg b/src/createpkg
index faa7e0e..ce0b417 100644
--- a/src/createpkg
+++ b/src/createpkg
@@ -139,10 +139,7 @@ check_repo
if [ -z "$1" ]; then
safe_exit 4
elif [ "$#" == "2" ]; then
- if [ "$1" == "--sync" ]; then
- sync_repo
- exit
- elif [ "$1" == "--search" ]; then
+ if [ "$1" == "--search" ]; then
find_script $2
exit
elif [ "$1" == "--install" ]; then
@@ -154,6 +151,9 @@ elif [ "$#" == "2" ]; then
else
safe_exit 4
fi
+elif [ "$1" == "--sync" ]; then
+ sync_repo
+ exit
elif [ "${1:0:1}" != "-" ]; then
PACKAGE="$1"
else