[jhbuild] systeminstall: apt backend is installing the wrong packages



commit b055b8f44e0e95262cf8582181c95de327d04061
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Dec 6 16:40:41 2016 -0600

    systeminstall: apt backend is installing the wrong packages
    
    It thinks binutils provides /usr/bin/c++ because that's the first result
    from 'apt-file search', since binutils provides /usr/bin/c++filt. So
    turn off pattern matching at the start and end of the string. We only
    want exact matches.
    
    It still can't install /usr/bin/c++, but that's a much less serious
    problem as we can just tell people to install it.

 jhbuild/utils/systeminstall.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/utils/systeminstall.py b/jhbuild/utils/systeminstall.py
index 1d2fd73..d66bc00 100644
--- a/jhbuild/utils/systeminstall.py
+++ b/jhbuild/utils/systeminstall.py
@@ -386,7 +386,7 @@ class AptSystemInstall(SystemInstall):
         SystemInstall.__init__(self)
 
     def _get_package_for(self, filename):
-        proc = subprocess.Popen(['apt-file', 'search', filename],
+        proc = subprocess.Popen(['apt-file', '--fixed-string', 'search', filename],
                                 stdout=subprocess.PIPE, close_fds=True)
         stdout = proc.communicate()[0]
         if proc.returncode != 0:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]