| 1 | package My::GPU::DebianMirror; | ||||||||||
| 2 | # Example: a Debian host whose sources point at a mirror of your own | ||||||||||
| 3 | # (apt-cacher-ng, a company mirror) without | ||||||||||
| 4 | # signed-by=/usr/share/keyrings/debian-archive-keyring.gpg. Rex::GPU enables | ||||||||||
| 5 | # contrib non-free non-free-firmware only in entries it recognises as | ||||||||||
| 6 | # Debian's archive; this class teaches it the mirror. Everything else is the | ||||||||||
| 7 | # built-in Debian setup. | ||||||||||
| 8 | 1 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 1 | ▶ | use namespace::autoclean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 1 | extends 'Rex::GPU::NVIDIA::Setup::Debian'; | |||||||||
| 12 | |||||||||||
| 13 | 6 | ▶ | sub is_debian_archive_uri { | ||||||||
|
Subroutine
is_debian_archive_uri: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 14 | 6 | my ( $self, $uri ) = @_; | |||||||||
| 15 | # only URIs that serve Debian's own archive (main is extended by non-free) | ||||||||||
| 16 | 6 | ▶ | return 1 if $uri =~ m{^http://apt-cache\.corp\.example:3142/debian(?:-security)?/?$}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 3 | return $self->SUPER::is_debian_archive_uri($uri); | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 1 | 1; | |||||||||