Using own stagefile for init.

This commit is contained in:
Daniel Baumann 2014-08-26 00:46:28 +02:00
parent 50cd46d209
commit 22c8569f53
1 changed files with 2 additions and 1 deletions

View File

@ -242,7 +242,7 @@ def main():
## Creating configuration directory
# stagefile
if os.path.isdir('.build'):
if os.path.exists('.build/init'):
if verbose:
print('I: configuration directory already initialized - nothing to do')
@ -514,6 +514,7 @@ def main():
## stagefile
os.makedirs('.build', exist_ok=True)
open('.build/init', 'w').close()
if __name__ == '__main__':