Change-Id: I630dd8338a5d4f00a96a9df5cc6ee8e2f0d2e324
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4654
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
... | ... |
@@ -86,7 +86,7 @@ VIXDISKUTIL := $(TOOLS_BIN)/vixdiskutil |
86 | 86 |
IMGCONVERTER := $(TOOLS_BIN)/imgconverter |
87 | 87 |
|
88 | 88 |
.PHONY : all iso clean photon-build-machine photon-vagrant-build photon-vagrant-local cloud-image \ |
89 |
-check-tools check-docker check-bison check-g++ check-gawk check-createrepo check-kpartx check-vagrant check-packer check-packer-ovf-plugin check-sanity \ |
|
89 |
+check-tools check-docker check-bison check-g++ check-gawk check-repo-tool check-kpartx check-vagrant check-packer check-packer-ovf-plugin check-sanity \ |
|
90 | 90 |
clean-install clean-chroot build-updated-packages check generate-yaml-files |
91 | 91 |
|
92 | 92 |
THREADS?=1 |
... | ... |
@@ -416,7 +416,7 @@ generate-dep-lists: |
416 | 416 |
-a $(PHOTON_DATA_DIR) |
417 | 417 |
|
418 | 418 |
photon-docker-image: |
419 |
- createrepo $(PHOTON_RPMS_DIR) |
|
419 |
+ $(PHOTON_REPO_TOOL) $(PHOTON_RPMS_DIR) |
|
420 | 420 |
sudo docker build --no-cache --tag photon-build ./support/dockerfiles/photon |
421 | 421 |
sudo docker run \ |
422 | 422 |
-it \ |
... | ... |
@@ -519,7 +519,7 @@ cloud-image-all: check-kpartx $(PHOTON_STAGE) $(VIXDISKUTIL) $(IMGCONVERTER) $(P |
519 | 519 |
$(PHOTON_CLOUD_IMAGE_BUILDER) $(PHOTON_CLOUD_IMAGE_BUILDER_DIR) ova_micro $(SRCROOT) $(PHOTON_GENERATED_DATA_DIR) $(PHOTON_STAGE) $(ADDITIONAL_RPMS_PATH) |
520 | 520 |
|
521 | 521 |
|
522 |
-check-tools: check-bison check-g++ check-gawk check-createrepo check-texinfo check-sanity check-docker |
|
522 |
+check-tools: check-bison check-g++ check-gawk check-repo-tool check-texinfo check-sanity check-docker |
|
523 | 523 |
|
524 | 524 |
check-docker: |
525 | 525 |
@command -v docker >/dev/null 2>&1 || { echo "Package docker not installed. Aborting." >&2; exit 1; } |
... | ... |
@@ -542,8 +542,8 @@ check-g++: |
542 | 542 |
check-gawk: |
543 | 543 |
@command -v gawk >/dev/null 2>&1 || { echo "Package gawk not installed. Aborting." >&2; exit 1; } |
544 | 544 |
|
545 |
-check-createrepo: |
|
546 |
- @command -v createrepo >/dev/null 2>&1 || { echo "Package createrepo not installed. Aborting." >&2; exit 1; } |
|
545 |
+check-repo-tool: |
|
546 |
+ @command -v $(PHOTON_REPO_TOOL) >/dev/null 2>&1 || { echo "Package $(PHOTON_REPO_TOOL) not installed. Aborting." >&2; exit 1; } |
|
547 | 547 |
|
548 | 548 |
check-kpartx: |
549 | 549 |
@command -v kpartx >/dev/null 2>&1 || { echo "Package kpartx not installed. Aborting." >&2; exit 1; } |