[PATCH][kteam-tools 2/2] maint-startnewrelease: add --pool flag

Marcelo Henrique Cerri marcelo.cerri at canonical.com
Fri Apr 28 05:08:48 UTC 2017


Pass the --pool flag to maint-getabis.

Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri at canonical.com>
---
 maintscripts/maint-startnewrelease | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/maintscripts/maint-startnewrelease b/maintscripts/maint-startnewrelease
index 38a8a51d6538..d06eafe4a28a 100755
--- a/maintscripts/maint-startnewrelease
+++ b/maintscripts/maint-startnewrelease
@@ -43,6 +43,9 @@ parser.add_option(
 	"--ckt-ppa", action="store_true", dest="cktppa", default=False,
 	help="pass --ckt-ppa to maint-getabis, to add c-k-t ppa as an "
 	     "abi source")
+parser.add_option("--pool", action="append", dest="additional_repos",
+		default=[], help="pass --pool to maint-getabis, add the URL "
+				"as an abi source")
 epilog = "Example: user at test:~/ubuntu-oneiric$ %s " % (parser.get_prog_name())
 epilog += "--local --ckt-ppa"
 parser.epilog = epilog
@@ -128,6 +131,8 @@ if os.path.isdir(os.path.join(debian_dir, "abi")):
 		cmd += " --local"
 	if opts.cktppa:
 		cmd += " --ckt-ppa"
+	for repo in opts.additional_repos:
+		cmd += " --pool '%s'" % repo
         if "-lts-" in srcpkg:
             v = "Ubuntu-lts-" + version + '_' + lts_version
         elif "-raspi2" in srcpkg:
-- 
2.7.4





More information about the kernel-team mailing list