From 11805e737eab64804ea5ccf9aa6a9c5684664fec Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 16 Dec 2006 09:59:47 +0000 Subject: [PATCH] Fix global updates error handling to prevent a traceback with python-2.5 as reported in bug #158264. svn path=/main/trunk/; revision=5303 --- pym/portage_update.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pym/portage_update.py b/pym/portage_update.py index 57aa8b43b..f156c39bc 100644 --- a/pym/portage_update.py +++ b/pym/portage_update.py @@ -71,9 +71,8 @@ def grab_updates(updpath, prev_mtimes=None): mylist = os.listdir(updpath) except OSError, oe: if oe.errno == errno.ENOENT: - raise DirectoryNotFound(oe) - else: - raise oe + raise DirectoryNotFound(updpath) + raise if prev_mtimes is None: prev_mtimes = {} # validate the file name (filter out CVS directory, etc...) -- 2.26.2