Blob Blame Raw
From ec20077b4a1ddc3fbd7c3d91c10712f15e312777 Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Fri, 13 May 2016 13:31:35 +0200
Subject: [PATCH] a-a-install-debuginfo: do not try to split None

Bug introduced in commit bb653b71a9261c0b58a9256761bf034b24c2e1ad

Related #1135

Signed-off-by: Jakub Filak <jfilak@redhat.com>
---
 src/plugins/abrt-action-install-debuginfo.in | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/plugins/abrt-action-install-debuginfo.in b/src/plugins/abrt-action-install-debuginfo.in
index ad7a8d3..a3ef3da 100644
--- a/src/plugins/abrt-action-install-debuginfo.in
+++ b/src/plugins/abrt-action-install-debuginfo.in
@@ -152,15 +152,14 @@ if __name__ == "__main__":
     set_verbosity(verbose)
 
     if not cachedirs:
+        cachedirs = ["/var/cache/abrt-di"]
         try:
             conf = problem.load_plugin_conf_file("CCpp.conf")
         except OSError as ex:
             print(ex)
         else:
-            cachedirs = conf.get("DebuginfoLocation", None).split(":")
+            cachedirs = conf.get("DebuginfoLocation", cachedirs[0]).split(":")
 
-        if not cachedirs:
-            cachedirs = ["/var/cache/abrt-di"]
     if not TMPDIR:
         # security people prefer temp subdirs in app's private dir, like /var/run/abrt
         # and we switched to /tmp but Fedora feature tmp-on-tmpfs appeared, hence we must
-- 
2.7.4