From c355b5c7029a7e3411b2a94b93fd704942861cd7 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: May 21 2019 16:14:33 +0000 Subject: only call get_info() if we're going to need it --- diff --git a/util/kojira b/util/kojira index 7761d89..248a252 100755 --- a/util/kojira +++ b/util/kojira @@ -171,7 +171,6 @@ class ManagedRepo(object): if not path: # get_path already warned return False - info = self.get_info() if self.dist: lifetime = self.options.dist_repo_lifetime else: @@ -208,6 +207,7 @@ class ManagedRepo(object): self.state = koji.REPO_DELETED if os.path.islink(path): # expected for repos on other volumes + info = self.get_info() if not os.path.exists(path): self.logger.error('Repo volume link broken: %s', path) return False