Add RECLONE support for ovs
When user sets "RECLONE=True" in local.conf, all components need to be cloned. This flag is not handled in the ovs script, and when the repo exists - it won't be refreshed. Change-Id: I2831f77271880c5964627673cbc0a62c211a045a
This commit is contained in:
parent
8582373d61
commit
0de0034ed1
@ -51,13 +51,17 @@ function compile_ovs {
|
|||||||
localstatedir="--localstatedir=$localstatedir"
|
localstatedir="--localstatedir=$localstatedir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $DEST
|
OVS_DIR=$DEST/$OVS_REPO_NAME
|
||||||
if [ ! -d $OVS_REPO_NAME ] ; then
|
if [ ! -d $OVS_DIR ] ; then
|
||||||
git clone $OVS_REPO
|
# We can't use git_clone here because we want to ignore ERROR_ON_CLONE
|
||||||
cd $OVS_REPO_NAME
|
git_timed clone $OVS_REPO $OVS_DIR
|
||||||
|
cd $OVS_DIR
|
||||||
git checkout $OVS_BRANCH
|
git checkout $OVS_BRANCH
|
||||||
else
|
else
|
||||||
cd $OVS_REPO_NAME
|
# Even though the directory already exists, call git_clone to update it
|
||||||
|
# if needed based on the RECLONE option
|
||||||
|
git_clone $OVS_REPO $OVS_DIR $OVS_BRANCH
|
||||||
|
cd $OVS_DIR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO: Can you create package list files like you can inside devstack?
|
# TODO: Can you create package list files like you can inside devstack?
|
||||||
|
Loading…
Reference in New Issue
Block a user