update-geoinfos: use shutil.move (cross-device mv) (#5831)
This commit is contained in:
parent
f9299058d1
commit
6ef1aac11c
|
@ -20,6 +20,7 @@ from django.core.management.base import BaseCommand, CommandError
|
|||
|
||||
import os
|
||||
import sys
|
||||
import shutil
|
||||
from sp import pfconfigxml
|
||||
import urllib2
|
||||
import json
|
||||
|
@ -103,5 +104,5 @@ class Command(BaseCommand):
|
|||
json.dump(geoinfos, f, indent=2)
|
||||
f.write('\n')
|
||||
|
||||
os.rename(tempfilename, GEOINFOS_JS)
|
||||
shutil.move(tempfilename, GEOINFOS_JS)
|
||||
|
||||
|
|
Reference in New Issue