diff --git a/osc/core.py b/osc/core.py index ac4279ca..a97fab56 100644 --- a/osc/core.py +++ b/osc/core.py @@ -2724,6 +2724,7 @@ def get_source_file(apiurl, prj, package, filename, targetfilename=None, revisio o.write(buf) o.close() shutil.move(tmpfile, targetfilename or filename) + os.chmod(targetfilename or filename, 0644) except: os.unlink(tmpfile) raise