From f396eda28a91df6bd933e1c48ab6136ffe2f7662 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 6 Sep 2010 14:01:13 +0800 Subject: [PATCH] Generator.php --- Generator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Generator.php b/Generator.php index 2c543bea..d3285aaf 100644 --- a/Generator.php +++ b/Generator.php @@ -164,8 +164,8 @@ class Pman_Core_Generator extends DB_DataObject_Generator if (!file_exists($tg) || !filesize($tg) ) { - if ($cli && in_array($f, $flist)) { - echo "COPY $src $tg" . ($cli ? "\n" : "
"); + if ($cli && !filesize($tg) || in_array($f, $flist)) { + echo "COPY $src $tg" . ($cli ? "\n" : "
"); copy($src, $tg); continue; } -- 2.39.2