Skip to content

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
@dinhngtu
Copy link
Member Author

dinhngtu commented Jul 4, 2025

I'll merge soon if there are no more comments.

Comment on lines +80 to +83
"--ciphers",
"ECDHE-RSA-AES256-SHA384,ECDHE-RSA-AES256-GCM-SHA384,AES256-SHA256,AES128-SHA256,ECDHE-ECDSA-AES128-GCM-SHA256",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would need to be explained

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added explanatory comment.

@dinhngtu dinhngtu force-pushed the dnt/upload-bugtool branch from d4b91c7 to e4c9a97 Compare July 7, 2025 13:42
@dinhngtu dinhngtu merged commit 73314df into master Jul 7, 2025
1 check passed
@dinhngtu dinhngtu deleted the dnt/upload-bugtool branch July 8, 2025 14:51
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.

4 participants