-
Notifications
You must be signed in to change notification settings - Fork 84
scripts: Add upload_bugtool.py #715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
631c30a
to
ecfb82e
Compare
def version_lt(a, b): | ||
for ai, bi in zip_longest(a, b, fillvalue=0): | ||
if ai < bi: | ||
return True | ||
elif ai > bi: | ||
return False | ||
return False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this? Isn't this just a reimplementation of sequence comparison?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, they are not the same, as (3,0) < (3,0,0)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does it mean to say that 3.0
is not smaller than 3.0.0
? Do you have cases where this is significant?
This is just for PLATFORM_VERSION
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is PLATFORM_VERSION
variable length? You want 3.0
to equal 3.0.0
or version comparisons will break if PLATFORM_VERSION
doesn't have the length you expect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I expect there will never be a case where this becomes a question, especially as with v9 we won't share a platform with XS any more, and we will have total control over that field. I think we're just file with comparing the tuple.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine, either way works for me.
Signed-off-by: Tu Dinh <[email protected]>
ecfb82e
to
e82df1e
Compare
Signed-off-by: Tu Dinh <[email protected]>
Add a hybrid py2/py3 script for uploading bugtool archives to Nextcloud via a drop link.