From ff461f467686a80db07d914e6b9aca94b4a16d50 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sat, 23 Nov 2013 20:24:22 +0100 Subject: [PATCH] [entropy.client.package] add _PackageFetchAction.package_path() for PackageKit --- lib/entropy/client/interfaces/package/actions/fetch.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/entropy/client/interfaces/package/actions/fetch.py b/lib/entropy/client/interfaces/package/actions/fetch.py index ec1a414e4..11f9722bb 100644 --- a/lib/entropy/client/interfaces/package/actions/fetch.py +++ b/lib/entropy/client/interfaces/package/actions/fetch.py @@ -60,6 +60,15 @@ class _PackageFetchAction(PackageAction): """ return self._meta + def package_path(self): + """ + Return the path to the download package file. + Please note that the path returned is only related to the main + package tarball file, extra-downloads and debug packages are ignored. + This method is mainly for PackageKit consumption. + """ + return self._meta['pkgpath'] + def setup(self): """ Setup the PackageAction.