bpm-repo: generate source package after applying new version

This commit is contained in:
2026-01-12 08:52:17 +02:00
parent bf9874af6b
commit a64ad39ca7
+8
View File
@@ -254,11 +254,19 @@ func checkVersionsFunc(repo string) {
encoder.SetIndent(2)
encoder.Encode(pkgInfo)
// Write package information
fmt.Println(path.Join(dir, "pkg.info"))
err := os.WriteFile(path.Join(dir, "pkg.info"), data.Bytes(), 0644)
if err != nil {
log.Printf("Warning: could not write new version for package (%s) to file: %s", pkgInfo.Name, err)
}
// Generate source package
cmd := exec.Command("bpm-package")
cmd.Stderr = os.Stderr
if err := cmd.Run(); err != nil {
log.Printf("Warning: could not generate source pacakge (%s): %s", pkgInfo.Name, err)
}
}
continue