Bug#688105: [Pkg-postgresql-public] Bug#688105: breaks purging pg8.1
Hello Peter, Peter Palfrader [2012-09-19 14:31 +0200]: | asteria:~# apt-get purge postgresql-8.1 postgresql-client-8.1 [..] | Removing postgresql-8.1 ... | Stopping PostgreSQL 8.1 database server: main. | find: `/usr/share/postgresql/8.1/tsearch_data': No such file or directory Wow, I'm surprised 8.1 still even works with the current p-common. I only test versions = 8.4 these days (i. e. squeeze and upwards). I'll apply this, thanks! Martin -- Martin Pitt| http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#688105: [Pkg-postgresql-public] Bug#688105: breaks purging pg8.1
On Thu, 20 Sep 2012, Martin Pitt wrote: Hello Peter, Peter Palfrader [2012-09-19 14:31 +0200]: | asteria:~# apt-get purge postgresql-8.1 postgresql-client-8.1 [..] | Removing postgresql-8.1 ... | Stopping PostgreSQL 8.1 database server: main. | find: `/usr/share/postgresql/8.1/tsearch_data': No such file or directory Wow, I'm surprised 8.1 still even works with the current p-common. I only test versions = 8.4 these days (i. e. squeeze and upwards). Well, I tried upgrading from lenny. The squeeze package as unable to upgrade the 8.1 cluster because it used -t to psql, so I tried to upgrade to an ever newer one. It still wasn't able to upgrade my cluster because of locale stuff, so I dumped the databases and wanted to purge postgresql-8.1. That failed miserably too, as the common packages were removed before postgresql-8.1, whose postrm tried to run stuff from the common package. re-installed the common package and then that was the only issue left. Cheers, weasel -- | .''`. ** Debian ** Peter Palfrader | : :' : The universal http://www.palfrader.org/ | `. `' Operating System | `-http://www.debian.org/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#688105: breaks purging pg8.1
Package: postgresql-client-common Version: 134 Severity: normal Hi, | asteria:~# apt-get purge postgresql-8.1 postgresql-client-8.1 [..] | Removing postgresql-8.1 ... | Stopping PostgreSQL 8.1 database server: main. | find: `/usr/share/postgresql/8.1/tsearch_data': No such file or directory | dpkg: error processing postgresql-8.1 (--purge): | subprocess installed pre-removal script returned error exit status 1 Changing /usr/share/postgresql-common/maintscripts-functions like this: _remove_tsearch() { - find /usr/share/postgresql/$1/tsearch_data -type l \( -name '*.dict' -o -name '*.affix' \) -exec rm '{}' \; + ! [ -e /usr/share/postgresql/$1/tsearch_data ] || find /usr/share/postgresql/$1/tsearch_data -type l \( -name '*.dict' -o -name '*.affix' \) -exec rm '{}' \; } helped in my case. Cheers, -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org