Add back a line which I erroneously removed when committing the patch for
authorZac Medico <zmedico@gentoo.org>
Sun, 20 Sep 2009 18:13:06 +0000 (18:13 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 20 Sep 2009 18:13:06 +0000 (18:13 -0000)
bug 203733. Thanks to Alexis Ballier <aballier@g.o> for reporting the related
KeyError.

svn path=/main/trunk/; revision=14297

pym/portage/cvstree.py

index 1ecffa493486aecc4aedc8f4c8c1b6b53252a321..0dd8f10bc644e2e976e273e3eae17d1b2c43fecd 100644 (file)
@@ -254,6 +254,7 @@ def getentries(mydir,recursive=0):
                        print(mydir,file)
                if os.path.isdir(mydir+"/"+file):
                        if file not in entries["dirs"]:
+                               entries["dirs"][file]={"dirs":{},"files":{}}
                                # It's normal for a directory to be unlisted in Entries
                                # when checked out without -P (see bug #257660).
                                rentries=getentries(mydir+"/"+file,recursive)