summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Chu <jason@archlinux.org>2004-10-07 22:59:05 +0200
committerJason Chu <jason@archlinux.org>2004-10-07 22:59:05 +0200
commit4a5e09b4ff73717190422782da73e7d5778e3552 (patch)
tree119a1d90db976463442a7d1df8391601320d95bf
parent17db287cbb39e367b883bb15ce6a1910937b4c6d (diff)
downloaddevtools-4a5e09b4ff73717190422782da73e7d5778e3552.tar.gz
devtools-4a5e09b4ff73717190422782da73e7d5778e3552.tar.xz
added a little extra feature to not let you upload to current, extra, or unstable with a 't' in the release
git-svn-id: http://projects.xennet.org/archtools/devtools/trunk@169 630f3fb4-fbd1-0310-a574-b293cca3120f
-rwxr-xr-xextrapkg12
1 files changed, 12 insertions, 0 deletions
diff --git a/extrapkg b/extrapkg
index 32babe2..4e42fb4 100755
--- a/extrapkg
+++ b/extrapkg
@@ -32,9 +32,17 @@ if [ ! -f $pkgfile ]; then
fi
if [ "$cmd" == "extrapkg" ]; then
+ if echo $pkgrel | grep "t" > /dev/null 2>&1; then
+ echo "Package can't be uploaded to extra with a 't' in the release"
+ exit 1
+ fi
repo="extra"
tag="CURRENT"
elif [ "$cmd" == "currentpkg" ]; then
+ if echo $pkgrel | grep "t" > /dev/null 2>&1; then
+ echo "Package can't be uploaded to current with a 't' in the release"
+ exit 1
+ fi
repo="current"
tag="CURRENT"
elif [ "$cmd" == "testingpkg" ]; then
@@ -45,6 +53,10 @@ elif [ "$cmd" == "testingpkg" ]; then
repo="testing"
tag="TESTING"
elif [ "$cmd" == "unstablepkg" ]; then
+ if echo $pkgrel | grep "t" > /dev/null 2>&1; then
+ echo "Package can't be uploaded to unstable with a 't' in the release"
+ exit 1
+ fi
repo="unstable"
tag="CURRENT"
fi