snapcraft does not handle framework-policy
Bug #1501037 reported by
Jamie Strandboge
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Critical
|
Sergio Schvezov | ||
0.2 |
Fix Committed
|
Critical
|
Sergio Schvezov |
Bug Description
Framework snaps that use snapcraft have no way to copy framework-policy in place. framework-policy is not expressed in the yaml and is instead a directory under meta/ that contains various framework policy.
What would work well is if the toplevel dir for framework-policy could be expressed in the snapcraft.yaml so that it could be copied into snap/meta/
Related branches
lp://staging/~sergiusens/snapcraft/1501037
- Michael Vogt (community): Approve
-
Diff: 93 lines (+40/-3)4 files modifiedintegration-tests/data/framework-policy/snapcraft.yaml (+14/-0)
integration-tests/units/jobs.pxu (+11/-0)
schema/snapcraft.yaml (+4/-0)
snapcraft/meta.py (+11/-3)
lp://staging/~sergiusens/snapcraft/0.2-framework-policies
- Sergio Schvezov: Approve
- Michael Vogt (community): Approve
-
Diff: 93 lines (+40/-3)4 files modifiedintegration-tests/data/framework-policy/snapcraft.yaml (+14/-0)
integration-tests/units/jobs.pxu (+11/-0)
schema/snapcraft.yaml (+4/-0)
snapcraft/meta.py (+11/-3)
- Snappy Developers: Pending requested
-
Diff: 26 lines (+10/-0) (has conflicts)1 file modifieddebian/changelog (+10/-0)
Changed in snapcraft: | |
assignee: | nobody → Sergio Schvezov (sergiusens) |
Changed in snapcraft: | |
milestone: | none → 0.3 |
importance: | Undecided → Critical |
Changed in snapcraft: | |
status: | New → Fix Committed |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I tested tools-proposed and this seems to work well:
1. put framework-policy directory and files in ./security
2. adjust snapcraft.yaml to have: framework- policy
name: wget
version: 0.1
...
framework-policy: security/
parts:
...
3. run snapcraft
Now, snap/meta/ framework- policy has everything that is in ./security/ framework- policy
Thanks!