MockModuleBuilder.py: remove stale code to remove -srpm-stdout.log

This log is no longer generated, since the code was switched to use
Mock SCM.
This commit is contained in:
Owen W. Taylor
2020-12-01 10:11:35 -05:00
parent 0b3df48700
commit f5c7c6b9f4

View File

@@ -618,13 +618,6 @@ class MockModuleBuilder(GenericBuilder):
if os.path.isfile(log_path) and os.path.getsize(log_path) == 0:
os.remove(log_path)
# Remove other files containing useless information
elif logf.endswith("-srpm-stdout.log"):
with open(log_path) as f:
data = f.read(4096)
if re.match("Downloading [^\n]*\n\n\nWrote: [^\n]", data):
os.remove(log_path)
def build_srpm(self, artifact_name, source, build_id, builder):
"""
Builds the artifact from the SRPM.