From: Zac Medico Date: Sat, 16 Dec 2006 09:59:47 +0000 (-0000) Subject: Fix global updates error handling to prevent a traceback with python-2.5 as reported... X-Git-Tag: v2.1.2~289 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=11805e737eab64804ea5ccf9aa6a9c5684664fec;p=portage.git Fix global updates error handling to prevent a traceback with python-2.5 as reported in bug #158264. svn path=/main/trunk/; revision=5303 --- 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...)