mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-14 04:39:44 +08:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user