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:
parent
6f087f38ee
commit
8cf0752f1b
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue