mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 16:22:55 +00:00
actually, centpkg should assume it is the correct site if we do not detect the distgit layout
This commit is contained in:
parent
a394b15127
commit
95f00e9e07
1 changed files with 2 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue