diff options
Diffstat (limited to 'meta/classes/package.bbclass')
| -rw-r--r-- | meta/classes/package.bbclass | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 9040eb40ba..65e65715ea 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
| @@ -351,10 +351,17 @@ def runtime_mapping_rename (varname, d): | |||
| 351 | 351 | ||
| 352 | python package_get_auto_pr() { | 352 | python package_get_auto_pr() { |
| 353 | if d.getVar('USE_PR_SERV', True) != "0": | 353 | if d.getVar('USE_PR_SERV', True) != "0": |
| 354 | auto_pr=prserv_get_pr_auto(d) | 354 | try: |
| 355 | if auto_pr is None: | 355 | auto_pr=prserv_get_pr_auto(d) |
| 356 | bb.fatal("Can NOT get auto PR revision from remote PR service") | 356 | except Exception as e: |
| 357 | bb.fatal("Can NOT get PRAUTO, exception %s" % str(e)) | ||
| 357 | return | 358 | return |
| 359 | if auto_pr is None: | ||
| 360 | if d.getVar('PRSERV_LOCKDOWN', True): | ||
| 361 | bb.fatal("Can NOT get PRAUTO from lockdown exported file") | ||
| 362 | else: | ||
| 363 | bb.fatal("Can NOT get PRAUTO from remote PR service") | ||
| 364 | return | ||
| 358 | d.setVar('PRAUTO',str(auto_pr)) | 365 | d.setVar('PRAUTO',str(auto_pr)) |
| 359 | } | 366 | } |
| 360 | 367 | ||
