]> code.ossystems Code Review - openembedded-core.git/commitdiff
package_rpm: Ensure PV manipulations are correct
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 16 Mar 2013 15:46:15 +0000 (15:46 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 16 Mar 2013 17:07:32 +0000 (17:07 +0000)
The previous change to this function fixed one manipuation at
the expense of the other, depending on ow expanded the versioned
dependency string was when the AUTOINC substitution was made.

This update ensures we cover both cases and ensures the classextended
version works as as well as the normal case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_rpm.bbclass

index 8aa868d3a2663d9343aa02d6f4582c18ce9a98e1..b6d76e7a3bb94450cf1e9fce5ae683cdb89e9725 100644 (file)
@@ -610,7 +610,7 @@ python write_specfile () {
                             pv = subd['PV']
                             pkgv = subd['PKGV']
                             reppv = pkgv.replace('-', '+')
-                            verlist.append(ver.replace(pv, reppv))
+                            verlist.append(ver.replace(pv, reppv).replace(pkgv, reppv))
                     else:
                         verlist.append(ver)
                 newdeps_dict[dep] = verlist