[Piuparts-commits] [SCM] piuparts git repository branch, piatti, updated. 0.44-598-gace668e
Andreas Beckmann
debian at abeckmann.de
Sun May 27 13:47:20 UTC 2012
The following commit has been merged in the piatti branch:
commit d10421ed33286817bcde0e7300df19fd15356875
Author: Andreas Beckmann <debian at abeckmann.de>
Date: Thu Jan 12 21:07:12 2012 +0100
Package.all_dependencies(): add optional header_name argument
preparation for replacing depends_with_alts() with all_dependencies()
Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
diff --git a/piupartslib/packagesdb.py b/piupartslib/packagesdb.py
index d19cd80..0d761c6 100644
--- a/piupartslib/packagesdb.py
+++ b/piupartslib/packagesdb.py
@@ -87,9 +87,12 @@ class Package(UserDict.UserDict):
return vlist
# all alternatives - [[package_name...]...]
- def all_dependencies(self):
+ def all_dependencies(self, header_name=None):
+ headers = ["Depends", "Pre-Depends"]
+ if header_name is not None:
+ headers = [header_name]
vlist = []
- for header in ["Depends", "Pre-Depends"]:
+ for header in headers:
if header in self:
vlist += self._parse_alternative_dependencies(header)
return vlist
--
piuparts git repository
More information about the Piuparts-commits
mailing list