diff options
-rw-r--r-- | meta/classes/package_rpm.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 3ac379d19a..8aa868d3a2 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -607,8 +607,9 @@ python write_specfile () { | |||
607 | if '-' in ver: | 607 | if '-' in ver: |
608 | subd = oe.packagedata.read_subpkgdata_dict(dep, d) | 608 | subd = oe.packagedata.read_subpkgdata_dict(dep, d) |
609 | if 'PKGV' in subd: | 609 | if 'PKGV' in subd: |
610 | pv = subd['PKGV'] | 610 | pv = subd['PV'] |
611 | reppv = pv.replace('-', '+') | 611 | pkgv = subd['PKGV'] |
612 | reppv = pkgv.replace('-', '+') | ||
612 | verlist.append(ver.replace(pv, reppv)) | 613 | verlist.append(ver.replace(pv, reppv)) |
613 | else: | 614 | else: |
614 | verlist.append(ver) | 615 | verlist.append(ver) |