From: Alan Knowles Date: Mon, 5 Sep 2011 06:07:04 +0000 (+0800) Subject: Generator.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=b981a21a2d301a9f4707d6e3b7acaf82ecf1dbdf Generator.php --- diff --git a/Generator.php b/Generator.php index d639fa98..9fdde2a1 100644 --- a/Generator.php +++ b/Generator.php @@ -167,7 +167,7 @@ class Pman_Core_Generator extends DB_DataObject_Generator if (!file_exists($tg) || !filesize($tg) ) { - if ($cli && !filesize($tg) || in_array($f, $flist)) { + if ($cli && file_exists($tg) || in_array($f, $flist)) { echo "COPY $src $tg" . ($cli ? "\n" : "
"); copy($src, $tg); continue;