rackspace/monkeyfarm — Issue #108: tag 'move_builds' should compare package_branch (not package)
Author: derks
Created: 2011-10-25 01:37:48+00:00
State: open

When moving builds... builds of the same package are untagged if the tag's only_latest=True... this should be only when the package_branch is the same... not the package.

--- tag.py	2011-08-17 19:07:26.000000000 -0400
+++ /usr/lib/python2.7/site-packages/mf_hub/controllers/tag.py	2011-10-24 21:35:12.819379475 -0400
@@ -155,10 +155,10 @@
moved_builds.append(b.label)

# if the destination tag has only_latest=True, then we need to
- # untag older builds with the same package
+ # untag older builds with the same package branch
if dest_tag.only_latest:
for b2 in dest_tag.builds:
- if b2.package == b.package:
+ if b2.package_branch == b.package_branch:
b2.tags.remove(dest_tag)
b2.update_date = datetime.now()
untagged_builds.append(b2.label)
@@ -495,4 +495,4 @@
redirect(url('/tag'))

-
\ No newline at end of file
+