main/postgresql: fix pre-upgrade script

ref #2751
This commit is contained in:
Natanael Copa 2014-03-11 10:13:09 +00:00
parent 48b4da5074
commit f8e89de0a1
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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