Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snap: store media in the proper directory #695

Closed
wants to merge 1 commit into from
Closed

Conversation

elegaanz
Copy link
Member

Didn't tested it, but it should be ok, if I understand how Snap works.

@elegaanz elegaanz added C: Enhancement New feature or request S: Ready for review This PR is ready to be reviewed A: Meta More about project management or code than the project itself labels Nov 15, 2019
@elegaanz elegaanz requested a review from RAOF November 15, 2019 16:59
@codecov
Copy link

codecov bot commented Nov 15, 2019

Codecov Report

Merging #695 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #695   +/-   ##
=======================================
  Coverage   39.25%   39.25%           
=======================================
  Files          72       72           
  Lines        9498     9498           
  Branches     2265     2265           
=======================================
  Hits         3728     3728           
  Misses       4713     4713           
  Partials     1057     1057

@RAOF
Copy link
Contributor

RAOF commented Nov 16, 2019

Oh, damn. I didn't push this yet!

Copy link
Contributor

@RAOF RAOF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs at least mdkir -> mkdir fixed, but we probably want #698 instead?

@@ -45,4 +45,6 @@ then
touch ${SNAP_COMMON}/initial-migrations-run
fi

mdkir "${SNAP_DATA}/media"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The configure hook gets run each time the snap is upgraded; the name might be a bit misleading. This would fail the first time the snap is upgraded, as mkdir will fail to create an existing directory.

It's also slightly misspelled 😉

@elegaanz
Copy link
Member Author

Closing in favor of #698

@elegaanz elegaanz closed this Nov 16, 2019
@elegaanz elegaanz deleted the snap-media-dir branch November 16, 2019 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: Meta More about project management or code than the project itself C: Enhancement New feature or request S: Ready for review This PR is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants