license does not work in the snap installation.

Bug #1606283 reported by XiaoGuo, Liu
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Won't Fix
Undecided
Unassigned
snapd
Triaged
High
Unassigned

Bug Description

I tried the license example code at:

https://github.com/snapcore/snapcraft/tree/master/integration_tests/snaps/license

When I build the example code, I get the warning like:

liuxg@liuxg:~/snappy/desktop/snapcraft/integration_tests/snaps/license$ snapcraft
Preparing to pull nothing
Pulling nothing
Preparing to build nothing
Building nothing
Staging nothing
Priming nothing
DEPRECATED: 'license' defined in snapcraft.yaml
Snapping 'test-license' |
Snapped test-license_0.1_amd64.snap
liuxg@liuxg:~/snappy/desktop/snapcraft/integration_tests/snaps/license$ ls
LICENSE parts prime snapcraft.yaml stage test-license_0.1_amd64.snap
liuxg@liuxg:~/snappy/desktop/snapcraft/integration_tests/snaps/license$ sudo snap install *.snap
[sudo] password for liuxg:

Name Version Rev Developer Notes
test-license 0.1 x1

When I try to install it, the license file does not get prompted for acceptation. When I build it for the second time, I get the error like:

liuxg@liuxg:~/snappy/desktop/snapcraft/integration_tests/snaps/license$ snapcraft
Skipping pull nothing (already ran)
Skipping build nothing (already ran)
Skipping stage nothing (already ran)
Skipping prime nothing (already ran)
DEPRECATED: 'license' defined in snapcraft.yaml
[Errno 17] File exists: 'LICENSE' -> '/home/liuxg/snappy/desktop/snapcraft/integration_tests/snaps/license/prime/meta/license.txt'

Thanks & best regards,
XiaoGuo

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Given LP: #1638303 I will mark this as Won't Fix

Changed in snapcraft:
status: New → Won't Fix
Michael Vogt (mvo)
Changed in snappy:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Isn't this being replaced by the more general ToS?

Michael Vogt (mvo)
affects: snappy → snapd
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.