1
0
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:
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.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