diff options
author | Steve Dibb <beandog@gentoo.org> | 2010-01-05 05:23:16 +0000 |
---|---|---|
committer | Steve Dibb <beandog@gentoo.org> | 2010-01-05 05:23:16 +0000 |
commit | d09f6dc8ca94819644ec3e25f803ff7624ad7071 (patch) | |
tree | f3ee62a90809c26488d5a9d2b2109d5a07bc4ea3 /import.final.php | |
parent | Check if we are running as a cron job (diff) | |
download | znurt-org-backend-d09f6dc8ca94819644ec3e25f803ff7624ad7071.tar.gz znurt-org-backend-d09f6dc8ca94819644ec3e25f803ff7624ad7071.tar.bz2 znurt-org-backend-d09f6dc8ca94819644ec3e25f803ff7624ad7071.zip |
Much more flexibliity on importing package masks, should be self-healing now
git-svn-id: file:///var/svn/portage@64 3218660a-b0cf-4799-a991-8ddcc5b9e0f3
Diffstat (limited to 'import.final.php')
-rw-r--r-- | import.final.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/import.final.php b/import.final.php index 1312083..b3eca98 100644 --- a/import.final.php +++ b/import.final.php @@ -71,7 +71,9 @@ $db->query($sql); // Finalize the import - $sql = "INSERT INTO znurt (action) VALUES ('finish_import');"; - $db->query($sql); + if($cron) { + $sql = "INSERT INTO znurt (action) VALUES ('finish_import');"; + $db->query($sql); + } ?>
\ No newline at end of file |