소스 검색

update sendreportmail for building packages in clean chroot

Noah Vogt 1 년 전
부모
커밋
09983e54a9
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      local-bin/sendreportmail

+ 1 - 2
local-bin/sendreportmail

@@ -82,9 +82,8 @@ def set_subject(
     message: EmailMessage, package: str, body: str, config_file: ConfigFile
 ) -> None:
     if config_file.package_type == "arch":
-        if "Finished making" in body[body.rfind("\n") :]:
+        if "Finished making: " in body:
             message["Subject"] = "BUILD SUCCESS: '{}'".format(package)
-            print("BUILD SUCCESS")
         else:
             message["Subject"] = "BUILD FAILURE: '{}'".format(package)