Skip to content

Commit 1964a15

Browse files
committed
Merge branches 'async-wip' and 'rpm-upload-regex'
2 parents edfbd99 + e9e5c45 commit 1964a15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/scripts/rpm-upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
def get_package_info(filename: str):
11-
pattern = r"^(?P<name>.+)-(?P<version>[\d\.]+(\.(dev|a|b|rc|post)\d+(\+[0-9a-z]+)?)?)-(?P<release>[\d\.]+)\.(?P<os>[a-z0-9]+)\.(?P<arch>.+)\.rpm$"
11+
pattern = r"^(?P<name>.+)-(?P<version>[\d\.]+(?:(?:a|b|rc)\d+(?:\.post\d+)?(?:\.dev\d+)?(?:\+[0-9a-z]+)?)?)-(?P<release>[\d\.]+)\.(?P<os>[a-z0-9]+)\.(?P<arch>.+)\.rpm$"
1212
match = re.match(pattern, filename)
1313
if match:
1414
return match.groupdict()

0 commit comments

Comments
 (0)