summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dibb <beandog@gentoo.org>2010-01-05 06:06:49 +0000
committerSteve Dibb <beandog@gentoo.org>2010-01-05 06:06:49 +0000
commit94035ee59f70fa3f97dd7635546a25a9f159fff8 (patch)
tree9ee16f15b2c47dc67a75194fcf3c5f4e224381a9 /import.arches.php
parentMuch more flexibliity on importing package masks, should be self-healing now (diff)
downloadznurt-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.arches.php')
-rw-r--r--import.arches.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/import.arches.php b/import.arches.php
index ff4ce72..efa09a9 100644
--- a/import.arches.php
+++ b/import.arches.php
@@ -1,10 +1,14 @@
<?
require_once 'header.php';
- require_once 'class.portage.tree.php';
- $tree = new PortageTree();
+ if(!$tree) {
+ require_once 'class.portage.tree.php';
+ $tree = new PortageTree();
+ }
+ // FIXME This is really dumb, just grab all the arches
+ // since I look at all of them now.
$arr_arches = $tree->getArches();
$arr_arches = array_merge($arr_arches, $tree->getArches(true));