Problem with replacing packages
Hi all,
I wish to combine two packages into one:
xshipwars-common + xshipwars -> xshipwars
So I put the following into debian/control:
Package: xshipwars
Architecture: any
Depends: xshipwars-images-st (>= 1.7), ${shlibs:Depends}
Suggests: jscalibrator, xshipwars-sounds-st (>= 1.4)
Replaces: xshipwars-common
Conflicts: xshipwars-common
[prev version depends on xshipwars-common]
This fails miserably though:
# dpkg -i xshipwars_1.34.1-2_i386.deb
dpkg: considering removing xshipwars-common in favour of xshipwars ...
dpkg: no, cannot remove xshipwars-common (--auto-deconfigure will help):
xshipwars depends on xshipwars-common (= 1.34.1-1)
xshipwars-common is to be removed.
dpkg: regarding xshipwars_1.34.1-2_i386.deb containing xshipwars:
xshipwars conflicts with xshipwars-common
xshipwars-common (version 1.34.1-1) is installed.
dpkg: error processing xshipwars_1.34.1-2_i386.deb (--install):
conflicting packages - not installing xshipwars
Errors were encountered while processing:
xshipwars_1.34.1-2_i386.deb
Adding a "Provides: xshipwars-common" nor adding version number to
xshipwars-common does not help.
Any ideas?
- Adam
PS. Do I need a dummy package for this? This would be as bad as
having a useless package like xshipwars-common in the first place.
Reply to: