[elbe-devel] [PATCH 2/6] pkgutils: remove debug prints and debug flag from TmpdirFilesystem()

Torben Hohn torben.hohn at linutronix.de
Mon Jul 8 16:27:09 CEST 2019


some debug prints slipped in.

remove them.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/pkgutils.py | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/elbepack/pkgutils.py b/elbepack/pkgutils.py
index 48941d9dd..52411bfb1 100644
--- a/elbepack/pkgutils.py
+++ b/elbepack/pkgutils.py
@@ -88,12 +88,9 @@ def extract_pkg_changelog(fname, extra_pkg=None):
     # pkgver = m.group('ver')
     pkgarch = m.group('arch')
 
-    print('pkg: %s, arch: %s' % (pkgname, pkgarch))
-
-    fs = TmpdirFilesystem(debug=True)
+    fs = TmpdirFilesystem()
 
     if extra_pkg:
-        print('with extra ' + extra_pkg)
         system('dpkg -x "%s" "%s"' % (extra_pkg, fs.fname('/')))
 
     system('dpkg -x "%s" "%s"' % (fname, fs.fname('/')))
@@ -102,25 +99,17 @@ def extract_pkg_changelog(fname, extra_pkg=None):
 
     if fs.islink(dch_dir) and not extra_pkg:
         l = fs.readlink(dch_dir)
-        print(dch_dir, l)
         raise ChangelogNeedsDependency(l)
 
     dch_bin = '/usr/share/doc/%s/changelog.Debian.%s.gz' % (pkgname, pkgarch)
     dch_src = '/usr/share/doc/%s/changelog.Debian.gz' % pkgname
 
-    print(fs.listdir('/usr/share/doc/'))
-    print(fs.listdir('/usr/share/doc/%s' % pkgname))
-
     ret = ""
 
     if fs.exists(dch_bin):
         ret += fs.read_file(dch_bin, gzip=True)
-    else:
-        print("no bin")
 
     if fs.exists(dch_src):
         ret += fs.read_file(dch_src, gzip=True)
-    else:
-        print("no source")
 
     return ret
-- 
2.11.0




More information about the elbe-devel mailing list