1 |
commit: 901f36a34e1bee927a0e3fbb5e34993f044a7a60 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 1 12:16:15 2011 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 1 12:16:15 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=901f36a3 |
7 |
|
8 |
Perform category checks and updates before starting to write. |
9 |
|
10 |
--- |
11 |
PMSTestSuite/repository/__init__.py | 3 ++- |
12 |
1 files changed, 2 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/PMSTestSuite/repository/__init__.py b/PMSTestSuite/repository/__init__.py |
15 |
index 9af204a..60a975d 100644 |
16 |
--- a/PMSTestSuite/repository/__init__.py |
17 |
+++ b/PMSTestSuite/repository/__init__.py |
18 |
@@ -42,7 +42,7 @@ class EbuildRepository(object): |
19 |
|
20 |
def write_files(self, files): |
21 |
""" Write files from files dict to the repository. """ |
22 |
- for fn, c in files.items(): |
23 |
+ for fn in files: |
24 |
head = fn |
25 |
while head: |
26 |
head, tail = os.path.split(head) |
27 |
@@ -51,6 +51,7 @@ class EbuildRepository(object): |
28 |
elif tail not in self.categories: |
29 |
self.add_category(tail, files) |
30 |
|
31 |
+ for fn, c in files.items(): |
32 |
fp = os.path.join(self.path, fn) |
33 |
if not os.path.exists(os.path.dirname(fp)): |
34 |
os.makedirs(os.path.dirname(fp)) |