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

Reply via email to