diff --git a/.gitignore b/.gitignore index 199e8ec..af48654 100755 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,8 @@ debian/kylin-system-updater.prerm.debhelper debian/kylin-system-updater.substvars po/kylin-system-updater.pot system-updater.session.sql +build/scripts-3.8/ +debian/files # Misc .*cache diff --git a/SystemUpdater/Core/Database.py b/SystemUpdater/Core/Database.py index 2ad75a6..2c761c2 100644 --- a/SystemUpdater/Core/Database.py +++ b/SystemUpdater/Core/Database.py @@ -19,7 +19,7 @@ class Sqlite3Server(object): def __init__(self, window_main): self.connect = None self.window_main = window_main - logging.info("Init Sqlite3Server...") + logging.info(_("Init Sqlite3Server...")) self.init_sqlit() # 初始化连接数据库 diff --git a/SystemUpdater/Core/filter.py b/SystemUpdater/Core/filter.py index 1cfdbbc..73842ce 100644 --- a/SystemUpdater/Core/filter.py +++ b/SystemUpdater/Core/filter.py @@ -60,7 +60,7 @@ class UpdateListFilterCache(apt.Cache): self.allowed_origins = get_allowed_origins() self.allowed_origins = deleteDuplicatedElementFromList(self.allowed_origins) - logging.info("Allowed origins are: %s", + logging.info(_("Allowed origins are: %s"), self.allowed_origins) self.blacklist = apt_pkg.config.value_list( diff --git a/SystemUpdater/UpdateManager.py b/SystemUpdater/UpdateManager.py index 2357b38..a4e4db3 100644 --- a/SystemUpdater/UpdateManager.py +++ b/SystemUpdater/UpdateManager.py @@ -291,5 +291,5 @@ class UpdateManager(): except dbus.DBusException: bus_name = dbus.service.BusName('com.kylin.systemupgrade', bus) - logging.info('initiate dbus success ...') + logging.info(_("initiate dbus success ...")) return UpdateManagerDbusController(self, bus_name) \ No newline at end of file diff --git a/debian/changelog b/debian/changelog index 0c49fa8..db1d60e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +kylin-system-updater (1.1.2kord) v101; urgency=medium + + * 增加数据库接口 . + + -- luoxueyi Wed, 29 Sep 2021 17:13:31 +0800 + kylin-system-updater (1.1.1kord) v101; urgency=medium * add database . diff --git a/po/POTFILES.in b/po/POTFILES.in index 65de7a9..47962cb 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -5,4 +5,5 @@ SystemUpdater/UpdateManager.py SystemUpdater/Core/MyCache.py SystemUpdater/Core/UpdateList.py SystemUpdater/Core/filter.py -kylin-system-updater +SystemUpdater/Core/Database.py +SystemUpdater/UpdateManagerDbus.py