summaryrefslogtreecommitdiffstats
path: root/main/postgresql
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-03-11 10:13:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-03-11 10:13:09 +0000
commitf8e89de0a10192799bed2c5de438dfce44fe1e8b (patch)
tree544e2d65509832a179242af6f38f57f351c6cece /main/postgresql
parent48b4da5074535b34ba4eb1bf88fabbbe3ced2799 (diff)
downloadaports-f8e89de0a10192799bed2c5de438dfce44fe1e8b.tar.bz2
aports-f8e89de0a10192799bed2c5de438dfce44fe1e8b.tar.xz
main/postgresql: fix pre-upgrade script
ref #2751
Diffstat (limited to 'main/postgresql')
-rw-r--r--main/postgresql/APKBUILD2
-rw-r--r--main/postgresql/postgresql.pre-upgrade2
2 files changed, 2 insertions, 2 deletions
diff --git a/main/postgresql/APKBUILD b/main/postgresql/APKBUILD
index 027b64ce5..f43c3b707 100644
--- a/main/postgresql/APKBUILD
+++ b/main/postgresql/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=postgresql
pkgver=9.3.3
-pkgrel=1
+pkgrel=2
pkgdesc="A sophisticated object-relational DBMS"
url="http://www.postgresql.org/"
arch="all"
diff --git a/main/postgresql/postgresql.pre-upgrade b/main/postgresql/postgresql.pre-upgrade
index bcdedaac8..6116252c1 100644
--- a/main/postgresql/postgresql.pre-upgrade
+++ b/main/postgresql/postgresql.pre-upgrade
@@ -3,7 +3,7 @@
new="$1"
old="$2"
-pgver=${new%*.}
+pgver=${new%.*}
compare=$(apk version -t "$old" $pgver)
# check if we upgrade from earlier than $pgver and if it is running