1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-21 17:56:19 +02:00

Merge pull request #592 from lethliel/fix_empty_prjconf_meta

fix handling of empty prjconfig meta
This commit is contained in:
Marco Strigl 2019-07-02 13:53:51 +02:00 committed by GitHub
commit 9dfc6c211e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3666,7 +3666,7 @@ class metafile:
if not isinstance(input, list):
input = [input]
if isinstance(input[0], str):
if input and isinstance(input[0], str):
input_as_str = ''.join(input)
else:
open_mode = 'wb'