[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

dpkg bug when "overwriting" directories.



severity 20250 important
severity 17381 important
severity 19218 important
severity 19991 important
severity 21812 important
merge 20250 17381 19218 19991 21812
thanks

(What follows is described already by Florian Hinzmann in Bug #21812)

To reproduce this error, I have created two packages "foo" and "bar".
[ See  http://master.debian.org/~sanvila/foobar  for details ].
Both packages contain an empty directory called /usr/doc/foobar.
By doing this:

dpkg -i foo_1_all.deb
rmdir /usr/doc/foobar
dpkg -i bar_1_all.deb

the following is obtained:

[...]
dpkg: error processing bar_1_all.deb (--install):
 trying to overwrite `/usr/doc/foobar', which is also in package foo


Some people rm -rf /usr/doc to save space, and I think this should not
make dpkg to be confused.


Well, the bug seems to be in dpkg/archives.c, around line 350, but I'm
not sure. Has somebody a fix for this? Ian?

Thanks.


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: