diff options
Diffstat (limited to 'morphlib')
-rw-r--r-- | morphlib/ostreeartifactcache.py | 7 |
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 |