Package: postgresql
Version: 7.4.6-6
Severity: normal
Tags: testing, patch
$2 (old package version) is used in the do_upgrade function to determine
the name of the perserve directory (data.version.save). But global $2
isn't set inside a bash function and so it is empty and produce a
preserve directory equal to "preserve/data..save".
The attached patch fixes this for the unstable version of postgresql.
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-k7
Locale: LANG=C, LC_CTYPE=fr_FR (charmap=ISO-8859-1)
Versions of packages postgresql depends on:
ii adduser 3.59 Add and remove users and groups
ii debconf [debconf 1.4.41 Debian configuration management sy
ii debianutils 2.11.2 Miscellaneous utilities specific t
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libcomerr2 1.35-8 The Common Error Description libra
ii libkrb53 1.3.6-1 MIT Kerberos runtime libraries
ii libpam0g 0.76-22 Pluggable Authentication Modules l
ii libperl5.8 5.8.4-5 Shared Perl library
ii libpq3 7.4.6-6 PostgreSQL C client library
ii libreadline4 4.3-15 GNU readline and history libraries
ii libssl0.9.7 0.9.7e-3 SSL shared libraries
ii mailx 1:8.1.2-0.20040524cvs-4 A simple mail user agent
ii postgresql-clien 7.4.6-6 front-end programs for PostgreSQL
ii procps 1:3.2.4-1 The /proc file system utilities
ii python2.3 2.3.4-19 An interactive high-level object-o
ii ucf 1.13 Update Configuration File: preserv
ii zlib1g 1:1.2.2-4 compression library - runtime
-- debconf information excluded
--- /var/lib/dpkg/info/postgresql.postinst 2005-01-02 21:47:32.000000000
+0100
+++ postgresql.postinst 2005-01-14 19:53:10.000000000 +0100
@@ -528,7 +528,7 @@
db_get postgresql/upgrade/policy || true
if [ "$RET" = true ]
then
- do_upgrade
+ do_upgrade $1 $2
else
echo "
The newly-installed version of PostgreSQL requires a dump and reload