dirty dirty lies
authorAlec Warner <antarus@gentoo.org>
Tue, 16 Jan 2007 01:51:59 +0000 (01:51 -0000)
committerAlec Warner <antarus@gentoo.org>
Tue, 16 Jan 2007 01:51:59 +0000 (01:51 -0000)
svn path=/main/trunk/; revision=5665

pym/portage.py

index 501f556856daeabf953e0e58891497f657381c33..75bd6382801f15014c59d3c928e9ed22e7908bd5 100644 (file)
@@ -5547,12 +5547,11 @@ class portdbapi(dbapi):
                self.treemap = {}
                for path in self.porttrees:
                        repo_name_path = os.path.join( path, REPO_NAME_LOC )
-                       if os.path.exists( repo_name_path ):
-                               try:
-                                       repo_name = open( repo_name_path ,'r').readline().strip()
-                                       self.treemap[repo_name] = path
-                               except (OSError,IOError):
-                                       pass
+                       try:
+                               repo_name = open( repo_name_path ,'r').readline().strip()
+                               self.treemap[repo_name] = path
+                       except (OSError,IOError):
+                               pass
                
                self.auxdbmodule  = self.mysettings.load_best_module("portdbapi.auxdbmodule")
                self.auxdb        = {}