From 97c5223faa964187f4205cb676ae4b723662bef9 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 20 Aug 2009 13:05:51 +0000 Subject: main/postgresql: fix pre-upgrade script inclusive typo --- main/postgresql/APKBUILD | 6 ++---- main/postgresql/postgresql.pre-upgrade | 7 ++++--- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'main') diff --git a/main/postgresql/APKBUILD b/main/postgresql/APKBUILD index 205c3f89c..2c3266bc0 100644 --- a/main/postgresql/APKBUILD +++ b/main/postgresql/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa pkgname=postgresql pkgver=8.4.0 -pkgrel=0 +pkgrel=1 pkgdesc="A sophisticated object-relational DBMS" url="http://www.postgresql.org/" license="BSD" @@ -12,7 +12,6 @@ subpackages="$pkgname-dev $pkgname-doc libpq $pkgname-client" source="ftp://ftp.$pkgname.org/pub/source/v$pkgver/$pkgname-$pkgver.tar.bz2 $pkgname.initd $pkgname.confd - $install " build() { @@ -49,5 +48,4 @@ client() { md5sums="1f172d5f60326e972837f58fa5acd130 postgresql-8.4.0.tar.bz2 6dd7bd7c97252312357a255237115b38 postgresql.initd -6218755fde294b7d17b77d280a9c9106 postgresql.confd -a5c671b718f7adc9735b1ed89a5c26e1 postgresql.pre-upgrade" +6218755fde294b7d17b77d280a9c9106 postgresql.confd" diff --git a/main/postgresql/postgresql.pre-upgrade b/main/postgresql/postgresql.pre-upgrade index 358e9986b..989e02167 100644 --- a/main/postgresql/postgresql.pre-upgrade +++ b/main/postgresql/postgresql.pre-upgrade @@ -1,8 +1,9 @@ #!/bin/sh -current="$1" -compare=$(apk version -t $current 8.4) +new="$1" +old="$2" +compare=$(apk version -t "$old" 8.4) # check if we upgrade from earlier than 8.4 and if it is running if [ "$compare" != "<" ] || ! /etc/init.d/postgresql --quiet status; then @@ -23,7 +24,7 @@ cat <