APT

apt:2.0.y

Last commit made on 2023-10-06
Get this branch:
git clone -b 2.0.y https://git.launchpad.net/apt

Branch merges

Branch information

Name:
2.0.y
Repository:
lp:apt

Recent commits

4880a73... by Julian Andres Klode

Release 2.0.10

ff39653... by Julian Andres Klode

snapshots: Backport to stable release test suite

This has a /var/lib/dpkg/status that the newer releases don't
seem to have.

b76ba46... by Julian Andres Klode

Fix snapshot crashes

We did not handle multiple components properly, add a contrib
component to the test case.

(cherry picked from commit 5dcb36e7af4bd65211ac4937e5e7feac8c85683c)

071dc89... by Julian Andres Klode

Ensure that Snapshots: no doesn't get overriden by host-name config

(cherry picked from commit 4e35e5079f589700b4b5f1fc00787144bc1c58bf)

20c0d5c... by Julian Andres Klode

Seed snapshot servers for well-known hosts

This will attempt to fallback to a per-server setting if we could
not determine a value from the release file.

(cherry picked from commit 48cbc5413fb2a0e490c2282b9df65da96ad7a9f2)

1547453... by Julian Andres Klode

Initial support for snapshot servers, apt --snapshot option

Provide snapshot support for offical Debian and Ubuntu archives.

There are two ways to enable snapshots for sources:

1. Add Snapshot: yes to your sources file ([snapshot=yes]). This
   will allow you to specify a snapshot to use when updating or
   installing using the --snapshot,-S option.

2. Add Snapshot: ID to your sources files to request a specific
   snapshot for this source.

Snapshots are discovered using Label and Origin fields in the Release
file of the main source, hence you need to have updated the source at
least once before you can use snapshots.

The Release file may also declare a snapshots server to use, similar
to Changelogs, it can contain a Snapshots field with the values:

1. `Snapshots: https://example.com/@SNAPSHOTID@` where `@SNAPSHOTID@`
   is a placeholder that is replaced with the requested snapshot id

2. `Snapshots: no` to disable snapshot support for this source.
   Requesting snapshots for this source will result in a failure
   to load the source.

The implementation adds a SHADOWED option to deb source entries,
and marks the main entry as SHADOWED when a snapshot has been
requested, which will cause it to be updated, but not included
in the generated cache.

The concern here was that we need to keep generating the shadowed
entries because the cleanup in `apt update` deletes any files not
queued for download, so we gotta keep downloading the main source.

This design is not entirely optimal, but avoids the pitfalls of
having to reimplement list cleanup.

Gaps:

- Ubuntu Pro repositories and PPAs are not yet supported.

(cherry picked from commit a19f606aad717fe5c9c69237c3af53feb547115e)

561ab74... by Julian Andres Klode

Release 2.0.9

This fixes a regression from the previous release that breaks
bootstrapping new systems (think debootstrap/mmdebstrap)

a77b43a... by Julian Andres Klode

postinst: Do not run removed kernel postinst.d script

The kernel autoremoval list was created on install, which
fails as the file does not exist anymore.

LP: #1974456

513e23c... by Julian Andres Klode

Release 2.0.8

47e6609... by Julian Andres Klode

Adjust conffile removal version in postinst and maintscript