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:
Matt Madia
2010-04-28 13:38:49 +00:00
parent ab5fb573e5
commit 4a71fc35b6
3 changed files with 10 additions and 4 deletions
+2 -2
View File
@@ -814,7 +814,7 @@ rule InstallSourceArchive file : url
local archiveFile = [ DownloadFile $(file) : $(url) ] ; local archiveFile = [ DownloadFile $(file) : $(url) ] ;
# copy directly into image # copy directly into image
AddFilesToHaikuImage develop sources : $(archiveFile) ; AddFilesToHaikuImage _sources_ : $(archiveFile) ;
} }
} }
@@ -837,7 +837,7 @@ rule InstallOptionalHaikuImagePackage package : url : dirTokens : isCDPackage
#} #}
} else { } else {
# extract onto image # extract onto image
ExtractArchiveToHaikuImage $(dirTokens) : $(archiveFile) : : ExtractArchiveToHaikuImage $(dirTokens) : $(archiveFile) : :
: $(isGCCAgnostic) ; : $(isGCCAgnostic) ;
} }
} }
+7 -2
View File
@@ -98,7 +98,7 @@ CopyEngine::ResetTargets(const char* source)
fCurrentTargetFolder = NULL; fCurrentTargetFolder = NULL;
fCurrentItem = NULL; fCurrentItem = NULL;
// init BEntry pointing to /var // init BEntry pointing to /var
// There is no other way to retrieve the path to the var folder // There is no other way to retrieve the path to the var folder
// on the source volume. Using find_directory() with // 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 // makes sense, since passing a volume is meant to folders that are
// volume specific, like "trash". // volume specific, like "trash".
BPath path(source); 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()); fVarDirectory.SetTo(path.Path());
else else
fVarDirectory.Unset(); fVarDirectory.Unset();
@@ -516,6 +517,10 @@ CopyEngine::_ShouldCopyEntry(const BEntry& entry, const char* name,
printf("ignoring '%s'.\n", name); printf("ignoring '%s'.\n", name);
return false; return false;
} }
if (strcmp(SOURCES_DIRECTORY, name) == 0) {
printf("ignoring '%s'.\n", name);
return false;
}
if (strcmp("rr_moved", name) == 0) { if (strcmp("rr_moved", name) == 0) {
printf("ignoring '%s'.\n", name); printf("ignoring '%s'.\n", name);
return false; return false;
+1
View File
@@ -38,6 +38,7 @@ const uint32 MSG_RESET = 'iRSI';
const uint32 MSG_WRITE_BOOT_SECTOR = 'iWBS'; const uint32 MSG_WRITE_BOOT_SECTOR = 'iWBS';
const char PACKAGES_DIRECTORY[] = "_packages_"; const char PACKAGES_DIRECTORY[] = "_packages_";
const char SOURCES_DIRECTORY[] = "_sources_";
const char VAR_DIRECTORY[] = "var"; const char VAR_DIRECTORY[] = "var";