diff options
author | Michael Hudson <michael.hudson@linaro.org> | 2010-12-09 12:03:26 +1300 |
---|---|---|
committer | Michael Hudson <michael.hudson@linaro.org> | 2010-12-09 12:03:26 +1300 |
commit | 05ac98243ae8a950eab03c7ffbb6117e95abb8c5 (patch) | |
tree | 906cadbee9f34b635cec5df7db70d62c040a6a1a /hwpack | |
parent | 5f66c80bb82b0db10775f5e6c372648179e8a4fa (diff) |
add a docstring
Diffstat (limited to 'hwpack')
-rw-r--r-- | hwpack/hardwarepack.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hwpack/hardwarepack.py b/hwpack/hardwarepack.py index a68e586..67519f3 100644 --- a/hwpack/hardwarepack.py +++ b/hwpack/hardwarepack.py @@ -164,6 +164,14 @@ class HardwarePack(object): self.packages += packages def add_dependency_package(self, packages_spec): + """Add a packge that depends on packages_spec to the hardware pack. + + The added package will share the name, version and architecture of the + hardware pack itself. + + :param packages_spec: A list of apt package specifications, + e.g. ``['foo', 'bar (>= 1.2)']``. + """ with PackageMaker() as maker: if packages_spec: relationships = {'Depends': ', '.join(packages_spec)} |