Also add repository cache files to image

This makes package management operations that require a repository cache
immediately usable (even offline). Also makes sense for the
update-{all,packages} build profile actions, since those update the
repository config which would otherwise no longer match a potentially
existing cache.
This commit is contained in:
Ingo Weinhold 2013-10-05 22:49:25 +02:00
parent 049874acda
commit cb434e1a2b
1 changed files with 7 additions and 4 deletions

View File

@ -329,15 +329,18 @@ CopyDirectoryToHaikuImage home config settings Media
: [ FDirName $(HAIKU_TOP) data settings media dvb ]
: dvb : -x Jamfile ;
# repository config files
# repository config and cache files
local repository ;
for repository in $(HAIKU_REPOSITORIES) {
local target = [ on $(repository) return $(HAIKU_REPOSITORY_CONFIG_FILE) ] ;
local config = [ on $(repository) return $(HAIKU_REPOSITORY_CONFIG_FILE) ] ;
local cache = [ on $(repository) return $(HAIKU_REPOSITORY_CACHE_FILE) ] ;
if $(HAIKU_UPDATE_ALL_PACKAGES) {
HAIKU_INCLUDE_IN_IMAGE on $(target) = 1 ;
HAIKU_INCLUDE_IN_IMAGE on $(config) $(cache) = 1 ;
}
AddFilesToHaikuImage system settings package-repositories
: $(target) : $(repository:G=) ;
: $(config) : $(repository:G=) ;
AddFilesToHaikuImage system cache package-repositories
: $(cache) : $(repository:G=) ;
}