[entropy.client.interfaces.services.ugc] fix typo in entropy.tools function calls
This commit is contained in:
@@ -149,7 +149,7 @@ class Base:
|
||||
data = self.Service.receive()
|
||||
return data
|
||||
except:
|
||||
entropy.dump.print_traceback()
|
||||
entropy.tools.print_traceback()
|
||||
return None
|
||||
|
||||
def convert_stream_to_object(self, data, gzipped, repository = None,
|
||||
@@ -160,7 +160,7 @@ class Base:
|
||||
try:
|
||||
data = self.Service.stream_to_object(data, gzipped)
|
||||
except (EOFError, IOError, self.zlib.error, entropy.dump.pickle.UnpicklingError,):
|
||||
const_debug_write(__name__, entropy.dump.get_traceback())
|
||||
const_debug_write(__name__, entropy.tools.get_traceback())
|
||||
mytxt = _("cannot convert stream into object")
|
||||
self.Output.output(
|
||||
"[%s:%s|%s:%s|%s:%s] %s" % (
|
||||
@@ -424,7 +424,7 @@ class Client(Base):
|
||||
|
||||
def ugc_do_download_stats(self, session_id, package_names):
|
||||
|
||||
sub_lists = entropy.dump.split_indexable_into_chunks(
|
||||
sub_lists = entropy.tools.split_indexable_into_chunks(
|
||||
package_names, 100)
|
||||
|
||||
last_srv_rc_data = None
|
||||
@@ -446,7 +446,7 @@ class Client(Base):
|
||||
'hw_hash': hw_hash,
|
||||
'pkgkeys': ' '.join(pkgkeys),
|
||||
}
|
||||
xml_string = entropy.dump.xml_from_dict(mydict)
|
||||
xml_string = entropy.tools.xml_from_dict(mydict)
|
||||
|
||||
cmd = "%s %s %s" % (
|
||||
const_convert_to_rawstring(session_id),
|
||||
@@ -529,7 +529,7 @@ class Client(Base):
|
||||
'title': title,
|
||||
'keywords': keywords,
|
||||
}
|
||||
xml_string = entropy.dump.xml_from_dict(mydict)
|
||||
xml_string = entropy.tools.xml_from_dict(mydict)
|
||||
|
||||
cmd = "%s %s %s %s" % (
|
||||
const_convert_to_rawstring(session_id),
|
||||
@@ -547,7 +547,7 @@ class Client(Base):
|
||||
'title': new_title,
|
||||
'keywords': new_keywords,
|
||||
}
|
||||
xml_string = entropy.dump.xml_from_dict(mydict)
|
||||
xml_string = entropy.tools.xml_from_dict(mydict)
|
||||
|
||||
cmd = "%s %s %s %s" % (
|
||||
const_convert_to_rawstring(session_id),
|
||||
@@ -655,7 +655,7 @@ class Client(Base):
|
||||
chunk = f.read(8192)
|
||||
base_path = os.path.basename(file_path)
|
||||
transferred = len(chunk)
|
||||
max_size = entropy.dump.get_file_size(file_path)
|
||||
max_size = entropy.tools.get_file_size(file_path)
|
||||
while chunk:
|
||||
|
||||
if (not self.Service.quiet) or self.Service.show_progress:
|
||||
@@ -719,7 +719,7 @@ class Client(Base):
|
||||
'file_name': os.path.join(pkgkey, os.path.basename(file_path)),
|
||||
'real_filename': os.path.basename(file_path),
|
||||
}
|
||||
xml_string = entropy.dump.xml_from_dict(mydict)
|
||||
xml_string = entropy.tools.xml_from_dict(mydict)
|
||||
|
||||
cmd = "%s %s %s %s" % (
|
||||
const_convert_to_rawstring(session_id),
|
||||
@@ -732,7 +732,7 @@ class Client(Base):
|
||||
def report_error(self, session_id, error_data):
|
||||
|
||||
import zlib
|
||||
xml_string = entropy.dump.xml_from_dict_extended(error_data)
|
||||
xml_string = entropy.tools.xml_from_dict_extended(error_data)
|
||||
xml_comp_string = zlib.compress(xml_string)
|
||||
|
||||
cmd = "%s %s %s" % (
|
||||
|
||||
Reference in New Issue
Block a user