Commit 04665a18 authored by Ophélie Gagnard's avatar Ophélie Gagnard

buildout-scripts/*obs.sh: Improve the mechanism to restore the backed up bin/buildout.

parents 1c8b397f 09a0c9d3
...@@ -4,6 +4,7 @@ Document the project. ...@@ -4,6 +4,7 @@ Document the project.
Do not rename the plugin library (libfluentbit-wendelin.so to fluentbit-wendelin.so). The fix first has to be made upstream (in the metadata-collect-agent project). Do not rename the plugin library (libfluentbit-wendelin.so to fluentbit-wendelin.so). The fix first has to be made upstream (in the metadata-collect-agent project).
MID TERM MID TERM
Add a fonction in build-scripts/configuration-information.sh to delete the go/ directory?
Re-add networkcached to the building process. Re-add networkcached to the building process.
Use a ./configure script? Use a ./configure script?
- In particular, in $ARCHIVE_NAME/Makefile there are some operations which should be in the template stage. - In particular, in $ARCHIVE_NAME/Makefile there are some operations which should be in the template stage.
......
...@@ -3,6 +3,14 @@ set -e ...@@ -3,6 +3,14 @@ set -e
source build-scripts/configuration_information.sh source build-scripts/configuration_information.sh
# reverse the action of obsoleting the potentially altered buildout and restoring the backed up one
if [ ! -e $RUN_BUILDOUT_DIR/bin/backup.buildout ]; then
cp $RUN_BUILDOUT_DIR/bin/buildout $RUN_BUILDOUT_DIR/bin/backup.buildout
fi
if [ -e $RUN_BUILDOUT_DIR/bin/old.buildout ]; then
mv $RUN_BUILDOUT_DIR/bin/old.buildout $RUN_BUILDOUT_DIR/bin/buildout
fi
TMP_TARGET=$INITIAL_DIR/obs-tmp/$SOFTWARE_NAME TMP_TARGET=$INITIAL_DIR/obs-tmp/$SOFTWARE_NAME
TMP_TARGET=`realpath -m $TMP_TARGET` TMP_TARGET=`realpath -m $TMP_TARGET`
rm -rf $TMP_TARGET rm -rf $TMP_TARGET
...@@ -14,7 +14,8 @@ cp $COMPILATION_TEMPLATES_DIR/tmp/$SOFTWARE_NAME/Makefile $TARBALL_DIR/Makefile ...@@ -14,7 +14,8 @@ cp $COMPILATION_TEMPLATES_DIR/tmp/$SOFTWARE_NAME/Makefile $TARBALL_DIR/Makefile
echo $TARBALL_DIR > $TARBALL_DIR/local_build_directory echo $TARBALL_DIR > $TARBALL_DIR/local_build_directory
# restore bin/buildout # restore bin/buildout
# note: when installing python, buildout "rebootstrap" itself to use the installed python: it would fail on OBS' VM # note: when installing python, buildout "rebootstrap" itself to use the installed python: it would fail on OBS' VM
mv $RUN_BUILDOUT_DIR/bin/backup.buildout $RUN_BUILDOUT_DIR/bin/buildout cp $RUN_BUILDOUT_DIR/bin/buildout $RUN_BUILDOUT_DIR/bin/old.buildout
cp $RUN_BUILDOUT_DIR/bin/backup.buildout $RUN_BUILDOUT_DIR/bin/buildout
# clean the parts directory # clean the parts directory
rm -rf $RUN_BUILDOUT_DIR/{.installed.cfg,parts/} rm -rf $RUN_BUILDOUT_DIR/{.installed.cfg,parts/}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment