https://bugs.freedesktop.org/show_bug.cgi?id=70596

--- Comment #18 from Olly Betts <[email protected]> ---
A simple fix for this would be to just append a '+' to the version in the
generated upper bound dependency, so the dependencies would look like:

Depends: libreofficedev4.2-ure (>= 4.2.0.0.alpha0), libreofficedev4.2-ure (<=
4.2.0.0.alpha0+)

Since + sorts after - in dpkg version comparisons, this will achieve what's
wanted here:

$ dpkg --compare-versions '4.2.0.0.alpha0-1' \<= '4.2.0.0.alpha0' && echo OK
$ dpkg --compare-versions '4.2.0.0.alpha0-1' \<= '4.2.0.0.alpha0+' && echo OK
OK
$ dpkg --compare-versions '4.2.0.0.alpha1-1' \<= '4.2.0.0.alpha0+' && echo OK

That's assuming that the dependency just needs a package with the same upstream
version ("4.2.0.0.alpha0" in this case), or that you just never produce
packages with a debian revision other than "-1".

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to