~cjwatson/ubuntu-mirrors:main

Last commit made on 2023-08-02
Get this branch:
git clone -b main https://git.launchpad.net/~cjwatson/ubuntu-mirrors
Only Colin Watson can upload to this branch. If you are Colin Watson please log in for upload directions.

Branch merges

Branch information

Name:
main
Repository:
lp:~cjwatson/ubuntu-mirrors

Recent commits

c0f96d5... by Colin Watson

Update charms.operator_libs_linux.v0.apt to 0.11

This is just the result of running `./update-lib`. There doesn't appear
to be any API change.

e38a15f... by Colin Watson

Update pre-commit hooks

Includes fix for https://github.com/PyCQA/isort/issues/2077.

I excluded `bundle.yaml.j2` from the `end-of-file-fixer` hook because
Jinja tends to remove a single newline from the end of a template, and
so we deliberately have an extra one so that the output file still ends
with a newline.

All code changes were automatic.

0c46e05... by Colin Watson

Rework PPA configuration

Reactive charms typically used `install_sources` and `install_keys`
configuration via `layer-apt` to configure additional package sources.
While the facilities available in operator charms don't quite allow for
the exact same thing, it's still useful to use similar configuration
idioms.

The practice in operator charms appears to be to vendor any charm
libraries that are necessary. While I don't particularly like this
practice, it seems to be what we're stuck with. I added an `update-lib`
script to fetch the pieces we need, which generates the file added to
the `lib/` directory.

Since sorting out the right charm options is a little fiddly, I added a
new `make-bundle` script to help with that.

a2b8a05... by Colin Watson

Fix cache-country-mirrors crash with non-default server_name

Since the subdirectory of `/srv/` we use differs depending on the value
of `server_name`, we need to pass that option down to
`cache-country-mirrors` so that it can write to the correct place.

d356f94... by Colin Watson

Remove unnecessary Apache restart

The `apache2` charm already takes care of this sort of thing.

7bcfffa... by Ioana Lasc

Small review edits

9edfa20... by Ioana Lasc

Code layout changes with pre-commit

ac28423... by Ioana Lasc

Move ppa path to a config option

6c1fc4b... by Ioana Lasc

Add private PPA for GeoIP DB

16fd01d... by Ioana Lasc

Reformat with Black