Do not include temporary files to plugin
Change-Id: I852d496bb9f7055e0aaf2346bde8dbd751d9410a Signed-off-by: Michal Skalski <mskalski@mirantis.com>
This commit is contained in:
parent
7279e0c4aa
commit
a2e5cabc2f
@ -19,11 +19,16 @@ BUILD_FOR=${BUILD_FOR:-ubuntu}
|
||||
DIR="$(dirname `readlink -f $0`)"
|
||||
TMP_DIR="${DIR}/tmp"
|
||||
|
||||
#Remove temporary files
|
||||
CLEANUP=${CLEANUP:-true}
|
||||
|
||||
function cleanup {
|
||||
rm -rf "${TMP_DIR}"
|
||||
}
|
||||
|
||||
function build_pkg {
|
||||
# clean up old packages
|
||||
rm -rf ${DIR}/repositories/${1}/*
|
||||
case $1 in
|
||||
ubuntu)
|
||||
pushd "${DIR}/repositories/${1}/"
|
||||
@ -77,4 +82,6 @@ do
|
||||
build_pkg $system
|
||||
done
|
||||
|
||||
#cleanup
|
||||
if [ "$CLEANUP" != false ];then
|
||||
cleanup
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user