public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: Constantin Musca <constantinx.musca@intel.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] migrate_localcount.bbclass: use PRAUTOINX instead of PN & PV
Date: Mon, 28 Jan 2013 13:56:37 +0100	[thread overview]
Message-ID: <20130128125637.GY16904@jama.palm1.palmone.com> (raw)
In-Reply-To: <1359363680-4588-1-git-send-email-constantinx.musca@intel.com>

[-- Attachment #1: Type: text/plain, Size: 2082 bytes --]

On Mon, Jan 28, 2013 at 11:01:20AM +0200, Constantin Musca wrote:
> - we need to use PRAUTOINX (it covers all cases)
> - it addresses bumped PE issues

Build is still runing, but entries in prserv db look correct now,
thanks!

Cheers,

> 
> [YOCTO #3071]
> 
> Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
> ---
>  meta/classes/migrate_localcount.bbclass | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)
> 
> diff --git a/meta/classes/migrate_localcount.bbclass b/meta/classes/migrate_localcount.bbclass
> index 59f14e8..3916ad4 100644
> --- a/meta/classes/migrate_localcount.bbclass
> +++ b/meta/classes/migrate_localcount.bbclass
> @@ -18,14 +18,13 @@ python migrate_localcount_handler () {
>          if not revs or not counts:
>              return
>  
> -        srcrev = bb.fetch2.get_srcrev(e.data)
> -        bpv = pv[:pv.find(srcrev)]
> -
>          if len(revs) != len(counts):
>              bb.warn("The number of revs and localcounts don't match in %s" % pn)
>              return
>  
> -        version = 'AUTOINC-%s-%s' % (pn, bpv)
> +        version = e.data.getVar('PRAUTOINX', True)
> +        srcrev = bb.fetch2.get_srcrev(e.data)
> +        base_ver = 'AUTOINC-%s' % version[:version.find(srcrev)]
>          pkgarch = e.data.getVar('PACKAGE_ARCH', True)
>          value = max(int(count) for count in counts)
>  
> @@ -40,7 +39,7 @@ python migrate_localcount_handler () {
>          flock = bb.utils.lockfile("%s.lock" % df)
>          with open(df, 'a') as fd:
>              fd.write('PRAUTO$%s$%s$%s = "%s"\n' %
> -                    (version, pkgarch, srcrev, str(value)))
> +                    (base_ver, pkgarch, srcrev, str(value)))
>          bb.utils.unlockfile(flock)
>  }
>  
> -- 
> 1.7.11.7
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

  reply	other threads:[~2013-01-28 13:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-28  9:01 [PATCH] migrate_localcount.bbclass: use PRAUTOINX instead of PN & PV Constantin Musca
2013-01-28 12:56 ` Martin Jansa [this message]
2013-01-28 14:35   ` Martin Jansa
2013-01-28 15:03     ` Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130128125637.GY16904@jama.palm1.palmone.com \
    --to=martin.jansa@gmail.com \
    --cc=constantinx.musca@intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox