From: Zac Medico Date: Fri, 4 Aug 2006 23:04:52 +0000 (-0000) Subject: Ignore hidden files or directories in the vardbapi.cpv_all() listing. X-Git-Tag: v2.1.1~99 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5c49ff5f3af63d0188c14b449fb7c050a1dd1988;p=portage.git Ignore hidden files or directories in the vardbapi.cpv_all() listing. svn path=/main/trunk/; revision=4153 --- 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):