mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 18:06:13 +01:00
- checkout files with mode 0644
This commit is contained in:
parent
f16cc7e667
commit
663ae2df1e
@ -2724,6 +2724,7 @@ def get_source_file(apiurl, prj, package, filename, targetfilename=None, revisio
|
|||||||
o.write(buf)
|
o.write(buf)
|
||||||
o.close()
|
o.close()
|
||||||
shutil.move(tmpfile, targetfilename or filename)
|
shutil.move(tmpfile, targetfilename or filename)
|
||||||
|
os.chmod(targetfilename or filename, 0644)
|
||||||
except:
|
except:
|
||||||
os.unlink(tmpfile)
|
os.unlink(tmpfile)
|
||||||
raise
|
raise
|
||||||
|
Loading…
Reference in New Issue
Block a user