mirror of
https://abf.rosa.ru/djam/abf-console-client-src.git
synced 2025-02-23 18:02:50 +00:00
Correclty report an error when requested platform doesn't exist
This commit is contained in:
parent
68036556e9
commit
40aa904250
3 changed files with 564 additions and 524 deletions
6
abf.py
6
abf.py
|
@ -761,10 +761,16 @@ def split_repo_name(fullname):
|
|||
def get_repo_id(repo_name, pl_name):
|
||||
# TODO: better to just get plaform by name...
|
||||
platforms = Platform.search(models, pl_name)
|
||||
plat_found = False
|
||||
for plat in platforms:
|
||||
if plat.name == pl_name:
|
||||
plat_found = True
|
||||
break
|
||||
|
||||
if not plat_found:
|
||||
log.error(_("Platform %s doesn't exists!") % (pl_name))
|
||||
exit(1)
|
||||
|
||||
for repo in plat.repositories:
|
||||
if repo.name == repo_name:
|
||||
break
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue