LegacyPackageInstaller: Override fPathType when the path begins with /boot/.

Fixes installation of the RefLine pkg. I don't know why, but it seems to
specify the path as a P_INSTALL_PATH.
This commit is contained in:
Augustin Cavalier 2016-07-23 10:24:15 -04:00
parent 6f087f38ee
commit 8cf0752f1b
1 changed files with 6 additions and 0 deletions

View File

@ -176,6 +176,12 @@ PackageItem::InitPath(const char* path, BPath* destination)
{
status_t ret = B_OK;
// If the path starts with /boot/, treat it as a P_SYSTEM_PATH.
// This may not be the correct way to handle such a case, but it fixes
// installation of the RefLine pkg.
if (strcmp("/boot/", path))
fPathType = P_SYSTEM_PATH;
if (fPathType == P_INSTALL_PATH) {
if (gVerbose)
printf("InitPath - relative: %s + %s\n", path, fPath.String());