aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'client/gentoostats/list.py')
-rw-r--r--client/gentoostats/list.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/client/gentoostats/list.py b/client/gentoostats/list.py
index 8c369ab..dc1a64f 100644
--- a/client/gentoostats/list.py
+++ b/client/gentoostats/list.py
@@ -46,35 +46,35 @@ def list_arch(args):
"""
/arch
"""
- data = list(args.server, args.url, '/arch', utils.headers)
+ data = list(args.server, args.port, args.url, '/arch', utils.headers)
pprint('Arch', data)
def list_feature(args):
"""
/feature
"""
- data = list(args.server, args.url, '/feature', utils.headers)
+ data = list(args.server, args.port, args.url, '/feature', utils.headers)
pprint('Feature', data)
def list_lang(args):
"""
/lang
"""
- data = list(args.server, args.url, '/lang', utils.headers)
+ data = list(args.server, args.port, args.url, '/lang', utils.headers)
pprint('Lang', data)
def list_mirror(args):
"""
/mirror
"""
- data = list(args.server, args.url, '/mirror', utils.headers)
+ data = list(args.server, args.port, args.url, '/mirror', utils.headers)
pprint('Mirror', data)
def list_repo(args):
"""
/repo
"""
- data = list(args.server, args.url, '/repo', utils.headers)
+ data = list(args.server, args.port, args.url, '/repo', utils.headers)
pprint('Repo', data)
def list_package(args):
@@ -97,7 +97,7 @@ def list_package(args):
title = 'Category-Package-Version: ' + args.category + '/' + args.package + '-' + args.version
url_pkg += '-' + args.version
- data = list(args.server, args.url, url_pkg + url_top, utils.headers)
+ data = list(args.server, args.port, args.url, url_pkg + url_top, utils.headers)
pprint(title, data)
def list_use(args):
@@ -110,14 +110,14 @@ def list_use(args):
title = 'Useflag: ' + args.use
url_use += '/' + args.use
- data = list(args.server, args.url, url_use, utils.headers)
+ data = list(args.server, args.port, args.url, url_use, utils.headers)
pprint(title, data)
-def list(server, url_base, url_extra, headers):
+def list(server, port, url_base, url_extra, headers):
"""
Get and decode json from url
"""
- get_data = utils.GET(server=server, url=url_base+url_extra, headers=headers)
+ get_data = utils.GET(server=server, port=port, url=url_base+url_extra, headers=headers)
data = utils.deserialize(get_data)
return data