lp:~bdrung/ddeb-retriever/+git/main

Owned by Benjamin Drung
Get this repository:
git clone https://git.not.enabled/~bdrung/ddeb-retriever/+git/main
Only Benjamin Drung can upload to this repository. If you are Benjamin Drung please log in for upload directions.

Branches

Name Last Modified Last Commit
race 2023-02-20 18:47:46 UTC
fix: Make dists generation nearly atomic

Author: Benjamin Drung
Author Date: 2023-02-20 18:47:46 UTC

fix: Make dists generation nearly atomic

There is a time frame where the `Packages` files are updated, but the
`Release` files are not updated yet. To reduce the time frame where the
archive is in an inconsistent state, generate the update for the `dists`
directory in a temporary directory. Once the update is prepared, use
`os.rename` to move the old directory away and move the newly prepared
directory in place. There is a tiny time frame between both `os.rename`
where the directory is missing, but this time frame should be small
enough to be not relevant in practice.

To make the `dist` directory generation truly atomic, symlinks need to
be used. Even after that there could be a race on the client side: The
client could fetch the `Release` file, then the `dists` directory could
be updated, then the client tries to fetch the `Packages` file.

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>

develop 2023-02-15 10:17:42 UTC
Add README.md

Author: Benjamin Drung
Author Date: 2023-02-09 22:32:15 UTC

Add README.md

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>

pylint 2023-02-15 10:02:06 UTC
refactor: Use datetime.timestamp()

Author: Benjamin Drung
Author Date: 2023-02-09 22:15:35 UTC

refactor: Use datetime.timestamp()

Use `timestamp()` method of datetime instead of calculating it manually.

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>

main 2023-02-15 10:00:29 UTC
feat: Generate InRelease files in addition to Release.gpg

Author: Benjamin Drung
Author Date: 2023-02-15 10:00:29 UTC

feat: Generate InRelease files in addition to Release.gpg

The Apport system tests often fail with:

```
W:GPG error: http://ddebs.ubuntu.com jammy-updates Release: The following signatures were invalid: BADSIG C8CAB6595FDFF622 Ubuntu Debug Symbol Archive Automatic Signing Key (2016) <ubuntu-archive@lists.ubuntu.com>
E:The repository 'http://ddebs.ubuntu.com jammy-updates Release' is not signed.
```

So generate an `InRelease` file in addition to `Release.gpg`.

Bug: https://launchpad.net/bugs/2002833
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>

14 of 4 results
This repository contains Public information 
Everyone can see this information.

Subscribers