On Wed, 07 May 2008, Josselin Mouette wrote:
> > Do you have the (real) packages where this happened just for test purpose?
> 
> Sure, everything is there: http://malsain.org/~joss/debian/

I created a simpler test case since I have no amd64. Attached are two
test packages. Version 2.0 contains a manual page in /usr/local/man/
and version 3.0 doesn't.

[EMAIL PROTECTED]:~/tmp$ dpkg -c test_2.0_all.deb 
drwxr-xr-x root/root         0 2008-05-08 21:19 ./
drwxr-xr-x root/root         0 2008-05-08 21:17 ./usr/
drwxr-xr-x root/root         0 2008-05-08 21:17 ./usr/share/
drwxr-xr-x root/root         0 2008-05-08 21:17 ./usr/share/doc/
drwxr-xr-x root/root         0 2008-05-08 21:17 ./usr/share/doc/test/
-rw-r--r-- root/root       244 2008-05-08 21:19 
./usr/share/doc/test/changelog.Debian.gz
-rw-r--r-- root/root       236 2008-05-08 21:17 ./usr/share/doc/test/copyright
drwxr-xr-x root/root         0 2008-05-08 21:17 ./usr/local/
drwxr-xr-x root/root         0 2008-05-08 21:17 ./usr/local/man/
-rw-r--r-- root/staff     7846 2008-05-08 21:16 ./usr/local/man/dpkg.1.gz
[EMAIL PROTECTED]:~/tmp$ dpkg -c test_3.0_all.deb 
drwxr-xr-x root/root         0 2008-05-08 21:24 ./
drwxr-xr-x root/root         0 2005-12-14 13:11 ./usr/
drwxr-xr-x root/root         0 2008-05-08 21:24 ./usr/share/
drwxr-xr-x root/root         0 2008-05-08 21:24 ./usr/share/doc/
drwxr-xr-x root/root         0 2008-05-08 21:24 ./usr/share/doc/test/
-rw-r--r-- root/root       241 2008-05-08 21:24 
./usr/share/doc/test/changelog.Debian.gz
-rw-r--r-- root/root       231 2008-05-08 21:24 ./usr/share/doc/test/copyright
[EMAIL PROTECTED]:~/tmp$ LANG=C sudo dpkg -i test_2.0_all.deb 
Selecting previously deselected package test.
(Reading database ... 296486 files and directories currently installed.)
Unpacking test (from test_2.0_all.deb) ...
Setting up test (2.0) ...
Processing triggers for man-db ...
[EMAIL PROTECTED]:~/tmp$ LANG=C sudo dpkg -i test_3.0_all.deb 
(Reading database ... 296491 files and directories currently installed.)
Preparing to replace test 2.0 (using test_3.0_all.deb) ...
Unpacking replacement test ...
dpkg: warning - unable to delete old directory `/usr/local': Directory not empty
Setting up test (3.0) ...
Processing triggers for man-db ...


In both case the file-based triggers of man-db has been activated. And it
matches my reading of the code: a removed file also activates file-based
triggers through the function namenodetouse().

Installation of files activates the trigger in src/archives.c (line 426)
while removal of files activates the trigger in src/processarc.c (line 642).

So can you double-check that everything was right on your side? If yes, maybe
try to provide a log with the -D30010 option of dpkg.

Cheers,
-- 
Raphaël Hertzog

Le best-seller français mis à jour pour Debian Etch :
http://www.ouaza.com/livre/admin-debian/

Attachment: test_2.0_all.deb
Description: application/debian-package

Attachment: test_3.0_all.deb
Description: application/debian-package

Reply via email to