[Lunar-commits] <lunar> postbuild-generic.plugin: Ignore zero byte documents
Stefan Wold
ratler at lunar-linux.org
Fri Feb 11 08:43:37 CET 2011
commit 244c22b06a1582f603ca81862c401210ee39b29f
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Fri Feb 11 08:43:37 2011 +0100
postbuild-generic.plugin: Ignore zero byte documents
Thanks brebs for noticing.
---
var/lib/lunar/plugins/postbuild-generic.plugin | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/var/lib/lunar/plugins/postbuild-generic.plugin b/var/lib/lunar/plugins/postbuild-generic.plugin
index 390c4c4..06c6eab 100644
--- a/var/lib/lunar/plugins/postbuild-generic.plugin
+++ b/var/lib/lunar/plugins/postbuild-generic.plugin
@@ -85,7 +85,7 @@ plugin_postbuild_gather_docs()
# No parameters were passed in, install the default docs
for FILE in ${DEFAULT_DOCS}; do
# copy all of the default docs (prune Makefiles)
- if [ -e $FILE -a ! -f ${FILE}/Makefile ] ; then
+ if [ -s $FILE -a ! -f ${FILE}/Makefile ] ; then
verbose_msg "Installing default documentation to: ${DOC_DIR}/${FILE}"
cp -a $FILE $DOC_DIR 2> /dev/null
fi
More information about the Lunar-commits
mailing list