summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/buildhistory.bbclass18
-rw-r--r--meta/classes/insane.bbclass1
2 files changed, 10 insertions, 9 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index c5bba25fd5..55b6bbf496 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -201,15 +201,15 @@ python buildhistory_emit_pkghistory() {
201 # Find out what the last version was 201 # Find out what the last version was
202 # Make sure the version did not decrease 202 # Make sure the version did not decrease
203 # 203 #
204 if d.getVar("BUILDHISTORY_CHECKVERBACKWARDS", True) == "1": 204 lastversion = getlastpkgversion(pkg)
205 lastversion = getlastpkgversion(pkg) 205 if lastversion:
206 if lastversion: 206 last_pkge = lastversion.pkge
207 last_pkge = lastversion.pkge 207 last_pkgv = lastversion.pkgv
208 last_pkgv = lastversion.pkgv 208 last_pkgr = lastversion.pkgr
209 last_pkgr = lastversion.pkgr 209 r = bb.utils.vercmp((pkge, pkgv, pkgr), (last_pkge, last_pkgv, last_pkgr))
210 r = bb.utils.vercmp((pkge, pkgv, pkgr), (last_pkge, last_pkgv, last_pkgr)) 210 if r < 0:
211 if r < 0: 211 msg = "Package version for package %s went backwards which would break package feeds from (%s:%s-%s to %s:%s-%s)" % (pkg, last_pkge, last_pkgv, last_pkgr, pkge, pkgv, pkgr)
212 bb.error("Package version for package %s went backwards which would break package feeds from (%s:%s-%s to %s:%s-%s)" % (pkg, last_pkge, last_pkgv, last_pkgr, pkge, pkgv, pkgr)) 212 package_qa_handle_error("version-going-backwards", msg, d)
213 213
214 pkginfo = PackageInfo(pkg) 214 pkginfo = PackageInfo(pkg)
215 # Apparently the version can be different on a per-package basis (see Python) 215 # Apparently the version can be different on a per-package basis (see Python)
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 75bd2e2b22..aa02985f8d 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -37,6 +37,7 @@ WARN_QA ?= "ldflags useless-rpaths rpaths staticdev libdir xorg-driver-abi \
37ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \ 37ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \
38 perms dep-cmp pkgvarcheck perm-config perm-line perm-link \ 38 perms dep-cmp pkgvarcheck perm-config perm-line perm-link \
39 split-strip packages-list pkgv-undefined var-undefined \ 39 split-strip packages-list pkgv-undefined var-undefined \
40 version-going-backwards \
40 " 41 "
41 42
42ALL_QA = "${WARN_QA} ${ERROR_QA}" 43ALL_QA = "${WARN_QA} ${ERROR_QA}"