[Yum-devel] [PATCH] Have pkgtup not be low in excluder, so we can use pkg.pkgtup (as we do)
Seth Vidal
skvidal at fedoraproject.org
Tue Jul 21 14:44:48 UTC 2009
On Tue, 21 Jul 2009, James Antill wrote:
> ---
> yum/sqlitesack.py | 6 +-----
> 1 files changed, 1 insertions(+), 5 deletions(-)
>
> diff --git a/yum/sqlitesack.py b/yum/sqlitesack.py
> index 7f61190..e9b8112 100644
> --- a/yum/sqlitesack.py
> +++ b/yum/sqlitesack.py
> @@ -150,14 +150,10 @@ def _excluder_match(excluder, match, regexp_match, data, e,v,r,a):
> return True
>
> elif excluder == 'pkgtup.eq':
> - if 'pkgtup' not in data:
> - data['pkgtup'] = (data['n'], a, e, v, r)
> if match == data['pkgtup']:
> return True
>
> elif excluder == 'pkgtup.in':
> - if 'pkgtup' not in data:
> - data['pkgtup'] = (data['n'], a, e, v, r)
> if data['pkgtup'] in match:
> return True
>
> @@ -589,7 +585,7 @@ class YumSqlitePackageSack(yumRepo.YumPackageSack):
> self._delPackageRK(repo, pkgKey)
> return True
>
> - data = {'n' : n.lower(), 'marked' : False}
> + data = {'n' : n.lower(), 'pkgtup' : (n, a, e, v, r), 'marked' : False}
> e = e.lower()
> v = v.lower()
> r = r.lower()
looks good.
-sv
More information about the Yum-devel
mailing list