Skip to content

Commit

Permalink
Preserve Python pre and post release versions, which were previously …
Browse files Browse the repository at this point in the history
…discarded.
  • Loading branch information
gordonmessmer committed Feb 6, 2021
1 parent 0b23953 commit bb5c3ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyp2rpm/package_getters.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class LocalFileGetter(PackageGetter):
def __init__(self, local_file, save_dir=None):
self.local_file = local_file
self.name_version_pattern = re.compile(
r"(^.*?)-(\d+\.?\d*\.?\d*\.?\d*).*$")
r"(^.*?)-(\d+\.?\d*\.?\d*\.?\d*\.?(?:a|b|rc|post|dev)?\d*).*$")
self.save_dir_init(save_dir)

def get(self):
Expand Down

0 comments on commit bb5c3ca

Please sign in to comment.