[Pkg-postgresql-public] Bug#688105: breaks purging pg8.1
Peter Palfrader
weasel at debian.org
Wed Sep 19 12:31:58 UTC 2012
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,
More information about the Pkg-postgresql-public
mailing list