summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-05-24 19:36:22 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-27 23:50:47 +0100
commit24c8886a646ee07206cf7d7ee79d64233d4dcd35 (patch)
treea7966db6b724cef70b6bb737b8ee9bf60a897906 /meta/recipes-devtools/apt
parentb400e6759307cf6fd292beeff9fd9ce330133372 (diff)
downloadpoky-24c8886a646ee07206cf7d7ee79d64233d4dcd35.tar.gz
apt: fix upstream version check
(From OE-Core rev: da784aae3014d82039a5404d9b871b44ecd4aa52) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/apt')
-rw-r--r--meta/recipes-devtools/apt/apt_2.4.5.bb10
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/recipes-devtools/apt/apt_2.4.5.bb b/meta/recipes-devtools/apt/apt_2.4.5.bb
index 95c25e3036..1d94dd118c 100644
--- a/meta/recipes-devtools/apt/apt_2.4.5.bb
+++ b/meta/recipes-devtools/apt/apt_2.4.5.bb
@@ -31,8 +31,14 @@ LIC_FILES_CHKSUM = "file://COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263"
31# the package is taken from snapshots.debian.org; that source is static and goes stale 31# the package is taken from snapshots.debian.org; that source is static and goes stale
32# so we check the latest upstream from a directory that does get updated 32# so we check the latest upstream from a directory that does get updated
33UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/a/apt/" 33UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/a/apt/"
34 34# apt seems to follow a peculiar version policy, where every *other* even version
35inherit cmake perlnative bash-completion upstream-version-is-even useradd 35# is considered stable, e.g. 1.0, 1.4, 1.8, 2.2, 2.6, etc. As there is no way
36# to express 'divisible by 4 plus 2' in regex (that I know of), let's hardcode a few.
37UPSTREAM_CHECK_REGEX = "[^\d\.](?P<pver>((2\.2)|(2\.6)|(3\.0)|(3\.4)|(3\.8)|(4\.2))(\.\d+)+)\.tar"
38# needs be marked as unknown until 2.6 is out
39UPSTREAM_VERSION_UNKNOWN = "1"
40
41inherit cmake perlnative bash-completion useradd
36 42
37# User is added to allow apt to drop privs, will runtime warn without 43# User is added to allow apt to drop privs, will runtime warn without
38USERADD_PACKAGES = "${PN}" 44USERADD_PACKAGES = "${PN}"