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

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