]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
Always check the existence of auto tag for ready builds
authorKacper Kornet <draenog@pld-linux.org>
Tue, 10 Jul 2012 22:42:40 +0000 (23:42 +0100)
committerKacper Kornet <draenog@pld-linux.org>
Tue, 10 Jul 2012 22:52:20 +0000 (23:52 +0100)
The old version was workaround to allow rebuild the auto tagged commits.
However in git the translation of '.' and '@' in auto tag names is not
made. Together it could lead to wrong behaviour in the following
scenario:
- old style auto tag exists
- new style auto tag is requested for different commit that still
  represents the same version-release of the package

The better fix is to always check for existence of tag in ready builds,
and builder shouldn't fail when the tag is already present, but points
to the same commit as the one requested for build.

PLD_Builder/srpm_builder.py

index 05208586ec6c56a7df86123e4c8bf8cada31a367..1ec63df99e4c739eaa845a95982ee3f18f0b8586 100644 (file)
@@ -99,7 +99,7 @@ def build_srpm(r, b):
 
     b.src_rpm = ""
     builder_opts = "-nu -nm --nodeps --http"
-    if ("test-build" in r.flags) or b.branch and b.branch.startswith(config.tag_prefixes[0]):
+    if ("test-build" in r.flags):
                     tag_test=""
     else:
                     tag_test=" -Tp %s -tt" % (config.tag_prefixes[0],)
This page took 0.636587 seconds and 4 git commands to generate.