diff options
author | Darshit Shah <darnir@gnu.org> | 2017-11-20 22:11:48 +0300 |
---|---|---|
committer | Dmitry Selyutin <ghostmansd@gmail.com> | 2017-11-20 22:13:46 +0300 |
commit | 230c5fabac192536c524053162abbb9fa0b18905 (patch) | |
tree | 13f449e1440b551f8a8c008a81f6165d92174fd8 /pygnulib/GLImport.py | |
parent | b2603f369505e124242f8e19d68bf9de922eca37 (diff) | |
download | gnulib-230c5fabac192536c524053162abbb9fa0b18905.tar.gz |
append, don't replace existing VCS ignore files
Diffstat (limited to 'pygnulib/GLImport.py')
-rw-r--r-- | pygnulib/GLImport.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygnulib/GLImport.py b/pygnulib/GLImport.py index 367ea94d2f..a6d080912a 100644 --- a/pygnulib/GLImport.py +++ b/pygnulib/GLImport.py @@ -726,9 +726,9 @@ AC_DEFUN([%s_FILE_LIST], [\n''' % macro_prefix 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)' % |