actually, centpkg should assume it is the correct site if we do not detect the distgit layout

This commit is contained in:
Brian Stinson 2018-11-15 13:02:01 -06:00
parent a394b15127
commit 95f00e9e07

View file

@ -43,13 +43,11 @@ def main():
config.read(args.config)
layout = Layout.load()
if isinstance(layout, ExplodedSRPMLayout):
client = centpkg.cli.centpkgClient(config)
elif isinstance(layout, DistGitLayout):
if isinstance(layout, DistGitLayout):
config.read('/etc/rpkg/fedpkg.conf')
client = fedpkg.cli.fedpkgClient(config, name='fedpkg')
else:
raise ValueError("Not a site we know about")
client = centpkg.cli.centpkgClient(config)
client.do_imports(site=client.DEFAULT_CLI_NAME)
client.parse_cmdline()