cvs: php-master-web /scripts update-backend
| From: | Gabor Hojtsy | Date: | Thu, 01 May 2003 12:24:05 +0000 |
| Subject: | cvs: php-master-web /scripts update-backend | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-17184@lists.php.net to get a copy of this message | ||
goba Thu May 1 08:24:05 2003 EDT
Modified files:
/php-master-web/scripts update-backend
Log:
Only unlink if it is not renamed before
And adding two notifications for me on
what's happening (will be deleted after
a few errors, if this seems to be working
normally)
Index: php-master-web/scripts/update-backend
diff -u php-master-web/scripts/update-backend:1.9 php-master-web/scripts/update-backend:1.10
--- php-master-web/scripts/update-backend:1.9 Thu May 1 07:44:56 2003
+++ php-master-web/scripts/update-backend Thu May 1 08:24:05 2003
@@ -42,8 +42,8 @@
// move the file to the right place
if (@filesize($ipdbt) > strlen("no updates")) {
rename($ipdbt, $ipdb);
-}
-unlink($ipdbt);
+ @mail("goba@php.net", "ip-to-country updated", "yep");
+} else { unlink($ipdbt); @mail("goba@php.net", "ip-to-country no update
needed", "yep"); }
// Create RSS news feed file
$dest = fopen("$root/news.rss", "w");