diff options
author | Steve Dibb <beandog@gentoo.org> | 2010-01-01 16:12:19 +0000 |
---|---|---|
committer | Steve Dibb <beandog@gentoo.org> | 2010-01-01 16:12:19 +0000 |
commit | 21b35342e7ef50a465b7ed70c723b80ee8d99739 (patch) | |
tree | e26d1090807e55af209258612ca377e0a9182807 | |
parent | add cache_dir (diff) | |
download | znurt-org-backend-21b35342e7ef50a465b7ed70c723b80ee8d99739.tar.gz znurt-org-backend-21b35342e7ef50a465b7ed70c723b80ee8d99739.tar.bz2 znurt-org-backend-21b35342e7ef50a465b7ed70c723b80ee8d99739.zip |
cleanup
git-svn-id: file:///var/svn/portage@28 3218660a-b0cf-4799-a991-8ddcc5b9e0f3
-rw-r--r-- | import.bugzilla.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/import.bugzilla.php b/import.bugzilla.php index 6c6300c..9af6e41 100644 --- a/import.bugzilla.php +++ b/import.bugzilla.php @@ -4,20 +4,21 @@ require_once 'class.portage.tree.php'; $tree = new PortageTree(); - $table = 'category'; - // Only run this one once a day - $sql = "SELECT MAX(idate) FROM package_bugs;"; - $max = $db->getOne($sql); +// $verbose = true; $import_bugzilla = false; - if(!is_null($max)) { + // Only run this one once a day + $sql = "SELECT MAX(idate) FROM package_bugs WHERE status = 0;"; + $max = $db->getOne($sql); + + if(is_null($max)) + $import_bugzilla = true; + else { $max = strtotime($max); if(time() - $max >= 86400) $import_bugzilla = true; - } else { - $import_bugzilla = true; } if($import_bugzilla) { |