From aca88bc0634c8947b9b24ae63dfecd55c3d93524 Mon Sep 17 00:00:00 2001 From: Daniel Schwager Date: Wed, 1 Feb 2012 23:34:14 +0100 Subject: [PATCH] improvement: check, if opsi file exists in the repos (not checking only the directory) --- lib/builder-targets.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder-targets.sh b/lib/builder-targets.sh index 0bd09cc..6bd2043 100644 --- a/lib/builder-targets.sh +++ b/lib/builder-targets.sh @@ -62,7 +62,7 @@ builder_config() { builder_prepare() { # Check if the package is still build - if [ -z "$OPSI_REPOS_FORCE_UPLOAD" ] && [ -d ${OPSI_REPOS_PRODUCT_DIR} ] ; then + if [ -z "$OPSI_REPOS_FORCE_UPLOAD" ] && [ -f "${OPSI_REPOS_PRODUCT_DIR}/${OPSI_REPOS_FILE_PATTERN}.opsi" ] ; then echo "Directory ${OPSI_REPOS_PRODUCT_DIR} already exists." exit 1 fi