Mercurial > treepkg
changeset 348:bcd01f68662c
added login feature for sbdmock
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Mon, 10 May 2010 10:59:02 +0000 |
parents | 2910051b91f7 |
children | ae68f75f0e71 |
files | treepkg/sbuilder.py |
diffstat | 1 files changed, 18 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/treepkg/sbuilder.py Mon Apr 26 10:22:55 2010 +0000 +++ b/treepkg/sbuilder.py Mon May 10 10:59:02 2010 +0000 @@ -168,11 +168,24 @@ args.extend(["--bindmounts", mount]) if save_after_login: args.extend(["--save-after-login"]) - run.call(cmdexpand("@rootcmd /usr/sbin/pbuilder login" - " --configfile $pbuilderrc @args", - rootcmd=self.root_cmd, pbuilderrc=self.pbuilderrc, - args=args), - suppress_output=False) + + logging.info("Mointing extra-pkg apt repository") + + self.mount([self.extra_pkg_dir]) + + logging.info("Login into scratchbox...") + + + + cmd = cmdexpand("/usr/bin/sbdmock login --cleanbuilddir" + " --config=$builderconfig" +# " --dbo=" # aren't build options setable in treepkg.cfg? + " -u @args", + builderconfig=self.builderconfig, + dsc=dsc_file, args=args) + logging.debug("sbdmock cmd: %s" % cmd) + + run.call(cmd, suppress_output=False) def mount(self, bindmounts): for mount in bindmounts: