[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. eda668423fa87898c59d1075118693714aa5a053
Andreas Beckmann
debian at abeckmann.de
Fri Dec 23 10:27:29 UTC 2011
The following commit has been merged in the master branch:
commit e474f5d4f627237e7c3507f9c65240e905adfded
Author: Andreas Beckmann <debian at abeckmann.de>
Date: Sun Nov 27 21:38:43 2011 +0100
add has_package(name) method to PackagesDB
e.g. for checking for obsolete logfiles
Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
diff --git a/piupartslib/packagesdb.py b/piupartslib/packagesdb.py
index 28337dc..54bb6d6 100644
--- a/piupartslib/packagesdb.py
+++ b/piupartslib/packagesdb.py
@@ -464,10 +464,13 @@ class PackagesDB:
def get_pkg_names_in_state(self, state):
self._compute_package_states()
return set(self._in_state[state])
-
+
+ def has_package(self, name):
+ return name in self._packages
+
def get_package(self, name):
return self._packages[name]
-
+
def get_all_packages(self):
self._find_all_packages()
return self._packages
--
piuparts git repository
More information about the Piuparts-commits
mailing list