[jhbuild] systeminstall: Delete some dead code in PkSystemInstall
- From: Colin Walters <walters src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [jhbuild] systeminstall: Delete some dead code in PkSystemInstall
 
- Date: Thu, 29 Sep 2011 14:45:34 +0000 (UTC)
 
commit ab30e15f11616cf7c1b5af7b7c81ae99c9be0fe9
Author: Colin Walters <walters verbum org>
Date:   Wed Aug 31 10:01:19 2011 -0400
    systeminstall: Delete some dead code in PkSystemInstall
    
    https://bugzilla.gnome.org/show_bug.cgi?id=654701
 jhbuild/utils/systeminstall.py |   16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/jhbuild/utils/systeminstall.py b/jhbuild/utils/systeminstall.py
index cf8a937..12f1440 100644
--- a/jhbuild/utils/systeminstall.py
+++ b/jhbuild/utils/systeminstall.py
@@ -65,22 +65,6 @@ class PKSystemInstall(SystemInstall):
     def __init__(self):
         SystemInstall.__init__(self)
 
-    def _get_package_for(self, pkg_config):
-        assert pkg_config.endswith('.pc')
-        pkg_config = pkg_config[:-3]
-        proc = subprocess.Popen(['pkcon', '-p', 'what-provides', 'pkgconfig(%s)' % (pkg_config, ),
-                                 '--filter=arch;newest'], stdout=subprocess.PIPE, close_fds=True)
-        devnull.close()
-        stdout = proc.communicate()[0]
-        if proc.ecode != 0:
-            return None
-        pkg = None
-        for line in StringIO(stdout):
-            if line.startswith('Package:'):
-                pkg = line[line.find(':') + 1:].strip()
-                break
-        return pkg
-
     def _on_pk_message(self, msgtype, msg):
         logging.info(_('PackageKit: %s' % (msg,)))
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]