ddeb-retriever:main

Last commit made on 2023-02-15
Get this branch:
git clone -b main https://git.launchpad.net/ddeb-retriever
Members of Ubuntu Package Archive Administrators can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
main
Repository:
lp:ddeb-retriever

Recent commits

612eb65... by Benjamin Drung

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) <email address hidden>
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 <email address hidden>

Merged branch ~bdrung/ddeb-retriever/+git/main:fix-2002833
e9fee8a... by Benjamin Drung

feat: Generate .Release.gpg.new and use atomic replace

There is an unnecessary window when `Release.gpg` is absent. Generate
`.Release.gpg.new` and use atomic replace to update `Release.gpg`. There
is still a window where `Release` and `Release.gpg` are out of sync.
This should be addressed in the future by atomically replacing the
complete directory.

Signed-off-by: Benjamin Drung <email address hidden>

bfef7ba... by Benjamin Drung

refactor: Replace try/except by contextlib.suppress

Shorten the code by using `contextlib.suppress`.

Signed-off-by: Benjamin Drung <email address hidden>

dd59505... by Benjamin Drung

refactor: Use subprocess.run in _generate_release_signatures

Signed-off-by: Benjamin Drung <email address hidden>

a2333e2... by Benjamin Drung

refactor: Introduce _generate_release_signatures

Split `_generate_release_signatures` from `create_indexes`.

Signed-off-by: Benjamin Drung <email address hidden>

22b520a... by Benjamin Drung

Sort Python imports with isort

```
isort .
```

Signed-off-by: Benjamin Drung <email address hidden>

98fd421... by Colin Watson

Set compressext too.

bc31a3a... by Colin Watson

Compress logs using xz.

They're very large and repetitive.

9e96820... by Sebastien Bacher

Log extra information about pockets and removals

f47b6b6... by Colin Watson

Use new BPPH.source_package_name export.

Now that https://bugs.launchpad.net/launchpad/+bug/1856774 is fixed, we can
drop our temporary workaround and use something that's both faster and
robust against the case of packages copied from PPAs owned by private teams.