diff options
author | Steve Dibb <beandog@gentoo.org> | 2010-01-05 06:06:49 +0000 |
---|---|---|
committer | Steve Dibb <beandog@gentoo.org> | 2010-01-05 06:06:49 +0000 |
commit | 94035ee59f70fa3f97dd7635546a25a9f159fff8 (patch) | |
tree | 9ee16f15b2c47dc67a75194fcf3c5f4e224381a9 /import.package_mask.php | |
parent | Much more flexibliity on importing package masks, should be self-healing now (diff) | |
download | znurt-org-backend-94035ee59f70fa3f97dd7635546a25a9f159fff8.tar.gz znurt-org-backend-94035ee59f70fa3f97dd7635546a25a9f159fff8.tar.bz2 znurt-org-backend-94035ee59f70fa3f97dd7635546a25a9f159fff8.zip |
add comments; cleanup; cosmetics
git-svn-id: file:///var/svn/portage@65 3218660a-b0cf-4799-a991-8ddcc5b9e0f3
Diffstat (limited to 'import.package_mask.php')
-rw-r--r-- | import.package_mask.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/import.package_mask.php b/import.package_mask.php index cdd4d73..283f64a 100644 --- a/import.package_mask.php +++ b/import.package_mask.php @@ -17,7 +17,12 @@ */ require_once 'header.php'; - require_once 'class.portage.tree.php'; + + if(!$tree) { + require_once 'class.portage.tree.php'; + $tree = new PortageTree(); + } + require_once 'class.portage.category.php'; require_once 'class.portage.package.php'; require_once 'class.portage.ebuild.php'; |