diff options
| author | Jeff Carr <[email protected]> | 2025-10-13 02:47:15 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-13 03:42:20 -0500 |
| commit | 5fad94e794716a8788247842e9e7b7edfe15f501 (patch) | |
| tree | 16717e044c44bfd413a57c4775c8c8d72f99d2c4 | |
| parent | 620c99631c5bf204f82f32faa2f5c2ea3ed37ea1 (diff) | |
finally working
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | doEverything.go | 9 |
2 files changed, 10 insertions, 1 deletions
@@ -9,6 +9,8 @@ all: reset goimports vet install mirrors incoming mirrors verify mirrors newest + mirrors everything + wit upgrade everything: install mirrors everything diff --git a/doEverything.go b/doEverything.go index c17cb68..563b6f4 100644 --- a/doEverything.go +++ b/doEverything.go @@ -142,12 +142,19 @@ func doEverything() (string, error) { log.Info("Package file:", fullname) log.Info("Release file:", releasePath) log.Info("InRelease file:", filepath.Join(distPath, "InRelease")) - log.Info("Local file:", "/var/lib/apt/lists/mirrors.wit.com_wit_dists_sid_main_binary-amd64_Packages") cmd := []string{"apt-get", "update"} 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("") return "did everything", nil |
