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:
@@ -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")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user