@@ -164,7 +164,7 @@ class Pac:
164164 def __init__ (self , node , buildarch , pacsuffix , apiurl , localpkgs = []):
165165
166166 self .mp = {}
167- for i in ['name ' , 'package' ,
167+ for i in ['binary ' , 'package' ,
168168 'version' , 'release' ,
169169 'project' , 'repository' ,
170170 'preinstall' , 'vminstall' , 'noinstall' , 'runscripts' ,
@@ -176,6 +176,7 @@ def __init__(self, node, buildarch, pacsuffix, apiurl, localpkgs = []):
176176 self .mp ['pacsuffix' ] = pacsuffix
177177
178178 self .mp ['arch' ] = node .get ('arch' ) or self .mp ['buildarch' ]
179+ self .mp ['name' ] = node .get ('name' ) or self .mp ['binary' ]
179180
180181 # this is not the ideal place to check if the package is a localdep or not
181182 localdep = self .mp ['name' ] in localpkgs and not self .mp ['noinstall' ]
@@ -205,7 +206,8 @@ def __init__(self, node, buildarch, pacsuffix, apiurl, localpkgs = []):
205206 if self .mp ['repopackage' ] == '_repository' :
206207 self .mp ['repofilename' ] = self .mp ['name' ]
207208 else :
208- self .mp ['repofilename' ] = self .mp ['filename' ]
209+ # OBS 2.3 puts binary into product bdeps (noinstall ones)
210+ self .mp ['repofilename' ] = self .mp ['binary' ] or self .mp ['filename' ]
209211
210212 # make the content of the dictionary accessible as class attributes
211213 self .__dict__ .update (self .mp )
0 commit comments