Revert "add --index-url cli parameter"

This reverts commit f178c69f49.
This commit is contained in:
Ralf Schmitt 2014-02-16 23:57:37 +01:00
parent af25f1a4a0
commit 57a80da651
1 changed files with 1 additions and 9 deletions

View File

@ -228,10 +228,6 @@ The following additional options can be specified with -U:
-u
allow updating to unstable version (alpha, beta, rc, dev versions)
--index-url INDEX_URL
use a different pip index url while updating. The default is to use
https://pypi.python.org/simple.
Visit http://pypi.python.org/pypi/pypiserver for more information.
""")
@ -248,7 +244,6 @@ def main(argv=None):
server = DEFAULT_SERVER
redirect_to_fallback = True
fallback_url = "http://pypi.python.org/simple"
index_url = "http://pypi.python.org/simple"
password_file = None
overwrite = False
@ -259,7 +254,6 @@ def main(argv=None):
try:
opts, roots = getopt.getopt(argv[1:], "i:p:r:d:P:Uuxoh", [
"interface=",
"index-url=",
"passwords=",
"port=",
"root=",
@ -279,8 +273,6 @@ def main(argv=None):
port = int(v)
elif k in ("-i", "--interface"):
host = v
elif k == "--index-url":
index_url = v
elif k in ("-r", "--root"):
roots.append(v)
elif k == "--disable-fallback":
@ -320,7 +312,7 @@ def main(argv=None):
if command == "update":
packages = frozenset(itertools.chain(*[listdir(r) for r in roots]))
from pypiserver import manage
manage.update(packages, update_directory, update_dry_run, stable_only=update_stable_only, index_url=index_url)
manage.update(packages, update_directory, update_dry_run, stable_only=update_stable_only)
return
a = app(