mirror of
https://github.com/EnumeratedDev/bpm-utils.git
synced 2026-09-16 02:56:11 +00:00
bpm-repo: generate source package after applying new version
This commit is contained in:
@@ -254,11 +254,19 @@ func checkVersionsFunc(repo string) {
|
|||||||
encoder.SetIndent(2)
|
encoder.SetIndent(2)
|
||||||
encoder.Encode(pkgInfo)
|
encoder.Encode(pkgInfo)
|
||||||
|
|
||||||
|
// Write package information
|
||||||
fmt.Println(path.Join(dir, "pkg.info"))
|
fmt.Println(path.Join(dir, "pkg.info"))
|
||||||
err := os.WriteFile(path.Join(dir, "pkg.info"), data.Bytes(), 0644)
|
err := os.WriteFile(path.Join(dir, "pkg.info"), data.Bytes(), 0644)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Warning: could not write new version for package (%s) to file: %s", pkgInfo.Name, err)
|
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
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user