Mercurial > gnulib
changeset 39158:fe0e7464aae7
append, don't replace existing VCS ignore files
author | Darshit Shah <darnir@gnu.org> |
---|---|
date | Mon, 20 Nov 2017 22:11:48 +0300 |
parents | eb213166afee |
children | e65441735fb0 |
files | pygnulib/GLImport.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pygnulib/GLImport.py Sun Nov 19 09:12:35 2017 -0800 +++ b/pygnulib/GLImport.py Mon Nov 20 22:11:48 2017 +0300 @@ -726,9 +726,9 @@ if not self.config['dryrun']: print('Updating %s (backup in %s)' % (srcpath, backupname)) - shutil.move(srcpath, backupname) + shutil.copy2(srcpath, backupname) result = string() - with codecs.open(srcpath, 'wb', 'UTF-8') as file: + with codecs.open(srcpath, 'ab', 'UTF-8') as file: file.write(destdata) else: # if self.config['dryrun'] print('Updating %s (backup in %s)' %