From 5fad94e794716a8788247842e9e7b7edfe15f501 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 13 Oct 2025 02:47:15 -0500 Subject: finally working --- Makefile | 2 ++ doEverything.go | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d31f3e9..a5546ba 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3