Allow split source package compilation

This commit is contained in:
2025-04-26 15:29:45 +03:00
parent 9cdb3d29aa
commit 5085981f52
5 changed files with 238 additions and 151 deletions
+10
View File
@@ -38,6 +38,11 @@ func InstallPackages(rootDir string, installationReason InstallationReason, rein
if reinstallMethod == ReinstallMethodNone && IsPackageInstalled(bpmpkg.PkgInfo.Name, rootDir) && GetPackageInfo(bpmpkg.PkgInfo.Name, rootDir).GetFullVersion() == bpmpkg.PkgInfo.GetFullVersion() {
continue
}
if bpmpkg.PkgInfo.Type == "source" && len(bpmpkg.PkgInfo.SplitPackages) != 0 {
return nil, fmt.Errorf("direct source package installation has not been implemented")
}
operation.AppendAction(&InstallPackageAction{
File: pkg,
IsDependency: false,
@@ -63,6 +68,11 @@ func InstallPackages(rootDir string, installationReason InstallationReason, rein
if reinstallMethod == ReinstallMethodNone && IsPackageInstalled(entry.Info.Name, rootDir) && GetPackageInfo(entry.Info.Name, rootDir).GetFullVersion() == entry.Info.GetFullVersion() {
continue
}
if entry.Info.Type == "source" && len(entry.Info.SplitPackages) != 0 {
return nil, fmt.Errorf("direct source package installation has not been implemented")
}
operation.AppendAction(&FetchPackageAction{
IsDependency: false,
RepositoryEntry: entry,