mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 12:12:47 +00:00
Use os.makedirs instead of running mkdir -p command
Fix #338 We want to use as few bash commands instead of python functions as possible anyway, but this rewrite fixes #338
This commit is contained in:
parent
f71033d7ce
commit
d73495afa8
1 changed files with 2 additions and 2 deletions
|
@ -697,7 +697,7 @@ class InitModule(BaseCliModule):
|
|||
propsfile = os.path.join(rel_eng_dir, TITO_PROPS)
|
||||
if not os.path.exists(propsfile):
|
||||
if not os.path.exists(rel_eng_dir):
|
||||
getoutput("mkdir -p %s" % rel_eng_dir)
|
||||
os.makedirs(rel_eng_dir)
|
||||
print(" - created %s" % rel_eng_dir)
|
||||
|
||||
# write out tito.props
|
||||
|
@ -720,7 +720,7 @@ class InitModule(BaseCliModule):
|
|||
|
||||
if not os.path.exists(readme):
|
||||
if not os.path.exists(pkg_dir):
|
||||
getoutput("mkdir -p %s" % pkg_dir)
|
||||
os.makedirs(pkg_dir)
|
||||
print(" - created %s" % pkg_dir)
|
||||
|
||||
# write out readme file explaining what pkg_dir is for
|
||||
|
|
Loading…
Add table
Reference in a new issue