Merge lp:~smoser/curtin/trunk.snap-curtin-helpers into lp:~curtin-dev/curtin/trunk
Proposed by
Scott Moser
Status: | Merged |
---|---|
Merged at revision: | 551 |
Proposed branch: | lp:~smoser/curtin/trunk.snap-curtin-helpers |
Merge into: | lp:~curtin-dev/curtin/trunk |
Diff against target: |
62 lines (+26/-8) 1 file modified
curtin/util.py (+26/-8) |
To merge this branch: | bzr merge lp:~smoser/curtin/trunk.snap-curtin-helpers |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ryan Harper (community) | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Review via email: mp+334852@code.launchpad.net |
Commit message
pack: fix packing when curtin is installed inside a snap.
When curtin is installed as part of a MAAS snap, then it would fail
to find its helpers directory. That is because instead of helpers
living in usr/lib/
/snap/
But helpfully, SNAP will be set in the environment to point to
/snap/
The fix is to adjust pack to consider trust the environment variable
and pack up the installed files based on that prefix.
To post a comment you must log in.
Looks reasonable, question on 'is None' vs if not foo.