diff options
Diffstat (limited to 'doEverything.go')
| -rw-r--r-- | doEverything.go | 23 |
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 } |
