From e20a00aeb6030352370883cb03570956a51f36f3 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 17 Feb 2013 23:27:34 +0000 Subject: [PATCH] [scripts] only export BUILDING_DAILY if generating daily or weekly images This fixes bug #4011 --- scripts/iso_build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/iso_build.sh b/scripts/iso_build.sh index 016bcf8..9d4e4d9 100755 --- a/scripts/iso_build.sh +++ b/scripts/iso_build.sh @@ -69,6 +69,8 @@ OLD_ISO_TAG="" # used to remove OLD ISO images the local dir DISTRO_NAME="Sabayon_Linux" if [ "${ACTION}" = "weekly" ] || [ "${ACTION}" = "daily" ]; then + export BUILDING_DAILY=1 + # Daily molecules SOURCE_SPECS+=( "sabayon-x86-spinbase.spec" @@ -161,6 +163,8 @@ if [ "${ACTION}" = "weekly" ] || [ "${ACTION}" = "daily" ]; then ) fi elif [ "${ACTION}" = "dailybase" ]; then + export BUILDING_DAILY=1 + SOURCE_SPECS+=( "sabayon-x86-spinbase.spec" "sabayon-amd64-spinbase.spec" @@ -229,12 +233,10 @@ elif [ "${ACTION}" = "monthly" ] || [ "${ACTION}" = "release" ]; then ) fi -BUILDING_DAILY=1 MAKE_TORRENTS="${MAKE_TORRENTS:-0}" DAILY_TMPDIR= export ETP_NONINTERACTIVE=1 -export BUILDING_DAILY LOG_FILE="/var/log/molecule/autobuild-${SABAYON_RELEASE}-${$}.log" # to make ISO remaster spec files working (pre_iso_script) and