Package: postgresql-dev
Version: 7.4.7-2
Severity: normal
Tags: patch

I upgraded postgresql-dev the other day, and the install failed to complete
due to the prerm script:

(Reading database ... 30137 files and directories currently installed.)
Preparing to replace postgresql-dev 7.4.7-1 (using 
.../postgresql-dev_7.4.7-2_i386.deb) ...
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
dpkg: error processing /var/cache/apt/archives/postgresql-dev_7.4.7-2_i386.deb 
(--unpack):
 subprocess new pre-removal script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/postgresql-dev_7.4.7-2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

It seems the dummy prerm script should explicitly exit instead of being
empty; adding 'exit 0' at the end of /var/lib/dpkg/info/postgresql-dev.prerm
allowed the upgrade to complete for me.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-xeon
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages postgresql-dev depends on:
ii  libpq3                        7.4.7-2    PostgreSQL C client library
ii  libssl-dev                    0.9.7e-2   SSL development libraries, header 

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to