1 |
commit: 69486861f0c339d3b3f8c859c725aed7299fc409 |
2 |
Author: André Erdmann <dywi <AT> mailerd <DOT> de> |
3 |
AuthorDate: Mon Sep 2 12:24:15 2013 +0000 |
4 |
Commit: André Erdmann <dywi <AT> mailerd <DOT> de> |
5 |
CommitDate: Mon Sep 2 12:24:15 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=69486861 |
7 |
|
8 |
distroot, _add(): create directories if necessary |
9 |
|
10 |
--- |
11 |
roverlay/overlay/pkgdir/distroot/distroot.py | 3 ++- |
12 |
1 file changed, 2 insertions(+), 1 deletion(-) |
13 |
|
14 |
diff --git a/roverlay/overlay/pkgdir/distroot/distroot.py b/roverlay/overlay/pkgdir/distroot/distroot.py |
15 |
index c866bea..d5f6768 100644 |
16 |
--- a/roverlay/overlay/pkgdir/distroot/distroot.py |
17 |
+++ b/roverlay/overlay/pkgdir/distroot/distroot.py |
18 |
@@ -18,6 +18,7 @@ import tempfile |
19 |
|
20 |
import roverlay.db.distmap |
21 |
import roverlay.overlay.pkgdir.distroot.distdir |
22 |
+import roverlay.util.common |
23 |
import roverlay.util.hashpool |
24 |
import roverlay.util.objects |
25 |
|
26 |
@@ -132,7 +133,6 @@ class DistrootBase ( object ): |
27 |
* dest -- |
28 |
* filter_exceptions -- |
29 |
""" |
30 |
- |
31 |
if os.path.lexists ( dest ): |
32 |
# safe removal |
33 |
os.unlink ( dest ) |
34 |
@@ -548,6 +548,7 @@ class PersistentDistroot ( DistrootBase ): |
35 |
def _add ( self, src, dest ): |
36 |
# race condition when accessing self._supported_modes |
37 |
# * this can result in repeated log messages |
38 |
+ roverlay.util.common.dodir_for_file ( dest ) |
39 |
for mode in self._strategy: |
40 |
if self._supported_modes & mode: |
41 |
if self._add_functions [mode] ( |