diff options
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) } |
