Skip to content

Commit

Permalink
fix: only archive snapshot if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
Melkor333 committed Jul 24, 2024
1 parent 2561d07 commit 0bd799f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyaptly/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def publish_cmd_update(cfg, publish_name, publish_config, ignore_existing=False)
break
if current_snapshot is None:
lg.warn("Snapshot %s doesn't exist on to-be archived publish %s." % (snap["name"], publish_fullname))

snapshot.clone_snapshot(current_snapshot, archive).execute()
else:
snapshot.clone_snapshot(current_snapshot, archive).execute()

publish_cmd.append("switch")
options.append("-component=%s" % ",".join(components))
Expand Down

0 comments on commit 0bd799f

Please sign in to comment.