[Piuparts-commits] [piuparts] 01/01: lib/db: PackagesDB: add get_version(package_name) method
Holger Levsen
holger at moszumanska.debian.org
Fri Feb 14 20:33:21 UTC 2014
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit 5dcea963c895bbcbaaa4e35b75e35fd2ed35dfe0
Author: Andreas Beckmann <anbe at debian.org>
Date: Fri Feb 14 19:48:51 2014 +0100
lib/db: PackagesDB: add get_version(package_name) method
Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
piupartslib/packagesdb.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/piupartslib/packagesdb.py b/piupartslib/packagesdb.py
index 7861bbc..25159be 100644
--- a/piupartslib/packagesdb.py
+++ b/piupartslib/packagesdb.py
@@ -611,6 +611,11 @@ class PackagesDB:
return self.get_package(providers[0], recurse=recurse, resolve_virtual=False)
return None
+ def get_version(self, name):
+ if name in self._packages:
+ return self._packages[name]["Version"]
+ return None
+
def get_providers(self, name, recurse=True):
self._find_all_packages()
providers = []
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git
More information about the Piuparts-commits
mailing list