Fix download url for gns3server, Ref: #387

This commit is contained in:
ziajka 2019-04-29 11:30:59 +02:00
parent 940a93c66d
commit b1cf54b03a
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "gns3-web-ui",
"version": "2019.2.0-alpha.2dev",
"version": "2019.2.0-alpha.1",
"author": {
"name": "GNS3 Technology Inc.",
"email": "developers@gns3.com"

View File

@ -208,10 +208,12 @@ def download_command(arguments):
if arguments.l:
version = get_latest_version()
download_url = "https://api.github.com/repos/GNS3/gns3-server/zipball/v{version}"
else:
version = DEFAULT_GNS3_SERVER_DEV_BRANCH
download_url = "https://github.com/GNS3/gns3-server/archive/{version}.zip"
download("https://github.com/GNS3/gns3-server/archive/{version}.zip".format(version=version), SOURCE_ZIP)
download(download_url.format(version=version), SOURCE_ZIP)
files = unzip(SOURCE_ZIP, SOURCE_DESTINATION)
source_directory = os.path.join(SOURCE_DESTINATION, files[0].filename)