From 6e1671b7082e68f15836e7d09487adbf2fddaf1b Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 15 Feb 2012 16:48:42 +0100 Subject: [PATCH] drop some more old code --- debian_build.py | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/debian_build.py b/debian_build.py index 66a62b2..6ecd005 100755 --- a/debian_build.py +++ b/debian_build.py @@ -494,38 +494,5 @@ if __name__ == '__main__': logger.exception(error) exit_error() - # build out-of-tree kernel module binary packages for all defined - # flavours (if the package is a oot-source package) - FLAVOURS_FILE=os.path.join(GIT_TARGET_WORKSPACE, GIT_REPO_NAME, "debian/pb_flavours") - if os.path.exists(FLAVOURS_FILE): - FLAVOURS_FILE=os.path.join(GIT_TARGET_WORKSPACE, GIT_REPO_NAME, "debian/pb_flavours") - fh = open(FLAVOURS_FILE, 'r') - - - for flavour in fh.readlines(): - flavour=flavour.strip() - LINUX_FLAVOUR_REPO_PATH = '/srv/git/r+i/linux-%s.git' % flavour - urlencode_expansion_dict = { - 'flavour': 'linux-%s' % flavour - } - url = HudsonUrl() - data = urllib.urlencode( - ( - ('GIT_REPO_PATH', LINUX_FLAVOUR_REPO_PATH), - ('GIT_BRANCH_NAME', GIT_BRANCH_NAME), - ('DISTRIBUTION', pb_suite), - ('delay', JOB_DELAY) - ) - ) - ret = url.open(JOB_URL %(urlencode_expansion_dict) + '%s' %(data)) - - if ret.code == 200: - logger.info('jenkins url %s called successfully. ' % JOB_URL %(urlencode_expansion_dict) + '%s' %(data)) - else: - logger.info('URL was %s' % JOB_URL %(urlencode_expansion_dict) + '%s' %(data)) - logger.info('jenkins sends the following: %s' %(ret.read()) ) - exit_error() - fh.close() - exit_ok() -- 2.39.5