]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
remove unused legacy code
authorHolger Levsen <holger@layer-acht.org>
Thu, 8 Mar 2012 13:13:53 +0000 (14:13 +0100)
committerHolger Levsen <holger@layer-acht.org>
Thu, 8 Mar 2012 13:13:53 +0000 (14:13 +0100)
debian_build.py

index cc56ff59a95c5758aafa284298308b7b6dc06bbe..601d9b37ff4dc999f76c4ebb16e7ea6de1758a4a 100755 (executable)
@@ -265,21 +265,6 @@ if __name__ == '__main__':
                 os.path.join('origin', GIT_BRANCH_NAME)
         )
 
-    # git-buildpackage uses only treeish object in v0.5.10, so let's fetch the 
-    # treeish refspec when a name was given (i.e. tag names, branch names, 
-    # etc.)
-    # TODO: upgrade git-buildpackage
-    #GIT_UPSTREAM_BRANCH = git_helper.git_get_treeish(
-    #    os.path.join('origin', GIT_UPSTREAM_BRANCH)
-    #)
-
-    # now checkout the requested branch
-    #if git_helper.git_checkout_branch(GIT_UPSTREAM_BRANCH):
-    #    logger.info('git checkout %s was successfull' % GIT_UPSTREAM_BRANCH)
-    #else:
-    #    logger_loud_error('git checkout %s was not successfull' % GIT_UPSTREAM_BRANCH)
-    #    exit_error()
-
     # we need to make sure our jenkins config is used, so let's delete any 
     # other config available in repository that might be prefered 
     cleanup_files = ('.gbp.conf', 'debian/gbp.conf', '.git/gbp.conf')
@@ -456,16 +441,7 @@ if __name__ == '__main__':
         exit_error()
     else:
         logger.debug('git-buildpackage executed successfully')
-#    if not ret:
         build_log=os.path.join('../build-area/result/', '%s_%s_amd64.build' % (pkg_name, version))
-#        try:
-#          fh = open(build_log, 'r')
-#          logger.debug('Output of the deb build: %s' % (fh.read()))
-#          fh.close()
-#      except:
-#        pass
-#        exit_error()
-#    else:
         try:
             create_dput_cfg()
             # strip epoch