Package: unattended-upgrades
Version: 0.82.7
Severity: minor
Hi,
The file 50unattended-upgrades contains this section:
// List of packages to not update (regexp are supported)
Unattended-Upgrade::Package-Blacklist {
// "vim";
// "libc6";
// "libc6-dev";
// "libc6-i686";
};
Since the program uses re.match in python, "libc6" is actually used as
the regex "^libc6", which already also matches libc6-dev, libc6-i686 or
anything other that starts with lib6c. Identically, "vim" also matches
vimperator, etc...
This makes the list of examples a bit misleading for users. Regexes are
not only supported, they are mandatory here. :)
Here's a suggestion for a change of this part of the configuration file,
which might help users who are not very familiar with regular
expressions a bit:
// Regular expressions, matching packages to exclude from upgrading
Unattended-Upgrade::Package-Blacklist {
// The following matches all packages starting with linux-
// "linux-";
// Use $ to explicitely define the end of a package name. Without
// the $, "libc6" would match all of them.
// "libc6$";
// "libc6-dev$";
// "libc6-i686$";
// The following matches packages like xen-system-amd64, xen-utils-4.1,
// xenstore-utils and libxenstore3.0
"(lib)?xen(store)?";
// For more information about regular expressions, see
// https://docs.python.org/3/howto/regex.html
};
Since the configured list is a blacklist, it's easier to accidentally
prevent upgrades instead of accidentally installing them when making
mistakes, that's nice.
Regards,
--
Hans van Kranenburg - System / Network Engineer
T +31 (0)10 2760434 | hans.van.kranenb...@mendix.com | www.mendix.com
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org