From ccedf0dd4027843a7ba78dacfb30954404ffdd8c Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 13 Nov 2014 11:28:50 -0800 Subject: [PATCH] Decide to allow pkgname and version wildcards so that things like libxml2*=2.9* would work --- packaging/os/apt.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packaging/os/apt.py b/packaging/os/apt.py index 7940317eb78..17ce8aa4f78 100644 --- a/packaging/os/apt.py +++ b/packaging/os/apt.py @@ -231,11 +231,9 @@ def expand_pkgspec_from_fnmatches(m, pkgspec, cache): new_pkgspec = [] for pkgspec_pattern in pkgspec: pkgname_pattern, version = package_split(pkgspec_pattern) - # note that any of these chars is not allowed in a (debian) pkgname - if frozenset('*?[]!').intersection(pkgname_pattern): - if version: - m.fail_json(msg="pkgname wildcard and version can not be mixed") + # note that none of these chars is allowed in a (debian) pkgname + if frozenset('*?[]!').intersection(pkgname_pattern): # handle multiarch pkgnames, the idea is that "apt*" should # only select native packages. But "apt*:i386" should still work if not ":" in pkgname_pattern: