diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/sstate.bbclass | 4 | ||||
-rw-r--r-- | meta/lib/oeqa/selftest/cases/signing.py | 4 | ||||
-rw-r--r-- | meta/lib/oeqa/selftest/cases/sstate.py | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index c0329cd5d1..7d2cb9eb84 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -6,7 +6,7 @@ SSTATE_MANFILEPREFIX = "${SSTATE_MANIFESTS}/manifest-${SSTATE_MANMACH}-${PN}" | |||
6 | def generate_sstatefn(spec, hash, d): | 6 | def generate_sstatefn(spec, hash, d): |
7 | if not hash: | 7 | if not hash: |
8 | hash = "INVALID" | 8 | hash = "INVALID" |
9 | return hash[:2] + "/" + spec + hash | 9 | return hash[:2] + "/" + hash[2:4] + "/" + spec + hash |
10 | 10 | ||
11 | SSTATE_PKGARCH = "${PACKAGE_ARCH}" | 11 | SSTATE_PKGARCH = "${PACKAGE_ARCH}" |
12 | SSTATE_PKGSPEC = "sstate:${PN}:${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}:${PV}:${PR}:${SSTATE_PKGARCH}:${SSTATE_VERSION}:" | 12 | SSTATE_PKGSPEC = "sstate:${PN}:${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}:${PV}:${PR}:${SSTATE_PKGARCH}:${SSTATE_VERSION}:" |
@@ -15,7 +15,7 @@ SSTATE_PKGNAME = "${SSTATE_EXTRAPATH}${@generate_sstatefn(d.getVar('SSTATE_PK | |||
15 | SSTATE_PKG = "${SSTATE_DIR}/${SSTATE_PKGNAME}" | 15 | SSTATE_PKG = "${SSTATE_DIR}/${SSTATE_PKGNAME}" |
16 | SSTATE_EXTRAPATH = "" | 16 | SSTATE_EXTRAPATH = "" |
17 | SSTATE_EXTRAPATHWILDCARD = "" | 17 | SSTATE_EXTRAPATHWILDCARD = "" |
18 | SSTATE_PATHSPEC = "${SSTATE_DIR}/${SSTATE_EXTRAPATHWILDCARD}*/${SSTATE_PKGSPEC}" | 18 | SSTATE_PATHSPEC = "${SSTATE_DIR}/${SSTATE_EXTRAPATHWILDCARD}*/*/${SSTATE_PKGSPEC}" |
19 | 19 | ||
20 | # explicitly make PV to depend on evaluated value of PV variable | 20 | # explicitly make PV to depend on evaluated value of PV variable |
21 | PV[vardepvalue] = "${PV}" | 21 | PV[vardepvalue] = "${PV}" |
diff --git a/meta/lib/oeqa/selftest/cases/signing.py b/meta/lib/oeqa/selftest/cases/signing.py index 93b15ae681..202d54994b 100644 --- a/meta/lib/oeqa/selftest/cases/signing.py +++ b/meta/lib/oeqa/selftest/cases/signing.py | |||
@@ -157,8 +157,8 @@ class Signing(OESelftestTestCase): | |||
157 | bitbake('-c clean %s' % test_recipe) | 157 | bitbake('-c clean %s' % test_recipe) |
158 | bitbake('-c populate_lic %s' % test_recipe) | 158 | bitbake('-c populate_lic %s' % test_recipe) |
159 | 159 | ||
160 | recipe_sig = glob.glob(sstatedir + '/*/*:ed:*_populate_lic.tgz.sig') | 160 | recipe_sig = glob.glob(sstatedir + '/*/*/*:ed:*_populate_lic.tgz.sig') |
161 | recipe_tgz = glob.glob(sstatedir + '/*/*:ed:*_populate_lic.tgz') | 161 | recipe_tgz = glob.glob(sstatedir + '/*/*/*:ed:*_populate_lic.tgz') |
162 | 162 | ||
163 | self.assertEqual(len(recipe_sig), 1, 'Failed to find .sig file.') | 163 | self.assertEqual(len(recipe_sig), 1, 'Failed to find .sig file.') |
164 | self.assertEqual(len(recipe_tgz), 1, 'Failed to find .tgz file.') | 164 | self.assertEqual(len(recipe_tgz), 1, 'Failed to find .tgz file.') |
diff --git a/meta/lib/oeqa/selftest/cases/sstate.py b/meta/lib/oeqa/selftest/cases/sstate.py index 410dec64fc..80ce9e353c 100644 --- a/meta/lib/oeqa/selftest/cases/sstate.py +++ b/meta/lib/oeqa/selftest/cases/sstate.py | |||
@@ -56,11 +56,11 @@ class SStateBase(OESelftestTestCase): | |||
56 | def search_sstate(self, filename_regex, distro_specific=True, distro_nonspecific=True): | 56 | def search_sstate(self, filename_regex, distro_specific=True, distro_nonspecific=True): |
57 | result = [] | 57 | result = [] |
58 | for root, dirs, files in os.walk(self.sstate_path): | 58 | for root, dirs, files in os.walk(self.sstate_path): |
59 | if distro_specific and re.search("%s/[a-z0-9]{2}$" % self.hostdistro, root): | 59 | if distro_specific and re.search(r"%s/%s/[a-z0-9]{2}/[a-z0-9]{2}$" % (self.sstate_path, self.hostdistro), root): |
60 | for f in files: | 60 | for f in files: |
61 | if re.search(filename_regex, f): | 61 | if re.search(filename_regex, f): |
62 | result.append(f) | 62 | result.append(f) |
63 | if distro_nonspecific and re.search("%s/[a-z0-9]{2}$" % self.sstate_path, root): | 63 | if distro_nonspecific and re.search(r"%s/[a-z0-9]{2}/[a-z0-9]{2}$" % self.sstate_path, root): |
64 | for f in files: | 64 | for f in files: |
65 | if re.search(filename_regex, f): | 65 | if re.search(filename_regex, f): |
66 | result.append(f) | 66 | result.append(f) |