diff options
author | Steve Dibb <beandog@gentoo.org> | 2010-01-19 04:48:55 +0000 |
---|---|---|
committer | Steve Dibb <beandog@gentoo.org> | 2010-01-19 04:48:55 +0000 |
commit | 33b14ac9820d4699ed70e212b0f0f6e32371c9ee (patch) | |
tree | bd5ae559ccb845082d9f80d12bcc8e5d4dff5ad9 | |
parent | new host (diff) | |
download | znurt-org-backend-33b14ac9820d4699ed70e212b0f0f6e32371c9ee.tar.gz znurt-org-backend-33b14ac9820d4699ed70e212b0f0f6e32371c9ee.tar.bz2 znurt-org-backend-33b14ac9820d4699ed70e212b0f0f6e32371c9ee.zip |
more verbose, track status
git-svn-id: file:///var/svn/portage@73 3218660a-b0cf-4799-a991-8ddcc5b9e0f3
-rw-r--r-- | import.all.php | 5 | ||||
-rw-r--r-- | import.categories.php | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/import.all.php b/import.all.php index 03bb13d..fd4c397 100644 --- a/import.all.php +++ b/import.all.php @@ -48,6 +48,11 @@ foreach($arr as $file) { if($verbose) echo "[import] $file\n"; + + if(is_dir("/tmp/znurt") && is_writable("/tmp/znurt")) { + file_put_contents("/tmp/znurt/status", "$file\n"); + } + include "import.$file.php"; } } diff --git a/import.categories.php b/import.categories.php index 315f65f..96673da 100644 --- a/import.categories.php +++ b/import.categories.php @@ -36,6 +36,8 @@ // last changed. Also, store the metadata mtime. // Update descriptions + if($verbose) + shell::msg("Updating descriptions"); $sql = "SELECT name, id FROM category;"; $arr = $db->getAssoc($sql); |