fix #1621 .. use os.path.samefile in write_photo

svn: r9892
This commit is contained in:
James G Sack
2008-01-18 21:40:27 +00:00
parent e5a4f0c906
commit d4c3d51d2a
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2008-01-18 Jim Sack <jgsack@san.rr.com>
* src/GrampsDb/_WriteGedcom.py : #1621 use os.path.samefile in write_photo
2008-01-17 Benny Malengier <benny.malengier@gramps-project.org> 2008-01-17 Benny Malengier <benny.malengier@gramps-project.org>
* src/DataViews/_RelationView.py: isue #1605, not twice in same family * src/DataViews/_RelationView.py: isue #1605, not twice in same family

View File

@ -1449,7 +1449,7 @@ class GedcomWriter(UpdateCallback):
return return
basename = os.path.basename(path) basename = os.path.basename(path)
dest = os.path.join (imgdir, basename) dest = os.path.join (imgdir, basename)
if dest != path: if not os.path.samefile(dest,path):
try: try:
shutil.copyfile(path, dest) shutil.copyfile(path, dest)
shutil.copystat(path, dest) shutil.copystat(path, dest)