64a856f kojikamid: write buildrequires files as bytes

Authored and Committed by ktdreyer 2 years ago
    kojikamid: write buildrequires files as bytes
    
    Fix a TypeError when downloading buildrequires files on Python 3.
    base64.b64decode() returns bytes, so we must open the file for writing
    in bytes mode, not text mode.
    
    Add a unit test that verifies this behavior.
    
        
empty file added
file modified
+1 -1