summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/EbuildFetchonly.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/_emerge/EbuildFetchonly.py')
-rw-r--r--pym/_emerge/EbuildFetchonly.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/_emerge/EbuildFetchonly.py b/pym/_emerge/EbuildFetchonly.py
index 1a8eb6e8d..82e11065a 100644
--- a/pym/_emerge/EbuildFetchonly.py
+++ b/pym/_emerge/EbuildFetchonly.py
@@ -24,9 +24,8 @@ class EbuildFetchonly(SlotObject):
ebuild_path = portdb.findname(pkg.cpv)
settings.setcpv(pkg)
debug = settings.get("PORTAGE_DEBUG") == "1"
- restrict_fetch = 'fetch' in settings['PORTAGE_RESTRICT'].split()
- if restrict_fetch:
+ if 'fetch' in pkg.metadata.restrict:
rval = self._execute_with_builddir()
else:
rval = portage.doebuild(ebuild_path, "fetch",