Skip to content

Commit

Permalink
Updated format used to store tags for package versions
Browse files Browse the repository at this point in the history
Now we store them under 'ver/' for each repository in case we want to add more tags in the future. We also use '!' to denote an epoch instead of ':' as Git tags aren't allowed to contain the latter character.
  • Loading branch information
hwittenborn committed Apr 6, 2022
1 parent d872b20 commit 00780c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aurweb/git/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,13 +468,13 @@ def main(): # noqa: C901

# Create a tag for the current package's version if it doesn't currently exist.
if "epoch" in metadata and int(pkginfo["epoch"]) > 0:
version = "{:d}:{:s}-{:s}".format(
version = "{:d}!{:s}-{:s}".format(
int(metadata["epoch"]), metadata["pkgver"], metadata["pkgrel"]
)
else:
version = "{:s}-{:s}".format(metadata["pkgver"], metadata["pkgrel"])

tag_name = f"refs/tags/{version}"
tag_name = f"refs/tags/ver/{version}"

if not repo.references.get(tag_name):
repo.references.create(tag_name, sha1_new)
Expand Down

0 comments on commit 00780c3

Please sign in to comment.