<feed xmlns='http://www.w3.org/2005/Atom'>
<title>apt/apt-pkg, branch 2.6.0</title>
<subtitle>Debians commandline package manager</subtitle>
<id>https://git.kalnischkies.de/apt/atom?h=2.6.0</id>
<link rel='self' href='https://git.kalnischkies.de/apt/atom?h=2.6.0'/>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/'/>
<updated>2023-03-06T09:57:55Z</updated>
<entry>
<title>Address statements of public domain</title>
<updated>2023-03-06T09:57:55Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2023-02-27T16:58:33Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=d9039b2409e69e651bf0d7ba582dbf528086332d'/>
<id>urn:sha1:d9039b2409e69e651bf0d7ba582dbf528086332d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'pu/never-sections-matching' into 'main'</title>
<updated>2023-03-06T09:23:20Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2023-03-06T09:23:20Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=278f542caf92750aed06dae88f066fa01f3f09ac'/>
<id>urn:sha1:278f542caf92750aed06dae88f066fa01f3f09ac</id>
<content type='text'>
Fix permissions &amp;&amp; change section matching in config files to be more gitignore style rightmost match

See merge request apt-team/apt!286</content>
</entry>
<entry>
<title>Do not store trusted=yes Release file unconditionally</title>
<updated>2023-03-04T12:07:00Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2023-03-04T10:55:34Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=937221fde2a5ca989a0b80728cd3ba3639f9f20e'/>
<id>urn:sha1:937221fde2a5ca989a0b80728cd3ba3639f9f20e</id>
<content type='text'>
A source marked with trusted=yes can still fail verification of the
Release file, mostly for Date related issues, like being too new or too
old, which have other options to force them in.

The update code was not using the Release file (which was a InRelease
file but failed verification – which was overridden by trusted=yes) as
intended, but it marked it for storage, so that this "bad" Release file
would end up being moved into lists/, which is bad as the indexes it
refers to aren't updated while the next update run assumes that the
indexes are in the state the Release file claims them to be in.

Fixed simply by making the storage conditional on the usage as intended,
which also resolves a second issue: The verification can also detect that
a Release file we got is older than what we already have to avoid down-
grade attacks. The more likely explanation is a slightly outdated mirror
in a rotation/CDN through, so this gets the silent treatment to avoid
scaring users by handling it as if we had got the same Release file we
already have stored locally, removing the freshly received older file
in the process alongside setting some variables. Those variables were
already modified in the trusted=yes case though resulting in the stored
Release file being removed instead. Not modifying the variables too early
resolves this problem as well.

Both seem to exist since at least 2015 as traces are visible in 448c38bdcd
already, which shuffled lots of code around including the bad ones, but
as we are in trusted=yes land, security is of no concern here, this
"just" leads to failed pinning, hashsum mismatches and other strange
problems in follow-up calls depending on how out of sync the Release
file (if its still present) is with the rest of the trusted data.

Reported-By: Dima Kogan &lt;dkogan@debian.org&gt; on IRC
Tested-By: Dima Kogan &lt;dkogan@debian.org&gt;
</content>
</entry>
<entry>
<title>Detect trimmed changelogs and pick online instead</title>
<updated>2023-03-03T16:51:05Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2023-01-28T21:17:44Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=acbfdf0533602a05de066aa86d1f756b5fe0f4a3'/>
<id>urn:sha1:acbfdf0533602a05de066aa86d1f756b5fe0f4a3</id>
<content type='text'>
We only check the start of these lines to avoid hard coding the exact
command and we pick 150 as maximum line length as the longest package
name on my system is apparently 75 characters long. We could choose
longer or shorter without much issue as over-length just means we
mishandle the rest of the line as a new line and it should be really
unlikely that a) lines are that long in this file and b) that such long
lines contain one of our trigger sequences – but even if, all we do is
start a download of an online file. Could be worse.

