mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
chg: [PgpDump] PMF fix - longer keys are truncated
TODO: Need to be updated by an async process handling the keys
This commit is contained in:
parent
c27dfc035a
commit
fae3530fec
1 changed files with 3 additions and 0 deletions
|
@ -59,6 +59,9 @@ def extract_all_id(item_content, regex):
|
|||
|
||||
def get_pgp_packet(save_path):
|
||||
save_path = '{}'.format(save_path)
|
||||
print (len(save_path))
|
||||
if len(save_path) > 131072:
|
||||
save_path = save_path[:131071]
|
||||
process1 = subprocess.Popen([ 'echo', '-e', save_path], stdout=subprocess.PIPE)
|
||||
process2 = subprocess.Popen([ 'pgpdump'], stdin=process1.stdout, stdout=subprocess.PIPE)
|
||||
process1.stdout.close()
|
||||
|
|
Loading…
Reference in a new issue