Skip to content

Commit

Permalink
Update repo last_version after a new version is created during sync
Browse files Browse the repository at this point in the history
  • Loading branch information
David Davis authored and daviddavis committed Jan 12, 2018
1 parent f3f08b3 commit 18acdda
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pulp_file/app/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ def sync(importer_pk):
created.delete()
raise

# bump the repository's last_version
new_version.repository.last_version = new_version.number
new_version.repository.save()


class Synchronizer:
"""
Expand Down

0 comments on commit 18acdda

Please sign in to comment.