From 13ccb17ef56350373832fe22ff77e53f314629d2 Mon Sep 17 00:00:00 2001 From: Jonathan Patrick Davies Date: Fri, 29 Aug 2008 08:06:51 +0100 Subject: [PATCH] * buildd: - Check if package is in restricted too. - Output which component the package is in, in the header. --- buildd | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/buildd b/buildd index de7e2ff..f16ae58 100755 --- a/buildd +++ b/buildd @@ -102,8 +102,8 @@ common.checkReleaseExists(release) component = common.packageComponent(package, release) # Output details. -print "The source version for '%s' in %s is at %s." % (package, - release.capitalize(), version) +print "The source version for '%s' in %s (%s) is at %s." % (package, + release.capitalize(), component, version) # Parse out build URLs, states, and arches. buildstats = {} @@ -127,8 +127,10 @@ if op == 'status': # admins (rescore). Check if the proper permissions are in place. if op == "rescore": teamNeeded = "launchpad-buildd-admins" if op == "retry": - if component == "main": teamNeeded = "ubuntu-core-dev" - else: teamNeeded = "ubuntu-dev" + if component in ("main", "restricted"): + teamNeeded = "ubuntu-core-dev" + else: + teamNeeded = "ubuntu-dev" necessaryPrivs = common.isLPTeamMember(teamNeeded)