From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 100D11381F3 for ; Mon, 2 Sep 2013 12:27:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 19341E0E92; Mon, 2 Sep 2013 12:27:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8BEC7E0E92 for ; Mon, 2 Sep 2013 12:27:40 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 687A733EDAE for ; Mon, 2 Sep 2013 12:27:39 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id EB37BE468F for ; Mon, 2 Sep 2013 12:27:36 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1378124655.69486861f0c339d3b3f8c859c725aed7299fc409.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/overlay/pkgdir/distroot/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/overlay/pkgdir/distroot/distroot.py X-VCS-Directories: roverlay/overlay/pkgdir/distroot/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 69486861f0c339d3b3f8c859c725aed7299fc409 X-VCS-Branch: master Date: Mon, 2 Sep 2013 12:27:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 95c91e4d-bc05-4156-a3a9-761406aec16f X-Archives-Hash: 34b9ea93551a59fc77c467a98f496938 commit: 69486861f0c339d3b3f8c859c725aed7299fc409 Author: André Erdmann mailerd de> AuthorDate: Mon Sep 2 12:24:15 2013 +0000 Commit: André Erdmann mailerd de> CommitDate: Mon Sep 2 12:24:15 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=69486861 distroot, _add(): create directories if necessary --- roverlay/overlay/pkgdir/distroot/distroot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roverlay/overlay/pkgdir/distroot/distroot.py b/roverlay/overlay/pkgdir/distroot/distroot.py index c866bea..d5f6768 100644 --- a/roverlay/overlay/pkgdir/distroot/distroot.py +++ b/roverlay/overlay/pkgdir/distroot/distroot.py @@ -18,6 +18,7 @@ import tempfile import roverlay.db.distmap import roverlay.overlay.pkgdir.distroot.distdir +import roverlay.util.common import roverlay.util.hashpool import roverlay.util.objects @@ -132,7 +133,6 @@ class DistrootBase ( object ): * dest -- * filter_exceptions -- """ - if os.path.lexists ( dest ): # safe removal os.unlink ( dest ) @@ -548,6 +548,7 @@ class PersistentDistroot ( DistrootBase ): def _add ( self, src, dest ): # race condition when accessing self._supported_modes # * this can result in repeated log messages + roverlay.util.common.dodir_for_file ( dest ) for mode in self._strategy: if self._supported_modes & mode: if self._add_functions [mode] (