diff options
author | Alec Warner <antarus@gentoo.org> | 2007-01-16 01:51:59 +0000 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2007-01-16 01:51:59 +0000 |
commit | e5609f2c7c53a261c65d79371eab43537420385d (patch) | |
tree | 712e664c6334d8ac4169e6fab835c63b8a951335 | |
parent | 07e105a16da3e03362d383c574f9b5c5654c4f8e (diff) | |
download | portage-e5609f2c7c53a261c65d79371eab43537420385d.tar.gz portage-e5609f2c7c53a261c65d79371eab43537420385d.tar.bz2 portage-e5609f2c7c53a261c65d79371eab43537420385d.zip |
dirty dirty lies
svn path=/main/trunk/; revision=5665
-rw-r--r-- | pym/portage.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/pym/portage.py b/pym/portage.py index 501f55685..75bd63828 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -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 = {} |