From 544eca25fd584867fea048bd0b7c7bc1d9066f61 Mon Sep 17 00:00:00 2001 From: Alec Leamas Date: Aug 19 2013 06:42:31 +0000 Subject: generic: Handle non-existing desktop files caused by symlinking. Spotted in kupfer package (fc20). i Please enter the commit message for your changes. Lines starting --- diff --git a/plugins/generic.py b/plugins/generic.py index c1e7ad5..93c4ebb 100644 --- a/plugins/generic.py +++ b/plugins/generic.py @@ -1477,6 +1477,9 @@ class CheckUpdateDesktopDatabase(GenericCheckBase): path = os.path.join(rpm_dirs[0], fname[1:]) if os.path.isdir(path): return False + elif not os.path.exists(path): + self.log.warning("Can't access desktop file: " + path) + return False with open(path) as f: for line in f.readlines(): if line.strip().lower().startswith('mimetype'):