summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-13 02:50:15 -0500
committerJeff Carr <[email protected]>2025-10-13 03:43:08 -0500
commitb37626c1c23da54a7e068aabc6293277e75c65dc (patch)
tree9d9a37f29b69900ea92a6d0a49385c138c5833fe
parent5fad94e794716a8788247842e9e7b7edfe15f501 (diff)
getting closer to more or less done
-rw-r--r--doEverything.go23
1 files changed, 13 insertions, 10 deletions
diff --git a/doEverything.go b/doEverything.go
index 563b6f4..f8d9546 100644
--- a/doEverything.go
+++ b/doEverything.go
@@ -136,9 +136,6 @@ func doEverything() (string, error) {
sum = fmt.Sprintf("%x", sha256.Sum256(fileBytes))
*/
- log.Info("")
- log.Info("Finished Everything")
- log.Info("")
log.Info("Package file:", fullname)
log.Info("Release file:", releasePath)
log.Info("InRelease file:", filepath.Join(distPath, "InRelease"))
@@ -146,16 +143,22 @@ func doEverything() (string, error) {
cmd = append(cmd, "-o", "Dir::Etc::sourcelist=/etc/apt/sources.list.d/wit.list")
cmd = append(cmd, "-o", "Dir::Etc::sourceparts=/dev/null")
cmd = append(cmd, "-o", "APT::Get::List-Cleanup=0")
- log.Info("")
log.Info("apt update :", cmd)
- shell.RunVerbose(cmd)
- log.Info("")
log.Info("")
- log.Info("Local file:", "/var/lib/apt/lists/mirrors.wit.com_wit_dists_sid_main_binary-amd64_Packages")
- log.Info("")
- shell.RunVerbose([]string{"head", "-n", "15", "/var/lib/apt/lists/mirrors.wit.com_wit_dists_sid_main_binary-amd64_Packages"})
- log.Info("apt install :", "apt install wit-tools")
+ log.Info("Finished Everything")
log.Info("")
+ if argv.Verbose {
+ log.Info("")
+ shell.RunVerbose(cmd)
+ log.Info("")
+ log.Info("")
+ log.Info("Local file:", "/var/lib/apt/lists/mirrors.wit.com_wit_dists_sid_main_binary-amd64_Packages")
+ log.Info("")
+ shell.RunVerbose([]string{"head", "-n", "15", "/var/lib/apt/lists/mirrors.wit.com_wit_dists_sid_main_binary-amd64_Packages"})
+ log.Info("apt install :", "apt install wit-tools")
+ log.Info("")
+ }
+
return "did everything", nil
}