Merge lp:~james-w/linaro-image-tools/set-installed-packages into lp:linaro-image-tools/11.11
Proposed by
James Westby
Status: | Merged |
---|---|
Merged at revision: | 84 |
Proposed branch: | lp:~james-w/linaro-image-tools/set-installed-packages |
Merge into: | lp:linaro-image-tools/11.11 |
Prerequisite: | lp:~james-w/linaro-image-tools/extra-text-in-packages-files |
Diff against target: |
84 lines (+45/-5) 2 files modified
hwpack/packages.py (+23/-5) hwpack/tests/test_packages.py (+22/-0) |
To merge this branch: | bzr merge lp:~james-w/linaro-image-tools/set-installed-packages |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zygmunt Krynicki (community) | Approve | ||
Review via email: mp+35339@code.launchpad.net |
Description of the change
Hi,
This one relies on the internals of dpkg to some extent, but not really
any more than we already are, and I'm not sure of the last time that this
area actually changed.
What we are doing is allowing the caller to pretend that a list of packages
are installed, which will come in handy later.
We do this by writing the /var/lib/
that apt would install if we asked it to install these packages (so includes
dependencies).
Unfortunately apt has no way to do this short of actually installing the
packages, which we certainly don't want to do.
Thanks,
James
To post a comment you must log in.
Looks good.
I would also look at adding the test for reopen=False but I don't think that's really needed.