We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2b84ba commit 4b09433Copy full SHA for 4b09433
publish/aliPublishS3
@@ -545,11 +545,11 @@ class RPM(object):
545
return True
546
547
def nameVerFromTar(tar, arch, validPacks):
548
- for pkgName in validPacks:
+ for pkgName in sorted(validPacks, key=len, reverse=True):
549
vre = format(r"^(%(pack)s)-(.*?)(\.%(arch)s\.tar\.gz)?$", pack=escape(pkgName), arch=arch)
550
vm = search(vre, tar)
551
if vm:
552
- return { "name": vm.group(1), "ver": vm.group(2) }
+ return {"name": vm.group(1), "ver": vm.group(2)}
553
return None
554
555
def prettyPrintPkg(pkg):
0 commit comments