Run in the same process if there is only package
Debugging is much easier without Process Pool
This commit is contained in:
parent
4cc0a23d4e
commit
7f88e0cc5c
@ -113,6 +113,7 @@ def main():
|
||||
|
||||
importer = Importer(URL_OBS, "openSUSE:Factory", args.packages)
|
||||
importer.import_into_db()
|
||||
if len(args.packages) != 1:
|
||||
with concurrent.futures.ProcessPoolExecutor(max_workers=8) as executor:
|
||||
fs = [
|
||||
executor.submit(
|
||||
@ -121,6 +122,8 @@ def main():
|
||||
for package in args.packages
|
||||
]
|
||||
concurrent.futures.wait(fs)
|
||||
else:
|
||||
export_package(args.packages[0], args.repodir, args.cachedir, args.gc)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user