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

snapcraft update if there is no cache #617

Merged

Conversation

sergiusens
Copy link
Collaborator

LP: #1596757

Signed-off-by: Sergio Schvezov sergio.schvezov@ubuntu.com

@sergiusens
Copy link
Collaborator Author

Heh, coverage decreased as I removed a bunch of test code that is not needed with this change

@kyrofa
Copy link
Contributor

kyrofa commented Jun 30, 2016

Haha, good defense ;) . This looks good! 👍

update()

with open(self.parts_yaml) as parts_file:
self._parts = yaml.load(parts_file)
Copy link
Contributor

Choose a reason for hiding this comment

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

Question here: will this simply result in a "file not found" error if the part_yaml still isn't here after the update?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

How many ifs do you want :-P The previous statement makes it available (update). If that fails an exception will be raised already ;-)

Copy link
Contributor

Choose a reason for hiding this comment

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

Haha, I'm just trying to consider what happens in the case of a typo. File not found, or is that caught elsewhere?

@sergiusens sergiusens merged commit 9ae9f01 into canonical:master Jun 30, 2016
@sergiusens sergiusens deleted the bugfix/1596757/update_if_no_update branch June 30, 2016 15:41
kalikiana pushed a commit to kalikiana/snapcraft that referenced this pull request Apr 6, 2017
LP: #1596757

Signed-off-by: Sergio Schvezov <sergio.schvezov@ubuntu.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants