summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage_news.py')
-rw-r--r--pym/portage_news.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage_news.py b/pym/portage_news.py
index 736ce3fd..7624bed2 100644
--- a/pym/portage_news.py
+++ b/pym/portage_news.py
@@ -60,6 +60,10 @@ class NewsManager(object):
timestamp = 0
path = os.path.join( self.portdb.getRepositoryPath( repoid ), self.NEWS_PATH )
+ # Skip reading news for repoid if the news dir does not exist. Requested by
+ # NightMorph :)
+ if not os.path.exists( path ):
+ return None
news = os.listdir( path )
updates = []
for item in news: