diff options
| -rw-r--r-- | Makefile | 6 | ||||
| -rw-r--r-- | apt.go | 9 |
2 files changed, 14 insertions, 1 deletions
@@ -43,3 +43,9 @@ old-debian-release: install debian-release-build-only: install wit-test debian --verbose --release + +apt-update: + 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 @@ -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) } |
