mirror of
https://abf.rosa.ru/djam/abf-console-client-src.git
synced 2025-02-24 02:12:49 +00:00
abf rpmbuild: do not fetch if there is no .abf.yml
This commit is contained in:
parent
2a0dcd3db5
commit
7c40b0017e
1 changed files with 7 additions and 4 deletions
3
abf.py
3
abf.py
|
@ -587,10 +587,13 @@ def localbuild_rpmbuild():
|
|||
if os.path.exists(src_dir):
|
||||
shutil.rmtree(src_dir)
|
||||
src = get_root_git_dir()
|
||||
|
||||
if os.path.isfile(".abf.yml"):
|
||||
cmd = ['abf', 'fetch']
|
||||
if command_line.verbose:
|
||||
cmd.append('-v')
|
||||
execute_command(cmd, print_to_stdout=True, exit_on_error=True)
|
||||
|
||||
shutil.copytree(src, src_dir, symlinks=True)
|
||||
|
||||
spec_path = find_spec(src_dir)
|
||||
|
|
Loading…
Add table
Reference in a new issue