On Tue, 23 Aug 2011, Sven Joachim wrote: > > Yes, that doesn't matter at all for the purpose of this test at least. > > I've only made test-conffile-link0 a conffile and test-conffile-link1 a > hardlink to it.
The problem with this is that you don't know which copy will become the main file in the tar archive and which one will be recorded as a hardlink... and here it was reversed, i.e. link1 was the main file and link0 the hardlink, defeating the test we wanted. $ dpkg -c t-unpack-hardlink/pkg-hardlink.deb drwxr-xr-x root/root 0 2011-08-23 21:27 ./ -rw-r--r-- root/root 26 2011-08-23 21:27 ./test-conffile-link1 brw-r--r-- root/root 1,0 2011-08-23 21:27 ./test-ram0-link0 hrw-r--r-- root/root 0 2011-08-23 21:27 ./test-conffile-link0 link to ./test-conffile-link1 prw-r--r-- root/root 0 2011-08-23 21:27 ./test-fifo-link1 brw-r--r-- root/root 1,0 2011-08-23 21:27 ./test-ram0-link1 -rw-r--r-- root/root 22 2011-08-23 21:27 ./test-file-link1 prw-r--r-- root/root 0 2011-08-23 21:27 ./test-fifo-link0 crw-r--r-- root/root 1,3 2011-08-23 21:27 ./test-null-link0 hrw-r--r-- root/root 0 2011-08-23 21:27 ./test-file-link0 link to ./test-file-link1 crw-r--r-- root/root 1,3 2011-08-23 21:27 ./test-null-link1 So I marked both as conffiles and merged your patch, thanks! (At the same time I see that hardlinks to devices and fifo are not kept in the tar archive...) Cheers, -- Raphaël Hertzog ◈ Debian Developer Follow my Debian News ▶ http://RaphaelHertzog.com (English) ▶ http://RaphaelHertzog.fr (Français) -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

