diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-08-28 22:56:17 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-10-05 21:53:38 +0200 |
commit | 3f24abbfc89aa82823df8386ef04f56ad96166ad (patch) | |
tree | 6666fcaf2c3f5994f19ca5b25bbd32d9166628a3 /test/integration/test-apt-progress-fd-conffile | |
parent | 2f7b50d0ca76f05c8f113088b8fc6486a5d17394 (diff) |
don't loop on pinning pkgs from absolute debs by regex
An absolute filename for a *.deb file starts with a /. A package with
the name of the file is inserted in the cache which is provided by the
"real" package for internal reasons. The pinning code detects a regex
based wildcard by having the regex start with /. That is no problem
as a / can not be included in a package nameā¦ expect that our virtual
filename package can and does.
We fix this two ways actually: First, a regex is only being considered a
regex if it also ends with / (we don't support flags). That stops our
problem with the virtual filename packages already, but to be sure we
also do not enter the loop if matcher and package name are equal.
It has to be noted that the creation of pins for virtual packages like
the here effected filename packages is pointless as only versions can be
pinned, but checking that a package is really purely virtual is too
costly compared to just creating an unused pin.
Closes: 835818
(cherry picked from commit e950b7e2f89b5e48192cd469c963a44fff9f1450)
Diffstat (limited to 'test/integration/test-apt-progress-fd-conffile')
0 files changed, 0 insertions, 0 deletions