Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Williams2013-06-15 20:43:12 -0400
committerDavid Williams2013-06-15 20:43:12 -0400
commitab300bcb13742a9a1cd830d8529889c06c7ffd13 (patch)
tree47a551773347c574aa042214d0ab88c361a031ce
parent39bf860bfa025f4e8a6ffe9ac0e86457a9ebf65f (diff)
downloadeclipse.platform.releng.aggregator-ab300bcb13742a9a1cd830d8529889c06c7ffd13.tar.gz
eclipse.platform.releng.aggregator-ab300bcb13742a9a1cd830d8529889c06c7ffd13.tar.xz
eclipse.platform.releng.aggregator-ab300bcb13742a9a1cd830d8529889c06c7ffd13.zip
Bug 409686 - Prep for 4.4 builds and 4.3 maintenance builds
-rw-r--r--production/sdk/promotion/syncUpdateUtils.shsource21
1 files changed, 21 insertions, 0 deletions
diff --git a/production/sdk/promotion/syncUpdateUtils.shsource b/production/sdk/promotion/syncUpdateUtils.shsource
index c7ad9c8d..aafcbb4f 100644
--- a/production/sdk/promotion/syncUpdateUtils.shsource
+++ b/production/sdk/promotion/syncUpdateUtils.shsource
@@ -84,6 +84,27 @@ function updateSiteOnDL()
fi
toMainUpdateDir=$toSiteDir/${eclipseStreamMajor}.${eclipseStreamMinor}-${buildType}-${updatesSuffix}/
+ # We'll check for existence, and create if doesn't exist ... as long as it is "under" our
+ # toSiteDir, it is likely an intentional new one, rather than an error.
+ if [[ ! -d "${toMainUpdateDir}" ]]
+ then
+ if [[ -d "${toSiteDir}" ]]
+ then
+ # create
+ mkdir -p "${toMainUpdateDir}"
+ RC=$?
+ if [[ $RC != 0 ]]
+ then
+ echo "ERROR: could not create main update site: ${toMainUpdateDir}" >&2
+ # "return" empty string, as indication of error"
+ toMainUpdateDir=""
+ fi
+ else
+ echo "PROGRAM ERROR: main update site root did not exist: ${toSiteDir}" >&2
+ # "return" empty string, as indication of error"
+ toMainUpdateDir=""
+ fi
+ fi
echo $toMainUpdateDir
}
# compute update site on build server

Back to the top