diff options
author | 2010-01-02 19:21:08 +0000 | |
---|---|---|
committer | 2010-01-02 19:21:08 +0000 | |
commit | 745c9e239329ffa91e4a922ed9aba3242bbe590e (patch) | |
tree | b40f3222de7294fa2d751d2fa03b2df0fadbe690 /import.final.php | |
parent | pull source as well (diff) | |
download | znurt-org-backend-745c9e239329ffa91e4a922ed9aba3242bbe590e.tar.gz znurt-org-backend-745c9e239329ffa91e4a922ed9aba3242bbe590e.tar.bz2 znurt-org-backend-745c9e239329ffa91e4a922ed9aba3242bbe590e.zip |
more final acts
git-svn-id: file:///var/svn/portage@39 3218660a-b0cf-4799-a991-8ddcc5b9e0f3
Diffstat (limited to 'import.final.php')
-rw-r--r-- | import.final.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/import.final.php b/import.final.php index b07096a..2f06950 100644 --- a/import.final.php +++ b/import.final.php @@ -28,6 +28,18 @@ $sql = "UPDATE package_bugs SET status = 0 WHERE status = 1;"; $db->query($sql); } + + // Check for package_recent replacements + $sql = "SELECT COUNT(1) FROM package_recent WHERE status = 1;"; + $count = $db->getOne($sql); + + if($count) { + $sql = "DELETE FROM package_recent WHERE status = 0;"; + $db->query($sql); + + $sql = "UPDATE package_recent SET status = 0 WHERE status = 1;"; + $db->query($sql); + } ?>
\ No newline at end of file |