Fix cli creating /tmp/gpg-sig dir unexpectedly 70/13270/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 1 Nov 2018 14:42:04 +0000 (10:42 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 1 Nov 2018 14:45:47 +0000 (10:45 -0400)
commit92b39c9e0c6033cff0535393f7a089312f0b15a9
tree2844d95c08c528beb3f4dbcb85e9a76e6cbdf586
parenta889de0e5c9891e58bb99cc1d2e6dbff4e125885
Fix cli creating /tmp/gpg-sig dir unexpectedly

Simply calling the cli always creates 2 directories named
/tmp/gpg-signatures.* and flooding /tmp with unnecessary directories.

This patch resolves these unexpected directory creations by declaring
these tmpdirs in the code rather than the function definition to avoid
this issue.

Change-Id: I3762854fea187082bb8f459ca062e02c1f4eb43f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
lftools/cli/sign.py
releasenotes/notes/unnecessary-sign-dir-35677f94e948d2a8.yaml [new file with mode: 0644]