aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2015-02-24 22:31:22 -0800
committerZac Medico <zmedico@gentoo.org>2015-02-25 00:33:22 -0800
commit0b453300f4da44a8a32e05f6d75da18847806739 (patch)
tree42c7c55da639c07a645a8828407d7e734827f774
parentuse_reduce: support non-string token_class (bug 541198) (diff)
downloadportage-0b453300f4da44a8a32e05f6d75da18847806739.tar.gz
portage-0b453300f4da44a8a32e05f6d75da18847806739.tar.bz2
portage-0b453300f4da44a8a32e05f6d75da18847806739.zip
actions.py: fix missing localization import (bug 541302)
Since commit 206efe5f6341bce99a5e9994a0458c304513b2c3, FEATURES=buildpkg triggers a NameError due to a missing localization import. Fix the NameError, and also allow read-only PKGDIR if the --usepkgonly option is enabled. Fixes: 206efe5f6341 ("emerge: check for writable PKGDIR (490732)") X-Gentoo-Bug: 541302 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=541302 Acked-by: Brian Dolbec <dolsen@gentoo.org>
-rw-r--r--pym/_emerge/actions.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index fa4fe19a4..b667537fd 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -63,6 +63,7 @@ from portage.util._async.SchedulerInterface import SchedulerInterface
from portage.util._eventloop.global_event_loop import global_event_loop
from portage._global_updates import _global_updates
from portage.sync.old_tree_timestamp import old_tree_timestamp_warn
+from portage.localization import _
from portage.metadata import action_metadata
from _emerge.clear_caches import clear_caches
@@ -433,7 +434,8 @@ def action_build(settings, trees, mtimedb,
_opts_no_self_update.intersection(myopts)
need_write_bindb = not any(x in myopts for x in
- ("--fetchonly", "--fetch-all-uri", "--pretend")) and \
+ ("--fetchonly", "--fetch-all-uri",
+ "--pretend", "--usepkgonly")) and \
(any("buildpkg" in trees[eroot]["root_config"].
settings.features for eroot in trees) or
any("buildsyspkg" in trees[eroot]["root_config"].