修改提示
This commit is contained in:
parent
fd9be88938
commit
cb7078c125
|
@ -374,6 +374,7 @@ class UpdateManagerDbusController(dbus.service.Object):
|
|||
os.environ["LANGUAGE"] = lang
|
||||
reload(enums)
|
||||
sender_name = get_proc_from_dbus_name(sender)
|
||||
logging.info(COLORMETHOR_PREFIX+'Method'+COLORLOG_SUFFIX+' DistPurgePackages Sender:%s and purge list is:%s...',sender_name,_purge_list)
|
||||
(status, details) = PolicyKit_Authority(get_source_name_from_enum(sender_name)+_(" requires authentication to uninstall software packages."), sender)
|
||||
if not status:
|
||||
self.PurgePackagesFinished(False,details,'')
|
||||
|
@ -393,8 +394,6 @@ class UpdateManagerDbusController(dbus.service.Object):
|
|||
logging.warning('PurgePackages In the process of updating or Upgrading...')
|
||||
return False,'PurgePackages In the process of updating or Upgrading...'
|
||||
else:
|
||||
|
||||
logging.info(COLORMETHOR_PREFIX+'Method'+COLORLOG_SUFFIX+' DistPurgePackages Sender:%s and purge list is:%s...',sender_name,purge_list)
|
||||
self._check_prohibit_user(sender_name)
|
||||
|
||||
self.parent.start_purge_pkgs(purge_list)
|
||||
|
@ -451,8 +450,8 @@ class UpdateManagerDbusController(dbus.service.Object):
|
|||
check_local_dep = bool(_check_local_dep)
|
||||
auto_satisfy = bool(_auto_satisfy)
|
||||
deb_path = str(path)
|
||||
logging.info(COLORMETHOR_PREFIX+'Method'+COLORLOG_SUFFIX+' InstallDebFile and check_local_dep:%r, auto_satisfy:%r.',\
|
||||
check_local_dep,auto_satisfy)
|
||||
logging.info(COLORMETHOR_PREFIX+'Method'+COLORLOG_SUFFIX+' InstallDebFile and check_local_dep:%r, auto_satisfy:%r, current_lang:%s .',\
|
||||
check_local_dep,auto_satisfy,user_lang)
|
||||
logging.info("Will install: %s.",path)
|
||||
self.parent.start_deb_install(deb_path, _check_local_dep, _auto_satisfy, source, sender)
|
||||
return True
|
||||
|
@ -1023,7 +1022,7 @@ class UpdateManagerDbusControllerUtils(dbus.service.Object):
|
|||
dbus.service.Object.__init__(self, bus_name, object_path)
|
||||
except Exception as e:
|
||||
# pass
|
||||
logging.error(e)
|
||||
logging.warning(e)
|
||||
self.parent = parent
|
||||
self.bus = dbus.SystemBus()
|
||||
|
||||
|
|
Loading…
Reference in New Issue