gitpkgv.bbclass: fix versioning with multiple repos
gitpkgv.bbclass: fix versioning with multiple repos

gitpkgv class is supposed to use SRCREV_FORMAT variable to define
how to smoosh together revision info from multiple repos that are
used in a single recipe. It is incorrectly repeating the rev hash
for the first repo instead of including the rev from each listed repo.

Example:

  SRC_URI = "git://some-server/purple.git;destsuffix=git/purple;name=purple"
  SRC_URI += "git://other-server/blue.git;destsuffix=git/blue;name=blue"
  SRCREV_purple = "${AUTOREV}"
  SRCREV_blue = "${AUTOREV}"
  SRCREV_FORMAT = "purple_blue"

Suppose gitpkgv calculates "67+ea121ea" for purple repo,
and "123+feef001" for blue repo. This should result in a
package version with them joined together like so:

"67+ea121ea_123+feef001"

It didn't. Instead the git hash part for the first repo got repeated:

"67+ea121ea_123+ea121ea"

Fix this by looking in the right place for the git revisions of 2nd
(and following) repos when assembling the full version string.

Signed-off-by: S. Lockwood-Childs <d34d4ca0e04a40fb396dcad4d7075f8ba9f621e3@vctlabs.com>
Signed-off-by: Martin Jansa <516df3ff67e1fa5d153800b15fb204c0a1a389dc@gmail.com>

victronenergy/meta-openembedded,lgirdk/meta-openembedded,VCTLabs/meta-openembedded,amery/meta-openembedded,victronenergy/meta-openembedded,VCTLabs/meta-openembedded,moto-timo/meta-openembedded,lgirdk/meta-openembedded,openembedded/meta-openembedded,rehsack/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,moto-timo/meta-openembedded,kraj/meta-openembedded,kraj/meta-openembedded,openembedded/meta-openembedded,mrchapp/meta-openembedded,mrchapp/meta-openembedded,openembedded/meta-openembedded,kraj/meta-openembedded,openembedded/meta-openembedded,VCTLabs/meta-openembedded,schnitzeltony/meta-openembedded,victronenergy/meta-openembedded,lgirdk/meta-openembedded,amery/meta-openembedded,openembedded/meta-openembedded,kraj/meta-openembedded,victronenergy/meta-openembedded,rehsack/meta-openembedded,VCTLabs/meta-openembedded,amery/meta-openembedded,moto-timo/meta-openembedded,schnitzeltony/meta-openembedded,amery/meta-openembedded,moto-timo/meta-openembedded,kraj/meta-openembedded,VCTLabs/meta-openembedded,mrchapp/meta-openembedded,lgirdk/meta-openembedded,victronenergy/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,lgirdk/meta-openembedded,openembedded/meta-openembedded,amery/meta-openembedded,rehsack/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,mrchapp/meta-openembedded,lgirdk/meta-openembedded,schnitzeltony/meta-openembedded,schnitzeltony/meta-openembedded,rehsack/meta-openembedded,amery/meta-openembedded,moto-timo/meta-openembedded,mrchapp/meta-openembedded,schnitzeltony/meta-openembedded,VCTLabs/meta-openembedded,victronenergy/meta-openembedded,kraj/meta-openembedded,rehsack/meta-openembedded,lgirdk/meta-openembedded,openembedded/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,mrchapp/meta-openembedded,VCTLabs/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,amery/meta-openembedded,rehsack/meta-openembedded,rehsack/meta-openembedded,kraj/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,victronenergy/meta-openembedded,schnitzeltony/meta-openembedded,VCTLabs/meta-openembedded,openembedded/meta-openembedded,amery/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,schnitzeltony/meta-openembedded,mrchapp/meta-openembedded