summaryrefslogtreecommitdiffstats
path: root/rpmbuild-remote.py
diff options
context:
space:
mode:
Diffstat (limited to 'rpmbuild-remote.py')
-rwxr-xr-xrpmbuild-remote.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/rpmbuild-remote.py b/rpmbuild-remote.py
index 069c6d2..8d245cf 100755
--- a/rpmbuild-remote.py
+++ b/rpmbuild-remote.py
@@ -138,7 +138,8 @@ def log_regex(build_output):
out.close()
def get_mock_results(session, dest, sout, serr):
- os.mkdirs(dest)
+ if not dest:
+ os.makedirs(dest)
out = open(os.path.join(dest, 'mock.stdout'), 'w+')
out.write(sout.read())
out.close()
@@ -152,7 +153,8 @@ def get_mock_results(session, dest, sout, serr):
get_files(os.path.join(dest, 'build.log'), dest)
def get_rpmbuild_results(session, dest, sout, serr):
- os.mkdirs(dest)
+ if not dest:
+ os.makedirs(dest)
out = open(os.path.join(dest, 'rpmbuild.stdout', 'w+'))
out.write(sout.read())
out.close()