mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
bail out with error message when an incomplete package description is
part of buildinfo. Happens when "Preinstall"ing a non existing package for example.
This commit is contained in:
parent
41d181dadf
commit
56f1f9144b
@ -140,6 +140,10 @@ class Pac:
|
||||
|
||||
self.mp['arch'] = node.get('arch') or self.mp['buildarch']
|
||||
|
||||
if not node.get('project') or not node.get('repository'):
|
||||
raise oscerr.APIError( "incomplete information for package %s, may be caused by a broken project configuration."
|
||||
% self.mp['name'] )
|
||||
|
||||
self.mp['extproject'] = node.get('project').replace(':', ':/')
|
||||
self.mp['extrepository'] = node.get('repository').replace(':', ':/')
|
||||
self.mp['repopackage'] = node.get('package') or '_repository'
|
||||
|
Loading…
Reference in New Issue
Block a user