[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #4210 [Tor Client]: Undefined version comparisions
#4210: Undefined version comparisions
------------------------+---------------------------------------------------
Reporter: atagar | Owner:
Type: defect | Status: new
Priority: trivial | Milestone:
Component: Tor Client | Version:
Keywords: | Parent:
Points: | Actualpoints:
------------------------+---------------------------------------------------
While writing the version parsing for stem I noticed that the version spec
[1] doesn't define how to compare empty tags and patch levels. For
instance, if "1.2.3.4-myTag" is a greater or lower version than
"1.2.3-myTag".
My suggestion would be to add a note that an undefined patch is zero and
undefined tag equates to the empty string. Ie...
"1.2.3-myTag" == "1.2.3.0-myTag"
"1.2.3.4" == "1.2.3.4-"
Cheers! -Damian
[1] https://gitweb.torproject.org/torspec.git/blob/HEAD:/version-spec.txt
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4210>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs