cg_import fails immediately if build directory already exists
This commit is contained in:
parent
84d0f8ece8
commit
57dbc9ac01
1 changed files with 2 additions and 0 deletions
|
|
@ -5195,6 +5195,8 @@ def cg_import(metadata, directory):
|
|||
- a filename containing the metadata
|
||||
"""
|
||||
|
||||
if os.path.lexists(directory):
|
||||
raise koji.GenericError("Destination directory exists: %s" % directory)
|
||||
importer = CG_Importer()
|
||||
return importer.do_import(metadata, directory)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue