[elbe-devel] [PATCH v2 06/22] pkgutils: remove extract_pkg, which is not used anymore

Bastian Germann bage at linutronix.de
Tue Jul 2 16:53:03 CEST 2019


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

Reviewed-by: Bastian Germann <bage at linutronix.de>

> ---
>  elbepack/pkgutils.py | 25 -------------------------
>  1 file changed, 25 deletions(-)
> 
> diff --git a/elbepack/pkgutils.py b/elbepack/pkgutils.py
> index a5355863b..f36f38fee 100644
> --- a/elbepack/pkgutils.py
> +++ b/elbepack/pkgutils.py
> @@ -141,28 +141,3 @@ def download_pkg(prj,
>                  print("-----------------------------------------------------")
>  
>      return [y[0] for y in urilist]
> -
> -
> -def extract_pkg(prj, target_dir, defs, package, arch, log, incl_deps=False):
> -
> -    # pylint: disable=too-many-arguments
> -
> -    pkgs = download_pkg(prj, target_dir, defs, package, arch, incl_deps, log)
> -
> -    for package in pkgs:
> -        ppath = os.path.join(target_dir, "%s.deb" % package)
> -        try:
> -            log.do('dpkg -x "%s" "%s"' % (ppath, target_dir))
> -        except CommandError:
> -            try:
> -                # dpkg did not work, try falling back to ar and tar
> -                log.do('ar p "%s" data.tar.gz | tar xz -C "%s"' % (ppath,
> -                                                                   target_dir))
> -            except CommandError:
> -                try:
> -                    log.do('ar p "%s" data.tar.xz | tar xJ -C "%s"' % (
> -                           ppath, target_dir))
> -                except CommandError as e:
> -                    log.printo("extract %s failed: %s\n" % (ppath, e))
> -                    raise e
> -        log.do('rm -f "%s"' % ppath)
> 



More information about the elbe-devel mailing list