- channel = Channel(**dict(config['nixos'].items()))
- fetch(v, channel)
- parse_channel(v, channel)
- fetch_resources(v, channel)
- git_fetch(v, channel)
- check_channel_contents(v, channel)
- print(channel)
+ for section in config.sections():
+ channel = Channel(**dict(config[section].items()))
+ fetch(v, channel)
+ parse_channel(v, channel)
+ fetch_resources(v, channel)
+ git_fetch(v, channel)
+ check_channel_contents(v, channel)
+ config[section]['git_rev'] = channel.git_revision
+ config[section]['tarball_url'] = channel.table['nixexprs.tar.xz'].absolute_url
+ config[section]['tarball_sha256'] = channel.table['nixexprs.tar.xz'].digest
+ with open(argv[1], 'w') as configfile:
+ config.write(configfile)