packagefs: Fix .settings package link for install path case

This commit is contained in:
Ingo Weinhold 2013-04-29 23:46:16 +02:00
parent bbd4272be7
commit f803a8a6cb

View File

@ -98,7 +98,10 @@ PackageLinkSymlink::Update(Package* package, PackageLinksListener* listener)
if (package != NULL) {
fLinkPath = package->InstallPath();
if (fLinkPath == NULL) {
if (fLinkPath != NULL) {
if (fType == TYPE_SETTINGS)
fLinkPath = ".self/settings";
} else {
fLinkPath = link_path_for_mount_type(
package->Volume()->MountType(), fType);
}