summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dibb <beandog@gentoo.org>2010-02-03 13:41:17 +0000
committerSteve Dibb <beandog@gentoo.org>2010-02-03 13:41:17 +0000
commitf1077f05773037ea78d2d62c7367cdc3eecd6e09 (patch)
tree889c667d3b84911b9a4724a6d7aee27b377b44c7 /import.use_global.php
parentUse singleton (diff)
downloadznurt-org-backend-f1077f05773037ea78d2d62c7367cdc3eecd6e09.tar.gz
znurt-org-backend-f1077f05773037ea78d2d62c7367cdc3eecd6e09.tar.bz2
znurt-org-backend-f1077f05773037ea78d2d62c7367cdc3eecd6e09.zip
Stop extending PortageTree and use singleton instead
git-svn-id: file:///var/svn/portage@80 3218660a-b0cf-4799-a991-8ddcc5b9e0f3
Diffstat (limited to 'import.use_global.php')
-rw-r--r--import.use_global.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/import.use_global.php b/import.use_global.php
index e192d0c..c51dc2d 100644
--- a/import.use_global.php
+++ b/import.use_global.php
@@ -5,11 +5,13 @@
require_once 'class.portage.use_flag.php';
require_once 'class.portage.ebuild.php';
require_once 'class.portage.atom.php';
- require_once '/home/steve/svn/znurt/class.db.mtime.php';
- require_once '/home/steve/svn/znurt/class.db.use.php';
+ require_once 'class.db.mtime.php';
+ require_once 'class.db.use.php';
require_once 'File/Find.php';
- $tree = new PortageTree();
+ if(!$tree) {
+ $tree =& PortageTree::singleton();
+ }
// Global use flags
$type = 'global';