summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2016-05-10 22:40:55 -0400
committerTim Harder <radhermit@gmail.com>2016-05-10 22:40:55 -0400
commita3507867c4cf1ef17f1a2df0406d9fe0af22d5cf (patch)
tree3674e47f08884268dd2f4922de96a1f7cc3ab227
parentpmaint digest: minor doc grammar fixes (diff)
downloadpkgcore-a3507867c4cf1ef17f1a2df0406d9fe0af22d5cf.tar.gz
pkgcore-a3507867c4cf1ef17f1a2df0406d9fe0af22d5cf.tar.bz2
pkgcore-a3507867c4cf1ef17f1a2df0406d9fe0af22d5cf.zip
operations/format: fix fetching for pmerge
Make the fetch operation either handle specific fetchables or all of them depending on if a fetchable is passed as a param.
-rw-r--r--pkgcore/operations/format.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgcore/operations/format.py b/pkgcore/operations/format.py
index 25b211a8a..df9d54681 100644
--- a/pkgcore/operations/format.py
+++ b/pkgcore/operations/format.py
@@ -124,8 +124,10 @@ class operations(_operations_mod.base):
self._find_fetcher())
@_operations_mod.is_standalone
- def _cmd_api_fetch(self, fetchable, observer=None):
- return self._fetch_op.fetch_one(fetchable, self._get_observer(observer))
+ def _cmd_api_fetch(self, fetchable=None, observer=None):
+ if fetchable is not None:
+ return self._fetch_op.fetch_one(fetchable, self._get_observer(observer))
+ return self._fetch_op.fetch_all(self._get_observer(observer))
@_operations_mod.is_standalone
def _cmd_api_mirror(self, observer=None):