summaryrefslogtreecommitdiff
path: root/apt.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-04 13:17:20 -0500
committerJeff Carr <[email protected]>2025-10-04 13:17:20 -0500
commit947ad21bb370ebb650e7296082d784c9ca3d27cb (patch)
tree09a2a71d0a821746afe61398a6a1c9e8650ae69b /apt.go
parentc2c776c4f307c5c3c170c45ca06fc10f5ee58ee8 (diff)
only update wit repos
Diffstat (limited to 'apt.go')
-rw-r--r--apt.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/apt.go b/apt.go
index 04639cb..1bb469a 100644
--- a/apt.go
+++ b/apt.go
@@ -36,8 +36,15 @@ func aptRemoveOrExit(pkgname string) {
}
}
+// apt-get update \
+// -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/wit.list \
+// -o Dir::Etc::sourceparts=/dev/null \
+// -o APT::Get::List-Cleanup=0
func aptUpdate() {
- cmd := []string{"apt", "update"}
+ 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")
if _, err := shell.RunRealtimeError(cmd); err != nil {
badExit(err)
}