cmd/snap: install *.snap and *.snap.* as files too #908

Merged
merged 2 commits into from Apr 13, 2016

Conversation

Projects
None yet
4 participants
Contributor

niemeyer commented Apr 12, 2016

No description provided.

niemeyer added some commits Apr 12, 2016

Contributor

niemeyer commented Apr 12, 2016

retest this please

- if strings.Contains(x.Positional.Snap, "/") {
- uuid, err = cli.InstallSnapFile(x.Positional.Snap)
+ name := x.Positional.Snap
+ if strings.Contains(name, "/") || strings.HasSuffix(name, ".snap") || strings.Contains(name, ".snap.") {
@zyga

zyga Apr 12, 2016

Contributor

What is the third one for? (*.snap.*)

@niemeyer

niemeyer Apr 12, 2016

Contributor

Common ending for repeated browser downloads and the such (foo.snap.1, etc). Cannot be ambiguous with a real snap name, due to the two dots.

@chipaca

chipaca Apr 13, 2016

Member

@niemeyer note chrome adds (n) to the filename, e.g. http.chipaca_4.66920_all (1).snap

Contributor

zyga commented Apr 12, 2016

+1, just one question

Collaborator

mvo5 commented Apr 13, 2016

retest this please

Collaborator

mvo5 commented Apr 13, 2016

👍

Collaborator

mvo5 commented Apr 13, 2016

retest this please

@mvo5 mvo5 merged commit ed1ce38 into snapcore:master Apr 13, 2016

4 checks passed

Integration tests Success
Details
autopkgtest Success
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage decreased (-0.02%) to 76.417%
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment