[Yum-devel] [PATCH] Have pkgtup not be low in excluder, so we can use pkg.pkgtup (as we do)

Tim Lauridsen tim.lauridsen at googlemail.com
Thu Jul 23 12:15:50 UTC 2009


On 07/21/2009 04:19 PM, 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()
>    
Sending patches to the list is a good idea, but patch without commit 
messages, can be really hard to what the purpose for the patch is.

Tim


More information about the Yum-devel mailing list