Allow read-only files to be overwritten

Submitted by Amit Chakradeo
This commit is contained in:
Sam Ruby 2007-04-09 08:49:58 -04:00
parent 3cd0e7149b
commit cece1e68b8
2 changed files with 2 additions and 0 deletions

1
THANKS
View File

@ -14,6 +14,7 @@ Harry Fuecks - default item date to feed date
Antonio Cavedoni - Django templates
Morten Frederiksen - expungeCache
Lenny Domnitser - Coral CDN support for URLs with non-standard ports
Amit Chakradeo - Allow read-only files to be overwritten
This codebase represents a radical refactoring of Planet 2.0, which lists
the following contributors:

View File

@ -131,5 +131,6 @@ def apply(doc):
if not os.path.exists(dest_dir): os.makedirs(dest_dir)
log.info("Copying %s to %s", source, dest)
if os.path.exists(dest): os.chmod(dest, 0644)
shutil.copyfile(source, dest)
shutil.copystat(source, dest)