From 78d1b920ed6c3994fe5c9d36abeff56b0b7da8f4 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Tue, 23 Apr 2013 13:31:02 +0200 Subject: [PATCH] Adjust pkgman to consider symlinks to both package-infos and packages. --- src/bin/pkgman/RepositoryBuilder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/pkgman/RepositoryBuilder.cpp b/src/bin/pkgman/RepositoryBuilder.cpp index be765ee4d9..d056d6e356 100644 --- a/src/bin/pkgman/RepositoryBuilder.cpp +++ b/src/bin/pkgman/RepositoryBuilder.cpp @@ -86,7 +86,7 @@ RepositoryBuilder::AddPackage(const char* path, BSolverPackage** _package) // a package info file (supposedly) PackageInfoErrorListener errorListener( "Error: failed to read package info"); - error = packageInfo.ReadFromConfigFile(BEntry(path), + error = packageInfo.ReadFromConfigFile(BEntry(path, true), &errorListener); } @@ -144,7 +144,7 @@ RepositoryBuilder::AddPackagesDirectory(const char* path) DIE(errno, "failed to construct path"); struct stat st; - if (lstat(entryPath.Path(), &st) != 0) + if (stat(entryPath.Path(), &st) != 0) DIE(errno, "failed to stat() %s", entryPath.Path()); if (!S_ISREG(st.st_mode))