aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Bacherikov <slava@bacher09.org>2012-08-11 18:07:59 +0300
committerSlava Bacherikov <slava@bacher09.org>2012-08-11 18:07:59 +0300
commit3dd9acc0be41ef8c59534806fe715357733c0bef (patch)
tree5d1446595ef98d4d648924e19cd5c2a138a5de39
parentChanges in pkgcore backend (diff)
downloadgentoo-packages-3dd9acc0be41ef8c59534806fe715357733c0bef.tar.gz
gentoo-packages-3dd9acc0be41ef8c59534806fe715357733c0bef.tar.bz2
gentoo-packages-3dd9acc0be41ef8c59534806fe715357733c0bef.zip
Fix managers
-rw-r--r--gpackages/apps/packages/managers.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/gpackages/apps/packages/managers.py b/gpackages/apps/packages/managers.py
index 8e00278..0d82615 100644
--- a/gpackages/apps/packages/managers.py
+++ b/gpackages/apps/packages/managers.py
@@ -88,6 +88,8 @@ class PackageMixin(object):
args[1] = category
else:
kwargs.update({'name': name})
+ if 'repository' not in kwargs:
+ kwargs['repository__name'] = package.category.porttree_name
elif package is not None:
# Bad code !!
category, name = package.split('/')
@@ -147,8 +149,9 @@ class EbuildMixin(object):
if ebuild is not None and isinstance(ebuild, AbstractEbuild):
if package is None:
kwargs.update({
- 'package__category__category': ebuild.package.category,
- 'package__name': ebuild.package.name })
+ 'package__virtual_package__category__category': ebuild.package.category,
+ 'package__virtual_package__name': ebuild.package.name,
+ 'package__repository__name' : ebuild.package.category.porttree_name})
else:
kwargs.update({'package': package})
kwargs.update({ 'version': ebuild.version,