Skip to content

Commit

Permalink
add writing method LogInstallOutput for pyscripter debug
Browse files Browse the repository at this point in the history
  • Loading branch information
htouvet committed Feb 13, 2018
1 parent 6950d6b commit ca4dee8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions common.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ def write(self,txt):
if threading.current_thread() == self.threadid:
self.waptdb.update_install_status(self.rowid,'RUNNING',txtdb if not txtdb == None else None)

def writing(self):
with self.lock:
return False

def __getattrib__(self, name):
if hasattr(self.console,'__getattrib__'):
return self.console.__getattrib__(name)
Expand Down Expand Up @@ -4335,7 +4339,7 @@ def get_host_packages_names(self):
result = []
host_package = self.host_packagename()
result.append(host_package)

previous_dn_part_type = ''
host_dn = self.host_dn
if host_dn:
dn_parts = host_dn.split(',')
Expand Down Expand Up @@ -4408,7 +4412,8 @@ def upgrade(self):
install_host_packages = self.get_outdated_host_packages()
if install_host_packages:
logger.info(u'Host packages %s are available and not installed, installing host packages...' % (' '.join(h.package for h in install_host_packages),))
hostresult = self.install(host_packages,force=True)
hostresult = self.install(install_host_packages,force=True)
result = merge_dict(result,hostresult)
else:
hostresult = {}
else:
Expand Down

0 comments on commit ca4dee8

Please sign in to comment.