contrib: common: Record repo curr rev in have_repo instead of build_repo

This way scripts making use only of have_repo (to have build specific
insturctions) can still benefit from that code.

Change-Id: I03149942ac1d279a15c71df3eb880c331c8fc155
This commit is contained in:
Pau Espin 2018-05-17 17:09:38 +02:00
parent 78f7c753a3
commit 7043996847
1 changed files with 2 additions and 2 deletions

View File

@ -91,6 +91,8 @@ have_repo() {
git rev-parse HEAD
echo "$(git rev-parse HEAD) $dep" >> "$prefix_real/${name}_git_hashes.txt"
cd "$base"
}
@ -122,8 +124,6 @@ build_repo() {
cd "$dep"
echo "$(git rev-parse HEAD) $dep" >> "$prefix_real/${name}_git_hashes.txt"
# special shim: we know the openbsc.git needs to be built in the openbsc/ subdir.
if [ "$dep" = "openbsc" ]; then
cd openbsc