PackageInstaller: Fix rewriting paths to system

In BeOS, there was no /boot/system, there as /boot/beos/system. If memory
serves. Fixes install location of GoBe Translators.
This commit is contained in:
Stephan Aßmus
2014-02-21 22:11:05 +01:00
parent 09b0602fff
commit 838c4c8779
+2 -2
View File
@@ -214,11 +214,11 @@ PackageItem::InitPath(const char* path, BPath* destination)
if (pathString.FindFirst("non-packaged") < 0) { if (pathString.FindFirst("non-packaged") < 0) {
bool wasRewritten = false; bool wasRewritten = false;
if (pathString.StartsWith("/boot/system")) { if (pathString.StartsWith("/boot/beos/system")) {
BPath systemNonPackagedDir; BPath systemNonPackagedDir;
find_directory(B_SYSTEM_NONPACKAGED_DIRECTORY, find_directory(B_SYSTEM_NONPACKAGED_DIRECTORY,
&systemNonPackagedDir); &systemNonPackagedDir);
pathString.ReplaceFirst("/boot/system", pathString.ReplaceFirst("/boot/beos/system",
systemNonPackagedDir.Path()); systemNonPackagedDir.Path());
wasRewritten = true; wasRewritten = true;
} else if (pathString.StartsWith("/boot/home/config")) { } else if (pathString.StartsWith("/boot/home/config")) {