diff options
| author | Jeff Carr <[email protected]> | 2025-10-04 13:17:20 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-04 13:17:20 -0500 |
| commit | 947ad21bb370ebb650e7296082d784c9ca3d27cb (patch) | |
| tree | 09a2a71d0a821746afe61398a6a1c9e8650ae69b /apt.go | |
| parent | c2c776c4f307c5c3c170c45ca06fc10f5ee58ee8 (diff) | |
only update wit repos
Diffstat (limited to 'apt.go')
| -rw-r--r-- | apt.go | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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) } |
