Always use "nixos-*" channels to look up for builds (#139)
This commit is contained in:
parent
cc5e4a540d
commit
c048af9f69
|
@ -27,18 +27,9 @@ S3_BUCKET = "nix-releases"
|
||||||
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
|
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||||
INDEX_SCHEMA_VERSION = os.environ.get("INDEX_SCHEMA_VERSION", 0)
|
INDEX_SCHEMA_VERSION = os.environ.get("INDEX_SCHEMA_VERSION", 0)
|
||||||
CHANNELS = {
|
CHANNELS = {
|
||||||
"unstable": {
|
"unstable": "nixos/unstable/nixos-20.09pre",
|
||||||
"packages": "nixpkgs/nixpkgs-20.09pre",
|
"19.09": "nixos/19.09/nixos-19.09.",
|
||||||
"options": "nixos/unstable/nixos-20.09pre",
|
"20.03": "nixos/20.03/nixos-20.03.",
|
||||||
},
|
|
||||||
"19.09": {
|
|
||||||
"packages": "nixpkgs/nixpkgs-19.09pre",
|
|
||||||
"options": "nixos/19.09/nixos-19.09.",
|
|
||||||
},
|
|
||||||
"20.03": {
|
|
||||||
"packages": "nixpkgs/nixpkgs-20.03pre",
|
|
||||||
"options": "nixos/20.03/nixos-20.03.",
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
ANALYSIS = {
|
ANALYSIS = {
|
||||||
"normalizer": {
|
"normalizer": {
|
||||||
|
@ -551,8 +542,8 @@ def run(es_url, channel, force, verbose):
|
||||||
logger.debug(f"Verbosity is {verbose}")
|
logger.debug(f"Verbosity is {verbose}")
|
||||||
logger.debug(f"Logging set to {logging_level}")
|
logger.debug(f"Logging set to {logging_level}")
|
||||||
|
|
||||||
evaluation_packages = get_last_evaluation(CHANNELS[channel]["packages"])
|
evaluation_packages = get_last_evaluation(CHANNELS[channel])
|
||||||
evaluation_options = get_last_evaluation(CHANNELS[channel]["options"])
|
evaluation_options = get_last_evaluation(CHANNELS[channel])
|
||||||
evaluation_packages_builds = get_evaluation_builds(evaluation_packages["id"])
|
evaluation_packages_builds = get_evaluation_builds(evaluation_packages["id"])
|
||||||
|
|
||||||
es = elasticsearch.Elasticsearch([es_url])
|
es = elasticsearch.Elasticsearch([es_url])
|
||||||
|
|
Loading…
Reference in a new issue