diff options
author | 2016-03-08 03:01:08 -0500 | |
---|---|---|
committer | 2016-03-08 03:01:08 -0500 | |
commit | aa8c7f1dd9481872b9f96b3fff2dcc6e31acaa06 (patch) | |
tree | 1b1b956f1ae7d80dcf7b039dcd97deb02bbda056 | |
parent | pquery: add --eapi to search for pkgs matching a given EAPI (diff) | |
download | pkgcore-aa8c7f1dd9481872b9f96b3fff2dcc6e31acaa06.tar.gz pkgcore-aa8c7f1dd9481872b9f96b3fff2dcc6e31acaa06.tar.bz2 pkgcore-aa8c7f1dd9481872b9f96b3fff2dcc6e31acaa06.zip |
restrictions/values: force the passed value to be a string
This just matches the behavior on the C extension side and fixes
handling for non-string objects that may be passed such as EAPI objects.
-rw-r--r-- | pkgcore/restrictions/values.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgcore/restrictions/values.py b/pkgcore/restrictions/values.py index b08b56820..014281d50 100644 --- a/pkgcore/restrictions/values.py +++ b/pkgcore/restrictions/values.py @@ -182,6 +182,7 @@ class native_StrExactMatch(object): sf(self, "_hash", hash((self.exact, self.negate, self.case_sensitive))) def match(self, value): + value = str(value) if self.case_sensitive: return (self.exact == value) != self.negate else: |