From b37626c1c23da54a7e068aabc6293277e75c65dc Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 13 Oct 2025 02:50:15 -0500 Subject: getting closer to more or less done --- doEverything.go | 23 +++++++++++++---------- 1 file 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 } -- cgit v1.2.3