Source: select-debian-mirror
Section: admin
Priority: optional
Maintainer: Adam Henry Lewenberg <adamhl@stanford.edu>
Homepage: https://code.stanford.edu/et-iedo-public/select-debian-mirror
Build-Depends: debhelper-compat (= 13),
 perl
Standards-Version: 4.7.0
Rules-Requires-Root: no

Package: select-debian-mirror
Architecture: all
Depends: python3,
 ${misc:Depends}
Description: dynamically select the best nearby Debian mirror
 select-debian-mirror picks a Debian package mirror suitable for use as
 an upstream sync source. It scrapes the mirror health scores from the
 Debian mirror-master status page and cross-references them with the
 Mirrors.masterlist to identify mirrors in eligible countries that
 support the requested protocol (rsync or http).
 .
 Mirrors whose score meets or exceeds a configurable cutoff are
 collected as candidates; from those, the top N (default 1) are
 selected at random and printed to standard output, one hostname per
 line.
 .
 By default the script exits non-zero if any problem occurs (fetch
 failure, empty parse, or no mirror passing the cutoff). Pass
 --use-default-on-error to instead print a randomly-chosen entry from a
 built-in fallback list of known-good mirrors.
 .
 The package also ships write-debian-select-list, a thin wrapper that
 calls select-debian-mirror and writes the result atomically to a file
 suitable for consumption by debmirror.
