On Wed, Oct 22, 2014 at 02:08:19PM +0200, Kai Storbeck wrote: > Dear Maintainer, Hi Kai,
thanks for your bugreport. > I tried adding this package to the package-blacklist: > > libstdc++6 > > This will fail, as it is an invalid regular expression: [..] > > File "/usr/lib/python2.7/re.py", line 242, in _compile > > raise error, v # invalid expression > > sre_constants.error: multiple repeat > > (this is on wheezy) > > > Is this intentional, or is this a bug? This is sort-of intentional but I think you raise a interessting usability issue here. The blacklist/whitelist consists of regular expressions but that is actually not super user friendly as its not obvious and they are also hard to use compared to something like glob/fnmatch style matching (or plain packagenames). I can't change this easily without breaking existing setups though. So I think better documenting it is the first step. It could simply use it as a plain string if the regexp fails and display a warning. Or I could add a new Unattended-Upgrade::Package-Blacklist-Plain list for non-regexp content (it really should be the other way around, Unattended-Upgrade::Package-Blacklist-Regex and Unattended-Upgrade::Package-Blacklist would be plain but that is tricky due to the compatibility concerns I outlined earlier. Cheers, Michael -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org