From b08293fdbbcfd6f16b105b558d9087d97acc3896 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Wed, 6 Oct 2010 16:39:30 -0400 Subject: [PATCH] remove extraneous get_win_build def --- hub/kojihub.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/hub/kojihub.py b/hub/kojihub.py index 5a61bc9e..63fbbdc0 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -3244,28 +3244,6 @@ def get_maven_build(buildInfo, strict=False): WHERE build_id = %%(build_id)i""" % ', '.join(fields) return _singleRow(query, locals(), fields, strict) -def get_win_build(buildInfo, strict=False): - """ - Retrieve Windows-specific information about a build. - buildInfo can be either a string (n-v-r) or an integer - (build ID). - Returns a map containing the following keys: - - build_id: id of the build (integer) - platform: the Windows platform the build was run on (string) - """ - fields = ('build_id', 'platform') - build_id = find_build_id(buildInfo) - if not build_id: - if strict: - raise koji.GenericError, 'No matching build found: %s' % buildInfo - else: - return None - query = """SELECT %s - FROM win_builds - WHERE build_id = %%(build_id)i""" % ', '.join(fields) - return _singleRow(query, locals(), fields, strict) - def get_win_build(buildInfo, strict=False): """ Retrieve Windows-specific information about a build.