build.py: fix symlinks
This commit is contained in:
parent
123f81183e
commit
be5cecfe4c
1 changed files with 3 additions and 3 deletions
|
@ -203,11 +203,11 @@ def build_oxjs(downloads=False, geo=False):
|
||||||
# source
|
# source
|
||||||
source_file = download_path + 'OxJS.%s.source.tar.gz' % version
|
source_file = download_path + 'OxJS.%s.source.tar.gz' % version
|
||||||
data['size']['source'] = write_tarfile(source_file, root_path, 'OxJS', filter_source)
|
data['size']['source'] = write_tarfile(source_file, root_path, 'OxJS', filter_source)
|
||||||
write_link(source_file, source_file.replace(version, 'latest'))
|
write_link(source_file.replace(download_path, ''), source_file.replace(version, 'latest'))
|
||||||
# build
|
# build
|
||||||
build_file = download_path + 'OxJS.%s.build.tar.gz' % version
|
build_file = download_path + 'OxJS.%s.build.tar.gz' % version
|
||||||
data['size']['build'] = write_tarfile(build_file, root_path, 'OxJS', filter_build)
|
data['size']['build'] = write_tarfile(build_file, root_path, 'OxJS', filter_build)
|
||||||
write_link(build_file, build_file.replace(version, 'latest'))
|
write_link(build_file.replace(download_path, ''), build_file.replace(version, 'latest'))
|
||||||
# json
|
# json
|
||||||
write_file(download_path + 'downloads.json', json.dumps(data, indent=4, sort_keys=True))
|
write_file(download_path + 'downloads.json', json.dumps(data, indent=4, sort_keys=True))
|
||||||
|
|
||||||
|
@ -253,7 +253,7 @@ def write_file(file, data):
|
||||||
def write_link(source, target):
|
def write_link(source, target):
|
||||||
print 'linking', source, 'to', target
|
print 'linking', source, 'to', target
|
||||||
write_path(target)
|
write_path(target)
|
||||||
if os.path.exists(target):
|
if os.path.lexists(target):
|
||||||
os.unlink(target)
|
os.unlink(target)
|
||||||
os.symlink(source, target)
|
os.symlink(source, target)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue