File osc.patch of Package osc

Index: osc-0.168.0/osc/core.py
===================================================================
--- osc-0.168.0.orig/osc/core.py
+++ osc-0.168.0/osc/core.py
@@ -6029,7 +6029,7 @@ def get_prj_results(apiurl, prj, hide_le
             if i == "expansion error":
                 continue
             legend.append('%3s %-20s' % (j, i))
-        legend.append('  ? buildstatus not available (only new packages)')
+        legend.append('%3s %-20s' % ('?', 'unknown'))
 
         if vertical:
             for i in range(0, len(targets)):
@@ -6521,9 +6521,9 @@ def store_write_string(dir, file, string
         os.mkdir(os.path.join(dir, store, subdir))
     fname = os.path.join(dir, store, subdir, file)
     try:
-        f = open(fname + '.new', 'w')
-        if not isinstance(string, str):
-            string = decode_it(string)
+        f = open(fname + '.new', 'wb')
+        if isinstance(string, str):
+            string = string.encode()
         f.write(string)
         f.close()
         os.rename(fname + '.new', fname)
openSUSE Build Service is sponsored by