Blame SOURCES/BZ-1147992-debuginfo-install-dolock-exception.patch

d2a170
commit 221d46dde594ca9b69915ac128fc1a9a19f984a1
d2a170
Author: Valentina Mukhamedzhanova <vmukhame@redhat.com>
d2a170
Date:   Mon Feb 17 12:31:59 2014 +0100
d2a170
d2a170
    Fix debuginfo-install doLock() traceback. BZ 1062479
d2a170
d2a170
diff --git a/yum/__init__.py b/yum/__init__.py
d2a170
index 3b6ed82..37ab468 100644
d2a170
--- a/yum/__init__.py
d2a170
+++ b/yum/__init__.py
d2a170
@@ -2165,6 +2165,7 @@ much more problems).
d2a170
                 self._unlock(lockfile)
d2a170
                 continue
d2a170
             if oldpid == os.getpid(): # if we own the lock, we're fine
d2a170
+                ret = 1
d2a170
                 break
d2a170
             # Another copy seems to be running.
d2a170
             msg = _('Existing lock %s: another copy is running as pid %s.') % (lockfile, oldpid)