summaryrefslogtreecommitdiff
path: root/morphlib
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2015-03-31 10:09:57 +0000
committerMorph (on behalf of Adam Coldrick) <adam.coldrick@codethink.co.uk>2015-03-31 10:09:57 +0000
commitf9577b1a1d984249e6482d2f5dc5414ab69cc43e (patch)
tree9f9d6b5f02fc9005fede507da8e27d39562a6caf /morphlib
parent4818fe16f63cc06d7f88b5be7c538febab9c8618 (diff)
downloadmorph-f9577b1a1d984249e6482d2f5dc5414ab69cc43e.tar.gz
Morph build 6a98145cfff14b62b9dc571f954e0839
System branch: master
Diffstat (limited to 'morphlib')
-rw-r--r--morphlib/ostreeartifactcache.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/morphlib/ostreeartifactcache.py b/morphlib/ostreeartifactcache.py
index a1f232e5..307f6f50 100644
--- a/morphlib/ostreeartifactcache.py
+++ b/morphlib/ostreeartifactcache.py
@@ -176,13 +176,10 @@ class OSTreeArtifactCache(object):
cachekey, kind, name = artifact.basename().split('.', 2)
logging.debug('OSTreeArtifactCache: got %s, %s, %s' %
(cachekey, kind, name))
- try:
- sha = self.repo.resolve_rev(self._get_artifact_cache_name(artifact))
- print sha
+ sha = self.repo.resolve_rev(self._get_artifact_cache_name(artifact))
+ if sha:
self.repo.touch_ref(self._get_artifact_cache_name(artifact))
return True
- except GLib.GError as e:
- logging.debug('Artifact %s is not in OSTree repo' % name)
if kind == 'stratum' and \
self._has_file(self.artifact_filename(artifact)):
return True