www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Error when downloading with "+"

reply "RuZzz" <xruzzzz gmail.com> writes:
Hi ppl!
When dub builds the project, he tries to load the 
http://code.dlang.org/packages/libevent/2.0.1+2.0.16.zip file, 
and dub gives out this error:
************  Running DUB build  ************
dub build
  /mnt/hdd2_3/ftp/workspace_eclipse/axt-d-base-application
The following changes will be performed:
Fetch dunit ~master, userWide
Fetch libevent >=2.0.1+2.0.16 <2.1.0, userWide
Fetch ddbc >=0.2.9, userWide
Fetch mysql-d >=0.3.0, userWide
Fetch hibernated >=0.2.11, userWide
Fetch openssl >=1.0.0+1.0.0e, userWide
Fetch libev >=4.0.0+4.04 <4.1.0, userWide
Fetch mysql-native 0.0.10, userWide
Package dunit ~master (/home/ruzzz/.dub/packages/) is already 
present with the latest version, skipping upgrade.
Fetching libevent 2.0.1+2.0.16..
Error executing command build: Failed to download 
http://code.dlang.org/packages/libevent/2.0.1%252B2.0.16.zip: 404 
Not Found

How to fix it?

dub.json:
{
	"name" : "axt-d-base-application",
	"description" : "A minimal D bundle.",
	"homepage": "https://axi.su",
	"license": "GPL-2.0",
	"targetType": "executable",
	"targetPath": "bin",
	"dependencies" : {
		"hibernated": ">=0.2.11",
		"toml-d": ">=0.3.0",
		"vibe-d": "0.7.21-beta.4",
		"ax-static-d": {
				"version": "0.0.1",
				"path": "../ax-static-d/"
			}
	},
	"configurations": [
		{
			"name": "MySQL",
			"versions": ["USE_MYSQL"],
			"subConfigurations":
			{
				"hibernated": "MySQL"
			}
		},
		{
			"name": "SQLite",
			"versions": ["USE_SQLITE"],
			"libs-posix": ["sqlite3"],
			"libs-windows": ["sqlite3"],
			"subConfigurations":
			{
				"hibernated": "SQLite"
			}
		}
	],
	"buildTypes": {
		"debug": {
			"buildOptions": ["debugMode", "debugInfo", "optimize"]
		},
		"release": {
			"buildOptions": ["releaseMode", "optimize"]
		}
	},
	"versions": ["VibeCustomMain", "USE_MYSQL"]
}
Nov 26 2014
parent reply "Suliman" <evermind live.ru> writes:
"This is an issue with your version of dub with a buggy url 
encoding method. Download the latest at code.dlang.org"

http://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/thread/22266/
Nov 26 2014
parent "RuZzz" <xruzzzz gmail.com> writes:
On Wednesday, 26 November 2014 at 10:01:32 UTC, Suliman wrote:
 "This is an issue with your version of dub with a buggy url 
 encoding method. Download the latest at code.dlang.org"

 http://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/thread/22266/
thanks, up-dating to version 0.9.22 solved the problem.
Nov 26 2014