mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Increase timeout for siging to 10 seconds when signing rpm packages (#35278)
This commit is contained in:
parent
959a00e4b7
commit
72502f5990
@ -425,7 +425,7 @@ def make_repo(repodir, keyid=None, env=None, use_passphrase=False, gnupghome='/e
|
|||||||
for file in os.listdir(repodir):
|
for file in os.listdir(repodir):
|
||||||
if file.endswith('.rpm'):
|
if file.endswith('.rpm'):
|
||||||
abs_file = os.path.join(repodir, file)
|
abs_file = os.path.join(repodir, file)
|
||||||
number_retries = 5
|
number_retries = 20
|
||||||
times_looped = 0
|
times_looped = 0
|
||||||
error_msg = 'Failed to sign file {0}'.format(abs_file)
|
error_msg = 'Failed to sign file {0}'.format(abs_file)
|
||||||
cmd = 'rpm {0} --addsign {1}'.format(define_gpg_name, abs_file)
|
cmd = 'rpm {0} --addsign {1}'.format(define_gpg_name, abs_file)
|
||||||
|
Loading…
Reference in New Issue
Block a user