Skip to content
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

List of packages is actually a dict #1390

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions publish/aliPublishS3
Original file line number Diff line number Diff line change
Expand Up @@ -692,15 +692,15 @@ def sync(pub, architectures, s3Client, bucket, baseUrl, basePrefix, rules,
# get installed last.
def custom_sort_key(s):
for l in ["Suite", "QualityControl", "AliGenerator"]:
if l in s:
return (3, s)
if l in s["name"]:
return (3, s["name"])
for l in ["O2Physics", "AliPhysics"]:
if l in s:
return (2, s)
if l in s["name"]:
return (2, s["name"])
for l in ["O2", "AliRoot"]:
if l in s:
return (1, s)
return (0, s)
if l in s["name"]:
return (1, s["name"])
return (0, s["name"])
pubPackages = sorted(pubPackages, key=custom_sort_key)
pubPackages = pubPackages[:publishLimit]

Expand Down
Loading