<feed xmlns='http://www.w3.org/2005/Atom'>
<title>apt/cmdline/apt-mark.cc, branch 2.9.0</title>
<subtitle>Debians commandline package manager</subtitle>
<id>https://git.kalnischkies.de/apt/atom?h=2.9.0</id>
<link rel='self' href='https://git.kalnischkies.de/apt/atom?h=2.9.0'/>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/'/>
<updated>2024-02-20T12:49:04Z</updated>
<entry>
<title>Modernize standard library includes</title>
<updated>2024-02-20T12:49:04Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2024-02-20T12:43:08Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=40a75722c43ae24cb9a99d6730a3b25b65819c49'/>
<id>urn:sha1:40a75722c43ae24cb9a99d6730a3b25b65819c49</id>
<content type='text'>
This was automated with sed and git-clang-format, and then I had to
fix up the top of policy.cc by hand as git-clang-format accidentally
indented it by two spaces.
</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>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>Fix "was already not hold" message grammar</title>
<updated>2022-01-24T18:46:34Z</updated>
<author>
<name>Ville Skyttä</name>
<email>ville.skytta@iki.fi</email>
</author>
<published>2022-01-24T13:01:09Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=fd785ddfea98bafdedb8c8529cf266793b51d956'/>
<id>urn:sha1:fd785ddfea98bafdedb8c8529cf266793b51d956</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Inhibit autoremove calculation in apt-mark and apt show</title>
<updated>2021-08-28T20:21:35Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2021-08-28T16:08:15Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=e267d1ee54e3e2a9478201192293f3f8c72e118c'/>
<id>urn:sha1:e267d1ee54e3e2a9478201192293f3f8c72e118c</id>
<content type='text'>
As we never display the information in these code paths there isn't a
lot of point in calculating it first saving us some precious CPU cycles.

References: d6f3458badf2cfea3ca7de7632ae31daff5742be
</content>
</entry>
<entry>
<title>apt-mark: don't lie about successful marks</title>
<updated>2020-01-09T18:44:22Z</updated>
<author>
<name>Tris Emmy Wilson</name>
<email>anemptystring@gmail.com</email>
</author>
<published>2020-01-09T00:24:31Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=009b144dc466856b05473c73bdf75ea21755b037'/>
<id>urn:sha1:009b144dc466856b05473c73bdf75ea21755b037</id>
<content type='text'>
This commit fixes an issue where apt-mark would say it had made a change
before actually making the change. For example, when running as a user
without permission to write to extended_states, the package is not
marked but apt-mark claims it is:

    ~ % apt-mark manual rxvt-unicode
    rxvt-unicode set to manually installed.
    E: Could not create [...snip...] (13: Permission denied)
    E: Failed to write temporary StateFile /var/lib/apt/extended_states

This commit moves reporting of "[package] set to [manually |
automatically] installed" after saving extended_states and confirming it
was successful.
</content>
</entry>
<entry>
<title>apt-mark: Add hidden showheld alias for showhold</title>
<updated>2019-05-10T07:45:41Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2019-05-10T07:45:41Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=6311c8d25f1ff2033ef48a20fc7942ef42d81bf8'/>
<id>urn:sha1:6311c8d25f1ff2033ef48a20fc7942ef42d81bf8</id>
<content type='text'>
For Unit193 and those who value grammar, I suppose.
</content>
</entry>
<entry>
<title>apt-mark: Introduce minimize-manual</title>
<updated>2019-01-10T09:38:59Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2018-12-11T16:38:27Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=be7eb047e1202971f84bb4ac27e796d85bebdce9'/>
<id>urn:sha1:be7eb047e1202971f84bb4ac27e796d85bebdce9</id>
<content type='text'>
This visits dependencies of all manually installed metapackages,
as determined by APT::Never-MarkAuto-Sections, and marks them as
automatically installed. It can be used to clean up autoflags after
a d-i install, for example.
</content>
</entry>
<entry>
<title>apt-mark: showhold: typo-fix (package -&gt; packages)</title>
<updated>2018-10-02T15:03:31Z</updated>
<author>
<name>Muhamed Huseinbašić</name>
<email>muhamed.huseinbasic@outlook.com</email>
</author>
<published>2018-10-02T14:50:07Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=07d12ed686740c167bb5cbe4fe724e8469432b4a'/>
<id>urn:sha1:07d12ed686740c167bb5cbe4fe724e8469432b4a</id>
<content type='text'>
See merge request apt-team/apt!29

[jak@d.o: Also adjust translations, provide better subject]
</content>
</entry>
<entry>
<title>Reformat and sort all includes with clang-format</title>
<updated>2017-07-12T11:57:51Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2017-07-12T11:40:41Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=87274d0f22e1dfd99b2e5200e2fe75c1b804eac3'/>
<id>urn:sha1:87274d0f22e1dfd99b2e5200e2fe75c1b804eac3</id>
<content type='text'>
This makes it easier to see which headers includes what.

The changes were done by running

    git grep -l '#\s*include'  \
        | grep -E '.(cc|h)$' \
        | xargs sed -i -E 's/(^\s*)#(\s*)include/\1#\2 include/'

To modify all include lines by adding a space, and then running
./git-clang-format.sh.
</content>
</entry>
</feed>
