mirror of
https://github.com/jiazhang0/meta-secure-core.git
synced 2026-07-16 20:56:58 +00:00
sign_rpm_ext.bbclass: check the length of GPG_PATH
connect to gpg agent may failed due to the GPG_PATH is too long, check and raise an error if the length is greater than 80. Signed-off-by: Liwei Song <liwei.song@windriver.com>
This commit is contained in:
@@ -35,4 +35,8 @@ python () {
|
||||
gpg_path = d.getVar('TMPDIR', True) + '/.gnupg'
|
||||
d.setVar('GPG_PATH', gpg_path)
|
||||
|
||||
if len(gpg_path) > 80:
|
||||
msg = "The default GPG_PATH {} of {} characters is too long. Due to GPG homedir path length limit, please set GPG_PATH shorter than 80 characters.".format(gpg_path, len(gpg_path))
|
||||
raise bb.parse.SkipRecipe(msg)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user