diff options
author | Stefan K. Berg <stefan.k.berg@ericsson.com> | 2016-02-06 17:40:27 +0100 |
---|---|---|
committer | Stefan Berg <stefan.k.berg@ericsson.com> | 2016-02-06 22:06:18 +0000 |
commit | 96e6e02e616e020d11bcb42d558b1eba22707491 (patch) | |
tree | 240669c27c82473553ae3cde17f9db20e8de14b8 /build/f_isoroot/f_repobuild | |
parent | 17be2432c8040669c507ee939599c38cbf820ffe (diff) |
Enable use of Fuel library commit ids for mirror
If FUEL_MIRROR_COMMIT is set (indicating a pinning of all
Fuel repositories), use that one instead of FUEL_MAIN_TAG.
Change-Id: I4af82cf63f8e846d757a583836fce8bb78d93906
Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com>
Diffstat (limited to 'build/f_isoroot/f_repobuild')
-rw-r--r-- | build/f_isoroot/f_repobuild/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build/f_isoroot/f_repobuild/Makefile b/build/f_isoroot/f_repobuild/Makefile index 27eb05eeb..455caf263 100644 --- a/build/f_isoroot/f_repobuild/Makefile +++ b/build/f_isoroot/f_repobuild/Makefile @@ -12,6 +12,8 @@ SHELL := /bin/bash TOP := $(shell pwd) UBUNTU_DIR := $(shell dirname $(MIRROR_UBUNTU_ROOT)) TMP_ROOT_DIR := $(shell echo "$(UBUNTU_DIR)" | cut -d "/" -f2) +# Enable use of exact repo commit if defined, else use Fuel main branch +FUEL_MIRROR_COMMIT?=$(FUEL_MAIN_TAG) include ../../config.mk @@ -25,7 +27,8 @@ nailgun: sudo apt-get install -y git libxml2-dev libxslt-dev python-dev python-pip libz-dev libyaml-dev createrepo python-yaml rm -Rf nailgun sudo mkdir -p /var/www/nailgun - git clone -b $(FUEL_MAIN_TAG) https://github.com/openstack/fuel-mirror + git clone https://github.com/openstack/fuel-mirror + cd fuel-mirror && git checkout -q $(FUEL_MIRROR_COMMIT) sudo pip install -U -r ./fuel-mirror/requirements.txt sudo pip install ./fuel-mirror sudo pip install ./fuel-mirror/contrib/fuel_mirror |