Packages (macOS): falls back to pkgsrc's standard package database path

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
This commit is contained in:
Carter LiandCopilot Autofix powered by AI authored and GitHub committed 2026-10-13 21:35:50 -05:00
1 parent 4f6a329ea3
commit 6eb3a8148b
1 file changed
+2
+2
View File
@@ -50,6 +50,8 @@ void ffDetectPackagesImpl(FFPackagesResult* result, FFPackagesOptions* options)
const char* prefix = getenv("PKG_DBDIR");
if (ffStrSet(prefix)) {
result->pkgsrc = ffPackagesGetNumElements(prefix, true);
} else {
result->pkgsrc = ffPackagesGetNumElements(FASTFETCH_TARGET_DIR_ROOT "/usr/pkg/pkgdb", true);
}
}
if (FF_PACKAGES_IS_ENABLED(options, NIX)) {