Signed-off-by: Aaron Bauman <b...@gentoo.org> --- lib/portage/locks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/portage/locks.py b/lib/portage/locks.py index a0981712e..5fa6d5d38 100644 --- a/lib/portage/locks.py +++ b/lib/portage/locks.py @@ -444,7 +444,7 @@ def unlockfile(mytuple): if(myfd == HARDLINK_FD): unhardlink_lockfile(lockfilename, unlinkfile=unlinkfile) return True - + # myfd may be None here due to myfd = mypath in lockfile() if isinstance(lockfilename, str) and \ not os.path.exists(lockfilename): @@ -672,7 +672,7 @@ def hardlock_cleanup(path, remove_all_locks=False): hostpid = parts[1].split("-") host = "-".join(hostpid[:-1]) pid = hostpid[-1] - + if filename not in mylist: mylist[filename] = {} if host not in mylist[filename]: @@ -683,7 +683,7 @@ def hardlock_cleanup(path, remove_all_locks=False): results.append(_("Found %(count)s locks") % {"count": mycount}) - + for x in mylist: if myhost in mylist[x] or remove_all_locks: mylockname = hardlock_name(path + "/" + x) -- 2.28.0