From patchwork Thu Jan 5 17:56:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3/4] classes/buildhistory: make the package version backwards error non-fatal Date: Thu, 05 Jan 2012 17:56:26 -0000 From: Paul Eggleton X-Patchwork-Id: 18473 Message-Id: <53c81c54c428dc5a9806085efdc7c5dfa194bd6b.1325785538.git.paul.eggleton@linux.intel.com> To: openembedded-core@lists.openembedded.org Just make it a bb.error when a package version goes backwards, it doesn't make sense to fail the build immediately; the error(s) will still be reflected in bitbake's exit code. Signed-off-by: Paul Eggleton --- meta/classes/buildhistory.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index ba20914..f618903 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -158,7 +158,7 @@ python buildhistory_emit_pkghistory() { last_pr = lastversion.pr r = bb.utils.vercmp((pe, pv, pr), (last_pe, last_pv, last_pr)) if r < 0: - bb.fatal("Package version for package %s went backwards which would break package feeds from (%s:%s-%s to %s:%s-%s)" % (pkg, last_pe, last_pv, last_pr, pe, pv, pr)) + bb.error("Package version for package %s went backwards which would break package feeds from (%s:%s-%s to %s:%s-%s)" % (pkg, last_pe, last_pv, last_pr, pe, pv, pr)) pkginfo = PackageInfo(pkg) pkginfo.pe = pe