Russ Allbery <[EMAIL PROTECTED]> writes:
> Elrond <[EMAIL PROTECTED]> writes:
>> On Tue, Apr 25, 2006 at 11:40:33AM +0200, Simon Josefsson wrote:
>
>>> Ok, good. There isn't a way to only make those parts of the package
>>> install process only apply to upgrades from 0.0.23-1, is there?
>
>> dpkg --compare-version.
>> grep compare-version /var/lib/dpkg/info/*
>
>> The later will flood you with hundreds of example usages.
>
> You can do something like this if you really want to, but I don't have
> 0.0.23-1 packages left to test it with any more and wouldn't want to use
> it without testing it. I do know that what we have now works since I was
> able to test an upgrade from 0.0.23-1 with it.
>
> I'd rather just leave it alone for a few months and then drop it.
Agreed, that sounds easier.
> # Figure out if we're dealing with the possibly failing case.
> ignore=false
> if [ "$1" = "failed-upgrade" ] && dpkg --compare-versions "$2" lt "0.0.24" ;
> then
> ignore=true
> fi
>
> maybe_ignore_failure () {
> status=$?
> if [ "$ignore" = "true" ] ; then
> true
> else
> exit "$status"
> fi
> }
>
> --
> Russ Allbery ([EMAIL PROTECTED]) <http://www.eyrie.org/~eagle/>
_______________________________________________
Help-shishi mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-shishi