← Back to team overview

launchpad-users team mailing list archive

Re: Version older than that in the archive

 

On Wed, Nov 25, 2020 at 07:51:06AM -0500, Pierre Abbat wrote:
> After three release candidates, I released 0.5.1, and I'd like to publish the 
> package. I made a source package and uploaded it, but got this error:
> 
> Rejected:
> perfecttin_0.5.1-1.dsc: Version older than that in the archive. 0.5.1-1 <= 
> 0.5.1rc3-3
> 
> How do I get Launchpad to accept the package?

For this time, you'll have to manually remove 0.5.1rc3-3 first, after
which you should be able to upload 0.5.1-1.  However, any systems that
have the old version installed won't automatically upgrade to the new
version, because 0.5.1rc3-3 < 0.5.1-1 in dpkg's version ordering.  If
that's important to you, then you'll need to work around that somehow.
I might be inclined to artificially change the version to something like
0.5.1+0-1 instead, which actually is greater than 0.5.1rc3-3 and
shouldn't risk confusion with future upstream releases, but it may
depend slightly on your relationship with upstream.

For next time, 0.5.1rc3-3 should have been spelled 0.5.1~rc3-3 instead,
and then the ordering would work properly.

  $ if dpkg --compare-versions 0.5.1rc3-3 lt 0.5.1-1; then echo yes; else echo no; fi
  no
  $ if dpkg --compare-versions 0.5.1rc3-3 lt 0.5.1+0-1; then echo yes; else echo no; fi
  yes

-- 
Colin Watson (he/him)                           [cjwatson@xxxxxxxxxxxxx]


Follow ups

References