更新源码

This commit is contained in:
wangsong 2021-09-10 14:43:54 +08:00
parent 1c144a99b0
commit ee8decaa31
3 changed files with 4 additions and 646 deletions

View File

@ -56,7 +56,7 @@ class UpdateManagerDbusController(dbus.service.Object):
logging.info('Network Disconnected ...')
#更新的dbus
@dbus.service.method(INTERFACE)
@dbus.service.method(INTERFACE,out_signature='b')
def update(self):
try:
#处于更新和升级中的话 不进行更新
@ -71,7 +71,7 @@ class UpdateManagerDbusController(dbus.service.Object):
return False
#全部升级
@dbus.service.method(INTERFACE)
@dbus.service.method(INTERFACE,out_signature='b')
def all_upgrade(self):
try:
#处于更新和升级中的话 不进行升级
@ -86,8 +86,8 @@ class UpdateManagerDbusController(dbus.service.Object):
return False
#部分升级
@dbus.service.method(INTERFACE)
def partial_upgrade(self):
@dbus.service.method(INTERFACE,in_signature='as',out_signature='b')
def partial_upgrade(self,upgrade_list):
pass
#更新和升级的进度信息 0~100 进度信息 101为非预期的信号

View File

@ -1,639 +0,0 @@
{
"package": "kylin-update-desktop-system",
"version": "sp1-2021-0722",
"name": {
"zh_CN": "系统更新",
"en_US": "Kylin OS"
},
"description": {
"zh_CN": "银河麒麟v10SP1-系统更新包",
"en_US": "Galaxy Kylin v10SP1-System Update Package"
},
"icon": "/usr/share/kylin-update-desktop-config/icon/kylin-update-desktop-system.png",
"upgrade_list": {
"grub-common": {
"size": 3084208
},
"xfsprogs": {
"size": 886390
},
"util-linux": {
"size": 1046758
},
"kolourpaint": {
"size": 5790636
},
"pluma": {
"size": 405906
},
"librockey": {
"size": 58602
},
"ukui-biometric-manager": {
"size": 2476096
},
"selinux-policy-doc": {
"size": 485830
},
"libaudit-common": {
"size": 15354
},
"selinux-utils": {
"size": 141240
},
"libaudit1": {
"size": 53986
},
"plymouth-label": {
"size": 44578
},
"xwayland": {
"size": 936348
},
"box-utils": {
"size": 18088
},
"bsdutils": {
"size": 123768
},
"kylin-burner": {
"size": 2541704
},
"youker-assistant": {
"size": 7551220
},
"fcitx-frontend-all": {
"size": 16976
},
"network-manager-gnome": {
"size": 942872
},
"box-manager": {
"size": 4073712
},
"filezilla": {
"size": 1654772
},
"base-files": {
"size": 90568
},
"pulseaudio-utils": {
"size": 133142
},
"atril": {
"size": 171452
},
"apparmor": {
"size": 521072
},
"apt": {
"size": 1392384
},
"engrampa": {
"size": 338760
},
"kylin-display-switch": {
"size": 131944
},
"usbutils": {
"size": 76876
},
"grub2-common": {
"size": 571940
},
"system-config-printer-common": {
"size": 652884
},
"system-config-printer": {
"size": 91776
},
"apt-utils": {
"size": 423290
},
"transmission-qt": {
"size": 625100
},
"selinux-policy-ukmls": {
"size": 3296272
},
"libsemanage1": {
"size": 93292
},
"ukui-system-monitor": {
"size": 800714
},
"mount": {
"size": 177532
},
"install-info": {
"size": 148720
},
"ukui-session-manager": {
"size": 2070590
},
"kylin-service-support": {
"size": 2083424
},
"neokylin-indexhtml": {
"size": 498936
},
"kylin-software-center": {
"size": 167874954
},
"systemd-sysv": {
"size": 144368
},
"biometric-driver-aratek-trustfinger-common": {
"size": 106212
},
"engrampa-common": {
"size": 850768
},
"firefox-esr": {
"size": 48794152
},
"tar": {
"size": 768440
},
"libsemanage-common": {
"size": 23202
},
"kylin-usb-creator": {
"size": 523816
},
"mate-terminal-common": {
"size": 1041956
},
"selinux-policy-common": {
"size": 53264
},
"kylin-verify": {
"size": 9292
},
"initramfs-tools-bin": {
"size": 102784
},
"peony-open-terminal": {
"size": 20376
},
"openssh-client": {
"size": 716784
},
"xserver-xorg-legacy": {
"size": 132364
},
"kylin-ipmsg": {
"size": 837492
},
"kylin-nm": {
"size": 478464
},
"kmod": {
"size": 91156
},
"openssh-server": {
"size": 354186
},
"security-switch": {
"size": 32616
},
"hplip": {
"size": 34621954
},
"rfkill": {
"size": 87232
},
"libavahi-core7": {
"size": 111592
},
"libsecurity1": {
"size": 7766
},
"dmidecode": {
"size": 52228
},
"adduser": {
"size": 242724
},
"xserver-xorg-core": {
"size": 1332528
},
"libgtk-3-bin": {
"size": 125584
},
"udev": {
"size": 1449088
},
"kylin-activation": {
"size": 196932
},
"fcitx-config-gtk": {
"size": 37916
},
"kylin-screenshot": {
"size": 440884
},
"apparmor-utils": {
"size": 119536
},
"aptdaemon": {
"size": 302256
},
"procps": {
"size": 265300
},
"iagno": {
"size": 583048
},
"login": {
"size": 515628
},
"peony-share": {
"size": 35232
},
"kylin-verify-gui": {
"size": 328588
},
"binutils": {
"size": 73070
},
"bluez-cups": {
"size": 76298
},
"ubuntu-minimal": {
"size": 48624
},
"cups-filters": {
"size": 827002
},
"selinux-policy-targeted": {
"size": 3200980
},
"initramfs-tools-core": {
"size": 52942
},
"ntfs-3g": {
"size": 384172
},
"ukui-settings-daemon": {
"size": 155480
},
"linux-libc-dev": {
"size": 1265636
},
"info": {
"size": 288360
},
"wget": {
"size": 924772
},
"plymouth": {
"size": 153068
},
"pluma-common": {
"size": 1895006
},
"vino": {
"size": 373148
},
"libfontembed1": {
"size": 125330
},
"tzdata": {
"size": 372648
},
"ukui-settings-daemon-common": {
"size": 304484
},
"kylin-update-manager": {
"size": 40964
},
"locales": {
"size": 4098488
},
"systemd": {
"size": 3684260
},
"biometric-driver-aratek-trustfinger": {
"size": 19716
},
"selinux-policy-ukmcs": {
"size": 3221456
},
"kylin-sso-client": {
"size": 637900
},
"ukui-media": {
"size": 353076
},
"onboard-data": {
"size": 3810422
},
"python3-cupshelpers": {
"size": 46674
},
"cups-browsed": {
"size": 202074
},
"onboard": {
"size": 353084
},
"sqlite3": {
"size": 905672
},
"cups-filters-core-drivers": {
"size": 247216
},
"peony": {
"size": 304824
},
"kylin-music": {
"size": 682520
},
"initramfs-tools": {
"size": 11104
},
"parchives": {
"size": 20064
},
"kylin-video": {
"size": 2292200
},
"biometric-driver-r301": {
"size": 23344
},
"avahi-utils": {
"size": 61658
},
"ukui-kwin": {
"size": 11680
},
"bind9-dnsutils": {
"size": 165840
},
"remmina": {
"size": 160664
},
"dash": {
"size": 105164
},
"libavahi-ui-gtk3-0": {
"size": 55936
},
"fcitx": {
"size": 18458
},
"kylin-user-guide": {
"size": 86100
},
"libavahi-common3": {
"size": 58640
},
"indicator-china-weather": {
"size": 1252172
},
"ukui-sidebar": {
"size": 8411864
},
"ksc-defender": {
"size": 5441934
},
"libbox1": {
"size": 25828
},
"kylin-recorder": {
"size": 173444
},
"peony-extensions": {
"size": 7036
},
"ukui-greeter": {
"size": 813024
},
"pulseaudio": {
"size": 1096072
},
"biometric-driver-community-multidevice": {
"size": 32768
},
"ukui-panel": {
"size": 679392
},
"system-config-printer-udev": {
"size": 32880
},
"libchkuid": {
"size": 8626
},
"kylin-installer": {
"size": 314868
},
"ukui-media-common": {
"size": 106012
},
"perl": {
"size": 291036
},
"dpkg": {
"size": 2226538
},
"bash": {
"size": 1355600
},
"gparted-common": {
"size": 1120278
},
"biometric-utils": {
"size": 22264
},
"passwd": {
"size": 831724
},
"tigervnc-standalone-server": {
"size": 956164
},
"sane-utils": {
"size": 219880
},
"g++": {
"size": 3468
},
"linux-firmware": {
"size": 103851672
},
"ukui-touchegg": {
"size": 144172
},
"libpam-biometric": {
"size": 431916
},
"avahi-daemon": {
"size": 96044
},
"python3-audit": {
"size": 63442
},
"yhkylin-backup-tools": {
"size": 5699388
},
"onboard-common": {
"size": 550532
},
"linux-generic": {
"size": 21408
},
"auditd": {
"size": 198672
},
"ukui-about": {
"size": 70232
},
"uidmap": {
"size": 84864
},
"ukui-polkit": {
"size": 83828
},
"kylin-camera": {
"size": 141540
},
"rsync": {
"size": 317404
},
"gcc": {
"size": 7100
},
"kylin-log-viewer": {
"size": 3034664
},
"gnome-mines": {
"size": 228884
},
"ukui-screensaver": {
"size": 270000
},
"kylin-xinput-calibrator": {
"size": 33312
},
"ukui-menu": {
"size": 492366
},
"biometric-auth": {
"size": 34760
},
"kylin-scanner": {
"size": 674700
},
"libavahi-common-data": {
"size": 127848
},
"pulseaudio-module-bluetooth": {
"size": 135468
},
"atril-common": {
"size": 913992
},
"aptdaemon-data": {
"size": 202252
},
"ukui-control-center": {
"size": 11872172
},
"libavahi-client3": {
"size": 62414
},
"gnome-tetravex": {
"size": 998928
},
"tigervnc-common": {
"size": 73078
},
"ubuntukylin-default-settings": {
"size": 18576
},
"libavahi-glib1": {
"size": 45456
},
"mate-terminal": {
"size": 134508
},
"firefox-esr-locale-zh-hans": {
"size": 614886
},
"network-manager-pptp-gnome": {
"size": 30632
},
"apparmor-profiles": {
"size": 100828
},
"ubuntukylin-wallpapers": {
"size": 1677368
},
"libbiometric0": {
"size": 64184
},
"avahi-autoipd": {
"size": 59540
},
"linux-tools-common": {
"size": 373894
},
"kylin-software-properties": {
"size": 144680
},
"libcupsfilters1": {
"size": 184928
},
"ukui-window-switch": {
"size": 3732848
},
"selinux-policy-dev": {
"size": 492480
},
"ffmpeg": {
"size": 1454714
},
"biometric-driver-a210": {
"size": 40124
},
"remmina-common": {
"size": 367828
},
"libkylin-activation": {
"size": 95310
},
"kylin-printer": {
"size": 137974
},
"kylin-background-upgrade": {
"size": 68812
},
"lightdm": {
"size": 168362
},
"xserver-common": {
"size": 126994
},
"cutecom": {
"size": 94670
},
"perl-base": {
"size": 1454468
},
"gparted": {
"size": 360158
},
"total_size": "511.1 MB"
},
"install_list": {
"kylin-photo-viewer": {
"size": 4406216
},
"makedev": {
"size": 41998
},
"total_size": "4.4 MB"
},
"hold_list": [],
"remove_list": []
}

View File

@ -39,6 +39,3 @@ if __name__ == "__main__":
app.start_update()
Gtk.main()