hardlink_is_mine: return False, never None
authorZac Medico <zmedico@gentoo.org>
Wed, 14 Dec 2011 05:26:17 +0000 (21:26 -0800)
committerZac Medico <zmedico@gentoo.org>
Wed, 14 Dec 2011 05:26:17 +0000 (21:26 -0800)
pym/portage/locks.py

index cab0fa3b57f59f0b342f7964564440d9e62440d8..980c1c7622e57cd287c506e96a59c7ffd1c968cc 100644 (file)
@@ -285,7 +285,8 @@ def hardlink_is_mine(link,lock):
                        return lock_st.st_ino == link_st.st_ino and \
                                lock_st.st_dev == link_st.st_dev
        except OSError:
-               return False
+               pass
+       return False
 
 def hardlink_lockfile(lockfilename, max_wait=DeprecationWarning,
        waiting_msg=None, flags=0):