Fix global updates error handling to prevent a traceback with python-2.5 as reported...
authorZac Medico <zmedico@gentoo.org>
Sat, 16 Dec 2006 09:59:47 +0000 (09:59 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 16 Dec 2006 09:59:47 +0000 (09:59 -0000)
svn path=/main/trunk/; revision=5303

pym/portage_update.py

index 57aa8b43bc943b121b734a246ccd346dae04c9ac..f156c39bccc1996392960b0362e2b1ab8b282943 100644 (file)
@@ -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...)