[jhbuild] mock: Use packagedb from moduleset, don't make a new one



commit f9ca504b7ca5e85ef5e1f811d8c1f710428880fe
Author: Colin Walters <walters verbum org>
Date:   Tue Aug 9 13:53:31 2011 -0400

    mock: Use packagedb from moduleset, don't make a new one
    
    Duplicate packagedbs are bad.

 tests/mock.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/mock.py b/tests/mock.py
index a44ae07..7cf74c2 100644
--- a/tests/mock.py
+++ b/tests/mock.py
@@ -106,7 +106,7 @@ class BuildScript(jhbuild.frontends.buildscript.BuildScript):
         self.config = config
         self.modulelist = module_list
         self.moduleset = moduleset
-        self.packagedb = PackageDB()
+        self.packagedb = moduleset.packagedb
         self.actions = []
     
     def set_action(self, action, module, module_num=-1, action_target=None):



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