<feed xmlns='http://www.w3.org/2005/Atom'>
<title>apt/test/integration/test-apt-patterns, branch 2.1.19</title>
<subtitle>Debians commandline package manager</subtitle>
<id>https://git.kalnischkies.de/apt/atom?h=2.1.19</id>
<link rel='self' href='https://git.kalnischkies.de/apt/atom?h=2.1.19'/>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/'/>
<updated>2020-05-04T11:08:33Z</updated>
<entry>
<title>apt list: Fix behavior of regex vs fnmatch vs wildcards</title>
<updated>2020-05-04T11:08:33Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2020-05-04T11:08:33Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=c4f85bcb8bee1b5e647c7e629f616cffc7d12bbc'/>
<id>urn:sha1:c4f85bcb8bee1b5e647c7e629f616cffc7d12bbc</id>
<content type='text'>
Previously (and still in cacheset), patterns where only allowed to
start with ? or ~, which ignores the fact that a pattern might just
as well start with a negation, such a !~nfoo.

Also, we ignored the --regex flag if it looked like this, which
was somewhat bad.

Let's change this all:

* If --regex is given, arguments are always interpreted as regex
* If it is a valid package wildcard (name or * characters), then
  it will be interpreted as a wildcard - this set of characters is
  free from meaningful overlap with patterns.
* Otherwise, the argument is interpreted as a pattern.

For a future version, we need to adapt parsing for cacheset and
list to use a common parser, to avoid differences in their
interpretation. Likely, this code will go into the pattern parser,
such that it generates a pattern given a valid fnmatch argument
for example.
</content>
</entry>
<entry>
<title>Reinstate * wildcards</title>
<updated>2020-05-04T10:48:56Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2020-05-04T10:23:50Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=75f59b16312523ab3deb995c48e8c8ae07586c23'/>
<id>urn:sha1:75f59b16312523ab3deb995c48e8c8ae07586c23</id>
<content type='text'>
Reinstate * wildcards as they are safe to use, but do not allow any
other special characters such as ? or [].

Notably, ? would overlap with patterns, and [] might overlap with
future pattern extensions (alternative bracketing style), it's also
hard to explain.

Closes: #953531
LP: #1872200
</content>
</entry>
<entry>
<title>Don't crash pattern matching sections if pkg has no section</title>
<updated>2020-03-10T09:57:21Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2020-03-10T09:46:56Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=429effb963fba7529b8ff57d6b0474916d4fed69'/>
<id>urn:sha1:429effb963fba7529b8ff57d6b0474916d4fed69</id>
<content type='text'>
Packages from third-party sources do not always follow the established
patterns of more properly maintained archives. In that case it was a
driver package for a scanner&amp;printer device which has only a minimum of
info attached, but also minimal non-installed packages do not include
sections, so we really shouldn't assume their availability.
</content>
</entry>
<entry>
<title>apt(8): Disable regular expressions and fnmatch</title>
<updated>2020-01-15T21:19:17Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2020-01-15T21:01:54Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=21cb4a9e513ccb6f376fbcaf67957c4851cbbe32'/>
<id>urn:sha1:21cb4a9e513ccb6f376fbcaf67957c4851cbbe32</id>
<content type='text'>
This is the first step. Next step will be to add warnings to
apt-get and then remove support there as well.
</content>
</entry>
<entry>
<title>patterns: Add ?section</title>
<updated>2019-11-26T11:01:42Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2019-11-26T11:01:42Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=a93b4443c18ee211691f7b336b161fea7d1df699'/>
<id>urn:sha1:a93b4443c18ee211691f7b336b161fea7d1df699</id>
<content type='text'>
</content>
</entry>
<entry>
<title>patterns: Add ?all-versions</title>
<updated>2019-11-26T10:56:28Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2019-11-26T10:56:28Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=96f795bce665a1907b885bd2d57d6ab22b0a4199'/>
<id>urn:sha1:96f795bce665a1907b885bd2d57d6ab22b0a4199</id>
<content type='text'>
</content>
</entry>
<entry>
<title>patterns: Implement ?narrow(...), as ?any-version(?and(...))</title>
<updated>2019-11-26T10:46:06Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2019-11-26T10:45:44Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=94b185bb738e063bcc387e31b39dcd041f283766'/>
<id>urn:sha1:94b185bb738e063bcc387e31b39dcd041f283766</id>
<content type='text'>
This is pure syntactic sugar - ?narrow does not exist in the
abstract syntax.
</content>
</entry>
<entry>
<title>patterns: Add ?any-version</title>
<updated>2019-11-26T10:34:34Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2019-11-26T10:34:34Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=6801e6d2c63d4ff087024fc84a0feb8aef86886b'/>
<id>urn:sha1:6801e6d2c63d4ff087024fc84a0feb8aef86886b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>patterns: Add ?origin</title>
<updated>2019-11-25T10:32:19Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2019-08-21T20:53:25Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=02b0afd5098534eff34a8fa1d44454c7a3e1ff09'/>
<id>urn:sha1:02b0afd5098534eff34a8fa1d44454c7a3e1ff09</id>
<content type='text'>
</content>
</entry>
<entry>
<title>patterns: Add ?archive</title>
<updated>2019-11-25T10:32:19Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2019-08-21T20:31:01Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=391c9f20208584bf429c7717047a0637d0d670fb'/>
<id>urn:sha1:391c9f20208584bf429c7717047a0637d0d670fb</id>
<content type='text'>
</content>
</entry>
</feed>
