mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Fix avoid write null logs
This commit is contained in:
parent
f33776e06b
commit
928e1ec237
1 changed files with 5 additions and 4 deletions
|
@ -41,7 +41,8 @@ def write_deps(deps_dict):
|
||||||
os.mkdir(dep_path)
|
os.mkdir(dep_path)
|
||||||
if os.path.isfile(dep_path + name):
|
if os.path.isfile(dep_path + name):
|
||||||
os.remove(dep_path + name)
|
os.remove(dep_path + name)
|
||||||
with open(dep_path + name, "w") as f:
|
if len(dependencies) >= 1:
|
||||||
for dep in dependencies:
|
with open(dep_path + name, "w") as f:
|
||||||
f.write(dep + "\n")
|
for dep in dependencies:
|
||||||
f.close()
|
f.write(dep + "\n")
|
||||||
|
f.close()
|
||||||
|
|
Loading…
Reference in a new issue