mirror of
https://github.com/pypiserver/pypiserver
synced 2024-11-09 16:45:51 +01:00
workaround broken xmlrpc api on pypi.python.org by using HTTPS
http://pypi.python.org/pypi/ doesn't work with HTTP/1.0 at the moment. switching to HTTPS solves that.
This commit is contained in:
parent
84f69abadf
commit
fcbb32f30e
@ -95,7 +95,7 @@ def find_updates(pkgset, stable_only=True):
|
||||
sys.stdout.write("checking %s packages for newer version\n" % len(latest_pkgs),)
|
||||
need_update = set()
|
||||
|
||||
pypi = make_pypi_client("http://pypi.python.org/pypi/")
|
||||
pypi = make_pypi_client("https://pypi.python.org/pypi/")
|
||||
|
||||
for count, pkg in enumerate(latest_pkgs):
|
||||
if count % 40 == 0:
|
||||
@ -129,7 +129,7 @@ def update(pkgset, destdir=None, dry_run=False, stable_only=True):
|
||||
for pkg in sorted(need_update, key=lambda x: x.pkgname):
|
||||
sys.stdout.write("# update %s from %s to %s\n" % (pkg.pkgname, pkg.replaces.version, pkg.version))
|
||||
|
||||
cmd = ["pip", "-q", "install", "--no-deps", "-i", "http://pypi.python.org/simple",
|
||||
cmd = ["pip", "-q", "install", "--no-deps", "-i", "https://pypi.python.org/simple",
|
||||
"-d", destdir or os.path.dirname(pkg.replaces.fn),
|
||||
"%s==%s" % (pkg.pkgname, pkg.version)]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user