git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d1c312
)
- create leading directories of conf files
author
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 15 Nov 2006 22:50:27 +0000
(22:50 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 15 Nov 2006 22:50:27 +0000
(22:50 +0000)
- fix typo
conf_files.py
patch
|
blob
|
history
diff --git
a/conf_files.py
b/conf_files.py
index
d76ec37
..
abd3069
100644
(file)
--- a/
conf_files.py
+++ b/
conf_files.py
@@
-50,8
+50,10
@@
class conf_files:
self.system(err_cmd)
if not cf_rec['ignore_cmd_errors']: return
logger.log('conf_files: installing file %s' % dest)
+ try: os.makedirs(os.path.dirname(dest))
+ except OSError: pass
tools.write_file(dest, lambda f: f.write(contents), mode=mode, uidgid=(uid,gid))
- if self.system(cf_rec['postinstall_cmd']): system(err_cmd)
+ if self.system(cf_rec['postinstall_cmd']): s
elf.s
ystem(err_cmd)
def run(self):
while True: