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

How to do dissapear-replace with dpkg



This might have something to do with my previous mail message to
debian-bugs. It is also with dpkg-1.1.3.

I have (finally!) created an inn package (inn1.4unoff4), and have
some troubles. The source builds 2 binary packages: inn and inewsinn.
Ofcourse inewsinn is a subset of inn, so I want inn to replace inewsinn
when it is installed.

Now I have in the control file for inn:
Provides: news-transport-system, inews
Replaces: inews

I thought this would make it replace the existing inews package,
but no:

[Q:root](/project/debian/INN)> dpkg -i inn-1.4unoff4-1.deb      
(Reading database ... 17198 files and directories currently installed.)
Unpacking inn (from inn-1.4unoff4-1.deb) ...
dpkg: error processing inn-1.4unoff4-1.deb (--install):
 trying to overwrite `/etc/news/whoami', which is also in package inewsinn
Errors were encountered while processing:
 inn-1.4unoff4-1.deb

What am I doing wrong?

Thanks - Mike.
-- 
  Miquel van    | Cistron Internet Services   --    Alphen aan den Rijn.
  Smoorenburg,  | mailto:info@cistron.nl          http://www.cistron.nl/
miquels@het.net | Tel: +31-172-419445 (Voice) 430979 (Fax) 442580 (Data)



Reply to: