Skip to content
Browse files

add -remote_mirror flag to replace apt-cacher-ng if desired

I have seen multiple corruption issues with apt-cacher-ng. I.e., debiman would
fail to run repeatedly until I would rm -rf /var/cache/apt-cacher-ng/*
  • Loading branch information
stapelberg committed Feb 17, 2020
1 parent 32eac1b commit fc8252157877b4f57b1598fe2e7d1a5cbe438e7f
Showing with 5 additions and 1 deletion.
  1. +5 −1 cmd/debiman/main.go
@@ -51,6 +51,10 @@ var (
"Forces all manpages to be re-extracted, even if there is no newer package version")

remoteMirror = flag.String("remote_mirror",
"URL of a Debian mirror to fetch packages from. localhost:3142 is provided by apt-cacher-ng")

localMirror = flag.String("local_mirror",
"If non-empty, a file system path to a Debian mirror, e.g. /srv/mirrors/debian on DSA-maintained machines")
@@ -86,7 +90,7 @@ func logic() error {
ar := &archive.Downloader{
Parallel: 10,
MaxTransientRetries: 3,
Mirror: "http://localhost:3142/",
Mirror: *remoteMirror + "/debian",
LocalMirror: *localMirror,

0 comments on commit fc82521

Please sign in to comment.
You can’t perform that action at this time.