InstallSourceArchive now copies source archives to _sources_/, which in turn
is ignored by Installer. Automatic whitespace cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36517 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -814,7 +814,7 @@ rule InstallSourceArchive file : url
|
||||
local archiveFile = [ DownloadFile $(file) : $(url) ] ;
|
||||
|
||||
# copy directly into image
|
||||
AddFilesToHaikuImage develop sources : $(archiveFile) ;
|
||||
AddFilesToHaikuImage _sources_ : $(archiveFile) ;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -837,7 +837,7 @@ rule InstallOptionalHaikuImagePackage package : url : dirTokens : isCDPackage
|
||||
#}
|
||||
} else {
|
||||
# extract onto image
|
||||
ExtractArchiveToHaikuImage $(dirTokens) : $(archiveFile) : :
|
||||
ExtractArchiveToHaikuImage $(dirTokens) : $(archiveFile) : :
|
||||
: $(isGCCAgnostic) ;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ CopyEngine::ResetTargets(const char* source)
|
||||
|
||||
fCurrentTargetFolder = NULL;
|
||||
fCurrentItem = NULL;
|
||||
|
||||
|
||||
// init BEntry pointing to /var
|
||||
// There is no other way to retrieve the path to the var folder
|
||||
// on the source volume. Using find_directory() with
|
||||
@@ -107,7 +107,8 @@ CopyEngine::ResetTargets(const char* source)
|
||||
// makes sense, since passing a volume is meant to folders that are
|
||||
// volume specific, like "trash".
|
||||
BPath path(source);
|
||||
if (path.Append("common/var") == B_OK)
|
||||
if ((path.Append("common/var") == B_OK)
|
||||
|| (path.Append("_sources_") == B_OK))
|
||||
fVarDirectory.SetTo(path.Path());
|
||||
else
|
||||
fVarDirectory.Unset();
|
||||
@@ -516,6 +517,10 @@ CopyEngine::_ShouldCopyEntry(const BEntry& entry, const char* name,
|
||||
printf("ignoring '%s'.\n", name);
|
||||
return false;
|
||||
}
|
||||
if (strcmp(SOURCES_DIRECTORY, name) == 0) {
|
||||
printf("ignoring '%s'.\n", name);
|
||||
return false;
|
||||
}
|
||||
if (strcmp("rr_moved", name) == 0) {
|
||||
printf("ignoring '%s'.\n", name);
|
||||
return false;
|
||||
|
||||
@@ -38,6 +38,7 @@ const uint32 MSG_RESET = 'iRSI';
|
||||
const uint32 MSG_WRITE_BOOT_SECTOR = 'iWBS';
|
||||
|
||||
const char PACKAGES_DIRECTORY[] = "_packages_";
|
||||
const char SOURCES_DIRECTORY[] = "_sources_";
|
||||
const char VAR_DIRECTORY[] = "var";
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user