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

what to do if upgrade is not possible?



Hi,
shame on me, I have an error in debian scripts of my package preventing
an upgrade of the package (install is ok).

While I fixed it in the new package (for further updates), in the
meanwhile it means that if an upgrade is needed, one must first
uninstall the package, then install the new one.

I'd like to know what is the best solution:

1) update preinst etc.. to detect that it is an upgrade from version X ,
and raise an error with explanatory message. User will have to do the
removal/install manually. Package cannot revert automatically to version
X, it will be broken. However user is safe from data/config point of view.

2) put in the new package a Conflicts with itself for the version X 
(Version Y conflicts with Version X).

Thanks

Olivier

-- 
gpg key id: 4096R/326D8438  (pgp.mit.edu)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438



Reply to: