Fix buildinstall reuse with pungi_buildinstall plugin
The keys may not exist anymore. If there's nothing to delete, it's fine.
JIRA: RHELCMP-13464
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
(cherry picked from commit 52c2cea0ef
)
This commit is contained in:
parent
185a53d56b
commit
533ea641d8
@ -716,8 +716,8 @@ class BuildinstallThread(WorkerThread):
|
|||||||
# input on RPM level.
|
# input on RPM level.
|
||||||
cmd_copy = copy(cmd)
|
cmd_copy = copy(cmd)
|
||||||
for key in ["outputdir", "sources"]:
|
for key in ["outputdir", "sources"]:
|
||||||
del cmd_copy[key]
|
cmd_copy.pop(key, None)
|
||||||
del old_metadata["cmd"][key]
|
old_metadata["cmd"].pop(key, None)
|
||||||
|
|
||||||
# Do not reuse if command line arguments are not the same.
|
# Do not reuse if command line arguments are not the same.
|
||||||
if old_metadata["cmd"] != cmd_copy:
|
if old_metadata["cmd"] != cmd_copy:
|
||||||
|
Loading…
Reference in New Issue
Block a user