Adjust pkgman to consider symlinks to both package-infos and packages.
This commit is contained in:
parent
15565a06d4
commit
78d1b920ed
@ -86,7 +86,7 @@ RepositoryBuilder::AddPackage(const char* path, BSolverPackage** _package)
|
|||||||
// a package info file (supposedly)
|
// a package info file (supposedly)
|
||||||
PackageInfoErrorListener errorListener(
|
PackageInfoErrorListener errorListener(
|
||||||
"Error: failed to read package info");
|
"Error: failed to read package info");
|
||||||
error = packageInfo.ReadFromConfigFile(BEntry(path),
|
error = packageInfo.ReadFromConfigFile(BEntry(path, true),
|
||||||
&errorListener);
|
&errorListener);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,7 +144,7 @@ RepositoryBuilder::AddPackagesDirectory(const char* path)
|
|||||||
DIE(errno, "failed to construct path");
|
DIE(errno, "failed to construct path");
|
||||||
|
|
||||||
struct stat st;
|
struct stat st;
|
||||||
if (lstat(entryPath.Path(), &st) != 0)
|
if (stat(entryPath.Path(), &st) != 0)
|
||||||
DIE(errno, "failed to stat() %s", entryPath.Path());
|
DIE(errno, "failed to stat() %s", entryPath.Path());
|
||||||
|
|
||||||
if (!S_ISREG(st.st_mode))
|
if (!S_ISREG(st.st_mode))
|
||||||
|
Loading…
Reference in New Issue
Block a user