summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/news.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/portage/news.py b/pym/portage/news.py
index fe78c6d45..dd90f40d3 100644
--- a/pym/portage/news.py
+++ b/pym/portage/news.py
@@ -89,6 +89,7 @@ class NewsManager(object):
del path
path = os.path.join(self.unread_path, 'news-%s.unread' % repoid)
+ unread_lock = None
try:
unread_lock = lockfile(path)
if not os.path.exists(path):