[jhbuild/external-deps] Pass config to system packages object



commit ac6a49edd8cccccf3bd7fefea195c38329a28833
Author: John Carr <john carr unrouted co uk>
Date:   Tue Jun 9 09:16:55 2009 +0100

    Pass config to system packages object
---
 jhbuild/commands/builddeps.py |    2 +-
 jhbuild/moduleset.py          |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/jhbuild/commands/builddeps.py b/jhbuild/commands/builddeps.py
index 6501546..f9fc9df 100644
--- a/jhbuild/commands/builddeps.py
+++ b/jhbuild/commands/builddeps.py
@@ -48,7 +48,7 @@ class cmd_builddeps(Command):
             logging.error(_("Command not available when reuse_system_packages is False. Check your jhbuildrc."))
             return
 
-        pkgs = systempackages.get_system_packages()
+        pkgs = systempackages.get_system_packages(config)
         module_set = jhbuild.moduleset.load(config)
 
         to_install = []
diff --git a/jhbuild/moduleset.py b/jhbuild/moduleset.py
index 03c62b2..8e2ca7e 100644
--- a/jhbuild/moduleset.py
+++ b/jhbuild/moduleset.py
@@ -199,7 +199,7 @@ class ModuleSet:
         del self._state
 
         if reuse_system_packages:
-            pkgs = get_system_packages()
+            pkgs = get_system_packages(self.config)
             for module in ordered:
                 min_version = module.get_minimum_version(ordered)
                 if pkgs.satisfied(module, min_version):



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