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

Re: preinst script: warning that downgrading isn't supported.



Goswin von Brederlow wrote:
> Frank Lin PIAT <fpiat@klabs.be> writes:
>
>>
>> I am working on a package that have a postinst script that process the
>> package's data on upgrade.
>>
>> Is there any current (best) practice to warn the user that downgrading
>> isn't supported? (I mean, explicitly notifying when downgrade is not
>> supported, rather than silently assuming that the user knows that
>> downgrading isn't supported in Debian)?
>
> Couldn't you check in prerm that the new version is >= the first
> compatible version? So only people that do downgrade get the message
> that it won't work.

That's probably something that it would be sensible to do(if I
decide to display the warnings).

Franklin


Reply to: