[packages/postgresql] - fix old version detection in pre script
adamg
adamg at pld-linux.org
Wed Oct 21 13:27:12 CEST 2015
commit 207b00f92fd998f49181a78d20a5d1eb1c4ee60c
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date: Wed Oct 21 13:27:05 2015 +0200
- fix old version detection in pre script
postgresql.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/postgresql.spec b/postgresql.spec
index ce06232..81080c9 100644
--- a/postgresql.spec
+++ b/postgresql.spec
@@ -904,7 +904,7 @@ fi
foundold=0
for pgdir in $PG_DB_CLUSTERS; do
if [ -f $pgdir/PG_VERSION ]; then
- if [ $(cat $pgdir/PG_VERSION) != '9.3' ]; then
+ if [ $(cat $pgdir/PG_VERSION) != '%{mver}' ]; then
echo "Found database(s) in older, incompatible format in cluster $pgdir."
foundold=1
fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/postgresql.git/commitdiff/207b00f92fd998f49181a78d20a5d1eb1c4ee60c
More information about the pld-cvs-commit
mailing list