If there's no package directory, don't try to install packages from

it.  Instead, report that 0 packages are reported.

PR:		misc/140436
This commit is contained in:
Warner Losh 2011-05-13 19:40:02 +00:00
parent cfb00e5aa7
commit 9a6e729a11

View File

@ -684,6 +684,12 @@ cust_install_files () (
cust_pkg () (
# If the package directory doesn't exist, we're done.
if [ ! -d ${NANO_PACKAGE_DIR} ]; then
echo "DONE 0 packages"
return 0
fi
# Copy packages into chroot
mkdir -p ${NANO_WORLDDIR}/Pkg
(