Bug#189518: dpkg --compare-versions and epochs
Package: dpkg
Version: 1.10.9
hostap-source_2002.10.12-2_all.deb is older than
hostap-source_1%3a0.0.1-1_all.deb. Is there a way to get
"dpkg --compare-versions" to verify this? It appears to
behave incorrectly:
# dpkg --compare-versions 1%3a0.0.1-1 gt 2002.10.12-2 ; echo $?
1
# dpkg --compare-versions 3a0.0.1-1 gt 2002.10.12-2 ; echo $?
1
# dpkg --compare-versions 0.0.1-1 gt 2002.10.12-2 ; echo $?
1
# dpkg --compare-versions hostap-source_1%3a0.0.1-1 gt hostap_source_2002.10.12-2 ; echo $?
1
Reply to: