Blame SOURCES/0001-If-OSTree-is-not-installed-atomic-images-is-blowing-.patch

2aec97
From 7f8d7d56a61e4fb70f2392594adad9b3be095fee Mon Sep 17 00:00:00 2001
2aec97
From: Dan Walsh <dwalsh@redhat.com>
2aec97
Date: Wed, 15 Jun 2016 12:57:09 -0400
2aec97
Subject: [PATCH 1/2] If OSTree is not installed, atomic images is blowing up
2aec97
2aec97
This fix will check if OSTREE_PRESENT, and return None so
2aec97
that OSTree will not get called.  Will not do any of the system containers
2aec97
checks.
2aec97
2aec97
Closes: #424
2aec97
Approved by: cgwalters
2aec97
---
2aec97
 Atomic/atomic.py | 3 +++
2aec97
 1 file changed, 3 insertions(+)
2aec97
2aec97
diff --git a/Atomic/atomic.py b/Atomic/atomic.py
2aec97
index f583943..1049097 100644
2aec97
--- a/Atomic/atomic.py
2aec97
+++ b/Atomic/atomic.py
2aec97
@@ -1297,6 +1297,9 @@ class Atomic(object):
2aec97
             "/var/lib/containers/atomic"
2aec97
2aec97
     def _get_ostree_repo(self):
2aec97
+        if not OSTREE_PRESENT:
2aec97
+            return None
2aec97
+
2aec97
         repo_location = os.environ.get("ATOMIC_OSTREE_REPO") or \
2aec97
                         self.get_atomic_config_item(["ostree_repository"]) or \
2aec97
                         "/ostree/repo"
2aec97
-- 
2aec97
1.8.3.1
2aec97