Skip to content

Commit

Permalink
only one tagid so name it as such
Browse files Browse the repository at this point in the history
  • Loading branch information
obriencj committed May 21, 2021
1 parent f2fe9bc commit 7a42ead
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kojismokydingo/cli/builds.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,9 @@ def debug(message, *args):
# exists)
desttag = ensure_tag(session, desttag) if create \
else as_taginfo(session, desttag)
dtagid = desttag["id"]
tagid = desttag["id"]

if srctag["id"] == dtagid:
if srctag["id"] == tagid:
debug("Source and destination tags are the same, nothing to do!")
return

Expand Down Expand Up @@ -489,7 +489,7 @@ def debug(message, *args):
# we've got some package listings that need adding

debug("Beginning package additions")
fn = lambda pad: session.packageListAdd(dtagid, pad[0], owner=pad[1],
fn = lambda pad: session.packageListAdd(tagid, pad[0], owner=pad[1],
force=force)

for pad, res in iter_bulk_load(session, fn, package_todo, err=strict):
Expand Down

0 comments on commit 7a42ead

Please sign in to comment.