[elbe-devel] [PATCH 5/9] pkgutils: remove extract_pkg, which is not used anymore

Torben Hohn torben.hohn at linutronix.de
Wed Jun 26 11:50:24 CEST 2019


Signed-off-by: Torben Hohn <torben.hohn 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)
-- 
2.11.0




More information about the elbe-devel mailing list