#3257 Add log file for match_rpm warnings in cg_import
Merged by tkopecek. Opened by jcupova.
jcupova/koji issue-2865  into  master

Download 3257.patch

Fixes: https://pagure.io/koji/issue/2865

Can we optimize it? E.g. method could store self.rpm_log_file which is created with first call and then just reuse it. Otherwise there is a lot of work with closing and opening the same file again and again (there could be thousands of such messages in one task). Log file then need to be attached to build as regular log.

rebased onto 34bbe285219f66cbc654afffe276bca292d56b13

rebased onto e6f95df1af770daa2993b3c9b35f00be7ea0912f

rebased onto 8b573c7374dd94a639b8f059d1bc17eabccf8fa6

rebased onto 24452b37dfacd8e6c3e9ac40d9458a6096719672

@tkopecek updated

self.rpm_log_file was intended to be opened file object. In such case we can write there as needed. It will get closed automatically in object destructor.

rebased onto 9e48d7ea661f000d845b80a736ccaf7f87c79c8c

rebased onto 78b03c4de2f8a5398fac7633262a6928649a34e5

rebased onto 99b13e1b61699d76ee4f0f9acbbf7d8ef7d88ce4

rebased onto e9501a7371d0fd0ea5535a7ee9f5ee00a01b03a6

topdir can theoretically be read-only. Let's use default location.

rebased onto d7f1c9b9b71836673c7e36b7fe44739dffab15b8

rebased onto 6cc85dc045288f7a0a3ad576619b1ec902603433

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

Metadata Update from @jobrauer:
- Pull-request tagged with: testing-done

Commit aec5294e fixes this pull-request

Pull-Request has been merged by tkopecek

Metadata