1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 01:46:13 +01:00

- checkout files with mode 0644

This commit is contained in:
Marcus Huewe 2010-02-25 00:06:24 +01:00
parent f16cc7e667
commit 663ae2df1e

View File

@ -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