[elbe-devel] [PATCH v2 3/4] Implement downloading pbuilder src-pkg

Torben Hohn torben.hohn at linutronix.de
Fri Jan 31 15:46:09 CET 2020


On Sat, Jan 25, 2020 at 03:58:21PM +0100, bage at linutronix.de wrote:
> From: Bastian Germann <bage at linutronix.de>
> 
> `apt-get source` downloads the package and `dpkg-source` extracts it.
> 
> Signed-off-by: Bastian Germann <bage at linutronix.de>

Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>

> ---
>  elbepack/elbeproject.py | 12 +++++++++++-
>  1 file changed, 11 insertions(+), 1 deletion(-)
> 
> diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
> index bc32c25d0..f7be956ae 100644
> --- a/elbepack/elbeproject.py
> +++ b/elbepack/elbeproject.py
> @@ -418,8 +418,18 @@ class ElbeProject (object):
>                  pass
>          elif p.tag == 'svn':
>              do("svn co --non-interactive %s %s" % (src_uri, src_path))
> +        elif p.tag == 'src-pkg':
> +            pdb_path = os.path.join(self.builddir, "pdebuilder")
> +            os.mkdir(pdb_path)
> +
> +            apt_args = '--yes -q --download-only'
> +            if self.xml.prj.has('noauth'):
> +                apt_args += ' --allow-unauthenticated'
> +            do('cd "%s";apt-get source %s "%s"' % (pdb_path, apt_args, src_uri))
> +
> +            do('dpkg-source -x %s/*.dsc "%s"' % (pdb_path, src_path))
>          else:
> -            logging.info("Unknown pbuild source vcs: %s", p.tag)
> +            logging.info("Unknown pbuild source: %s", p.tag)
>  
>          # pdebuild_build(-1) means use all cpus
>          self.pdebuild_build(cpuset=-1, profile="")
> -- 
> 2.20.1
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner



More information about the elbe-devel mailing list