The link points to the following text:
```
There isn't a GitHub Pages site here.
Did you mean to visit apt-mirror.github.io? Please note that this site belongs to a GitHub user and is not an official GitHub site.
If you're the owner of this site, please update your links to use apt-mirror.github.io instead. Subdomains of github.com are deprecated for GitHub Pages. They will not redirect to github.io after April 15, 2021.
```
sanitize_uri is used to translate URIs to pathnames in order to find
downloaded index files.
However, it had been stripping off the port number, while wget creates paths
that include the port number. This means that if your URI includes a port
number, like http://example.com:8080/debian, wget would download files into a
directory named .../skel/example.com:8080/debian/, but apt-mirror would look
for the files in .../skel/example.com/debian/.
It looks like wget has done this for many years, and there's no easy way to
disable it. You can have wget apply its own sanitization filters for
different platforms with --restrict-file-names but Unix mode includes the port
with a ":", and Windows mode replaces the ":" but also replaces other
characters which would mean adjusting sanitise_uri to match. It seems like the
simplest way to be consistent with wget is to remove the port number filter
from sanitise_ui, since ":" is a valid component of a pathname and doesn't
seem to cause any issues.
Fixes#19
The DEP11 Components-$arch.yml could be compressed by xz instead of gz.
Thus download Components-$arch.yml files that are compressed with gz,
bz2, or xz.
fixes#69
Instead of just writing a MD5 file containing the md5 checksums, also
write SHA1 and SHA256 files. These files could be used for sha1sum and
sha256sum.
A repository without MD5sum will cause warnings:
Use of uninitialized value $lines{"MD5sum:"} in concatenation (.) or
string at /usr/bin/apt-mirror line 787
The written MD5 file is not used by apt-mirror. Thus skip missing MD5Sum
values.
Example repository without MD5Sum:
deb-amd64 https://packages.chef.io/stable-apt xenial main
fixes#66
When no options are specified for a deb line in the config (e.g. no
[arch=amd64] or similar), apt-mirror will print a warning:
Use of uninitialized value $config{"options"} in pattern match (m//) at
apt-mirror line 300, <CONFIG> line 6.
fixes#68
* Add support for quoted variables with spaces
* Add new function quoted_path to quote and escape the path.
* Change the system() call to system COMMAND LIST to handle
the spaces in path or argument cases.
fixes#43, #67
Signed-off-by: Tao Wang <twang2218@gmail.com>
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
apt-mirror fails when the base_path does not exist. Create the
directories including their parents by replacing mkdir and mkpath with
make_path.
Signed-off-by: Tao Wang <twang2218@gmail.com>
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
Test that the config file is readable (ie. "-e") before dying, not
strictly a file ("-f").
This allows one to more-easily generate dynamic configuration files
and pass them via `apt-mirror /dev/stdin` rather than having to create
temporary files.
Closes: #824493
apt-mirror hardcodes .gz usage and as such is no longer able to
actually mirror Debian (experimental).
Use .xz or .bz2 index files when there are not .gz index files.
fixes#30Closes: #819974
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
This reverts commit 591a52e67a.
The standard way to include the installation components is via the
mirror spec line, e.g.x
deb-amd64 http://us.archive.ubuntu.com/ubuntu wily main restricted universe multiverse main/debian-installer
This is a universal syntax, used by everybody in the same way. I think
it would be better not for apt-mirror to fetch things I didn't ask for,
and to simply continue it's current behavior of doing what it is asked
to do.
fixes#64
Look in the Release file to select files relevant only for selected
architectures.
fixes#56
LP: #1550852
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
Original change comes from GitHub-User <<carmenates09>>/<<apt-mirror>>@<<01833f2adf4a14ed14ef32ac0d85790826947119>>
Added default variables for 'proxy_user' and 'proxy_password' because this variables can be empty