snapcraft update if there is no cache #617

Merged
merged 5 commits into from Jun 30, 2016

Conversation

Projects
None yet
2 participants
Collaborator

sergiusens commented Jun 29, 2016

LP: #1596757

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

sergiusens added some commits Jun 29, 2016

snapcraft update if there is no cache
LP: #1596757

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

sergiusens commented Jun 30, 2016

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

Member

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)
@kyrofa

kyrofa Jun 30, 2016

Member

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

@sergiusens

sergiusens Jun 30, 2016

Collaborator

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

@kyrofa

kyrofa Jun 30, 2016

Member

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 snapcore:master Jun 30, 2016

3 of 4 checks passed

coverage/coveralls Coverage decreased (-0.001%) to 96.243%
Details
Examples tests Success
Details
autopkgtest Success
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@sergiusens sergiusens deleted the sergiusens:bugfix/1596757/update_if_no_update branch Jun 30, 2016

kalikiana pushed a commit to kalikiana/snapcraft that referenced this pull request Apr 6, 2017

snapcraft update if there is no cache (#617)
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