Skip to content

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

scripts: Add upload_bugtool.py #715

wants to merge 2 commits into from

Conversation

dinhngtu
Copy link
Member

Add a hybrid py2/py3 script for uploading bugtool archives to Nextcloud via a drop link.

@stormi stormi requested review from glehmann and ydirson May 22, 2025 08:33
@dinhngtu dinhngtu force-pushed the dnt/upload-bugtool branch 2 times, most recently from 631c30a to ecfb82e Compare May 26, 2025 15:27
Comment on lines 33 to 39
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
Copy link
Contributor

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?

Copy link
Member Author

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)

Copy link
Contributor

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...

Copy link
Member Author

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.

Copy link
Contributor

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.

Copy link
Member Author

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.

@dinhngtu dinhngtu force-pushed the dnt/upload-bugtool branch from ecfb82e to e82df1e Compare June 4, 2025 21:35
@dinhngtu dinhngtu requested a review from ydirson June 5, 2025 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants