From bf3d27539b8244c60e8a1f39f7d343417fbfc4b1 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 26 Jan 2014 15:11:15 +0100 Subject: [PATCH] Add Haiku repository config only optionally The HAIKU_ADD_HAIKU_REPOSITORY_CONFIG build variable can be set to add the Haiku repository config to the image. --- build/jam/images/HaikuImage | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/jam/images/HaikuImage b/build/jam/images/HaikuImage index 08de6f2b2f..393b12aa09 100644 --- a/build/jam/images/HaikuImage +++ b/build/jam/images/HaikuImage @@ -313,8 +313,12 @@ CopyDirectoryToHaikuImage home config settings Media : dvb : -x Jamfile ; # repository config and cache files +local repositories = $(HAIKU_REPOSITORIES) ; +if $(HAIKU_ADD_HAIKU_REPOSITORY_CONFIG) { + repositories += haiku ; +} local repository ; -for repository in $(HAIKU_REPOSITORIES) haiku { +for repository in $(repositories) { local config = [ on $(repository) return $(HAIKU_REPOSITORY_CONFIG_FILE) ] ; local cache = [ on $(repository) return $(HAIKU_REPOSITORY_CACHE_FILE) ] ; if $(HAIKU_UPDATE_ALL_PACKAGES) {