1 |
Author: zmedico |
2 |
Date: 2009-10-31 19:43:52 +0000 (Sat, 31 Oct 2009) |
3 |
New Revision: 14757 |
4 |
|
5 |
Modified: |
6 |
main/branches/2.1.7/pym/portage/dbapi/vartree.py |
7 |
Log: |
8 |
Bug #291271 - Make vardbapi._bump_mtime() create category directories when |
9 |
necessary. (trunk r14753) |
10 |
|
11 |
Modified: main/branches/2.1.7/pym/portage/dbapi/vartree.py |
12 |
=================================================================== |
13 |
--- main/branches/2.1.7/pym/portage/dbapi/vartree.py 2009-10-31 19:43:37 UTC (rev 14756) |
14 |
+++ main/branches/2.1.7/pym/portage/dbapi/vartree.py 2009-10-31 19:43:52 UTC (rev 14757) |
15 |
@@ -144,8 +144,11 @@ |
16 |
catdir = base + _os.sep + cat |
17 |
t = time.time() |
18 |
t = (t, t) |
19 |
- for x in (catdir, base): |
20 |
- os.utime(x, t) |
21 |
+ try: |
22 |
+ for x in (catdir, base): |
23 |
+ os.utime(x, t) |
24 |
+ except OSError: |
25 |
+ os.makedirs(catdir) |
26 |
|
27 |
def cpv_exists(self, mykey): |
28 |
"Tells us whether an actual ebuild exists on disk (no masking)" |