From 678f243b2bb1aac7cfed4a8dcf74c9aab11fb061 Mon Sep 17 00:00:00 2001 From: Max Lin Date: Tue, 28 May 2019 16:48:09 +0800 Subject: [PATCH] virtually accept: fix string type handling in Python3 --- osclib/accept_command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osclib/accept_command.py b/osclib/accept_command.py index 708252b7..30217bc1 100644 --- a/osclib/accept_command.py +++ b/osclib/accept_command.py @@ -12,6 +12,7 @@ from xml.etree import cElementTree as ET from osc.core import change_request_state, show_package_meta, wipebinaries from osc.core import http_GET, http_PUT, http_DELETE, http_POST from osc.core import delete_package, search, set_devel_project +from osc.util.helper import decode_it from osclib.config_command import ConfigCommand from osclib.core import attribute_value_save from osclib.core import attribute_value_load @@ -101,8 +102,7 @@ class AcceptCommand(object): # Disable build and wipes the binary to the package and the sub-package for pkg in pkgs: - meta = show_package_meta(self.api.apiurl, self.api.project, pkg) - meta = ''.join(meta) + meta = decode_it(b''.join(show_package_meta(self.api.apiurl, self.api.project, pkg))) # Update package meta to disable build self.api.create_package_container(self.api.project, pkg, meta=meta, disable_build=True) wipebinaries(self.api.apiurl, self.api.project, package=pkg, repo=self.api.cmain_repo)