BPathFinder: Fix resolvable expression support

We need to use the package's .self symlink, since that does point to
the package's installation location. The containing directory lives in
/boot/system/package-links and would therefore always resolve to the
system installation location.
This commit is contained in:
Ingo Weinhold 2013-11-21 13:45:37 +01:00
parent 556e8b250a
commit 676481a5f6

View File

@ -80,7 +80,7 @@ BPathFinder::SetTo(const BResolvableExpression& expression,
return fInitStatus; return fInitStatus;
BString packageLinksPath; BString packageLinksPath;
packageLinksPath.SetToFormat(kSystemPackageLinksDirectory "/%s", packageLinksPath.SetToFormat(kSystemPackageLinksDirectory "/%s/.self",
versionedPackageName.String()); versionedPackageName.String());
if (packageLinksPath.IsEmpty()) if (packageLinksPath.IsEmpty())
return fInitStatus = B_NO_MEMORY; return fInitStatus = B_NO_MEMORY;