From 5c49ff5f3af63d0188c14b449fb7c050a1dd1988 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 4 Aug 2006 23:04:52 +0000 Subject: Ignore hidden files or directories in the vardbapi.cpv_all() listing. svn path=/main/trunk/; revision=4153 --- pym/portage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pym/portage.py b/pym/portage.py index 03b761abf..9d5b25cf7 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -4141,6 +4141,8 @@ class vardbapi(dbapi): for x in self.categories: for y in listdir(basepath+x,EmptyOnError=1): + if y.startswith("."): + continue subpath = x+"/"+y # -MERGING- should never be a cpv, nor should files. if os.path.isdir(basepath+subpath) and (pkgsplit(y) is not None): -- cgit v1.2.3-1-g7c22