mirror of
https://github.com/EnumeratedDev/bpm-utils.git
synced 2026-09-16 11:06:11 +00:00
bpm-package: rename 'update-checksums' flag to 'update-info'
This commit is contained in:
@@ -27,7 +27,7 @@ var installDepends = flag.BoolP("depends", "d", false, "Install package dependen
|
|||||||
var installPackage = flag.BoolP("install", "i", false, "Install compiled BPM package after compilation finishes")
|
var installPackage = flag.BoolP("install", "i", false, "Install compiled BPM package after compilation finishes")
|
||||||
var compilationJobs = flag.IntP("jobs", "j", 0, "Set the amount of concurrent processes to use for source package compilation")
|
var compilationJobs = flag.IntP("jobs", "j", 0, "Set the amount of concurrent processes to use for source package compilation")
|
||||||
var moveToBinaryDir = flag.BoolP("move", "m", false, "Move output packages to the current repository's binary directory")
|
var moveToBinaryDir = flag.BoolP("move", "m", false, "Move output packages to the current repository's binary directory")
|
||||||
var updateChecksums = flag.BoolP("update-checksums", "u", false, "Update the checksums for all download entries")
|
var updateInfo = flag.BoolP("update-info", "u", false, "Update the pkg.info file")
|
||||||
var yesAll = flag.BoolP("yes", "y", false, "Accept all confirmation prompts")
|
var yesAll = flag.BoolP("yes", "y", false, "Accept all confirmation prompts")
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -86,8 +86,9 @@ func createArchive() string {
|
|||||||
log.Fatalf("Error: could not read package info: %s", err)
|
log.Fatalf("Error: could not read package info: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update checksums
|
// Update pkg.info file
|
||||||
if *updateChecksums {
|
if *updateInfo {
|
||||||
|
// Update download checksums
|
||||||
for i, download := range pkgInfo.Downloads {
|
for i, download := range pkgInfo.Downloads {
|
||||||
if download.Checksum == "skip" {
|
if download.Checksum == "skip" {
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user