aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/portage/_emirrordist/FetchTask.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/portage/_emirrordist/FetchTask.py b/lib/portage/_emirrordist/FetchTask.py
index 41f96b962..997762082 100644
--- a/lib/portage/_emirrordist/FetchTask.py
+++ b/lib/portage/_emirrordist/FetchTask.py
@@ -44,7 +44,8 @@ class FetchTask(CompositeTask):
if self.config.distfiles_db is not None and \
self.distfile not in self.config.distfiles_db:
self._previously_added = False
- self.config.distfiles_db[self.distfile] = self.cpv
+ # Convert _pkg_str to str in order to prevent pickle problems.
+ self.config.distfiles_db[self.distfile] = str(self.cpv)
if not self._have_needed_digests():
msg = "incomplete digests: %s" % " ".join(self.digests)