From 838c4c87790af97ef53e3a8ece82d5e66abe2b8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Fri, 21 Feb 2014 22:09:29 +0100 Subject: [PATCH] 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. --- src/apps/packageinstaller/PackageItem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/packageinstaller/PackageItem.cpp b/src/apps/packageinstaller/PackageItem.cpp index 05abbf66ed..f05baacbde 100644 --- a/src/apps/packageinstaller/PackageItem.cpp +++ b/src/apps/packageinstaller/PackageItem.cpp @@ -214,11 +214,11 @@ PackageItem::InitPath(const char* path, BPath* destination) if (pathString.FindFirst("non-packaged") < 0) { bool wasRewritten = false; - if (pathString.StartsWith("/boot/system")) { + if (pathString.StartsWith("/boot/beos/system")) { BPath systemNonPackagedDir; find_directory(B_SYSTEM_NONPACKAGED_DIRECTORY, &systemNonPackagedDir); - pathString.ReplaceFirst("/boot/system", + pathString.ReplaceFirst("/boot/beos/system", systemNonPackagedDir.Path()); wasRewritten = true; } else if (pathString.StartsWith("/boot/home/config")) {