From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QP6Eb-0006V5-FT for garchives@archives.gentoo.org; Wed, 25 May 2011 05:02:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9E7EE1C093; Wed, 25 May 2011 05:02:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 6BC591C095 for ; Wed, 25 May 2011 05:02:09 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F141E1B400B for ; Wed, 25 May 2011 05:02:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 5E0E780505 for ; Wed, 25 May 2011 05:02:08 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <8f93d096a3838caf64f955bba6962b6ad0ff27fe.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/dbapi/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/dbapi/vartree.py X-VCS-Directories: pym/portage/dbapi/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 8f93d096a3838caf64f955bba6962b6ad0ff27fe Date: Wed, 25 May 2011 05:02:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 7c4d7bd7c12d4873a29ec1bb9d414188 commit: 8f93d096a3838caf64f955bba6962b6ad0ff27fe Author: Zac Medico gentoo org> AuthorDate: Wed May 25 05:01:35 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Wed May 25 05:01:35 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D8f93d096 dblink: use config._init_dirs() when necessary --- pym/portage/dbapi/vartree.py | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 0079e4f..159871b 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -3723,9 +3723,13 @@ class dblink(object): # write out our collection of md5sums if cfgfiledict !=3D cfgfiledict_orig: cfgfiledict.pop("IGNORE", None) - ensure_dirs(os.path.dirname(self.vartree.dbapi._conf_mem_file), - gid=3Dportage_gid, mode=3D0o2750, mask=3D0o2) - writedict(cfgfiledict, self.vartree.dbapi._conf_mem_file) + try: + writedict(cfgfiledict, self.vartree.dbapi._conf_mem_file) + except IOError as e: + if e.errno !=3D errno.ENOENT: + raise + self.settings._init_dirs() + writedict(cfgfiledict, self.vartree.dbapi._conf_mem_file) =20 return os.EX_OK =20