Skip to content

Commit

Permalink
List of packages is actually a dict
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Aug 21, 2024
1 parent a7f7812 commit 13d5f8a
Showing 1 changed file with 7 additions and 7 deletions.
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

0 comments on commit 13d5f8a

Please sign in to comment.