This auto-detection can be avoided by setting
Acquire::Changelogs::AlwaysOnline (or Origin specific sub options)
to "true" if you always want the changelog from an online source.
The reverse – setting it to "false" in the hope it would not get the
changelog from an online source – was not and is still not possible.

Closes: #1024457
</content>
</entry>
<entry>
<title>Use a more gitignore style matching</title>
<updated>2023-02-27T13:44:12Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2023-02-27T13:41:52Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=557aed9806b59bebac33f4589bafc25fcb8a2728'/>
<id>urn:sha1:557aed9806b59bebac33f4589bafc25fcb8a2728</id>
<content type='text'>
Use a rightmost match for / so that if we end up with a Section: a/b/c,
a 'c' matcher still matches.

If the section does not contain any /, it can be matched using /pattern,
e.g. /c only matches Section: c, but not Section: a/b/c.
</content>
</entry>
<entry>
<title>Merge branch 'feature/non-free-firmware' into 'main'</title>
<updated>2023-02-27T09:21:24Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2023-02-27T09:21:24Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=f98732f703601a8db67527b1b82f3296290f2dc1'/>
<id>urn:sha1:f98732f703601a8db67527b1b82f3296290f2dc1</id>
<content type='text'>
Support transition to new non-free-firmware component

See merge request apt-team/apt!282</content>
</entry>
<entry>
<title>Have values in Section config trees refer to them in all components</title>
<updated>2023-01-29T23:55:05Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2023-01-29T15:54:39Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=8aeb07448c09375c730c76a6baf31303b129bb96'/>
<id>urn:sha1:8aeb07448c09375c730c76a6baf31303b129bb96</id>
<content type='text'>
Hard coding each and every component is not only boring but given that
everyone is free to add or use more we end up in situations in which apt
behaves differently for the same binary package just because metadata
said it is in different components (e.g. non-free vs. non-free-firmware).
It is also probably not what the casual user would expect.

So we instead treat a value without a component as if it applies for all
of them. The previous behaviour can be restored by prefixing the value
with "&lt;undefined&gt;/" as in the component is not defined.

In an ideal world we would probably use "*/foo" for the new default
instead of changing the behaviour for "foo", but it seems rather
unlikely that the old behaviour is actually desired. All existing values
were duplicated for all (previously) known components in Debian and
Ubuntu.
</content>
</entry>
<entry>
<title>Teach apt-cdrom's scoring system about non-free-firmware</title>
<updated>2023-01-29T23:54:48Z</updated>
<author>
<name>Cyril Brulebois</name>
<email>kibi@debian.org</email>
</author>
<published>2023-01-27T04:51:31Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=0dd4e0b4caeeb3e943a993db79c416d491c469cd'/>
<id>urn:sha1:0dd4e0b4caeeb3e943a993db79c416d491c469cd</id>
<content type='text'>
Closes: #1029751
</content>
</entry>
<entry>
<title>Unhide virtual overloads in some cachefilters</title>
<updated>2023-01-29T12:59:30Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2023-01-29T12:44:37Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=3c9ff866affaae10303de04f647220a16bf7e27a'/>
<id>urn:sha1:3c9ff866affaae10303de04f647220a16bf7e27a</id>
<content type='text'>
The matchers are usually called via its base class, but if we would call
them via the derivate class we would not be able to call the not
explicitly "imported" overloads, which would be strange.

Reported-By: gcc-13 -Woverloaded-virtual
Gbp-Dch: Ignore
</content>
</entry>
<entry>
<title>Drop redundant 'virtual' on function marked 'override'</title>
<updated>2023-01-29T12:59:30Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2023-01-29T12:27:24Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=2cd6be476d1e5a5592ddac8a912ae73bc882d55e'/>
<id>urn:sha1:2cd6be476d1e5a5592ddac8a912ae73bc882d55e</id>
<content type='text'>
Reported-By: clang-tidy [cppcoreguidelines-explicit-virtual-functions]
Gbp-Dch: Ignore
</content>
</entry>
</feed>
