[haiku-commits] BRANCH HaikuPM-github.package-management [f803a8a] src/add-ons/kernel/file_systems/packagefs

  • From: HaikuPM-github.package-management <community@xxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 30 Apr 2013 00:00:32 +0200 (CEST)

added 1 changeset to branch 'refs/remotes/HaikuPM-github/package-management'
old head: bbd4272be7c99845a49b15e7a53afb7b5f0118c1
new head: f803a8a6cb003826b4d993af01fbc920d0be75c4
overview: https://github.com/haiku/HaikuPM/compare/bbd4272...f803a8a

----------------------------------------------------------------------------

f803a8a: packagefs: Fix .settings package link for install path case

                                    [ Ingo Weinhold <ingo_weinhold@xxxxxx> ]

----------------------------------------------------------------------------

Commit:      f803a8a6cb003826b4d993af01fbc920d0be75c4
Author:      Ingo Weinhold <ingo_weinhold@xxxxxx>
Date:        Mon Apr 29 21:46:16 2013 UTC

----------------------------------------------------------------------------

1 file changed, 4 insertions(+), 1 deletion(-)
src/add-ons/kernel/file_systems/packagefs/PackageLinkSymlink.cpp | 5 ++++-

----------------------------------------------------------------------------

diff --git a/src/add-ons/kernel/file_systems/packagefs/PackageLinkSymlink.cpp 
b/src/add-ons/kernel/file_systems/packagefs/PackageLinkSymlink.cpp
index 2309871..ad4cdeb 100644
--- a/src/add-ons/kernel/file_systems/packagefs/PackageLinkSymlink.cpp
+++ b/src/add-ons/kernel/file_systems/packagefs/PackageLinkSymlink.cpp
@@ -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);
                }


Other related posts:

  • » [haiku-commits] BRANCH HaikuPM-github.package-management [f803a8a] src/add-ons/kernel/file_systems/packagefs - HaikuPM-github . package-management