From 95f00e9e0762e4a496c2573a025f8a34b2e64141 Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Nov 15 2018 19:02:01 +0000 Subject: actually, centpkg should assume it is the correct site if we do not detect the distgit layout --- diff --git a/src/centpkg/__main__.py b/src/centpkg/__main__.py index fd5c7ce..db1dcf5 100644 --- a/src/centpkg/__main__.py +++ b/src/centpkg/__main__.py @@ -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()