summaryrefslogtreecommitdiffstats
path: root/meta/classes/buildhistory.bbclass
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-01-05 17:27:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-06 12:11:31 +0000
commit6542028f3f0461f7a0d43820d26cceb7e96bd6d7 (patch)
treeb3eea0e23af07ac30052d47862c4ddf558b3b3f7 /meta/classes/buildhistory.bbclass
parentc8d4807bd722738cbe4d157568a76ab62aae6480 (diff)
downloadpoky-6542028f3f0461f7a0d43820d26cceb7e96bd6d7.tar.gz
classes/buildhistory: make the package version backwards error non-fatal
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. (From OE-Core rev: d3e70e0ed1ece5c8eb7f9c1c8140d3bd7b4333cf) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-rw-r--r--meta/classes/buildhistory.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index ba20914f45..f61890328f 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -158,7 +158,7 @@ python buildhistory_emit_pkghistory() {
158 last_pr = lastversion.pr 158 last_pr = lastversion.pr
159 r = bb.utils.vercmp((pe, pv, pr), (last_pe, last_pv, last_pr)) 159 r = bb.utils.vercmp((pe, pv, pr), (last_pe, last_pv, last_pr))
160 if r < 0: 160 if r < 0:
161 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)) 161 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))
162 162
163 pkginfo = PackageInfo(pkg) 163 pkginfo = PackageInfo(pkg)
164 pkginfo.pe = pe 164 pkginfo.pe = pe