v = Verification()
config = configparser.ConfigParser()
config.read_file(open(argv[1]), argv[1])
- 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)
+ print(channel)
main(sys.argv)