pax_global_header00006660000000000000000000000064147434045610014522gustar00rootroot0000000000000052 comment=e42146d4a3b11b7ca7415d30ebd3257a3ceb8596 deepin-deb-installer-6.5.5/000077500000000000000000000000001474340456100155265ustar00rootroot00000000000000deepin-deb-installer-6.5.5/.clang-format000066400000000000000000000164501474340456100201070ustar00rootroot00000000000000--- # 语言: None, Cpp, Java, JavaScript, ObjC, Proto, TableGen, TextProto Language: Cpp # BasedOnStyle: LLVM # 访问说明符(public、private等)的偏移 AccessModifierOffset: -4 # 开括号(开圆括号、开尖括号、开方括号)后的对齐: Align, DontAlign, AlwaysBreak(总是在开括号后换行) AlignAfterOpenBracket: Align # 连续赋值时,对齐所有等号 AlignConsecutiveAssignments: None # 连续声明时,对齐所有声明的变量名 AlignConsecutiveDeclarations: None AlignEscapedNewlines: Right # 左对齐逃脱换行(使用反斜杠换行)的反斜杠 #AlignEscapedNewlinesLeft: true # 水平对齐二元和三元表达式的操作数 AlignOperands: true # 对齐连续的尾随的注释 AlignTrailingComments: true # 允许函数声明的所有参数在放在下一行 AllowAllParametersOfDeclarationOnNextLine: true # 允许短的块放在同一行 AllowShortBlocksOnASingleLine: Empty # 允许短的case标签放在同一行 AllowShortCaseLabelsOnASingleLine: false # 允许短的函数放在同一行: None, InlineOnly(定义在类中), Empty(空函数), Inline(定义在类中,空函数), All AllowShortFunctionsOnASingleLine: Inline # 允许短的if语句保持在同一行 AllowShortIfStatementsOnASingleLine: false # 允许短的循环保持在同一行 AllowShortLoopsOnASingleLine: false # 总是在定义返回类型后换行(deprecated) AlwaysBreakAfterDefinitionReturnType: None # 总是在返回类型后换行: None, All, TopLevel(顶级函数,不包括在类中的函数), # AllDefinitions(所有的定义,不包括声明), TopLevelDefinitions(所有的顶级函数的定义) AlwaysBreakAfterReturnType: None # 总是在多行string字面量前换行 AlwaysBreakBeforeMultilineStrings: false # 总是在template声明后换行 AlwaysBreakTemplateDeclarations: Yes # false表示函数实参要么都在同一行,要么都各自一行 BinPackArguments: false # false表示所有形参要么都在同一行,要么都各自一行 BinPackParameters: false # 大括号换行,只有当BreakBeforeBraces设置为Custom时才有效 BraceWrapping: # class定义后面 AfterClass: true # 控制语句后面 AfterControlStatement: Never # enum定义后面 AfterEnum: false # 函数定义后面 AfterFunction: true # 命名空间定义后面 AfterNamespace: false # ObjC定义后面 AfterObjCDeclaration: false # struct定义后面 AfterStruct: true # union定义后面 AfterUnion: true AfterExternBlock: false # catch之前 BeforeCatch: false # else之前 BeforeElse: false # 缩进大括号 IndentBraces: false SplitEmptyFunction: true SplitEmptyRecord: true SplitEmptyNamespace: true # 在二元运算符前换行: None(在操作符后换行), NonAssignment(在非赋值的操作符前换行), All(在操作符前换行) BreakBeforeBinaryOperators: None # 在大括号前换行: Attach(始终将大括号附加到周围的上下文), Linux(除函数、命名空间和类定义,与Attach类似), # Mozilla(除枚举、函数、记录定义,与Attach类似), Stroustrup(除函数定义、catch、else,与Attach类似), # Allman(总是在大括号前换行), GNU(总是在大括号前换行,并对于控制语句的大括号增加额外的缩进), WebKit(在函数前换行), Custom # 注:这里认为语句块也属于函数 BreakBeforeBraces: Custom # 在三元运算符前换行 BreakBeforeTernaryOperators: false # 在构造函数的初始化列表的逗号前换行 BreakConstructorInitializersBeforeComma: true BreakConstructorInitializers: BeforeColon # 每行字符的限制,0表示没有限制 ColumnLimit: 130 # 描述具有特殊意义的注释的正则表达式,它不应该被分割为多行或以其它方式改变 CommentPragmas: '^ IWYU pragma:' CompactNamespaces: false # 构造函数的初始化列表要么都在同一行,要么都各自一行 ConstructorInitializerAllOnOneLineOrOnePerLine: false # 构造函数的初始化列表的缩进宽度 ConstructorInitializerIndentWidth: 4 # 延续的行的缩进宽度 ContinuationIndentWidth: 4 # 去除C++11的列表初始化的大括号{后和}前的空格 Cpp11BracedListStyle: true # 继承最常用的指针和引用的对齐方式 DerivePointerAlignment: false # 关闭格式化 DisableFormat: false # 自动检测函数的调用和定义是否被格式为每行一个参数(Experimental) ExperimentalAutoDetectBinPacking: false # 需要被解读为foreach循环而不是函数调用的宏 ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] # 对#include进行排序,匹配了某正则表达式的#include拥有对应的优先级,匹配不到的则默认优先级为INT_MAX(优先级越小排序越靠前), # 可以定义负数优先级从而保证某些#include永远在最前面 IncludeCategories: - Regex: '^"(llvm|llvm-c|clang|clang-c)/' Priority: 2 - Regex: '^(<|"(gtest|isl|json)/)' Priority: 3 - Regex: '.*' Priority: 1 # 缩进case标签 IndentCaseLabels: true #IndentPPDirectives: AfterHash # 缩进宽度 IndentWidth: 4 # 函数返回类型换行时,缩进函数声明或函数定义的函数名 IndentWrappedFunctionNames: false # 保留在块开始处的空行 KeepEmptyLinesAtTheStartOfBlocks: false # 开始一个块的宏的正则表达式 MacroBlockBegin: '' # 结束一个块的宏的正则表达式 MacroBlockEnd: '' # 连续空行的最大数量 MaxEmptyLinesToKeep: 1 # 命名空间的缩进: None, Inner(缩进嵌套的命名空间中的内容), All NamespaceIndentation: Inner # 使用ObjC块时缩进宽度 ObjCBlockIndentWidth: 4 # 在ObjC的@property后添加一个空格 ObjCSpaceAfterProperty: false # 在ObjC的protocol列表前添加一个空格 ObjCSpaceBeforeProtocolList: true # 在call(后对函数调用换行的penalty PenaltyBreakBeforeFirstCallParameter: 19 # 在一个注释中引入换行的penalty PenaltyBreakComment: 300 # 第一次在<<前换行的penalty PenaltyBreakFirstLessLess: 120 # 在一个字符串字面量中引入换行的penalty PenaltyBreakString: 1000 # 对于每个在行字符数限制之外的字符的penalty PenaltyExcessCharacter: 1000000 # 将函数的返回类型放到它自己的行的penalty PenaltyReturnTypeOnItsOwnLine: 60 # 指针和引用的对齐: Left, Right, Middle PointerAlignment: Right # 允许重新排版注释 ReflowComments: true # 允许排序#include SortIncludes: Never # 在C风格类型转换后添加空格 SpaceAfterCStyleCast: false SpaceAfterTemplateKeyword: true # 在赋值运算符之前添加空格 SpaceBeforeAssignmentOperators: true # 开圆括号之前添加一个空格: Never, ControlStatements, Always SpaceBeforeParens: ControlStatements # 在空的圆括号中添加空格 SpaceInEmptyParentheses: false # 在尾随的评论前添加的空格数(只适用于//) SpacesBeforeTrailingComments: 2 # 在尖括号的<后和>前添加空格 SpacesInAngles: false # 在容器(ObjC和JavaScript的数组和字典等)字面量中添加空格 SpacesInContainerLiterals: false # 在C风格类型转换的括号中添加空格 SpacesInCStyleCastParentheses: false # 在圆括号的(后和)前添加空格 SpacesInParentheses: false # 在方括号的[后和]前添加空格,lamda表达式和未指明大小的数组的声明不受影响 SpacesInSquareBrackets: false # 标准: Cpp03, Cpp11, Auto Standard: Auto # tab宽度 TabWidth: 4 # 使用tab字符: Never, ForIndentation, ForContinuationAndIndentation, Always UseTab: Never deepin-deb-installer-6.5.5/.clog.toml000066400000000000000000000002341474340456100174240ustar00rootroot00000000000000[clog] repository = "https://github.com/linuxdeepin/deepin-deb-installer" from-latest-tag = true changelog = "CHANGELOG.md" [sections] Others = ["chore"] deepin-deb-installer-6.5.5/.github/000077500000000000000000000000001474340456100170665ustar00rootroot00000000000000deepin-deb-installer-6.5.5/.github/workflows/000077500000000000000000000000001474340456100211235ustar00rootroot00000000000000deepin-deb-installer-6.5.5/.github/workflows/backup-to-gitlab.yml000066400000000000000000000005371474340456100250000ustar00rootroot00000000000000name: backup to gitlab on: [push] concurrency: group: ${{ github.workflow }} cancel-in-progress: true jobs: backup-to-gitlabwh: uses: linuxdeepin/.github/.github/workflows/backup-to-gitlabwh.yml@master secrets: inherit backup-to-gitee: uses: linuxdeepin/.github/.github/workflows/backup-to-gitee.yml@master secrets: inherit deepin-deb-installer-6.5.5/.github/workflows/call-api-check.yml000066400000000000000000000004351474340456100244050ustar00rootroot00000000000000name: apiCheck on: pull_request_target: types: [opened, synchronize, reopened] concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: api-check: uses: linuxdeepin/.github/.github/workflows/api-check.yml@master secrets: inheritdeepin-deb-installer-6.5.5/.github/workflows/call-auto-tag.yml000066400000000000000000000005171474340456100243030ustar00rootroot00000000000000name: auto tag on: pull_request_target: types: [opened, synchronize, closed] paths: - "debian/changelog" concurrency: group: ${{ github.workflow }}-pull/${{ github.event.number }} cancel-in-progress: true jobs: auto_tag: uses: linuxdeepin/.github/.github/workflows/auto-tag.yml@master secrets: inherit deepin-deb-installer-6.5.5/.github/workflows/call-build-distribution.yml000066400000000000000000000004321474340456100263720ustar00rootroot00000000000000name: Call build-distribution on: push: paths-ignore: - ".github/workflows/**" pull_request_target: paths-ignore: - ".github/workflows/**" jobs: check_job: uses: linuxdeepin/.github/.github/workflows/build-distribution.yml@master secrets: inherit deepin-deb-installer-6.5.5/.github/workflows/call-chatOps.yml000066400000000000000000000002421474340456100241560ustar00rootroot00000000000000name: chatOps on: issue_comment: types: [created] jobs: chatopt: uses: linuxdeepin/.github/.github/workflows/chatOps.yml@master secrets: inherit deepin-deb-installer-6.5.5/.github/workflows/call-clacheck.yml000066400000000000000000000005251474340456100243160ustar00rootroot00000000000000name: Call CLA check on: issue_comment: types: [created] pull_request_target: types: [opened, closed, synchronize] concurrency: group: ${{ github.workflow }}-pull/${{ github.event.number }} cancel-in-progress: true jobs: clacheck: uses: linuxdeepin/.github/.github/workflows/cla-check.yml@master secrets: inherit deepin-deb-installer-6.5.5/.github/workflows/call-commitlint.yml000066400000000000000000000003641474340456100247410ustar00rootroot00000000000000name: Call commitlint on: pull_request_target: concurrency: group: ${{ github.workflow }}-pull/${{ github.event.number }} cancel-in-progress: true jobs: check_job: uses: linuxdeepin/.github/.github/workflows/commitlint.yml@master deepin-deb-installer-6.5.5/.github/workflows/call-debian-check.yml000066400000000000000000000004461474340456100250600ustar00rootroot00000000000000name: debianCheck on: pull_request_target: types: [opened, synchronize, reopened] concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: debian-check: uses: linuxdeepin/.github/.github/workflows/debian-check.yml@master secrets: inheritdeepin-deb-installer-6.5.5/.github/workflows/call-license-check.yml000066400000000000000000000005521474340456100252560ustar00rootroot00000000000000name: Call License and README Check on: pull_request_target: types: [opened, synchronize, reopened] permissions: pull-requests: write contents: read concurrency: group: ${{ github.workflow }}-pull/${{ github.event.number }} cancel-in-progress: true jobs: license-check: uses: linuxdeepin/.github/.github/workflows/license-check.yml@master deepin-deb-installer-6.5.5/.github/workflows/call-static-check.yml000066400000000000000000000004461474340456100251250ustar00rootroot00000000000000name: staticCheck on: pull_request_target: types: [opened, synchronize, reopened] concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: static-check: uses: linuxdeepin/.github/.github/workflows/static-check.yml@master secrets: inheritdeepin-deb-installer-6.5.5/.github/workflows/cppcheck.yml000066400000000000000000000012651474340456100234320ustar00rootroot00000000000000name: cppcheck on: pull_request_target: paths-ignore: - ".github/workflows/**" concurrency: group: ${{ github.workflow }}-pull/${{ github.event.number }} cancel-in-progress: true jobs: cppchceck: name: cppcheck runs-on: ubuntu-latest steps: - run: export - uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.sha }} persist-credentials: false - uses: linuxdeepin/action-cppcheck@main with: github_token: ${{ secrets.GITHUB_TOKEN }} repository: ${{ github.repository }} pull_request_id: ${{ github.event.pull_request.number }} allow_approve: false deepin-deb-installer-6.5.5/.gitignore000066400000000000000000000007611474340456100175220ustar00rootroot00000000000000# Compiled Object files *.slo *.lo *.o # Compiled Dynamic libraries *.so *.dylib # Compiled Static libraries *.lai *.la *.a build*/ *.core *.autosave *.user* # qm file is auto generate from .ts file *.qm .vscode/ # vim tmp file *.swp .deepin-deb-installer.desktop.swj .deepin-deb-installer.desktop.swm debian/.debhelper/ debian/deepin-deb-installer.debhelper.log debian/deepin-deb-installer.substvars debian/deepin-deb-installer/ debian/files obj-x86_64-linux-gnu/ resources/images/icon22.svg deepin-deb-installer-6.5.5/.obs/000077500000000000000000000000001474340456100163675ustar00rootroot00000000000000deepin-deb-installer-6.5.5/.obs/workflows.yml000066400000000000000000000017321474340456100211520ustar00rootroot00000000000000test_build: steps: - link_package: source_project: deepin:Develop:dde source_package: %{SCM_REPOSITORY_NAME} target_project: deepin:CI - configure_repositories: project: deepin:CI repositories: - name: deepin_develop paths: - target_project: deepin:CI target_repository: deepin_develop architectures: - x86_64 - aarch64 - name: debian paths: - target_project: deepin:CI target_repository: debian_sid architectures: - x86_64 filters: event: pull_request tag_build: steps: - trigger_services: project: deepin:Unstable:dde package: %{SCM_REPOSITORY_NAME} filters: event: tag_push commit_build: steps: - trigger_services: project: deepin:Develop:dde package: %{SCM_REPOSITORY_NAME} filters: event: push deepin-deb-installer-6.5.5/.project.json000066400000000000000000000004161474340456100201460ustar00rootroot00000000000000 { "type": "homebrew", "3rdparty": [], "ignore": ["./translations","./debian","./.tx","./assets","*.gitignore","*.doc","*.svg","*.sh","*.zip", "*.qrc", "*.desktop", "*.policy", "COPYING", "LICENSE", ".gitignore"], "license": ["GPLv3"] } deepin-deb-installer-6.5.5/.reuse/000077500000000000000000000000001474340456100167275ustar00rootroot00000000000000deepin-deb-installer-6.5.5/.reuse/dep5000066400000000000000000000032751474340456100175160ustar00rootroot00000000000000Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: deepin-ocr Upstream-Contact: UnionTech Software Technology Co., Ltd. <> Source: https://github.com/linuxdeepin/deepin-ocr # ci Files: .github/* .obs/workflows.yml Copyright: UnionTech Software Technology Co., Ltd. License: CC0-1.0 # gitignore Files: .gitignore Copyright: None License: CC0-1.0 # xml toml json conf yaml sh Files: *.toml *.json *conf *.yaml *.sh .clang-format Copyright: UnionTech Software Technology Co., Ltd. License: CC0-1.0 # debian Files: debian/* Copyright: UnionTech Software Technology Co., Ltd. License: CC0-1.0 # cmake Files: cmake/* Copyright: UnionTech Software Technology Co., Ltd. License: CC0-1.0 # Project file Files: *.pro *.prf *.pri *.qrc *CMakeLists.txt .tx/* Copyright: UnionTech Software Technology Co., Ltd. License: CC0-1.0 # README Files: README.md README.zh_CN.md INTRODUCTION.md CHANGELOG.md Copyright: UnionTech Software Technology Co., Ltd. License: CC-BY-4.0 # assets Files: assets/* Copyright: UnionTech Software Technology Co., Ltd. License: LGPL-3.0-or-later # translations Files: translations/* Copyright: UnionTech Software Technology Co., Ltd. License: LGPL-3.0-or-later # src Files: src/* Copyright: UnionTech Software Technology Co., Ltd. License: GPL-3.0-or-later # tests Files: tests/* Copyright: UnionTech Software Technology Co., Ltd. License: GPL-3.0-or-later # kde Files: src/deb-installer/process/* Copyright: 2007, Oswald Buddenhagen License: LGPL-2.0-or-later # Fuzzy Test Files: tests/FuzzyTest/include Copyright: None License: Apache-2.0 WITH LLVM-exception # stub linux Files: tests/src/addr_pri.h tests/src/stub.h Copyright: 2020 Zhang Yu License: MIT deepin-deb-installer-6.5.5/.tx/000077500000000000000000000000001474340456100162375ustar00rootroot00000000000000deepin-deb-installer-6.5.5/.tx/config000066400000000000000000000014451474340456100174330ustar00rootroot00000000000000[main] host = https://www.transifex.com minimum_perc = 80 mode = developer [o:linuxdeepin:p:deepin-package-manager:r:deepin-deb-installer] file_filter = translations/deepin-deb-installer_.ts source_file = translations/deepin-deb-installer.ts preTranlate_file = src/deb_installer/deepin-deb-installer.desktop source_lang = en type = QT [o:linuxdeepin:p:deepin-package-manager:r:deepin-deb-installer_desktop] file_filter = translations/desktop/desktop_.ts source_file = translations/desktop/desktop.ts preTranlate_file = src/deb_installer/deepin-deb-installer.desktop source_lang = en type = QT [o:linuxdeepin:p:deepin-package-manager:r:deepin-deb-installer-policy-ts] file_filter = translations/policy/policy_.ts source_file = translations/policy/policy.ts source_lang = en type = QT deepin-deb-installer-6.5.5/.tx/deepin.conf000066400000000000000000000000311474340456100203440ustar00rootroot00000000000000[transifex] branch = m23 deepin-deb-installer-6.5.5/.tx/transifex.yaml000066400000000000000000000013641474340456100211320ustar00rootroot00000000000000# SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. # # SPDX-License-Identifier: CC0-1.0 filters: - filter_type: file source_file: translations/deepin-deb-installer.ts file_format: QT source_language: en_US translation_files_expression: translations/deepin-deb-installer_.ts - filter_type: file source_file: translations/desktop/desktop.ts file_format: QT source_language: en_US translation_files_expression: translations/desktop/desktop_.ts - filter_type: file source_file: translations/policy/policy.ts file_format: QT source_language: en_US translation_files_expression: translations/policy/policy_.ts settings: pr_branch_name: transifex_update_ deepin-deb-installer-6.5.5/.tx/ts2desktop000066400000000000000000000003551474340456100202670ustar00rootroot00000000000000DESKTOP_TEMP_FILE=src/deb_installer/deepin-deb-installer.desktop.tmp DESKTOP_SOURCE_FILE=src/deb_installer/deepin-deb-installer.desktop DESKTOP_DEST_FILE=src/deb_installer/deepin-deb-installer.desktop DESKTOP_TS_DIR=translations/desktop deepin-deb-installer-6.5.5/CHANGELOG.md000066400000000000000000000031121474340456100173340ustar00rootroot00000000000000 ## 1.3.2 (2019-04-10) ## 1.3.1 (2019-03-27) #### Bug Fixes * only one file be passed when select multiple files in DFM and open with deb installer ([43b8e6b5](https://github.com/linuxdeepin/deepin-deb-installer/commit/43b8e6b5e988e4e84b26f95b9d34652fd60ac42c)) ## 1.3.0 (2019-01-24) ### 1.2.9 (2018-11-23) #### Features * add genericName ([676b441c](https://github.com/linuxdeepin/deepin-deb-installer/commit/676b441c13051a28a962116bb4f9db5abced3d99)) * support the recent file spec. ([2c736215](https://github.com/linuxdeepin/deepin-deb-installer/commit/2c7362153eb2ea70a860a65a4ba70b870d0174bb)) ## 1.2.7 (2018-11-01) ## 1.2.7 (2018-11-01) ### 1.2.6 (2018-10-25) #### Features * **file_dialog:** save history folder. ([9116f168](https://github.com/linuxdeepin/deepin-deb-installer/commit/9116f1688758627894192d08f5e08ef769eedba4)) ### 1.2.5 (2018-07-20) #### Bug Fixes * have prohibit drag and drop icons ([32668a8a](https://github.com/linuxdeepin/deepin-deb-installer/commit/32668a8aa9911cf81028668effba0ecd22479f94)) ## 1.2.4 (2018-03-13) #### Bug Fixes * Adapt lintian ([91b40e71](91b40e71)) # 1.2.3 - Compatibility with old dtk. # 1.2.2 - Fix some Deb packages conflict with DDE but dont detected correctly. # 1.2.1 - Update translate files. # 1.2 - HiDPI support. # 1.1 - Support remove packages before execute install. - Support back when operate finshed. deepin-deb-installer-6.5.5/CMakeLists.txt000066400000000000000000000026011474340456100202650ustar00rootroot00000000000000# SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. # # SPDX-License-Identifier: CC0-1.0 cmake_minimum_required(VERSION 3.13) if(NOT DEFINED VERSION) set(VERSION 5.3.9) endif() # 安全测试的开关 set(CMAKE_SAFETYTEST OFF) project(deepin_deb_installer) option(DMAN_RELEAE OFF "Install dman resources to system or not") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake) # 引入翻译生成 include(translation-generate) # Find Qt version find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core) message(" >>> Found Qt version: ${QT_VERSION_MAJOR}") set(QT_DESIRED_VERSION ${QT_VERSION_MAJOR}) if (QT_VERSION_MAJOR MATCHES 6) set(DTK_VERSION_MAJOR 6) else() set(DTK_VERSION_MAJOR "") endif() message(" >>> Build with DTK: ${DTK_VERSION_MAJOR}") if (QT_DESIRED_VERSION MATCHES 6) find_package(QApt-qt6 REQUIRED) include_directories(${QApt-qt6_INCLUDE_DIRS}) set(QAPT_LIB QApt-qt6) else() find_package(QApt REQUIRED) include_directories(${QApt_INCLUDE_DIRS}) set(QAPT_LIB QApt) endif() add_subdirectory(src/AptInstallDepend) add_subdirectory(src/deb-installer) if(CMAKE_BUILD_TYPE STREQUAL "Debug") add_subdirectory(tests) endif() add_subdirectory(src/deepin-deb-installer-dev) set(POLICY_FILE com.deepin.pkexec.aptInstallDepend.policy) add_subdirectory(translations/policy) # add_subdirectory(tests/FuzzyTest) deepin-deb-installer-6.5.5/INTRODUCTION.md000066400000000000000000000215051474340456100177740ustar00rootroot00000000000000# deepin-deb-installer # 架构设计 ## 前端 主窗口为 DebInstaller 类,前端主页面为 `FileChooseWidget`,它是一个文件选择界面,当用户选择了一个/多个 deb 文件后,进入后续的安装界面。 > 在用户选择了软件包后,应该对 deb 包进行格式效验,以过滤那些 Invalid 的文件。 单个安装界面与批量安装界面是可以互相转换的,如果在单软件包界面继续拖放更多的软件包,即跳转到多软件包安装界面。而如果在批量安装界面将软件包一个个删除,当安装列表只剩一个软件包时,则自动跳转到单软件包安装界面。 由于这些界面转换的需求,在单/多软件包安装界面层上,只是一个选择性的数据显示,真正的等待安装的软件包列表保存在 `DebListModel` 类中。 ### 单软件包安装界面 当用户只选择了一个软件包后,进入单软件包安装界面。如果继续向里面添加软件包,则跳转到多软件包安装界面。 ### 批量安装界面 当用户选择了一个以上的软件包后,进入批量安装界面。当用户删除比量安装列表至最后一个时,跳转到单软件包安装界面。 批量安装界面使用 Qt Model-View 设计模式,`DebListModel` 作为数据层,`PackagesListDelegate` 作为绘画的代理层,而 `PackageListView` 为表示层。通过这个模式,可以在不对 `DebListModel` 做过多侵入式设计的前提下,实现数据的获取。 ### 卸载确认界面 这是一个在执行卸载命令之前,用来让用户确认所卸载的包列表的界面。 ## 控制端 `DebListModel` 是联系前/后端并提供查询、安装、卸载命令等最主要最核心的类。对上,它提供了软件包列表的各种数据;对下,它封装了具体的安装、卸载等操作。 利用 `PackagesManager` 类所提供的数据,向界面上显示对应的软件包信息。通过封装 `libqapt` 的查询与安装接口,提供统一的 `Transaction` 类来回报进度等信息。 ## 后端 ### PackagesManager `PackagesManager` 类是主要的 deb 包管理类,他使用 `libqapt` 来进行 deb 包格式的读取与解析。 #### 依赖解析 `PackagesManager` 类另一个核心功能,也是 `deepin-deb-installer` 项目最重大的问题,就是软件包的依赖解析。在本类中,实现了一个对 deb 包的依赖解析流程。 #### 依赖解析结果 依赖解析的结果分为 3 种,分别是: - 依赖冲突,不可安装此软件包 - 依赖可用,安装或升级某些依赖包后可以安装此软件包 - 依赖满足,可以直接安装此软件包 #### 不同种类的依赖解析 此外,在依赖解析的过程中,要考虑可升级/降级依赖、间接依赖、循环依赖、虚包、Providers 包等问题: - 可升级依赖:当前依赖不满足条件,但仓库中此包的新版本可用,可以升级到仓库中的版本来解决依赖。 - 间接依赖:当前第一级依赖都满足条件,但其中一个依赖包的依赖关系不满足,此时也无法安装。即,所有依赖关系的查找必须查找到基础包为止,才能发现所有的间接依赖。 - 循环依赖:在查找依赖链时,有可能出现 A 依赖 B 而 B 也依赖 A 的情况,程序应该要有有效的机制避免循环依赖带来的问题。 - 虚包:当发现依赖包是一个虚包时,应该查找它由哪些包所填实,并依次解决它们的依赖关系。 - Providers:例如某些程序依赖 java,而 java 是由 jdk 或 jre 提供的子包,并不单独存在 java 这个包。在此时,就应该遍历仓库,查找包的 Providers 并比对相关信息,以正确的安装对应的依赖。 #### 多架构问题 另外,还要解决多架构及跨架构依赖带来的问题: 这个问题主要发生在 x86 64Bits 系统下,系统中可能同时存在 x86 32Bits、x86 64Bits 两个包架构。 - 一般来说,没有特别指明的情况下,都安装默认的架构(即 64Bits)。 - 在安装依赖时,安装与本包相同的架构。即本包是 32Bits,就安装 32Bits 的依赖包。 - 要特殊处理的是 AnyArch 及 NativeArch 的相关问题 - 某些包是架构不相关或不敏感的(例如一些 Python 库),此时可以跨架构解决依赖,要解析对应的字段来完成这个判断。 > 当多架构依赖与之前的各种依赖解决方案混合时,问题变得比较复杂,这部分要做仔细的 code-review 和测试。 #### 总结 区别与其它的 deb 安装器,`deepin-deb-installer` 支持批量安装。在考虑问题的过程中,可以以单个应用程序安装过程为例,批量安装仅仅是对单个程序安装的重复操作。但是在设计数据结构及编写具体逻辑时,要考虑多应用同时安装的情况。 由于 deb 软件包的复杂性,对其依赖进行解析并不是一件简单的事。在不同的策略、不同的解析顺序下,可能有多种解决依赖关系的可能。所以,这种不确定性可能会导致用户的一些困惑(即与其它安装器的依赖解析结果不相同)。而如何判断是程序出了 bug,还是这是一个正常的依赖解析结果,就需要对 deb 包及软件仓库有更多了解。 在批量安装时,每安装完成一个软件包,都应当对仓库状态、依赖状态进行重新刷新与解析。因为在某些包安装后,系统环境中的依赖关系可能已经与之前不同了。 > 即便是 apt 和 gdebi 这两个最常用到的 deb 安装程序,在安装某些包时,解决依赖的方法都不一定完全相同。 > 将来,可以考虑换用其它库进行依赖解析。自己实现依赖解析既复杂、难维护,又容易出 bug,解析行为上也难以和 apt 保持一致。 #### 依赖解析示例 以下举几个比较经典的例子: ##### 解析示例 1 - A -> B | C # 软件包 A 依赖软件包 B 或者软件包 C - B -> D(v1.0) # 软件包 B 依赖包 D 的 v1.0 版本 - C -> D(v2.0) # 软件包 C 依赖包 D 的 v2.0 版本 - 已安装 D(v1.0) # 系统中已经安装了包 D 的 v1.0 版本 - 可升级 D(v2.0) # 仓库中有包 D 的 v2.0 版本 在这种情况下,当安装软件包 A 时,就有两种方法可以解决依赖。 1. 安装软件包 B。 2. 安装软件包 C,并升级软件包 D 到仓库中的 v2.0 版本。 这两种方法都是正确的并可以满足软件包 A 的依赖需求。但是要注意在第 2 种解决方案下,要检查一下软件包 D 由 v1.0 升级到 v2.0 是否会引入冲突等问题。 # 缺陷 由于安装器完全使用自己的依赖解析逻辑。并且调用了 `libqapt` 进行软件包安装(其底层是包装 `dpkg -i` 命令执行的安装),与 apt 不同的是,这样做 apt 是无法知道哪些包是用户主动安装的(即用户主动拖动到列表中执行安装),哪些是作为依赖被动安装的。这样,以后在卸载某个包是,当初作为它的依赖被安装上的包就无法使用 autoremove 被卸载了(因为所有的包在 apt 看来都是主动安装的)。 即使不改变目前的依赖解析及软件包安装逻辑,这个问题也是可以解决的。在 apt 中修改包的属性,将它的安装原因改为依赖安装即可,不过目前还没有实现。 # libqapt ## 简介 libqapt 是 qapt 的一个库,qapt 是像 gdebi 一样的一个 deb 安装程序。它底层使用了 `libapt-pkg` 进行一些仓库的访问。本身实现了以调用 dpkg 命令为基础的软件包安装逻辑。 libqapt-runtime 是这个库中实现权限操作的后端,它会注册一个 system-dbus 提供服务。libqapt 中相应的权限操作都通过 RPC 方式与此后端通信。 ## Debug libqapt 本身是一个 C++ 项目,很容易编译安装,可以直接下载源码通过加日志、GDB 等方式进行调试。要注意的是可能需要在调试时修改代码禁止或者放宽某些超时操作。在调试 runtime 的时候要确保当前运行的不是旧版本 runtime。 ## 为 libqapt 打补丁 在开发过程中,发现了数个 `libqapt` 的 bug。为了快速解决问题,现在已经给 `libqapt` 打了以下几个补丁,在上游的新版本推送后,应该积极维护这些补丁列表。 - 0001-add-zh_CN-translate.patch 添加中文翻译,hack 的做法。 - 0001-fix-long-description-error.patch 修复 libqapt 在解析 deb 包时,对某些不是特别规范的 control 文件解析出错。 - 0001-fix-old-error-not-clear.patch 修复 libqapt 在重复使用 dpkg 命令时,相应的类没有清理旧错误信息。 - ~~0001-Fix-install-transaction-timeout.patch 修复 libqapt 在安装时超时信息设置错误导致安装失败。~~ __上游已经合并__ # 参考资料 - libqapt - [sources](https://github.com/KDE/libqapt) - [online doc](https://api.kde.org/extragear-api/sysadmin-apidocs/libqapt/html/index.html) deepin-deb-installer-6.5.5/LICENSE000066400000000000000000001045131474340456100165370ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . deepin-deb-installer-6.5.5/LICENSES/000077500000000000000000000000001474340456100167335ustar00rootroot00000000000000deepin-deb-installer-6.5.5/LICENSES/Apache-2.0.txt000066400000000000000000000240501474340456100211530ustar00rootroot00000000000000Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. deepin-deb-installer-6.5.5/LICENSES/CC-BY-4.0.txt000066400000000000000000000411771474340456100206020ustar00rootroot00000000000000Creative Commons Attribution 4.0 International Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. Using Creative Commons Public Licenses Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors. Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public. Creative Commons Attribution 4.0 International Public License By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. Section 1 – Definitions. a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. h. Licensor means the individual(s) or entity(ies) granting rights under this Public License. i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. Section 2 – Scope. a. License grant. 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: A. reproduce and Share the Licensed Material, in whole or in part; and B. produce, reproduce, and Share Adapted Material. 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. 3. Term. The term of this Public License is specified in Section 6(a). 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. 5. Downstream recipients. A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. B. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. 6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). b. Other rights. 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. 2. Patent and trademark rights are not licensed under this Public License. 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. Section 3 – License Conditions. Your exercise of the Licensed Rights is expressly made subject to the following conditions. a. Attribution. 1. If You Share the Licensed Material (including in modified form), You must: A. retain the following if it is supplied by the Licensor with the Licensed Material: i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); ii. a copyright notice; iii. a notice that refers to this Public License; iv. a notice that refers to the disclaimer of warranties; v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. 4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License. Section 4 – Sui Generis Database Rights. Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. Section 5 – Disclaimer of Warranties and Limitation of Liability. a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. Section 6 – Term and Termination. a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or 2. upon express reinstatement by the Licensor. c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. Section 7 – Other Terms and Conditions. a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. Section 8 – Interpretation. a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. Creative Commons may be contacted at creativecommons.org. deepin-deb-installer-6.5.5/LICENSES/CC0-1.0.txt000066400000000000000000000156101474340456100203400ustar00rootroot00000000000000Creative Commons Legal Code CC0 1.0 Universal CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER. Statement of Purpose The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work"). Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others. For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights. 1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following: i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work; ii. moral rights retained by the original author(s) and/or performer(s); iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work; iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below; v. rights protecting the extraction, dissemination, use and reuse of data in a Work; vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof. 2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose. 3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose. 4. Limitations and Disclaimers. a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document. b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law. c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work. d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work. deepin-deb-installer-6.5.5/LICENSES/GPL-3.0-or-later.txt000066400000000000000000001035561474340456100221510ustar00rootroot00000000000000GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright © 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. “This License” refers to version 3 of the GNU General Public License. “Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. “The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. A “covered work” means either the unmodified Program or a work based on the Program. To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work. A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. “Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. “Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”. A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”. You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . deepin-deb-installer-6.5.5/LICENSES/LGPL-2.0-or-later.txt000066400000000000000000000602541474340456100222610ustar00rootroot00000000000000GNU LIBRARY GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1991 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the library GPL. It is numbered 2 because it goes with version 2 of the ordinary GPL.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Library General Public License, applies to some specially designated Free Software Foundation software, and to any other libraries whose authors decide to use it. You can use it for your libraries, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library, or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link a program with the library, you must provide complete object files to the recipients so that they can relink them with the library, after making changes to the library and recompiling it. And you must show them these terms so they know their rights. Our method of protecting your rights has two steps: (1) copyright the library, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the library. Also, for each distributor's protection, we want to make certain that everyone understands that there is no warranty for this free library. If the library is modified by someone else and passed on, we want its recipients to know that what they have is not the original version, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that companies distributing free software will individually obtain patent licenses, thus in effect transforming the program into proprietary software. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License, which was designed for utility programs. This license, the GNU Library General Public License, applies to certain designated libraries. This license is quite different from the ordinary one; be sure to read it in full, and don't assume that anything in it is the same as in the ordinary license. The reason we have a separate public license for some libraries is that they blur the distinction we usually make between modifying or adding to a program and simply using it. Linking a program with a library, without changing the library, is in some sense simply using the library, and is analogous to running a utility program or application program. However, in a textual and legal sense, the linked executable is a combined work, a derivative of the original library, and the ordinary General Public License treats it as such. Because of this blurred distinction, using the ordinary General Public License for libraries did not effectively promote software sharing, because most developers did not use the libraries. We concluded that weaker conditions might promote sharing better. However, unrestricted linking of non-free programs would deprive the users of those programs of all benefit from the free status of the libraries themselves. This Library General Public License is intended to permit developers of non-free programs to use free libraries, while preserving your freedom as a user of such programs to change the free libraries that are incorporated in them. (We have not seen how to achieve this as regards changes in header files, but we have achieved it as regards changes in the actual functions of the Library.) The hope is that this will lead to faster development of free libraries. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, while the latter only works together with the library. Note that it is possible for a library to be covered by the ordinary General Public License rather than by this special one. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Library General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also compile or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. c) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. d) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Library General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. one line to give the library's name and an idea of what it does. Copyright (C) year name of author This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. signature of Ty Coon, 1 April 1990 Ty Coon, President of Vice That's all there is to it!deepin-deb-installer-6.5.5/LICENSES/LGPL-3.0-or-later.txt000066400000000000000000001221621474340456100222570ustar00rootroot00000000000000GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library. GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright © 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. “This License” refers to version 3 of the GNU General Public License. “Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. “The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. A “covered work” means either the unmodified Program or a work based on the Program. To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work. A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. “Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. “Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”. A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”. You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . deepin-deb-installer-6.5.5/LICENSES/LLVM-exception.txt000066400000000000000000000066241474340456100222520ustar00rootroot00000000000000As an exception, if, as a result of your compiling your source code, portions of this Software are embedded into an Object form of such source code, you may redistribute such embedded portions in such Object form without complying with the conditions of Sections 4(a), 4(b) and 4(d) of the License. In addition, if you combine or link compiled forms of this Software with software that is licensed under the GPLv2 ("Combined Software") and if a court of competent jurisdiction determines that the patent provision (Section 3), the indemnity provision (Section 9) or other Section of the License conflicts with the conditions of the GPLv2, you may retroactively and prospectively choose to deem waived or otherwise exclude such Section(s) of the License, but only in their entirety and only with respect to the Combined Software. ============================================================================== Software from third parties included in the LLVM Project: ============================================================================== The LLVM Project contains third party software which is under different license terms. All such code will be identified clearly using at least one of two mechanisms: 1) It will be in a separate directory tree with its own `LICENSE.txt` or `LICENSE` file at the top containing the specific license and restrictions which apply to that software, or 2) It will contain specific license and restriction terms at the top of every file. ============================================================================== Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy): ============================================================================== University of Illinois/NCSA Open Source License Copyright (c) 2003-2019 University of Illinois at Urbana-Champaign. All rights reserved. Developed by: LLVM Team University of Illinois at Urbana-Champaign http://llvm.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal with the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimers. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimers in the documentation and/or other materials provided with the distribution. * Neither the names of the LLVM Team, University of Illinois at Urbana-Champaign, nor the names of its contributors may be used to endorse or promote products derived from this Software without specific prior written permission. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. deepin-deb-installer-6.5.5/LICENSES/MIT.txt000066400000000000000000000020661474340456100201310ustar00rootroot00000000000000MIT License Copyright (c) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. deepin-deb-installer-6.5.5/README.md000066400000000000000000000027751474340456100170200ustar00rootroot00000000000000# Deepin deb installer Deepin deb installer helps users install and remove local packages. Deepin deb installer is an easy-to-use deb package management tool with a simple interface for users to quickly install customized applications not included in App Store supporting bulk installation, version identification and auto completion. ### Dependencies - libqapt3 - libqapt3-runtime - deepin-elf-verify - deepin-elf-sign-tool ### Build dependencies - pkg-config - cmake - libqt5widgets5 - libqt5concurrent5 - libqapt-dev - libdtkwidget-dev - qtbase5-dev - qttools5-dev-tools - qttools5-dev - qtchooser - libgtest-dev - deepin-gettext-tools - libpolkit-qt5-1-dev ## Installation ### Build from source code 1. Make sure you have installed all dependencies ```shell sudo apt build-dep deepin-deb-installer ``` 2. Build ```shell mkdir build cd build cmake .. make ``` 3. Install ```shell sudo make install ``` ## Documentations Please see [INTRODUCTION.md](./INTRODUCTION.md) ## Getting help Any usage issues can ask for help via * [Gitter](https://gitter.im/orgs/linuxdeepin/rooms) * [IRC channel](https://webchat.freenode.net/?channels=deepin) * [Forum](https://bbs.deepin.org) * [WiKi](https://wiki.deepin.org/) ## Getting involved We encourage you to report issues and contribute changes * [Contribution guide for developers](https://github.com/linuxdeepin/developer-center/wiki/Contribution-Guidelines-for-Developers-en). (English) ## License Deepin deb installer is licensed under [GPL-3.0-or-later](LICENSE) deepin-deb-installer-6.5.5/README.zh_CN.md000066400000000000000000000027551474340456100200160ustar00rootroot00000000000000# 深度软件包安装器 深度软件包安装器帮助用户安装和卸载本地的软件包,它是一个有着简单界面且易用的包管理工具,它可以让用户安装没有在应用商店中的自己的软件包,同时它还支持批量安装、版本识别以及自动解决依赖。 ### 安装依赖包 - libqapt3 - libqapt3-runtime - deepin-elf-sign-tool ### 构建依赖包 - pkg-config - cmake - libqt5widgets5 - libqt5concurrent5 - libqapt-dev - libdtkwidget-dev - qtbase5-dev - qttools5-dev-tools - qttools5-dev - qtchooser - libgtest-dev - deepin-gettext-tools - libpolkit-qt5-1-dev ## 编译安装 ### 从源码构建 1. 确保已经安装了所有的构建依赖 ```shell sudo apt build-dep deepin-deb-installer ``` 2. 执行构建 ```shell mkdir build cd build cmake .. make ``` 3. 安装 ```shell sudo make install ``` ## 文档 部分开发文档请参考 [INTRODUCTION.md](./INTRODUCTION.md) ## 获得帮助 任何使用问题都可以通过以下方式寻求帮助 * [Gitter](https://gitter.im/orgs/linuxdeepin/rooms) * [IRC channel](https://webchat.freenode.net/?channels=deepin) * [Forum](https://bbs.deepin.org) * [WiKi](https://wiki.deepin.org/) ## 代码贡献 我们鼓励报告问题并做出更改,相关内容请参考一下文档 * [开发者代码贡献指南](https://github.com/linuxdeepin/developer-center/wiki/Contribution-Guidelines-for-Developers). (中文) ## License 深度软件包安装器的开源协议是 [GPL-3.0-or-later](LICENSE) deepin-deb-installer-6.5.5/assets/000077500000000000000000000000001474340456100170305ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/data/000077500000000000000000000000001474340456100177415ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/data/deepin-deb-installer.json000066400000000000000000000020371474340456100246250ustar00rootroot00000000000000{ "groups": [ { "key": "basic", "name": "Basic", "groups": [ { "key": "develop_digital_verify", "name": "", "options": [ { "key": "", "name": "", "type": "checkbox", "text": "Check digital signatures if the developer mode is enabled", "default": false, "hide": false } ] }, { "key": "hierarachical_verify", "name": "", "options": [ { "key": "proceedSecurity", "type": "proceedLabel", "hide": false } ] } ] } ] }deepin-deb-installer-6.5.5/assets/deepin-deb-installer.desktop000066400000000000000000000253351474340456100244220ustar00rootroot00000000000000[Desktop Entry] Categories=System; Keywords=package;installer;deepin;dde;dpkg;apt; Comment=Package Installer helps users install and remove local packages, and supports bulk installation. Exec=deepin-deb-installer %F GenericName=Package Installer Icon=deepin-deb-installer MimeType=application/vnd.debian.binary-package;application/x-deb; Name=Package Installer StartupNotify=false Terminal=false Type=Application X-Deepin-Vendor=deepin # Translations: # Do not manually modify! Comment[ar]=مثبت الحزم: يساعد المستخدمين على تثبيت وإزالة الحزم المحلية، ويدعم أيضاً الثبيت الجماعي للحزم. Comment[bg]=Deepin Мениджър на пакети се използва, за да помогне на потребителите да инсталират и премахват локален пакет, поддръжка на групово инсталиране. Comment[bo]=མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས་ནི་སྤྱོད་མཁན་ལ་རང་སའི་མཉེན་ཆས་སྒྲིག་སྦྱོར་དང་བཤིག་འདོན་བྱེད་རོགས་བྱེད་པའི་ཡོ་བྱད་ཅིག་རེད་ལ། ཉེར་སྤྱོད་མང་པོ་མཉམ་དུ་སྒྲིག་སྦྱོར་བྱ་ཐུབ། Comment[br]=Ar stalier pakadoù a sikour an implijaderien da staliañ ha da zilemel ar pakadoù lec'hel, hag e kemer e kont ar staliadur a-vloc'had. Comment[ca]=L'Instal·lador de paquets ajuda els usuaris a instal·lar i eliminar paquets locals i admet la instal·lació massiva. Comment[cs]=Instalátor balíčků slouží uživateli jako pomůcka pro instalaci a odebírání místních balíčků (tj. nepocházejících z repozitářů). Podporuje také hromadnou instalaci. Comment[da]=Pakkeinstallationsprogram hjælpe brugere med at installere og fjerne lokale pakker, med understøttelse af masseinstallation. Comment[de]=Das Paket-Installationsprogramm hilft Benutzern bei der Installation und Entfernung lokaler Pakete und unterstützt die Masseninstallation. Comment[en_AU]=The Deepin Package Installer helps users install and remove local packages. It supports bulk package installation. Comment[es]=Instalador de paquetes de Deepin ayuda a instalar y eliminar paquetes locales, y admite instalación en masa. Comment[es_419]=El Gestor de Paquetes Deepin se usa para ayudar a los usuarios a instalar y eliminar paquetes locales, admite la instalación masiva. Comment[et]=Deepin pakihaldur on rakendus, millega kasutajad saavad arvutisse tarkvara paigaldada ja seda sealt eemaldada. Toetab ka hulgipaigaldamist. Comment[fi]=Ohjelmiston asentaja auttaa käyttäjiä asentamaan ja poistamaan ohjelmia. Comment[fr]=Installateur de paquets aide les utilisateurs à installer et supprimer des paquets locaux et prend en charge l'installation en bloc. Comment[gl_ES]=O instalador do paquete axuda aos usuarios a instalar e eliminar paquetes locais e admite a instalación masiva. Comment[hi_IN]=पैकेज इंस्टॉलर द्वारा उपयोक्ता लोकल पैकेज इंस्टॉल व हटा सकते हैं, यह सामूहिक इंस्टॉल की सुविधा भी प्रदान करता है। Comment[hu]=A Csomagtelepítő segít a felhasználóknak különféle csomagok telepítésében és eltávolításában, valamint támogatja a kötegelt telepítést. Comment[id]=Manajer Paket Deepin digunakan untuk menolong para pengguna install dan menghapus paket lokal, mendukung install massal Comment[it]=Il Gestore pacchetti è utile per installare e rimuovere software in locale, supporta inoltre l'installazione massiva. Localizzazione italiana a cura di Massimo A. Carofano. Comment[ja]=パッケージ インストーラーは、ユーザーがローカル パッケージをインストールしたり削除したりするのに役立ちます。一括インストールにも対応しています。 Comment[ko]=패키지 설치 관리자는 사용자가 로컬 패키지를 설치하고, 제거할 수 있도록 지원하고 일괄 설치를 지원합니다. Comment[lt]=Paketų diegimo programa padeda naudotojams įdiegti ir šalinti vietinius paketus bei palaiko masinį įdiegimą. Comment[mn]=Деепин Багц Зохицуулагч нь хэрэглэгчдэд програм суулгах устгахад туслахаас гадна бүлэг суулгалтыг дэмждэг. Comment[ms]=Pemasang pakej dapat membantu pengguna dan membuang pakej-pakej setempat, dan juga menyokong pemasangan pukal. Comment[ne]=प्याकेज स्थापनाकर्ताले प्रयोगकर्ताहरूलाई स्थानीय प्याकेजहरू स्थापना र हटाउन मद्दत गर्दछ, र बल्क स्थापनालाई समर्थन गर्दछ। Comment[nl]=Pakketinstallatie is een programma dat gebruikers helpt bij het installeren van lokale software. Comment[pl]=Instalator pakietów pomaga użytkownikom instalować i usuwać pakiety lokalne oraz obsługuje instalację zbiorczą. Comment[pt]=O Instalador de Pacotes ajuda os utilizadores a instalar e remover pacotes locais e suporta a instalação em massa. Comment[pt_BR]=O Instalador de Pacotes ajuda os usuários a instalar e remover pacotes locais e suporta a instalação em massa. Comment[ru]=Установщик Пакетов используется для установки и удаления программного обеспечения и поддерживает массовую установку приложений. Comment[sk]=Aplikácia Deepin Správca balíčkov slúži na pomoc používateľom pri inštalácii a odstraňovaní lokálnych balíčkov, podporuje hromadnú inštaláciu. Comment[sq]=Instaluesi i Paketave i ndihmon përdoruesit të instalojnë dhe heqin paketa vendore, dhe mbulon instalime në masë. Comment[sr]=Инсалатер пакета помаже корисницима да инсталирају и уклањају локалне пакете. Подржава групну инсталацију. Comment[tr]=Paket Kurucu, kullanıcıların yerel paketleri kurmasına ve kaldırmasına yardımcı olur ve toplu kurulumu destekler. Comment[ug]=ئورالما ئورناتقۇچ ئىشلەتكۈچىلەرنىڭ يەرلىك ئورالمىلارنى ئورنىتىشى ۋە ئۆچۈرۈشىگە ياردەم بېرىدۇ ھەمدە توپ قاچىلاشنى قوللايدۇ. Comment[uk]=За допомогою засобу встановлення пакунків користувачі можуть встановлювати і вилучати локальні пакунки. Передбачено пакетне встановлення. Comment[vi]=Trình cài đặt gói hỗ trợ người dùng cài đặt và xóa hàng loạt các gói phần mềm Comment[zh_CN]=软件包安装器用于帮助用户安装和卸载本地软件,支持批量安装。 Comment[zh_HK]=軟件包安裝器用於幫助用戶安裝和卸載本地軟件,支持批量安裝。 Comment[zh_TW]=軟體包安裝器用來幫助使用者安裝和移除本機軟體包。支援批次安裝。 GenericName[ar]=مثبّت الحزم GenericName[ast]=Xestor de paquetes GenericName[bg]=Мениджър на пакети GenericName[bo]=མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས། GenericName[br]=Stalier pakadoù GenericName[ca]=Instal·lador de paquets GenericName[cs]=Instalátor balíčků GenericName[da]=Pakkeinstallationsprogram GenericName[de]=Paket-Installationsprogramm GenericName[en_AU]=Package Installer GenericName[es]=Instalador de paquetes GenericName[es_419]=Gestor de Paquetes GenericName[et]=Pakihaldur GenericName[fi]=Ohjelmiston asentaja GenericName[fr]=Installateur de paquets GenericName[gl_ES]=Instalador do paquete GenericName[hi_IN]=पैकेज इंस्टॉलर GenericName[hu]=Csomagtelepítő GenericName[id]=Manajer Paket GenericName[it]=Gestore pacchetti GenericName[ja]=パッケージ インストーラー GenericName[ko]=패키지 관리자 GenericName[lt]=Paketų diegimo programa GenericName[mn]=Багц Зохицуулагч GenericName[ms]=Pemasang Pakej GenericName[ne]=प्याकेज स्थापनाकर्ता GenericName[nl]=Pakketinstallatie GenericName[pa]=ਪੈਕੇਜ ਮੈਨੇਜਰ GenericName[pl]=Instalator pakietów GenericName[pt]=Instalador de Pacotes GenericName[pt_BR]=Instalador de Pacotes GenericName[ru]=Установщик Пакетов GenericName[sk]=Správca balíčkov GenericName[sq]=Instalues Paketash GenericName[sr]=Инсталатер Пакета GenericName[tr]=Paket Kurucu GenericName[ug]=بوغچا قاچىلىغۇچ GenericName[uk]=Встановлювач пакунків GenericName[vi]=Trình cài đặt gói GenericName[zh_CN]=软件包安装器 GenericName[zh_HK]=軟件包安裝器 GenericName[zh_TW]=軟體包安裝器 Name[ar]=مثبّت الحزم Name[ast]=Xestor de paquetes Name[bg]=Мениджър на пакети Name[bo]=གཏིང་ཟབ་མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས། Name[br]=Stalier pakadoù Deepin Name[ca]=Instal·lador de paquets del Deepin Name[cs]=Deepin instalátor balíčků Name[da]=Pakkeinstallationsprogram Name[de]=Deepin Paket-Installationsprogramm Name[en_AU]=Package Installer Name[es]=Instalador de paquetes Name[es_419]=Gestor de Paquetes Name[et]=Pakihaldur Name[fi]=Deepin pakettien asentaja Name[fr]=Installateur de paquets Deepin Name[gl_ES]=Instalador do paquete de Deepin Name[hi_IN]=दीपिन पैकेज इंस्टॉलर Name[hu]=Deepin® Csomagtelepítő Name[id]=Manajer Paket Name[it]=Gestore pacchetti di Deepin Name[ja]=Deepin パッケージ インストーラー Name[ko]=Deepin 패키지 설치도구 Name[lt]=Paketų diegimo programa Name[mn]=Багц Зохицуулагч Name[ms]=Pemasang Pakej Name[ne]=प्याकेज स्थापनाकर्ता Name[nl]=Deepin Pakketinstallatie Name[pa]=ਪੈਕੇਜ ਮੈਨੇਜਰ Name[pl]=Instalator pakietu Deepin Name[pt]=Instalador de Pacotes Deepin Name[pt_BR]=deepin Instalador de Pacotes Name[ru]=Установщик Пакетов Deepin Name[sk]=Správca balíčkov Name[sq]=Instalues Paketash Deepin Name[sr]=Дипин Инсталатер Пакета Name[tr]=Deepin Paket Kurucu Name[ug]=Deepin بوغچا قاچىلىغۇچ Name[uk]=Засіб встановлення пакунків Deepin Name[vi]=Trình cài đặt gói Name[zh_CN]=深度软件包安装器 Name[zh_HK]=Deepin 軟件包安裝器 Name[zh_TW]=Deepin 軟體包安裝器 deepin-deb-installer-6.5.5/assets/deepin-deb-installer.xml000066400000000000000000000005261474340456100235440ustar00rootroot00000000000000 deepin deb installer files deepin-deb-installer-6.5.5/assets/deepin-deb-installer/000077500000000000000000000000001474340456100230175ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/000077500000000000000000000000001474340456100264055ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/common/000077500000000000000000000000001474340456100276755ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/common/arrowdown_icon.svg000077500000000000000000000014311474340456100334520ustar00rootroot00000000000000 deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/common/arrowup_icon.svg000077500000000000000000000014231474340456100331300ustar00rootroot00000000000000 deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/common/attention.svg000077500000000000000000000020421474340456100324240ustar00rootroot00000000000000 attention deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/common/close_icon.svg000077500000000000000000000025111474340456100325350ustar00rootroot00000000000000 ]> deepin-deb-installer.svg000077500000000000000000000337231474340456100343410ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/common deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/common/down.svg000077500000000000000000000051171474340456100313740ustar00rootroot00000000000000 image/svg+xml next Created with Sketch. deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/common/icon_menu.svg000077500000000000000000000047771474340456100324140ustar00rootroot00000000000000 image/svg+xml img_upload img_upload Created with Sketch. deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/common/notes.svg000077500000000000000000000031531474340456100315530ustar00rootroot00000000000000 notes deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/common/tips.svg000077500000000000000000000030731474340456100314030ustar00rootroot00000000000000 tips deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/common/up.svg000077500000000000000000000050421474340456100310460ustar00rootroot00000000000000 image/svg+xml previous Created with Sketch. deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/en_US/000077500000000000000000000000001474340456100274165ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/en_US/fig/000077500000000000000000000000001474340456100301635ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/en_US/fig/.DS_Store000066400000000000000000000140041474340456100316450ustar00rootroot00000000000000Bud1 t.jpgIl about.jpgIlocblob|add.jpgIlocblobbulk-install.jpgIlocblobhelp.jpgIlocblobp remove.jpgIlocblobsingle-install.jpgIlocblobd unable.jpgIlocblobJ  @ @ @ @ E DSDB ` @ @ @deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/en_US/fig/bulkinstall.png000066400000000000000000000655551474340456100332350ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ MiCCPPhotoshop ICC profilexڝSwX>eVBl"#Ya@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}MDz^?h4 a֯{g/`ܿyF+i#u$(ؗ,D`;M?mL2W]s>~+yB~U.p576?9Q'孯>q1P0ho9]o<;m"k?yɇ<7_Roo;aM?678o78jاLg>Wļ9~/9ⳏ$zkW1!V',^\lyafU^OPADZ m/?|B34\p9Ⱥ5!?׼.o~ yor0ggL?z?W>'ZSКLxfwA/~Gxbi_?߾Ugvp)4 όe@[?7~Ο QI"\wϮtEh2`/J p-'hcG}/9iSʗ6Ѱ4ŻS=pWÿ}/~{>j}N?\5z-:9zO}[x„ű;?zCēNX<~ux ^n@֯_?22vx011q!*lڴ j`7 ..FM{6h i4 E__h>D[A4ЕbnMDPaddDD:b~tDQ4h] LMM)SSS###h ˈMtɕt:p?EG=<<CPkDQhYAk. BJi`0<"ڴi`?~*eIENDB`deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/en_US/fig/cant3.png000066400000000000000000000551351474340456100317120ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ MiCCPPhotoshop ICC profilexڝSwX>eVBl"#Ya@Ņ VHUĂ H(gAZU\8ܧ}zy&j9R<:OHɽH gyx~t?op.$P&W " R.TSd ly|B" I>ةآ(G$@`UR,@".Y2GvX@`B, 8C L0ҿ_pH˕͗K3w!lBa)f "#HL 8?flŢko">!N_puk[Vh]3 Z zy8@P< %b0>3o~@zq@qanvRB1n#Dž)4\,XP"MyRD!ɕ2 w ONl~Xv@~- g42y@+͗\LD*A aD@ $<B AT:18 \p` Aa!:b""aH4 Q"rBj]H#-r9\@ 2G1Qu@Ơst4]k=Kut}c1fa\E`X&cX5V5cX7va$^lGXLXC%#W 1'"O%zxb:XF&!!%^'_H$ɒN !%2I IkHH-S>iL&m O:ňL $RJ5e?2BQͩ:ZImvP/S4u%͛Cˤ-Кigih/t ݃EЗkw Hb(k{/LӗT02goUX**|:V~TUsU?y TU^V}FUP թU6RwRPQ__c FHTc!2eXBrV,kMb[Lvv/{LSCsfffqƱ9ٜJ! {--?-jf~7zھbrup@,:m:u 6Qu>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-installer/package-installer/en_US/fig/remove.png000066400000000000000000000507521474340456100321770ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ MiCCPPhotoshop ICC profilexڝSwX>eVBl"#Ya@Ņ VHUĂ H(gAZU\8ܧ}zy&j9R<:OHɽH gyx~t?op.$P&W " R.TSd ly|B" I>ةآ(G$@`UR,@".Y2GvX@`B, 8C L0ҿ_pH˕͗K3w!lBa)f "#HL 8?flŢko">!N_puk[Vh]3 Z zy8@P< %b0>3o~@zq@qanvRB1n#Dž)4\,XP"MyRD!ɕ2 w ONl~Xv@~- g42y@+͗\LD*A aD@ $<B AT:18 \p` Aa!:b""aH4 Q"rBj]H#-r9\@ 2G1Qu@Ơst4]k=Kut}c1fa\E`X&cX5V5cX7va$^lGXLXC%#W 1'"O%zxb:XF&!!%^'_H$ɒN !%2I IkHH-S>iL&m O:ňL $RJ5e?2BQͩ:ZImvP/S4u%͛Cˤ-Кigih/t ݃EЗkw Hb(k{/LӗT02goUX**|:V~TUsU?y TU^V}FUP թU6RwRPQ__c FHTc!2eXBrV,kMb[Lvv/{LSCsfffqƱ9ٜJ! {--?-jf~7zھbrup@,:m:u 6Qu>cy Gm7046l18c̐ckihhI'&g5x>fob4ekVyVV׬I\,mWlPW :˶vm))Sn1 9a%m;t;|rtuvlp4éĩWggs5KvSmnz˕ҵܭm=}M.]=AXq㝧/^v^Y^O&0m[{`:>=e>>z"=#~~~;yN`k5/ >B Yroc3g,Z0&L~oL̶Gli})*2.QStqt,֬Yg񏩌;jrvgjlRlc웸xEt$ =sl3Ttcܢ˞w|/%ҟ3 cHRMz%u0`:o_FGIDATxw`TU>9NN* Aڷ}oum-(VDT@.5!{dfd$aL=w{9`R(;; 0r`@Lb1 i@L 1 4Dҥ횡Bq=˅-j = cZJjl )ݭ{z3 ɸ녽DÌnt."LMHvh}ͣ^٭f/d.bc:5ӯ*41"RnS z7EgU}q 㦅=f **!6]M1-dO?Nk갚lQ6m:\MgyW{RKֵi&lZ34}V-yӽ"6KOQii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ٯȜm[SIL P Ui,Qus,zz|w [@~슸5aqVěd v1/Ή8o iJț3f)o-)Cי{`iTgmk?|5"}<xD"ݽLgd{g/ݟG" R9~o&W/0=Za&lT#4F@52 iPLjdT#4F@52 iPLjdT#4F@52 iPLjdT#4F@52 iPLjdT#4F@52 iPLjdT#4F@52 iPLjdT#4F@52 iPLjdT#4F@52 iPLjdT#ZLDz{{= Ȥ IENDB`deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/en_US/fig/success.png000066400000000000000000000577611474340456100323610ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ MiCCPPhotoshop ICC profilexڝSwX>eVBl"#Ya@Ņ VHUĂ H(gAZU\8ܧ}zy&j9R<:OHɽH gyx~t?op.$P&W " R.TSd ly|B" I>ةآ(G$@`UR,@".Y2GvX@`B, 8C L0ҿ_pH˕͗K3w!lBa)f "#HL 8?flŢko">!N_puk[Vh]3 Z zy8@P< %b0>3o~@zq@qanvRB1n#Dž)4\,XP"MyRD!ɕ2 w ONl~Xv@~- g42y@+͗\LD*A aD@ $<B AT:18 \p` Aa!:b""aH4 Q"rBj]H#-r9\@ 2G1Qu@Ơst4]k=Kut}c1fa\E`X&cX5V5cX7va$^lGXLXC%#W 1'"O%zxb:XF&!!%^'_H$ɒN !%2I IkHH-S>iL&m O:ňL $RJ5e?2BQͩ:ZImvP/S4u%͛Cˤ-Кigih/t ݃EЗkw Hb(k{/LӗT02goUX**|:V~TUsU?y TU^V}FUP թU6RwRPQ__c FHTc!2eXBrV,kMb[Lvv/{LSCsfffqƱ9ٜJ! {--?-jf~7zھbrup@,:m:u 6Qu>cy Gm7046l18c̐ckihhI'&g5x>fob4ekVyVV׬I\,mWlPW :˶vm))Sn1 9a%m;t;|rtuvlp4éĩWggs5KvSmnz˕ҵܭm=}M.]=AXq㝧/^v^Y^O&0m[{`:>=e>>z"=#~~~;yN`k5/ >B Yroc3g,Z0&L~oL̶Gli})*2.QStqt,֬Yg񏩌;jrvgjlRlc웸xEt$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ө^h#<ii߈|m0vA@ k+?|1n9s/Zpd3f`32 g,}T+@O*Xt&}?{ᩥ__8xTh]M7wu=gRɄbIJIJWҒSZ7IPBe^YIS=绳2,D$e?yٞS|ڬ˯f4ǟͻIYȃ֗_4tb~Ï'p~6#C_|s×e‘6zּn"olNsًn`X '"r7xr̳_>=ZWɦeC-)oS N55mo[v̕e˖zqw.U$l:%Ȏ/_yu;oFm2e/ltnv*o~kLsˡ/]Z`#"ٹUss}yKwW[&XdFmIk{&},d hd~%#>U}ŭgNt5V4ucAPB[OYf" "dqM?=Ȇzxʠ Z*(b惙3_<4Lܰv""۸9WLd% O+ܺY^vY=(;_>Ex!Ӡ}[D,i~4{BZWۑ-^~U+mOvTw Fj4ORmcy3LSDD=i̍O}7-^ C+!1NR[yt#NOD<#;%Ff|>UJ_eegiUG$2=!핁9Ka; }̞#||f0"?{ }|XŷZM.5ux'`m[SCזc8=W馭V"b&krv미h<}ޟ-ؓ',^ta'DD,uwz+l-h4K+|Dj_u=z631h/wY V=e>=!:NYԼ³.J>`%%%YYYt UPP6:4iLL@^~ !Pdm4@ ? 0LhEL{<EAGUUՊ6:GNR4TEߢiOFdlNv*t:m6dh#`xCqǹ4rl6Ymt2LA-Priƃf !`LC 6p(b2ng >`1L&blVFdZfjm <_ME1d碍~t9}6ޥLLddd 44@@@2 2 i Ԡ"``-(<+IENDB`deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/en_US/fig/unable.png000066400000000000000000000473541474340456100321540ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ IDATxw|Ǚ''g D0sRlY-gkd&߮lw}`k'ɖWEI  D @0HgA$ 6G&MMMBHD̼@!@kk+u@!4i4i4i4i4i4i4i4i4i4qFs3>uUUE[(0E BjBZ3iyX l\Np82E`ƼH L"!4 ӍiXP%Eִ£z!EبF)M7c ê&`8bj%J "4BMa1M'یEIrclG!4WBfӍi9'=Lהp DBh4 dQJfy,B0Bh{48L# jd 1ƝV$,>BcM<O4vZ :Q8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Y>:c!e1f6% .\Ӵrc GBGwtttuul6'$I4MUG hAtuu9,`9@Ci6 M1XNMӰ΄} 1tvvJͨAfuvvb B~?~LGB0t Gg>"N>@Ci40o^#4h 5e~hU'B#X0 4ijo?y(@ĘXg/^tٔTfxo: 7vkJ{ĩ_tք`,m1&""~+|S g14 NAX|b&k?~_o:~rE;|>*sg-7_oٜԘ':v=yp44 NUds;%C&JOqwlI}+ DW,QSCI9g]z-s3D$W>b&>o[?~-xi٨6VMo<)sKƍϽ}d eG7߰؂A[K~Y6cqQҺ?[,ڷ,͋-Ӿr#M"ʨ'l/g r>eg`nޛ/SGM .[ǎnq|2"PuT{0bu֔2'yÚfN +Xνƹy&"$"eoϲ;!ڛlѼ̕7xgOJA M=߄Ǎ "2kߙW,yt˚zϵKr$|v6rFjOY 6~gip5Sx7=6'nÂ-\*S\0 4E3YE|4RwX|?l4s,^S̘n۶|A/taI)fOmCq?Ɩ{j=oҒqշޫA!:hF!>BS9񶃇Ϟ5#"Ύ.dF5(` i HiIcF/zcy:'Wp48uֶ憚Y5uri)rsE];'mZgEHӳ-}Ok[ڪQÈȒwmyv'D=tuƥ K[+쯫o:oc]:k.]w!8t?6"b%5[btK??\aNhڈX/oV,࣪b>:@4=8!a" ibPa }!j:%0p8V+љM0$vM<jŕhnK}t&#My@9eh&Asy:rYA Ӱ>beYVa c1(lZeoLa }bL&5pdY6LCb }E$GQ&h4 4h4 4hi4hi4@i4@i 7"GC4%LIENDB`p_package-installer.md000066400000000000000000000107611474340456100335730ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/en_US# Package Installer|deepin-deb-installer| ## Overview Package Installer is an easy-to-use .deb package management tool with a simple interface for users to quickly install customized applications not included in App Store supporting bulk installation, version identification and auto completion of dependencies. ![0|run](fig/run.png) ## Operations ### Run Package Installer You can open Package Installer as follows: - Double click a .deb package to run. - Click the icon of Package Installer from Launcher to run. ### Install Package Installer is capable to install an individual application or multiple applications. #### Singularly Install 1. On Package Installer interface, you can: - click **Select File**, select the package you want to install, click **Open**. - drag a .deb package directly into the interface. 2. Click **Install**. Authentication window pops up, enter your login password required to continue. 3. Click ![arrow_up](../common/down.svg) or ![arrow_down](../common/up.svg) to display or collapse the installing process during installation. 4. Click **Back** to keep on adding more packages or click **OK** to exit. ![1|success](fig/success.png) > ![notes](../common/notes.svg) Notes: If the installed package is detected to be the newer version, the **Downgrade** button will be displayed for you to return it to the older version; if the installed package is detected to be the lower version, the **Update** button will be displayed for you to update. #### Bulk Install To install multiple .deb packages at a time, you can click **Select File** or drag files into Package Installer. Please refer to [Singularly Install](#Singularly Install) for operation steps. Pay attention to the following: - You can view installing process when multiply installing. - Only **Install** button is displayed in the window. Installation would be done for packages of those other versions have been installed locally before. Re-installation would be done for packages of those the same versions have been installed locally before. - To remove a package from the list, right-click it and select **Delete**. ![1|bulkinstall](fig/bulkinstall.png) #### Unable to Install Package Installer is able to identify the packages could not be installed automatically, which effectively avoids the problem that they cannot be used after installation. Please read the prompt carefully, common causes include: - Unmatched package architecture. ![unable](fig/unable1.png) - Broken dependencies. ![unable](fig/unable.png) - No digital signature. ![cant](fig/cant3.png) - Lack of valid digital signature. ![cant4](fig/cant4.png) ### Uninstall Package Installer is used to uninstall .deb packages of those the same or different versions have been installed already. 1. On Package Installer interface, you can: - click **Select File**, select the package you want to install, click **Open**. - drag a .deb package directly into the interface. 2. Click **Remove**. 3. Click **Confirm** to uninstall. Authentication window pops up, enter your login password required to continue. 4. Click ![arrow_down](../common/down.svg) or ![arrow_up](../common/up.svg) to display or collapse the uninstalling process during uninstallation. 5. Click **OK** to exit. ![1|remove](fig/remove.png) > ![attention](../common/attention.svg) Attention: The system or other applications would be affected if you have uninstalled some applications. Please operate carefully. ## Main Menu In the main menu, you can switch window themes, view manual and get more information about Package Installer. ### Settings 1. Click ![icon_menu](../common/icon_menu.svg) on the interface. 2. Click **Settings**. 3. Check **Check digital signatures if the developer mode is enabled**, so when an installation package is being installed, this application will detect whether the installation package has a signature and whether the signature is valid. ### Theme The window theme includes Light Theme, Dark Theme and System Theme. 1. Click ![icon_menu](../common/icon_menu.svg) on the interface. 2. Click **Theme** to select a theme. ### Help You can click to view the manual, which will help you further know and use Package Installer. 1. Click ![icon_menu](../common/icon_menu.svg) on the interface. 2. Click **Help**. 3. View the manual. ### About 1. Click ![icon_menu](../common/icon_menu.svg) on the interface. 2. Click **About**. 3. View the version description. ### Exit 1. Click ![icon_menu](../common/icon_menu.svg) on the interface. 2. Click **Exit**. deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/en_US/package-installer.md000066400000000000000000000100551474340456100333270ustar00rootroot00000000000000# Package Installer|deepin-deb-installer| ## Overview Package Installer is an easy-to-use .deb package management tool with a simple interface for users to quickly install customized applications not included in App Store supporting bulk installation, version identification and auto completion of dependencies. ![0|run](fig/run.png) ## Operations ### Run Package Installer You can open Package Installer as follows: - Double click a .deb package to run. - Click the icon of Package Installer from Launcher to run. ### Install Package Installer is capable to install an individual application or multiple applications. #### Singularly Install 1. On Package Installer interface, you can: - click **Select File**, select the package you want to install, click **Open**. - drag a .deb package directly into the interface. 2. Click **Install**. Authentication window pops up, enter your login password required to continue. 3. Click ![arrow_up](../common/down.svg) or ![arrow_down](../common/up.svg) to display or collapse the installing process during installation. 4. Click **Back** to keep on adding more packages or click **OK** to exit. ![1|success](fig/success.png) > ![notes](../common/notes.svg) Notes: If the installed package is detected to be the newer version, the **Downgrade** button will be displayed for you to return it to the older version; if the installed package is detected to be the lower version, the **Update** button will be displayed for you to update. #### Bulk Install To install multiple .deb packages at a time, you can click **Select File** or drag files into Package Installer. Please refer to [Singularly Install](#Singularly Install) for operation steps. Pay attention to the following: - You can view installing process when multiply installing. - Only **Install** button is displayed in the window. Installation would be done for packages of those other versions have been installed locally before. Re-installation would be done for packages of those the same versions have been installed locally before. - To remove a package from the list, right-click it and select **Delete**. ![1|bulkinstall](fig/bulkinstall.png) #### Unable to Install Package Installer is able to identify the packages could not be installed automatically, which effectively avoids the problem that they cannot be used after installation. Please read the prompt carefully, common causes include: - Unmatched package architecture. ![unable](fig/unable1.png) - Broken dependencies. ![unable](fig/unable.png) ### Uninstall Package Installer is used to uninstall .deb packages of those the same or different versions have been installed already. 1. On Package Installer interface, you can: - click **Select File**, select the package you want to install, click **Open**. - drag a .deb package directly into the interface. 2. Click **Remove**. 3. Click **Confirm** to uninstall. Authentication window pops up, enter your login password required to continue. 4. Click ![arrow_down](../common/down.svg) or ![arrow_up](../common/up.svg) to display or collapse the uninstalling process during uninstallation. 5. Click **OK** to exit. ![1|remove](fig/remove.png) > ![attention](../common/attention.svg) Attention: The system or other applications would be affected if you have uninstalled some applications. Please operate carefully. ## Main Menu In the main menu, you can switch window themes, view manual and get more information about Package Installer. ### Theme The window theme includes Light Theme, Dark Theme and System Theme. 1. Click ![icon_menu](../common/icon_menu.svg) on the interface. 2. Click **Theme** to select a theme. ### Help You can click to view the manual, which will help you further know and use Package Installer. 1. Click ![icon_menu](../common/icon_menu.svg) on the interface. 2. Click **Help**. 3. View the manual. ### About 1. Click ![icon_menu](../common/icon_menu.svg) on the interface. 2. Click **About**. 3. View the version description. ### Exit 1. Click ![icon_menu](../common/icon_menu.svg) on the interface. 2. Click **Exit**. deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_CN/000077500000000000000000000000001474340456100274065ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_CN/fig/000077500000000000000000000000001474340456100301535ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_CN/fig/cant1.png000066400000000000000000000466311474340456100317010ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ IDATxw`?󜶼Hlg8ΞdIHBJeRZ(eNR.F-mIǷB)ZJ(BBANxoָ{N('tK[=܉UWWXJKKOb@555D/ 1 `iiKCLXb44!, 1 `ia-Ԅ}n4MUIEQndD6R|j #Bi_wOo?FM8KqC1ԘBtP|ɬ w2t$Ҝ6Pc:UD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xhtґrd3MwƔ.>͋S@s{`˯}вEӮd5;yݼ|;v{WMfzM ];.>66ە517Ǧ]ܢy"]]-x=Da/3~t y%?XIӯk>,3,~{>RwQvyl`I蠇 =Lv?OOƃ/򤴞X@#/'XG ӹ*= '-7k^𳉃sMu#oٰf_NWXj~/FݮsSZI:3 7-ze柩 Y'J4Q緷vMOB32|g;o8\yθ&^xn8ORQԅ7ة*9r݂JֿǕXƜN 蠇$*sߢY%EHR7F+>WfϦi1~e;w۷ "H,;}{2}lsR-)pÇ'f5ŋ2L6?nE`CqwW'#gaNl_x܂yJ8,vuMc˻sp <=.y4bv^8 RTKKK~d\iס|}{!N›NӮiJ]S[3:i0=Ω:g]γT*HD"JN~Ά&g*|: J5_Q)IʛGӶmx<1uONm۱X,ڧm/VCC>;$_cjsJ6H2ֶMÛhaaa2l{ ܦ g86n4 ;vƳM_ܑ:,[v~xIuuh=9pg3-) q˲~ h{;^\;M[[[ɤ'hIJޯ/o5wyF TJM,k=В֮.^δ@ 8Nkkk"\,˲,۶}>7Fq9N{:-hy>ӒlΕLa FhdFhdFhdFhdX\\݋Y{έ v;jjj˲{)z =˽E #vl" . 4˲cUd:{l.((9̰Ms*۶CPw/\K"L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L|"Hw/ 6S.oIENDB`deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_CN/fig/cant4.png000077500000000000000000000434601474340456100317040ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ MiCCPPhotoshop ICC profilexڝSwX>eVBl"#Ya@Ņ VHUĂ H(gAZU\8ܧ}zy&j9R<:OHɽH gyx~t?op.$P&W " R.TSd ly|B" I>ةآ(G$@`UR,@".Y2GvX@`B, 8C L0ҿ_pH˕͗K3w!lBa)f "#HL 8?flŢko">!N_puk[Vh]3 Z zy8@P< %b0>3o~@zq@qanvRB1n#Dž)4\,XP"MyRD!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ΏeL=+Ѵ0`i鈪Q[֦X²9]=Spbղ"Nj35gYUK;i?ɞ1c9%3掽.uGOPvS*oO#'sŅ3 IwzJ"zȁw37w< gLXJ&IijG,>)cY<*X2j1%=@:Dd\:(QN Рۦ>_ph_~TH51<3E@/p\؎1rFD\4מk Z8i\q^_>?lH IIDATұ9 'W![y}e+0ʼL`3OYYaDFi3]28\Rtx=cU̚, N0RZȉ$fe{ +n_>m|7Ffۦh̗sEA]<8m\(N$:C]Ŭx'fDwhǙI3=)/KOwQ,@ԣ՟$1",q[LQF1:)%K*KnCJH8hJ~@\TX/4\jԦm/ʑpZ#ˮ}#!# E/e݉E\,C[wk:||:rnV ,\B!O]|_{G)_'e&&i;OD2jnR$]qnoilgq b. qה\F?ܙSQZa c?cR-DžFZ֟?ҳ}6FDܚ?y/qn&hT xۿ7'Èd΍bn^X2fѷAګbk>qpӛ[2Y/2a555FG[tN9g_ʂFVϿ/XyU~;蝹&&PhرújRaF.iZR!"rK 9`~0 YuW'"-Lj$˞xfeleg {~} cI{fOɈ(z̬,y'- "μsU{մ/d U#F1 ^?U]-sɌ+ֽ+SVD;ΌYrƧ^Uq͵/7+~XKߋP(T^^> .i(YEUˮ8G׾w!,Y On]8";߱4T:k=S>^5::/ϻÞ@LåAں;3㲊/?޳v|lvE6oLexWu5|`-7O\w0h~C=?X}2FU,[p|=cc|l-ZuD҄[|d˹/;u/o-7w M555=ohKY'͘4,g˛Mٻ;Z9!9 +V\1~jG"KnG:$G\4.##c#@ 3B0@?ǃH'x4 5 tWCLbp54!\ 1 jiWCLbp54!\ 1 jiWCLb000xb1 F(;IENDB`deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_CN/fig/run.png000077500000000000000000000202271474340456100314730ustar00rootroot00000000000000PNG  IHDR~/ pHYs+iTXtXML:com.adobe.xmp m8'IDATxip]y=瞻c R\M$%bDIDYC[H5vur]ONLquV8dVlՌK.a5ZcvxCD*2? Ed X΋oK\< yK}s_0P($0 0AO}MFu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Yt67=zҵ%;NYzYISMo-/OhsA$OMUך1Y-ӯeYY۠g2uxsb47;<-:騣5g,F 1V]6}mδǺT] Tnx~_ 6{씧FbHXkJV9֣հ 6a}嗛,=|aO1ͤՖ+: '` GDy /l|W5Bש/i*yv3#8ǶW^+2Im]~LFC$i<.>6Ofzb:z޽[H~3{h5eدijƏnnsxZ;dߵ8I"Gjk 9ŐD3n{BCRt %FmF TWI]"yN}EBnj1.mrYVFpnGL+`0tt+lNPRFpn\N/$IbQ(U#V$MA"GA8P<9 B: PQFiFYEO+LEYC"DA8ĴA0> FAP&A"DA8 z(eY w'bo0XVj8kA$n(ln%F$IZM&  vP#EDFp b:" q<|P(;;/) 0 VA)>1E@LGNh4:Bq&B\Ԩ.BŲ,*@UCLb@P54!T 1 jiUCLb@P54!T 1 jiUCLb@P54!T 1 jiUCLODvm}=CIENDB`deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_CN/fig/uninstall.png000066400000000000000000000561771474340456100327120ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ IDATxw`}76ޤ%R(jKֲl'vۉ؉3MI4MھYn43x[mmQHqアq<qAH>p{pxsN@!V[b tBc!T c!T c!T c!T c!T c!T c!T c!T c!TM|$h Bč@C)!+%BZDL3^rGh4q) %q: F5B"֘fx%/,qz|ȻD gpz FO:EQbQu<+IFwXNFmdB4oQڥ@ޜ!#P!!biι4WFfUe[#0Bx,(%qs._es7plFogbd ZAYZA!k!;qjlt!%j Z '<6B16=gXM3:Bi5_Fw]"v!F9ECF$I$J?0WP;o|yᒨܛ/>D,sE8߽n[MMNDsn6|^Aq&g4,уc|?1888c{^;:6rkw9W$am|?DQƘ$(Di1B>^N"IĹ;x0{5B7/ljv.D5X/Ve8^~ۇk]c D:x+[l9W698%>~jrR$a2<'h[~,6{ .:Z^qyXFX, y|xlj:ף4i)&N`4?I9w{ϭ wiAi8;^[>FKIJIG?޺vFB9B(څfQW)ЈrVN~VN>:=S!bkLqOCbR#P bi` !%qzb k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:=*aʓ&^3͝ma>׳o 0M]Wf݇[>8o\S䏛ղuf cI9ނ?7fw07fc˔+%bhbBZ=D خ5twؗZu.Qxh߈*ѐ4"|<jZ QwLHhJ L{9 i-଎IᗌCM}R ե*)ߝ#C}sdzaee'K@G?sW娨tz-y2H, oM#!! i5 h]`2KUaƮOAE$R ь1BX_TPc E#Oc@7j 7DQt\) 'k?J5izι,3R,˜s^EaD0hzyň,4NSk4 k' 5 t:YvF3릓ewt:JhX`xPch41Av,˴^f1Gk4iX#EFit t:^nV!QU*FQՊ05jP#1/jZ$Zkk[R@I5Mib"aP/@ h!0B(aL#P@ØF1B c!4B4i h!0B(aL#P@ØF1B c!4B4i h!0B(aL#P@ØF1B c!4B4i h!D0Lz5B]L@< qIENDB`p_package-installer.md000077500000000000000000000102451474340456100335630ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_CN# 软件包安装器|deepin-deb-installer| ## 概述 软件包安装器是一款deb包管理工具,界面简单易用,支持批量安装、版本信息识别和依赖包自动补全等功能,帮助您快速的实现安装操作。 ![run](fig/run.png) ## 操作介绍 ### 打开方式 您可以使用以下方法打开软件包安装器: - 双击deb包,软件包安装器会自动启动并准备安装该软件包。 - 直接将deb包拖拽到软件包安装器的图标上打开应用。 ### 安装 软件包安装器可以安装单个应用,也可以批量安装多个应用。 #### 单个安装 1. 在软件包安装器界面,您可以: - 单击 **选择文件** ,选择需要安装的软件包,单击 **打开**。 - 直接将软件包拖拽到应用界面。 2. 单击 **安装**,弹出授权窗口,请输入密码授权。 3. 安装过程中可以单击 ![arrowdown_icon](../common/down.svg) 或 ![arrowup_icon](../common/up.svg) 展开或收起安装进程信息。 4. 安装成功之后,单击 **完成** 退出,或者单击 **返回** 继续安装其他应用。 ![success](fig/success.png) > ![notes](../common/notes.svg) 说明:当检测到已安装的软件版本高于或低于待安装的版本时,界面会显示 **安装旧版本** 或 **更新** 按钮,您可以根据需要退回到旧版本或更新到新版本。 #### 多个安装 软件包安装器可以通过拖拽和选择文件的方式一次性批量添加多个软件包,安装步骤请参考 [单个安装](#单个安装),多个安装时请注意以下要点: - 批量安装同样也可以查看安装进程。 - 批量安装时按钮只显示 **安装** 按钮。本地已安装其他版本的软件包执行安装操作,本地已安装相同版本的软件包执行重新安装操作。 - 批量安装列表内,选择一个安装包,单击鼠标右键选择 **删除** 可将安装包从列表中移除。 ![mult](fig/multi.png) #### 无法安装 软件包安装器可以自动识别无法安装的包,有效规避安装后无法使用的问题。 常见的原因有: - 软件包架构不匹配。 ![cant](fig/cant1.png) - 依赖关系不满足。 ![cant](fig/cant2.png) - 安装包无数字签名。 ![cant](fig/cant3.png) - 安装包没有有效的数字签名。 ![cant](fig/cant4.png) ### 卸载 当安装包已存在相同或其他版本时,可以使用软件包安装器执行卸载操作。 1. 在软件包安装器界面,您可以: - 单击 **选择文件** ,选择需要安装的软件包,单击 **打开**。 - 直接将软件包拖拽到应用界面。 2. 单击 **卸载**。 3. 请注意界面上的卸载提示,单击 **确定卸载**,弹出授权窗口,请输入密码授权。 4. 卸载过程中可以单击 ![arrowdown_icon](../common/down.svg) 或 ![arrowup_icon](../common/up.svg) 展开或收起卸载进程信息。 5. 卸载成功后单击 **完成**。 ![uninstall](fig/uninstall.png) > ![notes](../common/attention.svg) 注意:卸载某些应用可能会对系统或其他软件产生影响,请谨慎操作。 ## 主菜单 在主菜单中,您可以切换窗口主题、查看帮助手册、了解软件包安装器的更多信息。 ### 设置 1. 在软件包安装器界面,单击 ![icon_menu](../common/icon_menu.svg)。 2. 选择 **设置**。 3. 勾选 **开发者模式下,检测安装包的签名**,安装软件包时将检测安装包有无签名及签名是否有效。 ### 主题 窗口主题包含浅色主题、深色主题和系统主题。 1. 在软件包安装器界面,单击 ![icon_menu](../common/icon_menu.svg)。 2. 选择 **主题**,选择一个主题颜色。 ### 帮助 查看帮助手册,进一步了解和使用软件包安装器。 1. 在软件包安装器界面,单击 ![icon_menu](../common/icon_menu.svg)。 2. 选择 **帮助**。 3. 查看软件包安装器的帮助手册。 ### 关于 1. 在软件包安装器界面,单击 ![icon_menu](../common/icon_menu.svg)。 2. 选择 **关于**。 3. 查看软件包安装器的版本和介绍。 ### 退出 1. 在软件包安装器界面,单击 ![icon_menu](../common/icon_menu.svg)。 2. 选择 **退出**。 deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_CN/package-installer.md000077500000000000000000000074761474340456100333370ustar00rootroot00000000000000# 软件包安装器|deepin-deb-installer| ## 概述 软件包安装器是一款deb包管理工具,界面简单易用,支持批量安装、版本信息识别和依赖包自动补全等功能,帮助您快速的实现安装操作。 ![0|run](fig/run.png) ## 操作介绍 ### 打开方式 您可以使用以下方法打开软件包安装器: - 双击deb包,软件包安装器会自动启动并准备安装该软件包。 - 直接将deb包拖拽到软件包安装器的图标上打开应用。 ### 安装 软件包安装器可以安装单个应用,也可以批量安装多个应用。 #### 单个安装 1. 在软件包安装器界面,您可以: - 单击 **选择文件** ,选择需要安装的软件包,单击 **打开**。 - 直接将软件包拖拽到应用界面。 2. 单击 **安装**,弹出授权窗口,请输入密码授权。 3. 安装过程中可以单击 ![arrowdown_icon](../common/down.svg) 或 ![arrowup_icon](../common/up.svg) 展开或收起安装进程信息。 4. 安装成功之后,单击 **完成** 退出,或者单击 **返回** 继续安装其他应用。 ![0|success](fig/success.png) > ![notes](../common/notes.svg) 说明:当检测到已安装的软件版本高于或低于待安装的版本时,界面会显示 **安装旧版本** 或 **更新** 按钮,您可以根据需要退回到旧版本或更新到新版本。 #### 多个安装 软件包安装器可以通过拖拽和选择文件的方式一次性批量添加多个软件包,安装步骤请参考 [单个安装](#单个安装),多个安装时请注意以下要点: - 批量安装同样也可以查看安装进程。 - 批量安装时按钮只显示 **安装** 按钮。本地已安装其他版本的软件包执行安装操作,本地已安装相同版本的软件包执行重新安装操作。 - 批量安装列表内,选择一个安装包,单击鼠标右键选择 **删除** 可将安装包从列表中移除。 ![0|mult](fig/multi.png) #### 无法安装 软件包安装器可以自动识别无法安装的包,有效规避安装后无法使用的问题。 常见的原因有: - 软件包架构不匹配。 ![0|cant](fig/cant1.png) - 依赖关系不满足。 ![0|cant](fig/cant2.png) ### 卸载 当安装包已存在相同或其他版本时,可以使用软件包安装器执行卸载操作。 1. 在软件包安装器界面,您可以: - 单击 **选择文件** ,选择需要安装的软件包,单击 **打开**。 - 直接将软件包拖拽到应用界面。 2. 单击 **卸载**。 3. 请注意界面上的卸载提示,单击 **确定卸载**,弹出授权窗口,请输入密码授权。 4. 卸载过程中可以单击 ![arrowdown_icon](../common/down.svg) 或 ![arrowup_icon](../common/up.svg) 展开或收起卸载进程信息。 5. 卸载成功后单击 **完成**。 ![0|uninstall](fig/uninstall.png) > ![attention](../common/attention.svg) 注意:卸载某些应用可能会对系统或其他软件产生影响,请谨慎操作。 ## 主菜单 在主菜单中,您可以切换窗口主题、查看帮助手册、了解软件包安装器的更多信息。 ### 主题 窗口主题包含浅色主题、深色主题和跟随系统主题。 1. 在软件包安装器界面,单击 ![icon_menu](../common/icon_menu.svg)。 2. 选择 **主题**,选择一个主题颜色。 ### 帮助 查看帮助手册,进一步了解和使用软件包安装器。 1. 在软件包安装器界面,单击 ![icon_menu](../common/icon_menu.svg)。 2. 选择 **帮助**。 3. 查看软件包安装器的帮助手册。 ### 关于 1. 在软件包安装器界面,单击 ![icon_menu](../common/icon_menu.svg)。 2. 选择 **关于**。 3. 查看软件包安装器的版本和介绍。 ### 退出 1. 在软件包安装器界面,单击 ![icon_menu](../common/icon_menu.svg)。 2. 选择 **退出**。 deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_HK/000077500000000000000000000000001474340456100274105ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_HK/fig/000077500000000000000000000000001474340456100301555ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_HK/fig/cant1.png000066400000000000000000000471331474340456100317010ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ I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`^J.*NGZm-[qq6­^ yyR#س'~ܨ/4Ѓ+~kad'ٸ8f2Ϝ)u# 2CeK?kҥCbNT>]@ Q]G҅4UnjgQ''kWCr J͚ =%&*o0}jwЃУ PԴԲb\q16|LbԲ-;W5JU8pԼ OmJK˫ Fo[2 B{h@7(A-ԹCtXh <~|ҥq=1?{;tدKWG_o _OW}eNkYp__jܫ{{l8U<_[ pWVm;"ZZJu[v۳x0}O'&Y3&@p<ࠪ0'F]ٯm(:ç/N}(Ҳ?b^6UUr).Nj ]Jj1;]lav-;Dzy,V)BBR1?1_[/̚6z_oؼe+6g6>O1yů=<}2B_zDb-y\VتeX=k?'ؤ!%*нS3x^g&/pS:g'"!!y;D@aQ鷿ynVzbbLFߓRw8E)-Wzzg _2"{{lek=[#ѻ~JlC7}{`չ#ĺa]^?93'dȠ/>n@~RV7r}娡B_kCCbCQav/wpP98wNշ2Oe.}t#1݈jV5  `0hZZ述P |cF#^WκAj4_4ȵ}0$eY^/"S [H$I>IV7`Gcqi4e93 {B!8RVU*U0GcqT*BRZo/XU(T>˜n\ `};-&@!iB!1Bc!4BaL#˜F!iB!0Bc!4BaL#˜F!1B!0Bc!4B!i˜F!1B!0BaL#l71B|bIENDB`deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_HK/fig/cant3.png000077500000000000000000000561111474340456100317020ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ IDATxw\S?soH2! *{luq:kuԭ^(( E@@X@v?Χ_@Q~>|777"ZhW@= 1  b 44i0h` ALA1  b FI10tRRify|@w $$YYBL3 hJ?BHԪZC:3SZK 8 ->%SZJof&&ug HL8khBLhz!Bie+nL] ^!,ic%~xy'8]uN-US @cJL/\ j AM Hdlh.r4-4LC/6 Wiy? D Y[yf&| {-^ٗ"rss9dDQeX[hz#BLW꛱xWB`bjj5o o-4IoUGo60E1LqqqQQQuuFjx7Yo0@ gO=xNmDRQQhxJhx7_u04lRFo4BH&! r!Q* s_PNἝ~!h!h3?f]mцؚL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`ki[CLb54!l 1 `ki[CLb54!l 1 `ki[CLb54!l 1 `ki[CLb54!l 1 `ki[CLb54!l 1 `ki[CLb54!l 1 `ki[CLb54!l 1 `ki[CLb83UU+**`(BH)7csrE9s 4$EJYYYYZZ( crqbu#PU2###551vg i<%%|8ڧjqqq8DRCA*++SSS BQc=/pZPU4%%X)++SUXP29c ; eggy[Ckj Q8J8`XV?E(BL%P(tBJ>J8(%AA-#G>^b7𪏧!Qdy0LjH:/?^} b7<-yhٜjJVjA{Jo%nX]-C؟;t_tȘwjd" "__+LD̕8Åp|pQ]2"m(;=I oxۏLDQycѺ~OZ@D9Wtq;`si8>V[4bj ?ME{FDYƐ ݠQժw^'oz/`,mϋ3z,[r圓3"YgC͜GȲ zyLA Bjjnnڗ[o^Q-ٵDѶ}Udz{fYɥ-nO9NVLbvc}ADӯPCLC-Ǹo8?kD7瓇#%>qo =s}~7t1"7I"R2r5pLokÕr-ׇbl7ࡿ^@ع~j{Íc{2"y6[>$v)<>?ˆ;_ w,סy$TK;4'b)$ \wvh"׮ʘg< ˨| CN;w6kXW~~~jjjm?.Thqp/φ.k`l+#߰mߙKNO+]`Ό_p];H2//XQQZppuf^gܻy* yiUŇ&ynY'y'Lꗭvlyo2\qk.?g4@2}"XwϳgpgѲ}?~_sgzV]>6FJjZ U/yε>sz;5AHE }|džeuqnzzJ VΝ{}';kzl纪_zaiazUyr%be9guouLCDj\[fr hץC֍=f1ڙٺvMZ%]Sun:NQ=l^O7{GiŮ]D)!TUUiXWQQjP Ƙ8?Q!` GAB-P Á>J P @-G Pz' nw|wB(hMC-RSS>)ԅRc݋iIMMqaSSS=5Z{^UU+++=^OP4!ETU|gB֑xДd !)^WQp 8>0cry<ۍ$4$v;Nۭu%(NE yi9ڀ1ll 1 `ki[CLb54!l 1 `ki[CLb54!l 1 `ki[sQQQѱ HbUIENDB`deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_HK/fig/run.png000077500000000000000000000155131474340456100314770ustar00rootroot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vŭKxuMgwC+w\, ;OnfqS^j3"q(˯rBG=ǜ7fŽm=CO2_t_z{zŝW-Zw|fi'o*:18Unr=mEgiG1uk\=_ސ87/Nzǟ>a])kܳiYq?#Q_=Rꊗ=;v;yٻTY?-Kq䉷 eH|=5n؉۷_)M[֍>}o:[&<\PԼPpn1Dm9ޖzA/ɑooϯϱiG1̂R6/^X]&O8tne"pw*/纆'orӖ[},(c+adRwgnMفW_{KM[jCڔ:ؕY1}[rSș+v[6&?\#׷$L/۰/8L縳h]r-5}xp0[6_J;wWi4*LRl0tЩe[l.hk#{2lyx~GaEur`3M2_ڵWo-7Zjo\N(0۲UFlgc2Kf܁܊5{lj:OĖqHDDr&Sd6ڵ~ݢ긣}fR]e{S6I^L27p;+s#k֭1슪DHwC6֙ȿ/ɏ%+WϹ"O8_7\Ͽ]~\V/|Y/Oh}ofFyKṕYljb)ogI2ֺ""NҮKgo׆,o8g])sUauM-paCi(^}XvUgdad_VV_U%S^z9k)SO=)6:_{ 0],L^DTYm՚7~{ly|S#;fvidjW y#1h8O8C~A|V^2䄡[nmO&gAc[p/E[>w)^o]n<ת_EhDE<<~䍽ms݃{G_m8x/8)mI_[cw=f'mU;џUWK`40]1?~]p^;o l41>~D%:) @ƻo\uU/׆?lt 'J1ǥQoN#=^5橿O$~>r_9uHDIJ6 ؐuV / i<1Y SR(I_QzN9d~GѣǟqSLi({o_j;Zꈈ5D߽˼mft^an?oE'<+##"2}_-§nuFY oſ-jh56[GiduO+q$%- oVrwwyZ>~,ۂ9c<^ٺv? w塏45554 Xcl,H##޹_l"481‹ZJ{{;S (s%Ƒ=Ql(4T)DPLjdT#4F@52 iPLjdT#4F@52 iPLjdT#4F@52 iPLjdT#4F@52 iPLjdT#4F@52 iPLjdT#4F@52 iPLjdT#4F@52 iPLjdT#4F@52 y">Y ƟUIENDB`deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_HK/fig/single.png000066400000000000000000000460741474340456100321570ustar00rootroot00000000000000PNG  I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j^'[q)}S|lzU+~?C=;%``.#nzV4o]OZ@iik4CwL!0(r3}G~Ӕ4"4 hc#jb:%@֢#B{?Dж5^.E}) j[NߤqІ^&V!Duڴu`?5emd=tƭ!!yyyxՂb tc@JlQQQlkQ(,, #PzqEToRB5jjØV B)~c ![notes](../common/notes.svg) 說明:當檢測到已安裝的軟件版本高於或低於待安裝的版本時,界面會顯示 **安裝舊版本** 或 **更新** 按鈕,您可以根據需要退回到舊版本或更新到新版本。 #### 多個安裝 軟件包安裝器可以通過拖拽和選擇文件的方式一次性批量添加多個軟件包,安裝步驟請參考 [單個安裝](#單個安裝),多個安裝時請注意以下要點: - 批量安裝同樣也可以查看安裝進程。 - 批量安裝時按鈕只顯示 **安裝** 按鈕。本地已安裝其他版本的軟件包執行安裝操作,本地已安裝相同版本的軟件包執行重新安裝操作。 - 批量安裝列表內,選擇一個安裝包,單擊鼠標右鍵選擇 **刪除** 可將安裝包從安裝列表移除。 ![0|mult](fig/multi.png) #### 無法安裝 軟件包安裝器可以自動識別無法安裝的包,有效規避安裝後無法使用的問題。 常見的原因有: - 軟件包架構不匹配。 ![0|cant](fig/cant1.png) - 依賴關係不滿足。 ![0|cant](fig/cant2.png) - 安裝包無數字簽名。 ![0|cant](fig/cant3.png) - 安裝包沒有有效的數字簽名。 ![0|cant](fig/cant4.png) ### 卸載 當安裝包已存在相同或其他版本時,可以使用軟件包安裝器執行卸載操作。 1. 在軟件包安裝器界面,您可以: - 單擊 **選擇文件** ,選擇需要安裝的軟件包,單擊 **打開**。 - 直接將軟件包拖拽到應用界面。 2. 單擊 **卸載**。 3. 請注意界面上的卸載提示,單擊 **確定卸載**,彈出授權窗口,請輸入密碼授權。 4. 卸載過程中可以單擊 ![arrowdown_icon](../common/down.svg) 或 ![arrowup_icon](../common/up.svg) 展開或收起卸載進程訊息。 5. 卸載成功後單擊 **完成**。 ![0|uninstall](fig/uninstall.png) > ![notes](../common/attention.svg) 注意:卸載某些應用可能會對系統或其他軟件產生影響,請謹慎操作。 ## 主菜單 在主菜單中,您可以切換窗口主題、查看幫助手冊,了解軟件包安裝器的更多訊息。 ### 設置 1. 在軟件包安裝器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 選擇 **設置**。 3. 勾選 **開發者模式下,檢測安裝包的簽名**,安裝軟件包時將檢測安裝包有無簽名及簽名是否有效。 ### 主題 窗口主題包含淺色主題、深色主題和系統主題。 1. 在軟件包安裝器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 選擇 **主題**,選擇一個主題顏色。 ### 幫助 查看幫助手冊,進一步了解和使用軟件包安裝器。 1. 在軟件包安裝器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 選擇 **幫助**。 3. 查看軟件包安裝器的幫助手冊。 ### 關於 1. 在軟件包安裝器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 選擇 **關於**。 3. 查看軟件包安裝器的版本和介紹。 ### 退出 1. 在軟件包安裝器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 選擇 **退出**。 deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_HK/package-installer.md000077500000000000000000000074411474340456100333310ustar00rootroot00000000000000# 軟件包安裝器|deepin-deb-installer| ## 概述 軟件包安裝器是一款deb包管理工具,界面簡單易用,支持批量安裝、版本訊息識別和依賴包自動補全等功能,以幫助您快速的實現安裝操作。 ![0|run](fig/run.png) ## 操作介紹 ### 打開方式 您可以使用以下方法打開軟件包安裝器: - 雙擊deb包,軟件包安裝器會自動啟動並準備安裝該軟件包。 - 直接將deb包拖拽到圖標上打開應用。 ### 安裝 軟件包安裝器可以安裝單個應用,也可以批量安裝多個應用。 #### 單個安裝 1. 在軟件包安裝器界面,您可以: - 單擊 **選擇文件** ,選擇需要安裝的軟件包,單擊 **打開**。 - 直接將軟件包拖拽到應用界面。 2. 單擊 **安裝**,彈出授權窗口,請輸入密碼授權。 3. 安裝過程中可以單擊 ![arrowdown_icon](../common/down.svg) 或 ![arrowup_icon](../common/up.svg) 展開或收起安裝進程訊息。 4. 安裝成功之後,單擊 **完成** 退出,或者單擊 **返回** 繼續安裝其他應用。 ![0|success](fig/single.png) > ![notes](../common/notes.svg) 說明:當檢測到已安裝的軟件版本高於或低於待安裝的版本時,界面會顯示 **安裝舊版本** 或 **更新** 按鈕,您可以根據需要退回到舊版本或更新到新版本。 #### 多個安裝 軟件包安裝器可以通過拖拽和選擇文件的方式一次性批量添加多個軟件包,安裝步驟請參考 [單個安裝](#單個安裝),多個安裝時請注意以下要點: - 批量安裝同樣也可以查看安裝進程。 - 批量安裝時按鈕只顯示 **安裝** 按鈕。本地已安裝其他版本的軟件包執行安裝操作,本地已安裝相同版本的軟件包執行重新安裝操作。 - 批量安裝列表內,選擇一個安裝包,單擊鼠標右鍵選擇 **刪除** 可將安裝包從安裝列表移除。 ![0|mult](fig/multi.png) #### 無法安裝 軟件包安裝器可以自動識別無法安裝的包,有效規避安裝後無法使用的問題。 常見的原因有: - 軟件包架構不匹配。 ![0|cant](fig/cant1.png) - 依賴關係不滿足。 ![0|cant](fig/cant2.png) ### 卸載 當安裝包已存在相同或其他版本時,可以使用軟件包安裝器執行卸載操作。 1. 在軟件包安裝器界面,您可以: - 單擊 **選擇文件** ,選擇需要安裝的軟件包,單擊 **打開**。 - 直接將軟件包拖拽到應用界面。 2. 單擊 **卸載**。 3. 請注意界面上的卸載提示,單擊 **確定卸載**,彈出授權窗口,請輸入密碼授權。 4. 卸載過程中可以單擊 ![arrowdown_icon](../common/down.svg) 或 ![arrowup_icon](../common/up.svg) 展開或收起卸載進程訊息。 5. 卸載成功後單擊 **完成**。 ![0|uninstall](fig/uninstall.png) > ![attention](../common/attention.svg) 注意:卸載某些應用可能會對系統或其他軟件產生影響,請謹慎操作。 ## 主菜單 在主菜單中,您可以切換窗口主題、查看幫助手冊,了解軟件包安裝器的更多訊息。 ### 主題 窗口主題包含淺色主題、深色主題和系統主題。 1. 在軟件包安裝器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 選擇 **主題**,選擇一個主題顏色。 ### 幫助 查看幫助手冊,進一步了解和使用軟件包安裝器。 1. 在軟件包安裝器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 選擇 **幫助**。 3. 查看軟件包安裝器的幫助手冊。 ### 關於 1. 在軟件包安裝器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 選擇 **關於**。 3. 查看軟件包安裝器的版本和介紹。 ### 退出 1. 在軟件包安裝器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 選擇 **退出**。 deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_TW/000077500000000000000000000000001474340456100274405ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_TW/fig/000077500000000000000000000000001474340456100302055ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_TW/fig/cant1.png000066400000000000000000000343151474340456100317270ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ IDATxw|ߙ- Aņ,׆^ vbz (V(HBK%u۔s?6 I2vgfg<{rGT b@n*24! 1 hiGCL8bp44)-ښ aq![nYiZZeYg!#R$ՂBu@0gyY(1R$)jhnLsΫt+hd }U<7։MinL-Q0M7 [|UeyB z,y}D`͍iDh_Lm`I@}͍i!XF5#ŮFuEYLD%q."B]H|@4@34wܴ 5rrss>ʹHl4@34{@ qr[S$DRH !4@345h8Қ4Ua14Uɾ5 J:^ۤBl`ZK=Oxu!>tz\j]u]/)- B6ۣ5 L$F%}' rӔesniil֧.ԒSaY%,D8 =A xǾ% ~CD ?|]^gꕦiM !|9cޏߑw#!83Ɂؑ>i!m[rӲ~ LXX7 YQ3hǢ3<"9I݂99a97u2WUVt]1pAǎ_tG'9xZ0b./x"+$Ya4-4l%W]r{ ZQIn,Ys:u=/>zTWWsˊM< )id(Bl&`yyy999Mn2PX7V3?yoT&IPfFVoc=$#AKIhluB=Mcܚ):jV\-c猿>G C9Ztx # I ͍i*iT\BƘ,8hܘv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:,///33Pz euV :t8ȝ8Z)((ḣcC|֚ќsƢ:jUGP_}>EA\Q'=(vUGP(S%2q4MuANCk:|>²08,B|(FXGPb:n BMo - |>۽ܛCHCGIz-nY<˲"^Wа@E]CLG˲-˒jrp9瑿nwiiAtLx^YE Bia1SE4r~` ut:t\.UU].W,˪ƨ::HB!cJ$/u·/@GCL8bp44! 1 hiGCL8bp44! 1 hiGCL8bp44! 1 hiGCL8BDаNpIENDB`deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_TW/fig/cant2.png000066400000000000000000000415311474340456100317260ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ IDATxwx935HB#ED{xmدzbxHGCM!!uݝs~l`W~S\7MXҦpVKjkLsIQNYK4F7`qY&P]]cZJi/cJc{q=IڳtCp΄f)eWq&"~i:iIRH:ޏ(N!ۡ26ҩ)JM$i:n]$2c6MT'v)/=8X˴jsf9N4Mdrmw<O;^̝:On͝:a;Yz+6X7 )!֤>$ S斕~_PXXY43>kH2NoZ(4 0t >RI!kj#L4T|B` ,//t*H?)DZ+>~?//tnް0 Mӄa")嬟~X4Iy{'8qf3PMK)NٵsFFEx\.cZ_UЭDZۢN5?<s$"k3Q 3u]l6!z}R/޻o7Rjr3$FzBմ wާ**4Ma}>g=ױ">vIRĸ%kf?u:4}ӉI)_}c\B""/ (H~w"~o>4q^ HNkpc}MlqQ5ڵ$Fz)=#1c*TM;6[t\Sإkۡsy(⤾!O_l~OUXpV-`eg7TQ`_WRHY{SU[\.vxQݺ{Ƕ6;3΃OwIB$iUϜsxz9aVz," uz8@5TS<GRA]cکz51pagNr;kL;H;,r"b6ī59QniN\KQPJIB$"+$z |iKCLXb44!, 1 `i*|3 iKCLXb44!, 1 `iiKCLXb44!, 1 `iiKCLXb44!, 1 `iiKCLXb44!, 1 `iiKCLXb44!, 1 `iiKCLXzP?I)UcD`<Ǡ":QB1bRJFDRB?/:}V4ccu k8b:$R AB$!O-S19q+dq.DR{鐑jgi0K)a}sRiLUq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aS g}#>Wlv8keW~GM4]iZLem+oznys;sBEvG~G}[o󂁉8/+ J˽>.#3wXvvvJJʙnF{nuf`BQi܉Q=c7 s}h!c!w1Bu~>TUEBUC'=QAuxBCLUUϧ( =0v(|Bu:T!v!fvp$CLp^īzn8vI1 #!9w\iz<ÁOi<QȅAus8BEQ<i3ݮ!"wtTTaca=Fpb:,\.(z^0|>1SUf9S8FO8Fݮinx@ (iZ\'# tXqQ_XX>, 1 `iiKCLXb44!, 1 `iiKCLXb44!, 1 `iiKCLXb44!, 1 `i*f@ ٩IENDB`deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_TW/fig/cant3.png000066400000000000000000000553361474340456100317370ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ IDATxg\W73RDإb/ ؒo1֨$X؍  DE("EAK[Xؾ;8wRDȊËٙٙe7g93(((@t!ԱcǶ M())!zbt44ii @ALN1 : bthhZVګfX,D!Am%^#)hMSrZ JeZ ZId&Ijh4EQb-SQMZ/+ڥi-59?M#>B5RkcZA:Zn:R~IV˴hI!Z$iq4B!vڕAHh[1M4ոN/FEi%hl.hh}L#,F)UIEf! ZoF4E,>EцzC=EfFE@[;ш-q,+SCqz6iLPF|tb\h aS4b-ؼJՄ|?JVj5A_۷B4:|Y:[t;547^*Ė^Ie\.VR4mh`T(Z^ [ɤ^҃FE' Bd- Nj?5$R)RX,*JR-) h2NO&IViErbSEƐ輖۾JI-ScǎO$M$AUU !}|{M ?(XkAcalgv>yelj=~5zz*N?ldl\W[Rb\.'HQ}Rbs|zm,zތ.t5Fo2f”NJRR(D"\^/  nt)Zբ^9y̚b$V*B.*JT <= BPړ&HRFmDij'744Pj5- xGAb+Pk?Zۄ(V64}SiB9IJe2J8w^}[Ċ63í4!"DѴX*1Aq9lbs8!#>JpCMQAL>O:AZuGBRp 9Ŷ4 ?|ZMe=J5vacX,V # @N@k4MS4 (d2|{;6knh3͔s^uAdK׶ 4k5!"C}}g$I*/wppjB iZxl i=6aȡ4E735`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hf8#FS?VWWggg<& A[JII9}zҥǏ+e˖11a„`4??ӦMW W]]>@T⑳//^{xT{ΙK&Br!\%* + ,jERR/uu[W[/է<ں5y,J)|l'iRƭm}tmV BCAA@.6tJ MB!˲=J]׳#H(:9KH`ѩ:9Uuw1tGi0`0T iѫuA9 bkBh&&ߓO-}9R3"t@[?1.ȴ Jt40z71fN'mm{=4f:c®R9DBD0c6s2bv3^43\oX2t=<£dkZԶ.ߊYRb =n0f5<{~Kv=3;ZUrnᚗg_ٷ3dkՆ!WidGw~wު-_2$(;l ,:SL.oo~+Q[ЊѬSU~gBf.YQy sF //qv.{`KDI\(p.-GϝenCtl~CGdØi*/+*+)j}kyJ/ovXTC[oiwreG>`׌ ~E>K aD.4 O=8wpJ#fZui->X4myQ;X1΅*7F6Dޟ]_4چ]<f[mf4 äQZ`z6 k\W%Nc.J{o'[1M:0. M:n@QﺻPyQ;SLxą Zӧ'?P)c;=$xoct"ІȊw,x ި-a3NlښK6FԔ{=RWWzPI۶u֢h,Z"y\l~ŸsǕR%:]j{"Ѿ'I^^^z YWWٴ8Kh;tSL]/.tSGg)WNagp8H]]t<4-cԅeYxW?2m_{Ћ:۞RԖA2m۶2c7WK^P:640ı'yKEXHmX̲z([׼rHfoJ^bu|ohxdy[*kiM"H^^^$ Sg۶ci~.=MӖio996̎I%֏j;2kpNNiɇIf8\R@lS?|gKպt4 s?ҁcwu k_2`3 D"!yu374H)@9 BtBt"0өiZvvcɥ>yiYYY $)&"R3MD4fHi4Ҙi""1DDJcL)&"R3MD4fHi4Ҙi""1DDJcL)&"R3MD4fHi4Ҙi""1DDJ3ե{DDԽSW%IENDB`deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_TW/fig/cant4.png000066400000000000000000000356131474340456100317340ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ IDATxwx?ϙnz &&RDDpZ+rUD (pHԀ0!RJHl-3s~.kaI~=yxvf̞ل=sf&P+-EDD4w5BsP54!T 1 jiUCLb@P5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 1 jiUCLb@P54!T 1 jiUCLb@P54!T 1 jiUCL+жȲlDQ7w]cL A@ AL_;,";QM&}l6d4sܵhC׎(]?%4!g󵄘v ckG1 Csע AL_; L&N107kJ$HP54!T 1 jiUCLb@P54!T 1 jiUCLb@P54!T 1 jiUCLb@մDTXX z2vIENDB`deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_TW/fig/main.png000066400000000000000000000162571474340456100316520ustar00rootroot00000000000000PNG  IHDR~/ pHYs+aIDATx{p\}߹}oE (z?,ɊȖ؉Tj;7V3i=u=֙:FlYU#%%Z7ŇDAIQX DX~w/ς/{W9rDDyD{{3cLL4XL4XL4XL4XL4X͛ژl6=~U1Lg0I0:@x*uƁl>Lǧ74Zyr(X5VAelwQ>0-d4ZY_<]]Ι+RL#zU0)"4|d;czi88nZs_IƂH{ynt2T)Sd:\*2%D:ZZLT"!{J0n C#GGyLdYR8W_v<9nI-tOpo\_w';:DD07Ͳ+?1p}h';}{d4+JZLyH&o^^,Di8iqG9q|qlNk#ʹd{@"H$omܲMY0Cdq1HP5Zrq˶_DmzSIWgF; 7^)WN}|jyDq˙4fp1FJ; C%Sd^uʝ"6LSɑJIg.xpQF}ojj*PgcFjdFjdFjdFjdFj`r̦jdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFjdFj|  Zc{,PJ9=\4:YqƘ((Tq'/;ch  i5cX1yx|>Ɯot2\@OJ_r .6ds'0 [(] ð,A1G1 qcaQbA1GWuZh?>0g4Bc$I= \{.厉X#(%X,6ÙK@i֢Yh|ct4Jh[m`c">0g4Jhx<;&bsK/Ưq˂ H$= ,Z̦j̦1G\]LkZk|2d߲@6f= ,~,zY|d29CELZDJ`2 V#`52 V#`52 V#`5No?l@q***܌ ]̦ Z9P d _KBc"`52 V#`52 V#`52 V#`52 V#`52 V#`52 V#`57 I/qw>W1-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7;О;v<|е]=*G v-} GZ}q>fH u|B!T#a " ^`2D@&>^*8ae olɬzzn=;& $7YVV֫Wξ 諼<'''q.[^>G<&zΚ фB]W~͹N9o@ӯƾ{w˭[9_^{ }_wЦvE@cEx sҠ1'}ݻ~2rm/,wpr׊|n*c̥3nW`˾xOڲpe e8/V=vVK?oo,jo~ dÎ-U.]lWq'=F@)hPH8͏6.82oi<$$En9ۂ'μfn5-x䡅D}}csr?_Y?cG:u"E.׻o Ç_h.F{c>_vI#5t~AS!Jǝǯ[zym /}76o 58`ξ 諲4RR:3H,H@L#CL$x<xiN,8!BNNRʶԇ#lVJu(t4R999SeY, k(z 0Bm @GlnP(dR!Z p4͆۶:qiuH1B!4=O,,+w:]RJx|>_ ~QIENDB`deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_TW/fig/single.png000066400000000000000000000440631474340456100322030ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ MiCCPPhotoshop ICC profilexڝSwX>eVBl"#Ya@Ņ VHUĂ H(gAZU\8ܧ}zy&j9R<:OHɽH gyx~t?op.$P&W " R.TSd ly|B" I>ةآ(G$@`UR,@".Y2GvX@`B, 8C L0ҿ_pH˕͗K3w!lBa)f "#HL 8?flŢko">!N_puk[Vh]3 Z zy8@P< %b0>3o~@zq@qanvRB1n#Dž)4\,XP"MyRD!ɕ2 w ONl~Xv@~- g42y@+͗\LD*A aD@ $<B AT:18 \p` Aa!:b""aH4 Q"rBj]H#-r9\@ 2G1Qu@Ơst4]k=Kut}c1fa\E`X&cX5V5cX7va$^lGXLXC%#W 1'"O%zxb:XF&!!%^'_H$ɒN !%2I IkHH-S>iL&m O:ňL $RJ5e?2BQͩ:ZImvP/S4u%͛Cˤ-Кigih/t ݃EЗkw Hb(k{/LӗT02goUX**|:V~TUsU?y TU^V}FUP թU6RwRPQ__c FHTc!2eXBrV,kMb[Lvv/{LSCsfffqƱ9ٜJ! {--?-jf~7zھbrup@,:m:u 6Qu>cy Gm7046l18c̐ckihh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-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_TW/fig/uninstall.png000066400000000000000000000317651474340456100327400ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ IDATxw|e3m[z!&tHP@"rX~]OӳgW,'bĆ"U) RMyBaR5c_yff|a999NQVVVsWk.vp44! 1 hiGCL8b4jm.Ņ8beYi޵"˲\k!#R$1ͅ9?"`0Tkyk-)D5@C4494j7#*aC]d>reHJp) I PtӴx`ⵋt!4Y򨵻DƴDUG/MDDYI;="c{1-DM#{w{j i,&"8f!D!?J|@4@4tܴ rrss>ʹHl@k< OM89ޭ)rzOUd"r[Uf 5 oM]iMsA0cpAdߚh!NwSKՈRDz,˲$];WQ-_o\nηhQJCiei !|^!Τ>Ftz\~~~~Ee뺮/.B65 -L$F%}iʲ9L4MôlGJ@ShjHQש,B"Gxp6AP8o_M?u4'D:[3vAAټqirDB>[h q)yhjG2ZBwӪ ee~$zntۢƙ_Ťn[D]^xIYa97u<Wt]1xOy^uG˵~QlF8ݥշYI,MSiax+r{A -Im$u#M-Y:u3~§x<ܲ"}2/요tD2~Bl c`999YYYwN9c,vAN4@[ӂ QPv$\뤦g\r ;w$08G@C4'Dy<.,IĤZ۶&" ИkV7x # I i*iT\BƘ,8hrwИvx G]]iq.MU?ƴ$I q>1N\KєhFHDWX#N=4! 1 hiGCL8bp4psW4! 1 hiGCL8bp44! 1 hiGCL8bp44! 1 hiGCL8bp44! 1 hiGCL8bp44! 1 hiGCL8bp44!Mi LB"b5;1eBFDB\ȝꢦ*#ct0hBB9q-8G6-S1&I$IL%Y1IB Zy|%]+?ڻɹvaf}vm|֊wT1>1 mJgSUmJ۔˭ٔ{JunweڔaSmMD>ȅI[AsALG88EpN1i"d"`L0T$.SR㒚rȫ?,+s {G̈H=nԗ\փ/ːYK ϻqlgI2U?1G6|zKK)m$Ӊ\BDD2#"HﯵO-»xJszpdP/.bDD_/'w_^7J srw*w{/|3tn#A[6?m4Zӱ47MIH1"f/'~`ZF!'qᐑKye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3V#*TW_y~͚&6WKnqkekvTml/wcىy~ ??*ݱ6&4kbaFݥLN.QY??ןՎs] ^Nn 'o.(3_2Q$:SOeʊD%+fܳ0Ojk$FeYyieX-PVRĉ(XhG"b/5AÁja-2 O[Q9~srKomx[ޭS|Imj+ymL\3_ϽiЦ7]RqW=~vr:HJbk֙UϞ=䢗y;- b1*+@I+E1wΞ=_ק^4޺4w-ݝ=j*Q!7LoOm'véţv\' ecQ\fFR$ɊW#u==$z}DXKs\V;СAL47vIDoqq aX-}qIWKr-I},T?;CFGS}IҞ{`QO=ꮔxSO|Ӧo- * 1HC߽s'^qm3y~}}Ug79^`Yg_'X|H᲎24Er'f&dᗼ{;7uП.:=~m-Dݛig\9AGWEY0sGItpQ%1 z#뛌aQ=(YὋ:0WJ}G\TX_qV޼`IPH s4L8flKڧe~-5ᱸQ^!#9o-7̚>8Fc5!LQD@p% t8Fc5 2EQ,cHr}?8Fc55e>OaYVsW,K}W8F1c5!v|P(iiBs0(Fx&tzD$I^ײ,v/cgYVJ8QEAMsݜsY~eYA]9<脄fQTA5tLx^YE Biagw1SE4r1 D crr"m 7V$dYVU5F\c# tLI p44! 1 hiGCL8bp44! 1 hiGCL8bp44! 1 hiGCL8bQ~~~sWvOlIENDB`p_package-installer.md000066400000000000000000000105261474340456100336140ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_TW# 軟體包安裝器|deepin-deb-installer| ## 概述 軟體包安裝器是一款deb包管理工具,介面簡單易用,支援批次安裝、版本訊息識別和依賴包自動補全等功能,以幫助您快速的實現安裝操作。 ![0|run](fig/main.png) ## 操作介紹 ### 開啟方式 您可以使用以下方法打開軟體包安裝器: - 雙擊deb包,軟體包安裝器會自動啟動並準備安裝該軟體包。 - 直接將deb包拖曳到軟體包安裝器的圖示上打開應用。 ### 安裝 軟體包安裝器可以安裝單個應用,也可以批次安裝多個應用。 #### 單個安裝 1. 在軟體包安裝器介面,您可以: - 單擊 **選擇檔案** ,選擇需要安裝的軟體包,單擊 **開啟**。 - 直接將軟體包拖曳到應用介面。 2. 單擊 **安裝**。彈出授權視窗,請輸入密碼授權。 3. 安裝過程中可以單擊 ![arrowdown_icon](../common/down.svg) 或 ![arrowup_icon](../common/up.svg) 展開或收起安裝程式訊息。 4. 安裝成功之後,單擊 **完成** 退出,或者單擊 **返回** 繼續安裝其他應用。 ![0|success](fig/success.png) > ![notes](../common/notes.svg) 說明:當檢測到已安裝的軟體版本高於或低於待安裝的版本時,介面會顯示 **安裝舊版本** 或 **更新** 按鈕,您可以根據需要退回到舊版本或更新到新版本。               #### 多個安裝 軟體包安裝器可以透過拖曳和選擇檔案的方式一次性批次添加多個軟體包,安裝步驟請參考 [單個安裝](#單個安裝),多個安裝時請注意以下要點: - 批次安裝同樣也可以查看安裝程式。 - 批次安裝時按鈕只顯示 **安裝** 按鈕。本機已安裝其他版本的軟體執行安裝操作,本機已安裝相同版本的軟體執行重新安裝操作。 - 批次安裝列表內,選擇一個安裝包,單擊滑鼠右鍵選擇 **刪除** 可將安裝包從安裝列表移除。 ![0|mult](fig/multi.png) #### 無法安裝 軟體包安裝器可以自動識別無法安裝的包,有效規避安裝後無法使用的問題。 常見的原因有: - 軟體套件結構不符合規範。 ![0|cant](fig/cant1.png) - 缺少依賴軟體。 ![0|cant](fig/cant2.png) - 安裝包無數位簽章。 ![0|cant](fig/cant3.png) - 安裝包沒有有效的數位簽章。 ![0|cant](fig/cant4.png) ### 移除 當一個安裝包在您的電腦上已存在相同或其他版本時,可以使用軟體包安裝器執行移除操作。 1. 在軟體包安裝器介面,您可以: - 單擊 **選擇檔案** ,選擇需要安裝的軟體包,單擊 **開啟**。 - 直接將軟體包拖曳到應用介面。 2. 單擊 **移除**。 3. 單擊 **確認移除**。彈出授權視窗,請輸入密碼授權。 4. 移除過程中可以單擊 ![arrowdown_icon](../common/down.svg) 或 ![arrowup_icon](../common/up.svg) 展開或收起移除程式訊息。 5. 移除成功後單擊 **完成**。 ![0|uninstall](fig/uninstall.png)               > ![attention](../common/attention.svg) 注意:移除某些應用可能會對系統或其他軟體產生影響,請謹慎操作。 ## 主選單 在主選單中,您可以切換視窗主題、查看說明手冊,了解軟體包安裝器的更多訊息。 ### 設定 1. 在套裝軟體安裝器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 選擇 **設定**。 3. 勾選 **開發者模式下,檢測安裝包的簽名**,安裝套裝軟體時會檢測安裝包有無簽章及簽章是否有效。。 ### 主題 視窗主題包亮色主題、暗色主題和系統主題。 1. 在軟體包安裝器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 單擊 **主題**,選擇一個主題顏色。 ### 說明 查看說明手冊,讓您進一步了解和使用軟體包安裝器。 1. 在軟體包安裝器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 單擊 **說明**。 3. 查看軟體包安裝器的說明手冊。 ### 關於 1. 在軟體包安裝器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 單擊 **關於**。 3. 查看軟體包安裝器的版本和介紹。 ### 退出 1. 在軟體包安裝器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 單擊 **退出**。 deepin-deb-installer-6.5.5/assets/deepin-deb-installer/package-installer/zh_TW/package-installer.md000066400000000000000000000077211474340456100333570ustar00rootroot00000000000000# 軟體包安裝器|deepin-deb-installer| ## 概述 軟體包安裝器是一款deb包管理工具,介面簡單易用,支援批次安裝、版本訊息識別和依賴包自動補全等功能,以幫助您快速的實現安裝操作。 ![0|run](fig/main.png) ## 操作介紹 ### 開啟方式 您可以使用以下方法打開軟體包安裝器: - 雙擊deb包,軟體包安裝器會自動啟動並準備安裝該軟體包。 - 直接將deb包拖曳到軟體包安裝器的圖示上打開應用。 ### 安裝 軟體包安裝器可以安裝單個應用,也可以批次安裝多個應用。 #### 單個安裝 1. 在軟體包安裝器介面,您可以: - 單擊 **選擇檔案** ,選擇需要安裝的軟體包,單擊 **開啟**。 - 直接將軟體包拖曳到應用介面。 2. 單擊 **安裝**。彈出授權視窗,請輸入密碼授權。 3. 安裝過程中可以單擊 ![arrowdown_icon](../common/down.svg) 或 ![arrowup_icon](../common/up.svg) 展開或收起安裝程式訊息。 4. 安裝成功之後,單擊 **完成** 退出,或者單擊 **返回** 繼續安裝其他應用。 ![0|success](fig/success.png) > ![notes](../common/notes.svg) 說明:當檢測到已安裝的軟體版本高於或低於待安裝的版本時,介面會顯示 **安裝舊版本** 或 **更新** 按鈕,您可以根據需要退回到舊版本或更新到新版本。               #### 多個安裝 軟體包安裝器可以透過拖曳和選擇檔案的方式一次性批次添加多個軟體包,安裝步驟請參考 [單個安裝](#單個安裝),多個安裝時請注意以下要點: - 批次安裝同樣也可以查看安裝程式。 - 批次安裝時按鈕只顯示 **安裝** 按鈕。本機已安裝其他版本的軟體執行安裝操作,本機已安裝相同版本的軟體執行重新安裝操作。 - 批次安裝列表內,選擇一個安裝包,單擊滑鼠右鍵選擇 **刪除** 可將安裝包從安裝列表移除。 ![0|mult](fig/multi.png) #### 無法安裝 軟體包安裝器可以自動識別無法安裝的包,有效規避安裝後無法使用的問題。 常見的原因有: - 軟體套件結構不符合規範。 ![0|cant](fig/cant1.png) - 缺少依賴軟體。 ![0|cant](fig/cant2.png) ### 移除 當一個安裝包在您的電腦上已存在相同或其他版本時,可以使用軟體包安裝器執行移除操作。 1. 在軟體包安裝器介面,您可以: - 單擊 **選擇檔案** ,選擇需要安裝的軟體包,單擊 **開啟**。 - 直接將軟體包拖曳到應用介面。 2. 單擊 **移除**。 3. 單擊 **確認移除**。彈出授權視窗,請輸入密碼授權。 4. 移除過程中可以單擊 ![arrowdown_icon](../common/down.svg) 或 ![arrowup_icon](../common/up.svg) 展開或收起移除程式訊息。 5. 移除成功後單擊 **完成**。 ![0|uninstall](fig/uninstall.png)               > ![attention](../common/attention.svg) 注意:移除某些應用可能會對系統或其他軟體產生影響,請謹慎操作。 ## 主選單 在主選單中,您可以切換視窗主題、查看說明手冊,了解軟體包安裝器的更多訊息。 ### 主題 視窗主題包亮色主題、暗色主題和系統主題。 1. 在軟體包安裝器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 單擊 **主題**,選擇一個主題顏色。 ### 說明 查看說明手冊,讓您進一步了解和使用軟體包安裝器。 1. 在軟體包安裝器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 單擊 **說明**。 3. 查看軟體包安裝器的說明手冊。 ### 關於 1. 在軟體包安裝器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 單擊 **關於**。 3. 查看軟體包安裝器的版本和介紹。 ### 退出 1. 在軟體包安裝器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 單擊 **退出**。 deepin-deb-installer-6.5.5/assets/environments.h.in000066400000000000000000000001651474340456100223370ustar00rootroot00000000000000#ifndef __ENVIRONMENTS_H_ #define __ENVIRONMENTS_H_ #define VERSION "@VERSION@" #endif // __ENVIRONMENTS_H_ deepin-deb-installer-6.5.5/assets/icons/000077500000000000000000000000001474340456100201435ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/icons/deepin/000077500000000000000000000000001474340456100214075ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/000077500000000000000000000000001474340456100230555ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/dark/000077500000000000000000000000001474340456100237765ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/dark/icons/000077500000000000000000000000001474340456100251115ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/dark/icons/deepin-deb-installer.svg000066400000000000000000000332671474340456100316340ustar00rootroot00000000000000 deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/dark/icons/di_active_tab_close_hover_16px.svg000066400000000000000000000026761474340456100336700ustar00rootroot00000000000000 active_tab_close_hover Created with Sketch. di_active_tab_close_normal_16px.svg000066400000000000000000000030551474340456100337460ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/dark/icons active_tab_close_normal Created with Sketch. deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/dark/icons/di_active_tab_close_press_16px.svg000066400000000000000000000026261474340456100336740ustar00rootroot00000000000000 active_tab_close_press Created with Sketch. deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/dark/icons/di_arrow_down_25px.svg000066400000000000000000000020561474340456100313500ustar00rootroot00000000000000 icon_packup Created with Sketch. deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/dark/icons/di_arrow_up_25px.svg000066400000000000000000000026551474340456100310320ustar00rootroot00000000000000 icon_spread Created with Sketch. deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/dark/icons/di_dialog-warning_85px.svg000066400000000000000000000056121474340456100321000ustar00rootroot00000000000000 status/64/dialog-warning deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/dark/icons/di_fail_96px.png000066400000000000000000000127161474340456100301030ustar00rootroot00000000000000PNG  IHDR``w8IDATx^] ]UyZq^y@DhXV;c<֩ ky@ @Ju3bW*JD! =Xku>ws9{s =s{^{}z}ڏT#̲!,W0rG<,W0r+-x^Wx9\Ois`/Y06_֟a[q;`sv4{f J2';ܳ5O?JǞSvp"!@_dHyaĀBn{h0JY;~ki:2\IM8u[f+IZ3y;pfI~2 N?]駴b70M;@wnVЧwny7}+a/š$/Vj'Upgd6C*Okb7CC'X%kRÀ7NʹOm=lo*{ b%!)"튜l~8LBpv;*;4o(]"xf7 O1$C&𯻎aR>KX^C >cOFMB5h`_σ}|3pmTlĩv5xr&$ DTS4,tC/~dY#oҥrP)ꛀxO򏖮UZAm2"Spfyz;7G X\L?܃i}=`)ꋀrb4Å>sQy`)%K ٌii?OFipK@}rhiT#:)~./8vzAf (5;5}F2q[Pu `C>-mLŐ囑%~qj5Fxݧh3 wL7ڢD^s9y;~knh^.|h |:bXk5o_Rg˶7d'v0)O1\JK`$DӼs0%3\n /Ⱥ"񠋴?OYJÙwZy˂uM3JZ o. !j+ pu;w:^_{M6Jn i_cV[eH܌=w9'V寝ܲ,o?gZXd)Ts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q2ǻ.6v|!|zIʕdF-ر¢E>m%;`̂Rvx_ߣek@$G>9|48:R~a-a34XH O(dV0 %w jc<^%?Q#zw#-Fd)0͸z-KAJ !B~dժz+В'J\ׁc , 7ɑePzj+UmJ?G9E.܊+hMkʀ0 Iy>j0O%N:Iu-!i?Ayo "I"W2')$eG䌡_a'mHK T-d x߲x^'yh~{7R]_Kk0:@;,8膏=&!  9VX_qR%JA?YIw j`zsB9V,_)=>_Je>~Ф˗ܡ1E9|_I"? ah!H 5Pэtp횎?<@'H۶o'$9#16h!":_YHʕĭQ*Xw"^DR7A`D1q<Y<(!@Oӻ<[0$g1.$u!a|܂mG^Q(؆̹ISp̼Ƀ,@2z,Y>T>hD!FFBa[}C@!<"hDض@A eD@%,~)/zz ;^(2+wl͐[,=dP="! i(!# ~,G@D˝92σ^aLD8i-~aiaA@܈iD,_N@ᆌ ]dD laYAAQy2ֽg2²eQPqvs~H=gƔ1r2(jJa~R)j絶uLVӘ7OabA\ӨVϧjAy#&cN&R,> icon_install Created with Sketch. deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/dark/icons/di_icon_install_160px.svg000066400000000000000000000060441474340456100317260ustar00rootroot00000000000000 icon_install_dark Created with Sketch. deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/dark/icons/di_ok_16px.svg000066400000000000000000000040131474340456100275730ustar00rootroot00000000000000 ok Created with Sketch. deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/dark/icons/di_popwarning_32px.svg000066400000000000000000000064651474340456100313610ustar00rootroot00000000000000 warning Created with Sketch. deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/dark/icons/di_split_line_214px.svg000066400000000000000000000003511474340456100314050ustar00rootroot00000000000000 deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/dark/icons/di_warning_16px.svg000066400000000000000000000042241474340456100306330ustar00rootroot00000000000000 warning 2 Created with Sketch. deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/light/000077500000000000000000000000001474340456100241645ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/light/icons/000077500000000000000000000000001474340456100252775ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/light/icons/deepin-deb-installer.svg000066400000000000000000000332671474340456100320220ustar00rootroot00000000000000 di_active_tab_close_hover_16px.svg000066400000000000000000000026761474340456100337770ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/light/icons active_tab_close_hover Created with Sketch. di_active_tab_close_normal_16px.svg000066400000000000000000000030551474340456100341340ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/light/icons active_tab_close_normal Created with Sketch. di_active_tab_close_press_16px.svg000066400000000000000000000026261474340456100340030ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/light/icons active_tab_close_press Created with Sketch. deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/light/icons/di_arrow_down_25px.svg000066400000000000000000000024541474340456100315400ustar00rootroot00000000000000 icon_packup Created with Sketch. deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/light/icons/di_arrow_up_25px.svg000066400000000000000000000026411474340456100312130ustar00rootroot00000000000000 icon_spread Created with Sketch. deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/light/icons/di_dialog-warning_85px.svg000066400000000000000000000056121474340456100322660ustar00rootroot00000000000000 status/64/dialog-warning deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/light/icons/di_fail_96px.png000066400000000000000000000127161474340456100302710ustar00rootroot00000000000000PNG  IHDR``w8IDATx^] ]UyZq^y@DhXV;c<֩ ky@ @Ju3bW*JD! =Xku>ws9{s =s{^{}z}ڏT#̲!,W0rG<,W0r+-x^Wx9\Ois`/Y06_֟a[q;`sv4{f J2';ܳ5O?JǞSvp"!@_dHyaĀBn{h0JY;~ki:2\IM8u[f+IZ3y;pfI~2 N?]駴b70M;@wnVЧwny7}+a/š$/Vj'Upgd6C*Okb7CC'X%kRÀ7NʹOm=l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ƫgzor.}%>I93__f qXRU ߠܹE4Mu|]s3<-ZL|wg #N!uB}1KMXIX /p|?"(֫vSgd~~cC?tKUŲ3%w*<,M@XyM DD9;G|a(Հm|OAPR`SgcI/ &煁#i6>i'ʍ)Ҵ}tGL-bbWKlް|fJKP41V8/^Âfd1@v{Oo5 ,ZctTy@S͒.[F7n8 )b^4> oSg#hWhɘ>`j9Uk[]7߆־N|@s>>v:$$T(T}V*"a}_02UPigwg|#顩f~\Jl RH 9;Hڸqىis.UO`Ƕfʁd'C *=3&`ZV$s]LLQ(uI6B :Ogzn=,G;g^X %XFJx"gۭqٜۺxi+{@/)  &Ҋu^i>?>Xq2ǻ.6v|!|zIʕdF-ر¢E>m%;`̂Rvx_ߣek@$G>9|48:R~a-a34XH O(dV0 %w jc<^%?Q#zw#-Fd)0͸z-KAJ !B~dժz+В'J\ׁc , 7ɑePzj+UmJ?G9E.܊+hMkʀ0 Iy>j0O%N:Iu-!i?Ayo "I"W2')$eG䌡_a'mHK T-d x߲x^'yh~{7R]_Kk0:@;,8膏=&!  9VX_qR%JA?YIw j`zsB9V,_)=>_Je>~Ф˗ܡ1E9|_I"? ah!H 5Pэtp횎?<@'H۶o'$9#16h!":_YHʕĭQ*Xw"^DR7A`D1q<Y<(!@Oӻ<[0$g1.$u!a|܂mG^Q(؆̹ISp̼Ƀ,@2z,Y>T>hD!FFBa[}C@!<"hDض@A eD@%,~)/zz ;^(2+wl͐[,=dP="! i(!# ~,G@D˝92σ^aLD8i-~aiaA@܈iD,_N@ᆌ ]dD laYAAQy2ֽg2²eQPqvs~H=gƔ1r2(jJa~R)j絶uLVӘ7OabA\ӨVϧjAy#&cN&R,> icon_install Created with Sketch. deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/light/icons/di_icon_install_160px.svg000066400000000000000000000060231474340456100321110ustar00rootroot00000000000000 icon_install Created with Sketch. deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/light/icons/di_ok_16px.svg000066400000000000000000000040131474340456100277610ustar00rootroot00000000000000 ok Created with Sketch. deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/light/icons/di_popwarning_32px.svg000066400000000000000000000064651474340456100315470ustar00rootroot00000000000000 warning Created with Sketch. deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/light/icons/di_split_line_220px.svg000066400000000000000000000014441474340456100315740ustar00rootroot00000000000000 Line Created with Sketch. deepin-deb-installer-6.5.5/assets/icons/deepin/builtin/light/icons/di_warning_16px.svg000066400000000000000000000042241474340456100310210ustar00rootroot00000000000000 warning 2 Created with Sketch. deepin-deb-installer-6.5.5/assets/icons/deepin/uab/000077500000000000000000000000001474340456100221565ustar00rootroot00000000000000deepin-deb-installer-6.5.5/assets/icons/deepin/uab/uos-application-bundle.dci000066400000000000000000001613031474340456100272210ustar00rootroot00000000000000DCI768snormal.dark1c1.webp../../normal.light/1/1.webpnormal.light811.webpRIFFWEBPVP8L/¿$mpGlc(3$IF2nool41 8zN?B0wsr]=JrtBjrWJ ,'ͭlZio&g^ȦIa51|QW'(v=GK |CYYf#맜(-!ݩB"C{M7g; wKZJ[{M-dz綠xk[>|3'BqJ ףAˋ_!LhٶݶB**jRx4Ǒ$9J9&֡C#I$jҖ!-$Y1/F,ހ*::1%4S8 #es.B Yp=Y.HAhQ[kY5@f6x<\c{bZ*$:M A,y| lLUVz?p͏@ڹJyi?D@NJ{Zucy)8Ž= xdWE H4-xrY1f,4+Cꛅ: X, -=LbQTH0YF{d \צm5zGC=g7{(*00hmPxgtQRRRT-CUϙjbvѪhe,n1!kJ zuS<):`2Se!`Z"H$'OW~($cVɍX]_{ Ѥp߼6=ӘܣsVI1s ݎZ =I#ۂE@1;FE(Å=F0@"pJ Ir3g9$QnBQ?Wp:tf0wp9H$8x[x]LKBRrd!5,>_=8M^ @?%8pYw*+,n[kVj[|P8$)pf}91Cy[J>H<'C晝Nytpf5۷bDET4 TJ@t@`bHwo* ^*g/+<" S@i@6M,Ճ@Љ~AMiPtzAV큺/  xIѐmWqPE!A4%Tn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ȱ#!;:,ThTθ=*laÌIԶv ZਛcڱS8Ꚉ<;6ᆋf&w0L6ReC1 Hu شxyO"S#5.41З由[]8w'~0 m89Fz} 7t=o+-nu\eŌ&2Z=cmh:L~ x8Q]BfY`q 28Z/!uطb؉쟋[rCk=h߫~u0XSg6Uv!G 0[ϷY-6qJB"` @o~QO%1U7šuZϞ.^ΔX 5O =hUiT?~=\νB];8Q1(umrz1qԸ[~~lWOkbV-OD>no jǩԘrusKHD_$]1ZhTq }~^r%0,b|x?ʁ^S\-ؖVERΞ-Q{ ]ѢP7^b)VN&=[QkR[4yV) r,8ХY TttX+-3pbBW=gˡda9qӗÇO1+EsF5L 7MFIg{5ƙZҖ ŔҪ8qp18zD{۾7;dllzm c..(nXK ;&N[mIA_#! ΋N(z`ph)m >  NMzߜZs|\g5׉0aʔɏ>z@en?V6/RMHGYsGg*67dDbW ;I4_ # $0] *02=N#$eUҤτg31!{r]lL9CJbͬ+Ct,pi@<"6 Q{w6$,QIECnlFA~!X<сft 0"^Rq(_~}t5ȑcD*cuVk8 ~<KVHZ3W,!C[ԧ/P56+DPnRjY qS ) psZvd) pB՛Gvw\Ot:Z5ra6G+hZNd"0 S-!/C8 RsHJE%۽[tTPp  *m)_0#"%~28MY-!ZRM K8P* pp -nb~9V`zk>0-k',cT8 hjN85.77rwˑOb|&qyۤPA\"d%Can AAw\I FG=$B2k4K %[)ͩ A+90Oo72Ideepin-deb-installer-6.5.5/assets/resources.qrc000066400000000000000000000044721474340456100215600ustar00rootroot00000000000000 icons/deepin/builtin/dark/icons/deepin-deb-installer.svg icons/deepin/builtin/dark/icons/di_active_tab_close_hover_16px.svg icons/deepin/builtin/dark/icons/di_active_tab_close_normal_16px.svg icons/deepin/builtin/dark/icons/di_active_tab_close_press_16px.svg icons/deepin/builtin/dark/icons/di_arrow_down_25px.svg icons/deepin/builtin/dark/icons/di_arrow_up_25px.svg icons/deepin/builtin/dark/icons/di_icon_160px.svg icons/deepin/builtin/dark/icons/di_icon_install_160px.svg icons/deepin/builtin/dark/icons/di_ok_16px.svg icons/deepin/builtin/dark/icons/di_popwarning_32px.svg icons/deepin/builtin/dark/icons/di_split_line_214px.svg icons/deepin/builtin/dark/icons/di_warning_16px.svg icons/deepin/builtin/light/icons/deepin-deb-installer.svg icons/deepin/builtin/light/icons/di_active_tab_close_hover_16px.svg icons/deepin/builtin/light/icons/di_active_tab_close_normal_16px.svg icons/deepin/builtin/light/icons/di_active_tab_close_press_16px.svg icons/deepin/builtin/light/icons/di_arrow_down_25px.svg icons/deepin/builtin/light/icons/di_arrow_up_25px.svg icons/deepin/builtin/light/icons/di_icon_160px.svg icons/deepin/builtin/light/icons/di_icon_install_160px.svg icons/deepin/builtin/light/icons/di_ok_16px.svg icons/deepin/builtin/light/icons/di_popwarning_32px.svg icons/deepin/builtin/light/icons/di_split_line_220px.svg icons/deepin/builtin/light/icons/di_warning_16px.svg data/deepin-deb-installer.json icons/deepin/builtin/light/icons/di_fail_96px.png icons/deepin/builtin/dark/icons/di_fail_96px.png icons/deepin/uab/uos-application-bundle.dci icons/deepin/builtin/dark/icons/di_dialog-warning_85px.svg icons/deepin/builtin/light/icons/di_dialog-warning_85px.svg deepin-deb-installer-6.5.5/assets/translate_generation.sh000077500000000000000000000003501474340456100235750ustar00rootroot00000000000000#!/bin/bash # this file is used to auto-generate .qm file from .ts file. # author: shibowen at linuxdeepin.com ts_list=(`ls translations/*.ts`) for ts in "${ts_list[@]}" do printf "\nprocess ${ts}\n" lrelease "${ts}" done deepin-deb-installer-6.5.5/assets/translate_ts2desktop.sh000077500000000000000000000005301474340456100235440ustar00rootroot00000000000000#!/bin/bash DESKTOP_TEMP_FILE=deepin-deb-installer.desktop.tmp DESKTOP_SOURCE_FILE=deepin-deb-installer.desktop DESKTOP_DEST_FILE=deepin-deb-installer.desktop DESKTOP_TS_DIR=../translations/desktop/ /usr/bin/deepin-desktop-ts-convert ts2desktop $DESKTOP_SOURCE_FILE $DESKTOP_TS_DIR $DESKTOP_TEMP_FILE mv $DESKTOP_TEMP_FILE $DESKTOP_DEST_FILE deepin-deb-installer-6.5.5/cmake/000077500000000000000000000000001474340456100166065ustar00rootroot00000000000000deepin-deb-installer-6.5.5/cmake/translation-generate.cmake000066400000000000000000000026121474340456100237370ustar00rootroot00000000000000function(TRANSLATION_GENERATE QMS) find_package(Qt${QT_VERSION_MAJOR}LinguistTools QUIET) if (NOT Qt${QT_VERSION_MAJOR}_LRELEASE_EXECUTABLE) set(QT_LRELEASE "/lib/qt${QT_VERSION_MAJOR}/bin/lrelease") message(STATUS "NOT found lrelease, set QT_LRELEASE = ${QT_LRELEASE}") else() set(QT_LRELEASE "${Qt${QT_VERSION_MAJOR}_LRELEASE_EXECUTABLE}") endif() if(NOT ARGN) message(SEND_ERROR "Error: TRANSLATION_GENERATE() called without any .ts path") return() endif() # # 获取 translations 目录下的所有 .ts 文件 # file(GLOB_RECURSE TS_FILES "${ARGN}/*.ts") # 获取指定目录下的所有 .ts 文件,不包括子目录 file(GLOB TS_FILES "${ARGN}/*.ts") set(${QMS}) foreach(TSFIL ${TS_FILES}) get_filename_component(FIL_WE ${TSFIL} NAME_WE) # get_filename_component(TS_DIR ${TSFIL} DIRECTORY) set(QMFIL ${CMAKE_CURRENT_BINARY_DIR}/${FIL_WE}.qm) list(APPEND ${QMS} ${QMFIL}) add_custom_command( OUTPUT ${QMFIL} # COMMAND ${Qt5_LUPDATE_EXECUTABLE} ${CMAKE_SOURCE_DIR} -ts ${TSFIL} COMMAND ${QT_LRELEASE} ${TSFIL} -qm ${QMFIL} DEPENDS ${TSFIL} COMMENT "Running ${QT_LRELEASE} on ${TSFIL}" VERBATIM ) endforeach() set_source_files_properties(${${QMS}} PROPERTIES GENERATED TRUE) set(${QMS} ${${QMS}} PARENT_SCOPE) endfunction() deepin-deb-installer-6.5.5/debian/000077500000000000000000000000001474340456100167505ustar00rootroot00000000000000deepin-deb-installer-6.5.5/debian/changelog000066400000000000000000000211771474340456100206320ustar00rootroot00000000000000deepin-deb-installer (6.5.5) unstable; urgency=medium * chore: v6.5.5 release. * fix: Update qapt version check. * feat: Enable support Qt6 build. -- re2zero Mon, 20 Jan 2025 16:30:43 +0800 deepin-deb-installer (6.5.4) unstable; urgency=medium * feat: Enable support Qt6 build. -- re2zero Fri, 3 Jan 2025 16:27:05 +0800 deepin-deb-installer (6.5.3) unstable; urgency=medium * fix: assume yes in immutable install(Bug: 291783)(Influence: immutable) * fix: get uab meta info failed(Bug: 292129)(Influence: uab-package) * fix: blocked when uninstall(Bug: 291783) * fix: change tips color when theme changed(Bug: 292139)(Influence: UI) * feat: update immutable config -- renbin Sat, 07 Dec 2024 11:56:09 +0800 deepin-deb-installer (6.5.2) unstable; urgency=medium * feat: uab installation add authentication(Task: 36033)(Influence: uab-package) * chore: add comments * chore: format cmakelists.txt * fix: uab use absolute path(Influence: uab-pacakge) -- renbin Sat, 30 Nov 2024 13:16:30 +0800 deepin-deb-installer (6.5.1) unstable; urgency=medium * feat: temporarily disable compatibility mode * feat: Add immutable system support(Influence: immutable) * fix: enable keep auth / add install check(Influence: immutable) -- renbin Fri, 15 Nov 2024 13:18:28 +0800 deepin-deb-installer (6.5.0) unstable; urgency=medium * chore: Add comment details. * fix: Error message during installation(Bug: 258605) * chore(CI): add debian check workflow * fix: Set default focus widget on each page(Bug: 247435)(Influence: FocusWidget) * fix: UI init wrong when load large package(Bug: 247435)(Influence: FocusWidget) * fix: Change default focus widget(Bug: 247435, 248153, 248161)(Influence: FocusWidget) * fix: Remove clear focus code(Bug: 247435)(Influence: FocusWidget) * fix: Button focus not work in wayland(Bug: 247435) * fix: The effect of checkbox is not fully displayed(Bug: 248145)(Influence: UI) * docs: update readme.md * fix: update hierarchical verify code(Bug: 269341) * feat: deepin-elf-verify or depends(Influence: debian/control) * style: apply clang format * refactor: abstract package model interface * feat: uab package backend(Influence: uab-backend) * feat: uab package process controller(Influence: uab-package) * feat: [translation]add transifex config(Task: 361363) * feat: uab package list model(Influence: uab-package) * feat: mixed deb/uab pacakge installation.(Influence: uab-package) * feat: commit changes to uab backend(Influence: uab-package) * feat: check linglong env and json parser(Influence: uab-package) * refactor: update the installer dbus interface(Influence: uab-package) * fix: tip for installation process * feat: support dbus package manager interface(Influence: uab-package) * feat: add uab icon(Influence: uab-package) * refactor: update uab append fails tips(Influence: uab-package) * feat: support select uab file * chore: update chinese translations * fix: update uab mimetype and uninstall process * fix: compatible fixes * fix: failed to detect replaceable packages(Bug: 275221) * fix: init flag before check 'or depends'(Bug: 275221) * fix: disable providesEnhance in the community edition * feat: add uab icon and fix loop call(Influence: uab-package) * fix: adapt compact mode(Bug: 279783)(Influence: compact-mode) * test: fix some outdated unit tests. * feat: adapt compatible install(Influence: compatible) * feat: add compatible backend(Influence: compatible) * feat: adapt package model with compatibility mode(Influence: compatible) * feat: adapt compatibility mode ui(Influence: compatible) * fix: update the prompt info(Influence: compatible) * feat: compatibility mode support debconf and verify.(Influence: compatible) * fix: add display of packages to be removed(Bug: 275401) * chore: update translation(Influence: translation) -- renbin Thu, 31 Oct 2024 16:03:40 +0800 deepin-deb-installer (6.0.19) unstable; urgency=medium * fix: Update qapt version check. * fix: Conflicts contain pkg name install failed.(Bug: 233895) -- renbin Tue, 12 Dec 2023 16:54:52 +0800 deepin-deb-installer (6.0.18) unstable; urgency=medium * fix: Fix package conflicts and replaces depends error.(Bug: 214693)(Influence: PackageInstall) * fix: Install wine package depends detection error.(Influence: Wine) * fix: Use depends package arch instead of deb file arch.(Bug: 220943)(Influence: DependsAnalysis) * fix: Check for dependency architecture error.(Bug: 220019)(Influence: Dependency) * fix: Remove check provides architecture.(Bug: 222531) * fix: Detect Provides/Or dependencies error.(Issue: #212307)(Influence: ProvidesDepends OrDepends) * fix: Print useless log after install failed.(Bug: 225161) * fix: or/provides depends error when first pkg fails.(Influence: ProvidesDepends) * fix: not responding to template settings input.(Influence: Templates) * fix: Optimize virtual pkg install strategy.(Bug: 229757)(Influence: VirtualPackage) -- renbin Wed, 06 Dec 2023 13:22:46 +0800 deepin-deb-installer (6.0.14) unstable; urgency=medium * feat: Add application installation hierarchical verify policy.(Influence: Hierarchical) * fix: Change the way packages are checked for local path.(Influence: PackageVerify) * fix: Selecting multiple packages and pressing the Enter key cannot open the app.(Bug: 199167)(Influence: UI) * chore: Update translation settings and translation files.(Influence: Translation) * test: Add hierarchical control UT.(Influence: UT) * feat: Add hierarchical setting prompt.(Task: 28999)(Influence: Hierarchical) * chore: Add hierarchical setting prompt translation.(Task: 28999)(Influence: Translation) * test: Add hierarchical notify unit test case.(Influence: UnitTest) * fix: Use Event() update palette.(Influence: UpdatePalette) * fix: Remove package will remove "breaks" reverse depends.(Bug: 208617)(Influence: UninstallPcakge) * fix: Read QLatin1String returned from QApt may be freed.(Influence: CheckConflict) * fix: Wrong architecture used while install wine package.(Bug: 205805)(Influence: WineDepends) * fix: Jump to develop mode page instand of common info page.(Bug: 209873)(Influence: DevelopMode) * fix: Dialog text disappear when using large font size.(Bug: 201611)(Influence: DialogText) * fix: UI diff for single-page and multi-page.(Bug: 193971)(Influence: UI) * fix: Adjust layout spacing and margins.(Bug: 193969, 193153, 193205, 157603)(Influence: UI) -- Deepin Packages Builder Mon, 31 Jul 2023 10:13:04 +0800 deepin-deb-installer (6.0.10) unstable; urgency=medium * fix: 修复libqapt包名带后缀无法准确区分版本的问题(Bug: 195557)(Influence: 虚包安装依赖) -- Deepin Packages Builder Wed, 12 Apr 2023 12:27:31 +0800 deepin-deb-installer (6.0.9) unstable; urgency=medium * fix: 移除安装依赖 deepin-elf-verify(Bug: 195557)(Influence: 安装依赖) -- Deepin Packages Builder Wed, 12 Apr 2023 09:52:04 +0800 deepin-deb-installer (6.0.8) unstable; urgency=medium * fix: 移除对 deepin-elf-sign-tool 的强依赖(Influence: 安装依赖) -- Deepin Packages Builder Fri, 07 Apr 2023 15:59:52 +0800 deepin-deb-installer (6.0.5) unstable; urgency=medium * Update version -- wangzhengyang Thu, 30 Mar 2023 17:19:43 +0800 deepin-deb-installer (6.0.4) unstable; urgency=medium * Update version -- wangzhengyang Fri, 10 Mar 2023 10:59:41 +0800 deepin-deb-installer (6.0.3) unstable; urgency=medium * Add check for wine depend install -- wangzhengyang Tue, 21 Feb 2023 13:38:35 +0800 deepin-deb-installer (6.0.1) unstable; urgency=medium * Merge version to 6.0.1 * Add DDIM routine -- wangzhengyang Thu, 14 Feb 2023 15:07:35 +0800 deepin-deb-installer (5.8.27) unstable; urgency=medium * New version 5.8.27 -- huangzhenglin Mon, 9 Jan 2023 16:35:35 +0800 deepin-deb-installer (5.8.26) unstable; urgency=medium * New version 5.8.26 -- huangzhenglin Wed, 4 Jan 2023 16:35:35 +0800 deepin-deb-installer (5.8.25) unstable; urgency=medium * New version 5.8.25 -- huangzhenglin Tue, 3 Jan 2023 16:51:35 +0800 deepin-deb-installer (5.3.9) unstable; urgency=medium * Initial Release. -- Deepin Packages Builder Wed, 11 Oct 2017 17:38:35 +0800 deepin-deb-installer-6.5.5/debian/compat000066400000000000000000000000021474340456100201460ustar00rootroot000000000000009 deepin-deb-installer-6.5.5/debian/control000066400000000000000000000024401474340456100203530ustar00rootroot00000000000000Source: deepin-deb-installer Section: utils Priority: optional Maintainer: Deepin Packages Builder Build-Depends: debhelper (>= 9), pkg-config, cmake, qt6-5compat-dev | hello, qt6-base-dev | qtbase5-dev, qt6-tools-dev-tools | qttools5-dev-tools, qt6-tools-dev | qttools5-dev, qt6-svg-dev | libqt5svg5-dev, libdtk6widget-dev | libdtkwidget-dev, libdtk6gui-dev | libdtkgui-dev, libdtk6core-dev | libdtkcore-dev, libqapt-qt6-dev | libqapt-dev, libpolkit-qt6-1-dev | libpolkit-qt5-1-dev, libgtest-dev, deepin-gettext-tools, Standards-Version: 4.3.0 Homepage: https://www.deepin.com/ Package: deepin-deb-installer Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libqapt3-qt6-runtime | libqapt-runtime, libqapt3-qt6 | libqapt3, # deepin-app-store-runtime is available in the community edition. deepin-elf-verify | deepin-app-store-runtime, deepin-elf-sign-tool | deepin-app-store-runtime Description: Package Installer helps users install and remove local packages. Package Installer is an easy-to-use .deb package management tool with a simple interface for users to quickly install customized applications not included in App Store supporting bulk installation, version identification and auto completion. Recommends: uos-reporter, deepin-event-log deepin-deb-installer-6.5.5/debian/copyright000066400000000000000000000126541474340456100207130ustar00rootroot00000000000000Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: deepin-deb-installer # ci Files: .github/* Copyright: UnionTech Software Technology Co., Ltd. License: CC0-1.0 # gitignore Files: .gitignore Copyright: None License: CC0-1.0 # xml toml json conf yaml sh Files: *.toml *.json *conf *.yaml *.sh Copyright: UnionTech Software Technology Co., Ltd. License: CC0-1.0 # debian Files: debian/* Copyright: UnionTech Software Technology Co., Ltd. License: CC0-1.0 # Project file Files: *.pro *.prf *.pri *.qrc *CMakeLists.txt .tx/* Copyright: UnionTech Software Technology Co., Ltd. License: CC0-1.0 # README Files: README.md README.zh_CN.md INTRODUCTION.md CHANGELOG.md Copyright: UnionTech Software Technology Co., Ltd. License: CC-BY-4.0 # assets Files: assets/* Copyright: UnionTech Software Technology Co., Ltd. License: LGPL-3.0-or-later # translations Files: translations/* Copyright: UnionTech Software Technology Co., Ltd. License: LGPL-3.0-or-later # src Files: src/* Copyright: UnionTech Software Technology Co., Ltd. License: GPL-3.0-or-later # tests Files: tests/* Copyright: UnionTech Software Technology Co., Ltd. License: GPL-3.0-or-later # kde Files: src/deb-installer/process Copyright: 2007, Oswald Buddenhagen License: GPL-2.0-or-later # Fuzzy Test Files: tests/FuzzyTest/include Copyright: None License: Apache-2.0 WITH LLVM-exception # stub linux Files: tests/src/addr_pri.h tests/src/stub.h Copyright: 2020 Zhang Yu License: MIT License: GPL-3.0-or-later This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". License: LGPL-3.0-or-later This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU Lesser General Public License version 3 can be found in "/usr/share/common-licenses/LGPL-3". License: GPL-2.0-or-later This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". License: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sub license, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. deepin-deb-installer-6.5.5/debian/deepin-deb-installer-dependsInstall.1000066400000000000000000000021431474340456100257700ustar00rootroot00000000000000.\" Hey, EMACS: -*- nroff -*- .\" (C) Copyright 2021 hufeng , .\" .TH "deepin-deb-installer-dependsInstall" "1" "2021-1-28" "Deepin" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME deepin-deb-installer-dependsInstall \- install wine application for deepin-deb-installer. .SH SYNOPSIS deepin-deb-installer-dependsInstall .SH DESCRIPTION Install wine depends for deepin-deb-installer .PP .SH SEE ALSO https://github.com/linuxdeepin/deepin-deb-installer .SH AUTHOR .PP .B deepin-deb-installer-dependsInstall is written by Deepin Technology Co., Ltd. .PP This manual page was written by .MT cuizhen@\:uniontech.com Cuizhen .ME for the Debian Project (but may be used by others) deepin-deb-installer-6.5.5/debian/deepin-deb-installer.1000066400000000000000000000032201474340456100230160ustar00rootroot00000000000000.\" Hey, EMACS: -*- nroff -*- .\" (C) Copyright 2021 hufeng , .\" .TH "deepin-deb-installer" "1" "2021-1-28" "Deepin" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME deepin-deb-installer \- package manager for deepin. .SH SYNOPSIS deepin-deb-installer [FILE(s)...] [OPTIONS...] .SH DESCRIPTION Package Installer helps users install and remove local packages. .PP Package Installer is an easy-to-use .deb package management tool with a simple interface for users to quickly install customized applications not included in App Store supporting bulk installation, version identification and auto completion. .SH OPTIONS .TP \fBFILE\fR Specifies the file to open when .B deepin-deb-installer starts. If this is not specified, .B deepin-deb-installer will load file choose page. Multiple files can be loaded if they are separated by spaces. .PP -h --help Prints the command line options. .PP -v --version Output version information and exit. .PP .SH SEE ALSO https://github.com/linuxdeepin/deepin-deb-installer .SH AUTHOR .PP .B deepin-deb-installer is written by Deepin Technology Co., Ltd. .PP This manual page was written by .MT cuizhen@\:uniontech.com Cuizhen .ME for the Debian Project (but may be used by others) deepin-deb-installer-6.5.5/debian/deepin-deb-installer.lintian-overrides000066400000000000000000000001561474340456100263210ustar00rootroot00000000000000deepin-deb-installer: non-dev-pkg-with-shlib-symlink deepin-deb-installer: package-name-doesnt-match-sonames deepin-deb-installer-6.5.5/debian/manpages000066400000000000000000000001131474340456100204610ustar00rootroot00000000000000debian/deepin-deb-installer.1 debian/deepin-deb-installer-dependsInstall.1 deepin-deb-installer-6.5.5/debian/postinst000077500000000000000000000002541474340456100205620ustar00rootroot00000000000000#!/bin/sh set -e # set to default sed -i -E 's/(application\/x-deb=).*$/\1deepin-deb-installer.desktop/' /usr/share/applications/mimeapps.list || true #DEBHELPER# exit 0 deepin-deb-installer-6.5.5/debian/rules000077500000000000000000000022271474340456100200330ustar00rootroot00000000000000#!/usr/bin/make -f export QT_SELECT := 5 # see FEATURE AREAS in dpkg-buildflags(1) #export DEB_BUILD_MAINT_OPTIONS = hardening=+all # see ENVIRONMENT in dpkg-buildflags(1) # package maintainers to append CFLAGS #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic # package maintainers to append LDFLAGS #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed include /usr/share/dpkg/default.mk # 检测当前安装的Qt版本,优先使用Qt6,否则使用Qt5 define detect_qt_version ifneq (,$(shell which qmake6 2>/dev/null)) QT_DIR="/usr/lib/$(DEB_HOST_MULTIARCH)/cmake/Qt6" else QT_DIR="/usr/lib/$(DEB_HOST_MULTIARCH)/cmake/Qt5" endif endef # 调用检测Qt版本的命令 $(eval $(call detect_qt_version)) # hardcode this if want to force build with sepecific Qt version # QT_DIR="/usr/lib/$(DEB_HOST_MULTIARCH)/cmake/Qt5" %: dh $@ --parallel override_dh_auto_configure: dh_auto_configure -- \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_SAFETYTEST_ARG="CMAKE_SAFETYTEST_ARG_OFF" \ -DAPP_VERSION=$(DEB_VERSION_UPSTREAM) \ -DVERSION=$(DEB_VERSION_UPSTREAM) \ -DQT_DIR=$(QT_DIR) override_dh_shlibdeps: dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info deepin-deb-installer-6.5.5/debian/source/000077500000000000000000000000001474340456100202505ustar00rootroot00000000000000deepin-deb-installer-6.5.5/debian/source/format000066400000000000000000000000151474340456100214570ustar00rootroot000000000000003.0 (native) deepin-deb-installer-6.5.5/src/000077500000000000000000000000001474340456100163155ustar00rootroot00000000000000deepin-deb-installer-6.5.5/src/AptInstallDepend/000077500000000000000000000000001474340456100215105ustar00rootroot00000000000000deepin-deb-installer-6.5.5/src/AptInstallDepend/CMakeLists.txt000066400000000000000000000033501474340456100242510ustar00rootroot00000000000000# SPDX-FileCopyrightText: 2022 - 2024 UnionTech Software Technology Co., Ltd. # # SPDX-License-Identifier: CC0-1.0 cmake_minimum_required(VERSION 3.13) if(NOT DEFINED VERSION) set(VERSION 5.3.9) endif() project(AptInstallDepend) set(EXE_NAME deepin-deb-installer-dependsInstall) set(CMAKE_CXX_STANDARD 17) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") # 安全测试加固编译参数 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -z relro -z now -z noexecstack -pie") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -z relro -z now -z noexecstack -pie") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-all") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector-all") # add process directories string(REGEX REPLACE "(.*)/(.*)" "\\1" PROJECT_INIT_PATH ${PROJECT_SOURCE_DIR}) include_directories(${PROJECT_INIT_PATH}/deb-installer/process) file(GLOB_RECURSE AUTH_CPP_FILES ${CMAKE_CURRENT_LIST_DIR}/*.h ${CMAKE_CURRENT_LIST_DIR}/*.cpp ${PROJECT_INIT_PATH}/deb-installer/process/*.cpp) add_executable(${EXE_NAME} ${AUTH_CPP_FILES} ) # Find the library set(qt_required_components Core Gui Widgets) if (QT_DESIRED_VERSION MATCHES 6) list(APPEND qt_required_components Core5Compat) endif() find_package(Qt${QT_DESIRED_VERSION} REQUIRED COMPONENTS ${qt_required_components}) set(LINK_LIBS Qt${QT_DESIRED_VERSION}::Core Qt${QT_DESIRED_VERSION}::Gui Qt${QT_DESIRED_VERSION}::Widgets ) if (QT_DESIRED_VERSION MATCHES 6) list(APPEND LINK_LIBS Qt${QT_DESIRED_VERSION}::Core5Compat) endif() set(CMAKE_INSTALL_PREFIX /usr) # Install files install(TARGETS ${EXE_NAME} DESTINATION bin) target_link_libraries(${EXE_NAME} PUBLIC ${LINK_LIBS} ) deepin-deb-installer-6.5.5/src/AptInstallDepend/installDebThread.cpp000066400000000000000000000341731474340456100254350ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include "installDebThread.h" static const QString kParamInstallWine = "install_wine"; static const QString kParamInstallConfig = "install_config"; static const QString kParamInstallComaptible = "install_compatible"; static const QString kParamInstallImmutable = "install_immutable"; static const QString kParamInstallUab = "uab"; static const QString kAptBin = "apt"; static const QString kInstall = "install"; static const QString kRemove = "remove"; // for compatible mode static const QString kCompatibleBin = "deepin-compatible-ctl"; static const QString kCompApp = "app"; static const QString kCompRootfs = "rootfs"; // for disable DebConf static const QString kDebConfEnv = "DEBIAN_FRONTEND"; static const QString kDebConfDisable = "noninteractive"; InstallDebThread::InstallDebThread() { m_proc = new KProcess; // Note: 目前 deepin-deb-installer 使用 KPty 捕获所有通道进行设置,因此旧版的 // installDebThread 手动捕获输入流程不再响应。 // 修改输入模式为响应主进程输入,而不是手动管理。 m_proc->setInputChannelMode(QProcess::ForwardedInputChannel); connect(m_proc, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(onFinished(int, QProcess::ExitStatus))); connect(m_proc, SIGNAL(readyReadStandardOutput()), this, SLOT(onReadoutput())); connect(m_proc, &KProcess::readyReadStandardError, this, [this]() { qWarning() << m_proc->readAllStandardError(); }); } InstallDebThread::~InstallDebThread() { if (m_proc) delete m_proc; } void InstallDebThread::setParam(const QStringList &arguments) { if (!m_listParam.isEmpty()) { return; } // normal command static QMap kParamMap{{kParamInstallWine, InstallWine}, {kParamInstallConfig, InstallConfig}, {kParamInstallComaptible, Compatible}, {kParamInstallImmutable, Immutable}, {kParamInstallUab, LinglongUab}, {kInstall, Install}, {kRemove, Remove}}; for (auto itr = kParamMap.begin(); itr != kParamMap.end(); ++itr) { m_parser.addOption(QCommandLineOption(itr.key())); } QCommandLineOption rootfsOpt(kCompRootfs, "", "rootfsname"); m_parser.addOption(rootfsOpt); m_parser.process(arguments); for (auto itr = kParamMap.begin(); itr != kParamMap.end(); ++itr) { if (m_parser.isSet(itr.key())) { m_cmds.setFlag(itr.value()); } } if (m_parser.isSet(rootfsOpt)) { m_rootfs = m_parser.value(rootfsOpt); } m_listParam = m_parser.positionalArguments(); } void InstallDebThread::getDescription(const QString &debPath) { // system() 存在可控命令参数注入漏洞,即使拼接也存在命令分隔符(特殊字符)机制,因此更换方式去执行命令 QProcess process; process.start("dpkg", {"-e", debPath, TEMPLATE_DIR}); process.waitForFinished(-1); QFile file; file.setFileName(TEMPLATE_PATH); if (file.open(QIODevice::ReadOnly | QIODevice::Text)) { QString tmpData; while (!file.atEnd()) { tmpData = file.readLine().data(); if (tmpData.size() > 13) { if (tmpData.contains("Description: ")) { QString str = tmpData.mid(13, tmpData.size() - 13); str.remove(QChar('\n'), Qt::CaseInsensitive); m_listDescribeData << str; } } } file.close(); } } void InstallDebThread::onReadoutput() { QString tmp = m_proc->readAllStandardOutput().data(); qDebug() << tmp; foreach (QString eachData, m_listDescribeData) { if (tmp.contains(eachData)) { char c_input[20]; while (fgets(c_input, 10, stdin)) { QString str = c_input; str.remove(QChar('\\'), Qt::CaseInsensitive); str.remove(QChar('"'), Qt::CaseInsensitive); m_proc->write(str.toLatin1().data()); m_proc->waitForFinished(1500); break; } } } } void InstallDebThread::onFinished(int num, QProcess::ExitStatus exitStatus) { m_resultFlag = num; } void InstallDebThread::run() { if (m_listParam.isEmpty()) { return; } if (m_cmds.testFlag(InstallWine)) { installWine(); } else if (m_cmds.testFlag(Compatible)) { compatibleProcess(); } else if (m_cmds.testFlag(Immutable)) { immutableProcess(); } else if (m_cmds.testFlag(InstallConfig)) { // InstallConfig must last, Compatible and Immutable maybe set InstallConfig too. installConfig(); } else if (m_cmds.testFlag(LinglongUab)) { uabProcessCli(); } } /** * @brief Install the Wine dependency package, the incoming param is the wine package name. */ void InstallDebThread::installWine() { if (m_listParam.isEmpty()) { return; } // Note: Notify the front-end installation to start, don't remove it. qInfo() << "StartInstallDeepinwine"; // On immutable system: --fix-missing not support, apt command will transport to deepin-immutable-ctl system("echo 'libpam-runtime libpam-runtime/override boolean false' | debconf-set-selections"); system("echo 'libc6 libraries/restart-without-asking boolean true' | sudo debconf-set-selections\n"); m_proc->setProgram("apt-get", QStringList() << "install" << m_listParam << "-y"); m_proc->start(); m_proc->waitForFinished(-1); m_proc->close(); } /** @brief Install the package that contains DebConf. Work with deepin-deb-installer to handle the configuration process of Deb packages. */ void InstallDebThread::installConfig() { if (m_listParam.isEmpty()) { return; } QString debPath = m_listParam.first(); const QFileInfo info(debPath); const QFile debFile(debPath); if (debPath.contains(" ") || debPath.contains("&") || debPath.contains(";") || debPath.contains("|") || debPath.contains("`")) { // 过滤反引号,修复中危漏洞,bug 115739,处理命令连接符,命令注入导致无法软链接成功 debPath = SymbolicLink(debPath, "installPackage"); } if (debFile.exists() && info.isFile() && info.suffix().toLower() == "deb") { // 大小写不敏感的判断是否为deb后缀 qInfo() << "StartInstallAptConfig"; getDescription(debPath); m_proc->setProgram("sudo", QStringList() << "-S" << "dpkg" << "-i" << debPath); m_proc->start(); m_proc->waitForFinished(-1); QDir filePath(TEMPLATE_DIR); if (filePath.exists()) { filePath.removeRecursively(); } m_proc->close(); } } /** @brief Install / remove package in compatible mode. */ void InstallDebThread::compatibleProcess() { if (m_listParam.isEmpty()) { return; } QStringList params; if (m_cmds.testFlag(Install)) { // e.g.: deepin-compatible app install [deb file] // only one package support QString debPath = m_listParam.first(); if (debPath.contains(" ") || debPath.contains("&") || debPath.contains(";") || debPath.contains("|") || debPath.contains("`")) { debPath = SymbolicLink(debPath, "installPackage"); } if (m_cmds.testFlag(InstallConfig)) { getDescription(debPath); } // e.g.: deepin-comptabile-ctl ext install [deb file] params << kCompApp << kInstall << debPath; } else if (m_cmds.testFlag(Remove)) { // e.g.: deepin-compatible-ctl app remove [package name] params << kCompApp << kRemove << m_listParam.first(); } else { return; } if (!m_rootfs.isEmpty()) { params << QString("--%1").arg(kCompRootfs) << m_rootfs; } m_proc->setProgram(kCompatibleBin, params); qInfo() << "Exec:" << qPrintable(m_proc->program().join(' ')); m_proc->start(); m_proc->waitForFinished(-1); m_proc->close(); QDir filePath(TEMPLATE_DIR); if (filePath.exists()) { filePath.removeRecursively(); } } /** @brief Install / remove package in immutable system. */ void InstallDebThread::immutableProcess() { if (m_listParam.isEmpty()) { return; } // for immutable system static const QString kImmuEnvEnableWait = "DEEPIN_IMMUTABLE_CTL_WAIT_LOCK"; static const QString kImmuYes = "-y"; QStringList params; if (m_cmds.testFlag(Install)) { // e.g.: deepin-compatible app install [deb file] // only one package support QString debPath = m_listParam.first(); if (debPath.contains(" ") || debPath.contains("&") || debPath.contains(";") || debPath.contains("|") || debPath.contains("`")) { debPath = SymbolicLink(debPath, "installPackage"); } if (m_cmds.testFlag(InstallConfig)) { getDescription(debPath); } else { // If current pacakge no DebConf config, disable DebConf m_proc->setEnv(kDebConfEnv, kDebConfDisable); } // Note: deepin-immutable-ctl actually use apt to install/uninstall. (params transport to deepin-immutable-ctl) // e.g.: apt install [deb file] -y params << kInstall << debPath << kImmuYes; } else if (m_cmds.testFlag(Remove)) { // e.g.: apt remove [package name] -y params << kRemove << m_listParam.first() << kImmuYes; // Disable DebConf while remove package m_proc->setEnv(kDebConfEnv, kDebConfDisable); } else { return; } // enable wait another process release dpkg lock m_proc->setEnv(kImmuEnvEnableWait, "1"); m_proc->setProgram(kAptBin, params); qInfo() << "Exec:" << qPrintable(m_proc->program().join(' ')); m_proc->start(); m_proc->waitForFinished(-1); m_proc->close(); QDir filePath(TEMPLATE_DIR); if (filePath.exists()) { filePath.removeRecursively(); } } /** @brief Install / unisntall uab package in Linglong. @todo Linglong's backend DBus interface is unstable, may change frequently in the near future. We currently choose the cli interface, use the DBus interface in the future. */ void InstallDebThread::uabProcessCli() { if (m_listParam.isEmpty()) { return; } // The Linglong params static const QString kUabBin = "ll-cli"; static const QString kUabInstall = "install"; static const QString kUabUninstall = "uninstall"; static const QString kUabJson = "--json"; static const QString kUabForce = "--force"; // Force install the application static const QString kUabPass = "-y"; // Automatically answer yes to all questions QStringList params; if (m_cmds.testFlag(Install)) { // e.g.: ll-cli install --json --force -y [uab file] params << kUabInstall << kUabJson << kUabForce << kUabPass << m_listParam.first(); } else if (m_cmds.testFlag(Remove)) { // e.g.: ll-cli uninstall --json [id/version] params << kUabUninstall << kUabJson << m_listParam.first(); } else { return; } m_proc->setProgram(kUabBin, params); qInfo() << "Exec:" << qPrintable(m_proc->program().join(' ')); m_proc->start(); m_proc->waitForFinished(-1); m_proc->close(); } /** * @brief PackagesManager::SymbolicLink 创建软连接 * @param previousName 原始路径 * @param packageName 软件包的包名 * @return 软链接的路径 */ QString InstallDebThread::SymbolicLink(const QString &previousName, const QString &packageName) { if (!mkTempDir()) { qWarning() << "InstallDebThread:" << "Failed to create temporary folder"; return previousName; } return link(previousName, packageName); } /** * @brief PackagesManager::mkTempDir 创建软链接存放的临时目录 * @return 创建目录的结果 */ bool InstallDebThread::mkTempDir() { QDir tempPath(m_tempLinkDir); if (!tempPath.exists()) { return tempPath.mkdir(m_tempLinkDir); } else { return true; } } /** * @brief PackagesManager::rmTempDir 删除存放软链接的临时目录 * @return 删除临时目录的结果 */ bool InstallDebThread::rmTempDir() { QDir tempPath(m_tempLinkDir); if (tempPath.exists()) { return tempPath.removeRecursively(); } else { return true; } } /** * @brief PackagesManager::link 创建软链接 * @param linkPath 原文件的路径 * @param packageName 包的packageName * @return 软链接之后的路径 */ QString InstallDebThread::link(const QString &linkPath, const QString &packageName) { qDebug() << "InstallDebThread: Create soft link for" << packageName; QFile linkDeb(linkPath); // 创建软链接时,如果当前临时目录中存在同名文件,即同一个名字的应用,考虑到版本可能有变化,将后续添加进入的包重命名为{packageName}_1 // 删除后再次添加会在临时文件的后面添加_1,此问题不影响安装。如果有问题,后续再行修改。 int count = 1; QString tempName = packageName; while (true) { QFile tempLinkPath(m_tempLinkDir + tempName); if (tempLinkPath.exists()) { tempName = packageName + "_" + QString::number(count); qWarning() << "InstallDebThread:" << "A file with the same name exists in the current temporary directory," "and the current file name is changed to" << tempName; count++; } else { break; } } if (linkDeb.link(linkPath, m_tempLinkDir + tempName)) return m_tempLinkDir + tempName; else { qWarning() << "InstallDebThread:" << "Failed to create Symbolick link error."; return linkPath; } } deepin-deb-installer-6.5.5/src/AptInstallDepend/installDebThread.h000066400000000000000000000036161474340456100251000ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef INSTALLDEBTHREAD_H #define INSTALLDEBTHREAD_H #include #include #include #include #include #include "kprocess.h" #define TEMPLATE_DIR "/tmp/DEBIAN_TMP" #define TEMPLATE_PATH "/tmp/DEBIAN_TMP/templates" class InstallDebThread : public QThread { Q_OBJECT public: enum Command { Install = 1 << 1, // common process Remove = 1 << 2, InstallWine = 1 << 3, InstallConfig = 1 << 4, // DebConf install Compatible = 1 << 5, // compatible mode Immutable = 1 << 6, // immutable system LinglongUab = 1 << 7, // linglong app(lingyaps) }; Q_DECLARE_FLAGS(Commands, Command) Q_FLAG(Commands) InstallDebThread(); virtual ~InstallDebThread(); void setParam(const QStringList &arguments); void getDescription(const QString &debPath); void run(); inline int retFlag() const { return m_resultFlag; } public slots: void onFinished(int num, QProcess::ExitStatus exitStatus); void onReadoutput(); private: void installWine(); void installConfig(); void compatibleProcess(); void immutableProcess(); void uabProcessCli(); // 使用软连接方式解决文件路径中存在空格的问题。 QString SymbolicLink(const QString &previousName, const QString &packageName); QString link(const QString &linkPath, const QString &packageName); bool mkTempDir(); bool rmTempDir(); const QString m_tempLinkDir = "/tmp/LinkTemp/"; QCommandLineParser m_parser; Commands m_cmds; QString m_rootfs; // for comaptible mode : select rootfs KProcess *m_proc; QStringList m_listParam; QList m_listDescribeData; int m_resultFlag = -1; }; #endif // INSTALLDEBTHREAD_H deepin-deb-installer-6.5.5/src/AptInstallDepend/main.cpp000066400000000000000000000027451474340456100231500ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include #include #include #include #include #include #include #include #include #include "installDebThread.h" bool isValidInvoker() { bool valid = false; // 判断是否存在执行路径 pid_t pid = getppid(); QFileInfo f(QString("/proc/%1/exe").arg(pid)); if (!f.exists()) { valid = false; } else { valid = true; } // 是否存在于可调用者名单中 QStringList ValidInvokerExePathList; QString invokerPath = f.canonicalFilePath(); QStringList findPaths; // 合法调用者查找目录列表 findPaths << "/usr/bin"; ValidInvokerExePathList << QStandardPaths::findExecutable("deepin-deb-installer", findPaths); if (valid) { valid = ValidInvokerExePathList.contains(invokerPath); } // 非法调用 if (!valid) { qWarning() << QString("(pid: %1)[%2] is not allowed to configrate firewall").arg(pid).arg((invokerPath)); return false; } return true; } int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); if (!isValidInvoker()) { return 1; } InstallDebThread mThread; mThread.setParam(app.arguments()); mThread.run(); mThread.wait(); return mThread.retFlag(); } deepin-deb-installer-6.5.5/src/deb-installer/000077500000000000000000000000001474340456100210425ustar00rootroot00000000000000deepin-deb-installer-6.5.5/src/deb-installer/CMakeLists.txt000066400000000000000000000171661474340456100236150ustar00rootroot00000000000000# SPDX-FileCopyrightText: 2022 - 2023 UnionTech Software Technology Co., Ltd. # # SPDX-License-Identifier: CC0-1.0 cmake_minimum_required(VERSION 3.7) if(NOT DEFINED VERSION) message(WARNING "Not defined version ,about dialog version set 5.3.9") set(VERSION 5.3.9) endif() if (QT_DESIRED_VERSION MATCHES 6) # Qt6支持的qapt已基于3.0.5.2-1-deepin3版本变为libqapt-qt6-dev # execute_process(COMMAND dpkg -s libqapt-qt6-dev # COMMAND grep Version # TIMEOUT 5 # OUTPUT_VARIABLE QAPT_VERSION_STR) # string(REPLACE "Version: " "" QAPT_VERSION_STR ${QAPT_VERSION_STR}) message(STATUS "enable virtual package enhance") add_definitions(-DENABLE_VIRTUAL_PACKAGE_ENHANCE) else() # 检查qapt版本 execute_process(COMMAND dpkg -s libqapt-dev COMMAND grep Version TIMEOUT 5 OUTPUT_VARIABLE QAPT_VERSION_STR) string(REPLACE "Version: " "" QAPT_VERSION_STR ${QAPT_VERSION_STR}) message(STATUS "BUILD QAPT VERSION ${QAPT_VERSION_STR}") if(${QAPT_VERSION_STR} VERSION_LESS "3.0.5-1") if(${QAPT_VERSION_STR} VERSION_LESS "3.0.4.8-1+deepin2") message(STATUS "disable virtual package enhance") else() message(STATUS "enable virtual package enhance") add_definitions(-DENABLE_VIRTUAL_PACKAGE_ENHANCE) endif() else() # 部分包名后可能添加后缀,后续更新的deepin分支libqapt包应包含虚包处理 if(${QAPT_VERSION_STR} VERSION_GREATER_EQUAL "3.0.5.1-1-deepin1" AND ${QAPT_VERSION_STR} MATCHES ".*deepin.*") message(STATUS "enable virtual package enhance") add_definitions(-DENABLE_VIRTUAL_PACKAGE_ENHANCE) else() message(STATUS "disable virtual package enhance") endif() endif() endif() # common resource names set(APP_RES_DIR "${CMAKE_SOURCE_DIR}/assets") set(APP_BIN_NAME "deepin-deb-installer") set(APP_DESKTOP "${APP_RES_DIR}/deepin-deb-installer.desktop") set(APP_MIME "${APP_RES_DIR}/deepin-deb-installer.xml") set(APP_QRC "${APP_RES_DIR}/resources.qrc") project(${APP_BIN_NAME}) set(CMAKE_VERBOSE_MAKEFILE ON) set(CMAKE_CXX_STANDARD 17) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") set(CMAKE_CXX_FLAGS "-Wl,--as-need -fPIE") set(CMAKE_EXE_LINKER_FLAGS "-pie") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector-strong -D_FORTITY_SOURCE=1 -z noexecstack -pie -fPIC -z lazy") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-strong -D_FORTITY_SOURCE=1 -z noexecstack -pie -fPIC -z lazy") if(CMAKE_COVERAGE_ARG STREQUAL "CMAKE_COVERAGE_ARG_ON") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall -fprofile-arcs -ftest-coverage") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -fprofile-arcs -ftest-coverage") endif() # 安全测试加固编译参数 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -z relro -z now -z noexecstack -pie") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -z relro -z now -z noexecstack -pie") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-all") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector-all") if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "sw_64") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mieee") endif() # compile flags if(CMAKE_BUILD_TYPE MATCHES Debug) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall -Wextra") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -Wextra") # Enable Qt builtin debug mode add_definitions("-DQT_MESSAGELOGCONTEXT") # 添加宏定义只在debug模式下输出性能打点日志 add_definitions("-DDEBUG") if(CMAKE_SAFETYTEST) # 安全测试选项 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -fsanitize=undefined,address -O2") set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -fsanitize=undefined,address -O2") set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -g -fsanitize=undefined,address -O2") set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -g -fsanitize=undefined,address -O2") set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -g -fsanitize=undefined,address -O2") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsanitize=undefined,address -O2") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=undefined,address -O2") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -g -fsanitize=undefined,address -O2") set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} -g -fsanitize=undefined,address -O2") set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -g -fsanitize=undefined,address -O2") endif() else() # -Wl, -O2 Enable linker optimizations # -Wl, --gc-sections Remove unused code resulting from -fdsta-sections and # -ffunction-sections set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall -O2 -Wl,-O1 -Wl,--gc-sections") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -O2 -Wl,-O1 -Wl,--gc-sections") endif() configure_file(${APP_RES_DIR}/environments.h.in environments.h @ONLY) add_definitions(-DUSE_POLKIT -DENABLE_INACTIVE_DISPLAY) # Find the library find_package(PkgConfig REQUIRED) find_package(PolkitQt${QT_DESIRED_VERSION}-1) set(qt_required_components Core DBus Gui Widgets Concurrent) if (QT_DESIRED_VERSION MATCHES 6) list(APPEND qt_required_components Core5Compat) endif() find_package(Qt${QT_DESIRED_VERSION} REQUIRED COMPONENTS ${qt_required_components}) find_package(Dtk${DTK_VERSION_MAJOR} COMPONENTS Core Gui Widget REQUIRED) set(LINK_LIBS Qt${QT_DESIRED_VERSION}::Core Qt${QT_DESIRED_VERSION}::DBus Qt${QT_DESIRED_VERSION}::Gui Qt${QT_DESIRED_VERSION}::Widgets Qt${QT_DESIRED_VERSION}::Concurrent Dtk${DTK_VERSION_MAJOR}::Widget Dtk${DTK_VERSION_MAJOR}::Core Dtk${DTK_VERSION_MAJOR}::Gui PolkitQt${QT_DESIRED_VERSION}-1::Agent ) if (QT_DESIRED_VERSION MATCHES 6) list(APPEND LINK_LIBS Qt${QT_DESIRED_VERSION}::Core5Compat) endif() macro(SUBDIRLIST result curdir) file(GLOB children RELATIVE ${curdir} ${curdir}/*) set(dirlist "") foreach(child ${children}) if(IS_DIRECTORY ${curdir}/${child}) LIST(APPEND dirlist ${child}) endif() endforeach() set(${result} ${dirlist}) endmacro() include_directories(${CMAKE_CURRENT_SOURCE_DIR}) SUBDIRLIST(all_src ${CMAKE_CURRENT_SOURCE_DIR}) # Include all app own subdirectorys foreach(subdir ${all_src}) include_directories(${CMAKE_CURRENT_SOURCE_DIR}${subdir}) endforeach() include_directories(${CMAKE_CURRENT_LIST_DIR}/utils) file(GLOB_RECURSE APP_SRCS ${CMAKE_CURRENT_LIST_DIR}/*.h ${CMAKE_CURRENT_LIST_DIR}/*.cpp ) # Tell CMake to create the executable add_executable(${PROJECT_NAME} ${APP_SRCS} ${APP_QRC}) target_include_directories(${APP_BIN_NAME} PUBLIC ${OBJECT_BINARY_DIR}) target_link_libraries(${APP_BIN_NAME} ${LINK_LIBS} ${QAPT_LIB} ) set(CMAKE_INSTALL_PREFIX /usr) # translation files TRANSLATION_GENERATE(QM_FILES ${CMAKE_SOURCE_DIR}/translations) add_custom_target(${PROJECT_NAME}_qm_files DEPENDS ${QM_FILES}) add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_qm_files) # Install translations install(FILES ${QM_FILES} DESTINATION share/${PROJECT_NAME}/translations) # Install files install(DIRECTORY ${APP_RES_DIR}/deepin-deb-installer DESTINATION /usr/share/deepin-manual/manual-assets/application/) install(TARGETS deepin-deb-installer RUNTIME DESTINATION bin) install(FILES ${APP_CONFIG} DESTINATION share/deepin-deb-installer) install(FILES ${APP_DESKTOP} DESTINATION share/applications) install(FILES ${APP_MIME} DESTINATION share/mime/packages) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dbus/com.deepin.DebInstaller.service DESTINATION share/dbus-1/services/) deepin-deb-installer-6.5.5/src/deb-installer/compatible/000077500000000000000000000000001474340456100231615ustar00rootroot00000000000000deepin-deb-installer-6.5.5/src/deb-installer/compatible/compatible_backend.cpp000066400000000000000000000127051474340456100274600ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "compatible_backend.h" #include #include #include #include #include #include #include namespace Compatible { // compatible controller params static const QString kCompatibleBin = "deepin-compatible-ctl"; static const QString kCompList = "list"; static const QString kCompSepecificRootFs = "r"; static const QString kCompRootFs = "rootfs"; static const QString kCompApp = "app"; static const QString kCompInstall = "install"; static const QString kCompRemove = "remove"; CompatibleBackend::CompatibleBackend(QObject *parent) : QObject{parent} { recheckCompatibleExists(); } CompatibleBackend *CompatibleBackend::instance() { static CompatibleBackend ins; return &ins; } #ifndef DISABLE_COMPATIBLE bool CompatibleBackend::compatibleValid() const { return m_init && !m_rootfsList.isEmpty(); } bool CompatibleBackend::compatibleExists() const { return m_compatibleExists; } bool CompatibleBackend::recheckCompatibleExists() { // find ll-cli in $PATH const QString execPath = QStandardPaths::findExecutable(kCompatibleBin); m_compatibleExists = !execPath.isEmpty(); return m_compatibleExists; } #endif QList CompatibleBackend::rootfsList() const { return m_rootfsList; } QString CompatibleBackend::osName(const QString &rootfsName) const { auto findItr = std::find_if(m_rootfsList.begin(), m_rootfsList.end(), [&](const RootfsInfo::Ptr &rootfsPtr){ return rootfsPtr->name == rootfsName; }); if (findItr != m_rootfsList.end()) { return (*findItr)->osName; } return {}; } CompPkgInfo::Ptr CompatibleBackend::containsPackage(const QString &packageName) { return m_packages.value(packageName); } void CompatibleBackend::packageInstalled(const CompPkgInfo::Ptr &appendPtr) { if (!appendPtr) { return; } appendPtr->rootfs = appendPtr->targetRootfs; m_packages.insert(appendPtr->name, appendPtr); } void CompatibleBackend::packageRemoved(const CompPkgInfo::Ptr &removePtr) { if (!removePtr) { return; } removePtr->rootfs.clear(); m_packages.remove(removePtr->name); } QList CompatibleBackend::parseRootfsFromRawOutput(const QByteArray &output) { QTextStream stream(output, QIODevice::ReadOnly); // remove title stream.readLine(); stream.readLine(); bool convert{false}; QString temp; QList rootfsList; QRegExp priorityReg("^\\d+"); QRegExp createTimeReg("\\d{4}-\\d{2}-\\d{2}"); while (!stream.atEnd()) { auto rootfsPtr = RootfsInfo::Ptr::create(); stream >> temp; rootfsPtr->prioriy = temp.toInt(&convert); if (!convert) { int priority = priorityReg.indexIn(temp); if (priority != -1) { rootfsPtr->prioriy = priorityReg.cap().toInt(); } } stream >> rootfsPtr->name; // special field: os name ( contains space ), wen temp = stream.readLine(); int createTimePos = createTimeReg.indexIn(temp); if (-1 != createTimePos) { rootfsPtr->osName = temp.left(createTimePos).trimmed(); } rootfsList.append(rootfsPtr); } return rootfsList; } QHash CompatibleBackend::parseAppListFromRawOutput(const QByteArray &output) { QHash packageList; QTextStream stream(output, QIODevice::ReadOnly); // remove title stream.readLine(); stream.readLine(); while (!stream.atEnd()) { auto pkgPtr = CompPkgInfo::Ptr::create(); stream >> pkgPtr->name; stream >> pkgPtr->version; stream >> pkgPtr->arch; stream >> pkgPtr->rootfs; packageList.insert(pkgPtr->name, pkgPtr); } return packageList; } void CompatibleBackend::initBackend(bool async) { if (!compatibleExists()) { return; } static std::once_flag kCompInitFlag; std::call_once(kCompInitFlag, [this, async]() { if (async) { QtConcurrent::run([this]() { CompatibleBackend::backendProcess(this); }); } else { CompatibleBackend::backendProcess(this); } }); } void CompatibleBackend::backendProcess(CompatibleBackend *backend) { QProcess queryProcess; queryProcess.setProgram(kCompatibleBin); queryProcess.setArguments({kCompRootFs, kCompList}); queryProcess.start(); queryProcess.waitForFinished(); QByteArray output = queryProcess.readAllStandardOutput(); auto rootfsList = parseRootfsFromRawOutput(output); queryProcess.setArguments({kCompApp, kCompList}); queryProcess.start(); queryProcess.waitForFinished(); output = queryProcess.readAllStandardOutput(); auto packages = parseAppListFromRawOutput(output); // NOTE: ComaptibleBackend might not inited in main thread( no event loop ), so use qApp instaed. QMetaObject::invokeMethod(qApp, [backend, rootfsList, packages]() { backend->initFinished(rootfsList, packages); }, Qt::QueuedConnection); } void CompatibleBackend::initFinished(const QList &rootfsList, const QHash &packages) { m_init = true; m_rootfsList = rootfsList; m_packages = packages; Q_EMIT compatibleInitFinished(); } }; // namespace Compatible deepin-deb-installer-6.5.5/src/deb-installer/compatible/compatible_backend.h000066400000000000000000000051101474340456100271150ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef COMPATIBLEBACKEND_H #define COMPATIBLEBACKEND_H #include #include #include "compatible_defines.h" class QProcess; namespace Compatible { /* Warning: Compatibility mode is temporary deprecated, this class is invalid forever. see macro DISABLE_COMPATIBLE. However, there is still a high probability that this module will be enabled later, so the code is retained. To restore it, remove the DISABLE_COMPATIBLE macro. */ #define DISABLE_COMPATIBLE // Backend for comaptible mode package manage. #ifdef DISABLE_COMPATIBLE class QT_DEPRECATED_X("Temporary disable compatibility mode!") CompatibleBackend : public QObject #else class CompatibleBackend : public QObject #endif { Q_OBJECT public: static CompatibleBackend *instance(); void initBackend(bool async = true); Q_SIGNAL void compatibleInitFinished(); #ifdef DISABLE_COMPATIBLE [[nodiscard]] bool compatibleValid() const { return false; } [[nodiscard]] bool compatibleExists() const { return false; } bool recheckCompatibleExists() { return false; } #else [[nodiscard]] bool compatibleValid() const; [[nodiscard]] bool compatibleExists() const; bool recheckCompatibleExists(); #endif [[nodiscard]] QList rootfsList() const; [[nodiscard]] QString osName(const QString &rootfsName) const; [[nodiscard]] CompPkgInfo::Ptr containsPackage(const QString &packageName); // update backend database after controller process finished. void packageInstalled(const CompPkgInfo::Ptr &appendPtr); void packageRemoved(const CompPkgInfo::Ptr &removePtr); private: explicit CompatibleBackend(QObject *parent = nullptr); ~CompatibleBackend() override = default; void initFinished(const QList &rootfsList, const QHash &packages); static void backendProcess(CompatibleBackend *backend); [[nodiscard]] static QList parseRootfsFromRawOutput(const QByteArray &output); [[nodiscard]] static QHash parseAppListFromRawOutput(const QByteArray &output); bool m_init{false}; bool m_compatibleExists{false}; QList m_rootfsList; // rootfs list QHash m_packages; // all packages, every package is unique Q_DISABLE_COPY(CompatibleBackend) }; } // namespace Compatible using CompBackend = Compatible::CompatibleBackend; #endif // COMPATIBLEBACKEND_H deepin-deb-installer-6.5.5/src/deb-installer/compatible/compatible_defines.h000066400000000000000000000015341474340456100271510ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef COMPATIBLE_DEFINES_H #define COMPATIBLE_DEFINES_H #include #include namespace Compatible { struct CompPkgInfo { using Ptr = QSharedPointer; QString filePath; // for local file QString name; QString version; QString arch; // architecture QString rootfs; // rootfs name, which installed this package QString targetRootfs; // target rootfs, prepare for install pacakge to specific rootfs inline bool installed() const { return !rootfs.isEmpty(); } }; struct RootfsInfo { using Ptr = QSharedPointer; int prioriy{0}; QString name; QString osName; }; } // namespace Compatible #endif // COMPATIBLE_DEFINES_H deepin-deb-installer-6.5.5/src/deb-installer/compatible/compatible_process_controller.cpp000066400000000000000000000152551474340456100320150ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "compatible_process_controller.h" #include #include "compatible_backend.h" #include "process/Pty.h" #include "utils/package_defines.h" #include "utils/hierarchicalverify.h" namespace Compatible { // transport install/remove task to higher level permission process. static const QString kPkexecBin = "pkexec"; static const QString kInstallProcessorBin = "deepin-deb-installer-dependsInstall"; static const QString kParamCompatible = "--install_compatible"; static const QString kParamInstallConfig = "--install_config"; static const QString kParamInstall = "--install"; static const QString kParamRemove = "--remove"; static const QString kParamRootfs = "--rootfs"; CompatibleProcessController::CompatibleProcessController(QObject *parent) : QObject{parent} { } const Deb::DebPackage::Ptr &CompatibleProcessController::currentPackage() const { return m_currentPackage; } bool CompatibleProcessController::isRunning() const { if (m_process && QProcess::NotRunning != m_process->state()) { return true; } return false; } bool CompatibleProcessController::install(const Deb::DebPackage::Ptr &package) { if (!package || !package->isValid() || isRunning()) { return false; } if (!ensureProcess()) { return false; } // e.g.: pkexec deepin-deb-installer-dependsInstall Compatible InstallConfig[Optional] // install --rootfs [rootfs name] [path to deb file] m_type = Install; m_outputList.clear(); m_currentPackage = package; // reset state m_currentPackage->setError(Pkg::NoError, {}); // For historical reasons, the first argument in programArguments is the // name of the program to execute, so create a list consisting of all // but the first argument to pass to setProgram() // sa: Pty::start() QStringList params{kPkexecBin, kInstallProcessorBin, kParamCompatible, kParamInstall, kParamRootfs, m_currentPackage->compatible()->targetRootfs, m_currentPackage->filePath()}; if (m_currentPackage->containsTemplates()) { params << kParamInstallConfig; } m_process->start(kPkexecBin, params, {}, 0, false); qInfo() << "Comaptible install:" << m_process->program(); Q_EMIT processStart(); return true; } bool CompatibleProcessController::uninstall(const Deb::DebPackage::Ptr &package) { if (!package || !package->isValid() || isRunning()) { return false; } if (!ensureProcess()) { return false; } // e.g.: pkexec deepin-deb-installer-dependsInstall Compatible // remove --rootfs [rootfs name] [package name] m_type = Uninstall; m_outputList.clear(); m_currentPackage = package; // reset state m_currentPackage->setError(Pkg::NoError, {}); // For historical reasons, the first argument in programArguments is the // name of the program to execute, so create a list consisting of all // but the first argument to pass to setProgram() // sa: Pty::start() m_process->start(kPkexecBin, {kPkexecBin, kInstallProcessorBin, kParamCompatible, kParamRemove, kParamRootfs, m_currentPackage->compatible()->rootfs, m_currentPackage->debInfo()->packageName()}, {}, 0, false); qInfo() << "Comaptible uninstall:" << m_process->program(); Q_EMIT processStart(); return true; } bool CompatibleProcessController::needTemplates() const { return (Uninstall == m_type) && m_currentPackage && m_currentPackage->containsTemplates(); } void CompatibleProcessController::writeConfigData(const QString &configData) { if (m_process) { m_process->pty()->write(configData.toUtf8()); m_process->pty()->write("\n"); } } bool CompatibleProcessController::ensureProcess() { if (!m_process) { m_process = new Konsole::Pty(this); connect(m_process, &Konsole::Pty::receivedData, this, &CompatibleProcessController::onReadOutput); connect(m_process, QOverload::of(&QProcess::finished), this, &CompatibleProcessController::onFinished); } else if (QProcess::NotRunning != m_process->state()) { qWarning() << "Unable to restart compatible process is still running"; return false; } return true; } void CompatibleProcessController::onReadOutput(const char *buffer, int length, bool isCommandExec) { Q_UNUSED(isCommandExec); const QByteArray output = QByteArray::fromRawData(buffer, length); Q_EMIT processOutput(output); // simulate porgress, progress = log2(x) * 10 m_outputList.append(output); int bitMax = 0; int logCount = m_outputList.size(); while (logCount > 0) { logCount >>= 1; bitMax++; } float progress = qMin(9, bitMax) * 10; Q_EMIT progressChanged(progress); } void CompatibleProcessController::onFinished(int exitCode, int exitStatus) { const bool success = (Pkg::ExitNoError == exitCode && QProcess::NormalExit == exitStatus); if (!success) { switch (exitCode) { case Pkg::ExitAuthError: m_currentPackage->setError(Pkg::ConfigAuthCancel, {}); break; default: { // up to 512 outputs static const int kMaxCheckLen = 512; for (int i = m_outputList.size() - 1; i >= qMax(0, m_outputList.size() - kMaxCheckLen); --i) { if (HierarchicalVerify::instance()->checkTransactionError(m_currentPackage->debInfo()->packageName(), m_outputList.at(i))) { // mark hierachical verify failed m_currentPackage->setError(Pkg::DigitalSignatureError, {}); } } } break; } } Q_EMIT processFinished(success); if (success) { switch (m_type) { case Install: CompatibleBackend::instance()->packageInstalled(m_currentPackage->compatible()); break; case Uninstall: CompatibleBackend::instance()->packageRemoved(m_currentPackage->compatible()); break; default: break; } } // release temp data m_outputList.clear(); } }; // namespace Compatible deepin-deb-installer-6.5.5/src/deb-installer/compatible/compatible_process_controller.h000066400000000000000000000031331474340456100314520ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef COMPATIBLEPROCESSCONTROLLER_H #define COMPATIBLEPROCESSCONTROLLER_H #include #include "utils/deb_package.h" namespace Konsole { class Pty; } // namespace Konsole namespace Compatible { class CompatibleProcessController : public QObject { Q_OBJECT public: explicit CompatibleProcessController(QObject *parent = nullptr); ~CompatibleProcessController() override = default; [[nodiscard]] const Deb::DebPackage::Ptr ¤tPackage() const; [[nodiscard]] bool isRunning() const; [[nodiscard]] bool install(const Deb::DebPackage::Ptr &package); [[nodiscard]] bool uninstall(const Deb::DebPackage::Ptr &package); [[nodiscard]] bool needTemplates() const; void writeConfigData(const QString &configData); Q_SIGNAL void processStart(); Q_SIGNAL void processFinished(bool success); Q_SIGNAL void processOutput(const QString &output); Q_SIGNAL void progressChanged(float progress); private: [[nodiscard]] bool ensureProcess(); Q_SLOT void onReadOutput(const char *buffer, int length, bool isCommandExec); Q_SLOT void onFinished(int exitCode, int exitStatus); enum ProcessType { Install, Uninstall, }; ProcessType m_type{Install}; QStringList m_outputList; // for simunalte progress Konsole::Pty *m_process{nullptr}; Deb::DebPackage::Ptr m_currentPackage; Q_DISABLE_COPY(CompatibleProcessController) }; }; // namespace Compatible #endif // COMPATIBLEPROCESSCONTROLLER_H deepin-deb-installer-6.5.5/src/deb-installer/dbus/000077500000000000000000000000001474340456100217775ustar00rootroot00000000000000deepin-deb-installer-6.5.5/src/deb-installer/dbus/com.deepin.DebInstaller.service000066400000000000000000000001261474340456100277500ustar00rootroot00000000000000[D-BUS Service] Name=com.deepin.DebInstaller Exec=/usr/bin/deepin-deb-installer --dbusdeepin-deb-installer-6.5.5/src/deb-installer/immutable/000077500000000000000000000000001474340456100230215ustar00rootroot00000000000000deepin-deb-installer-6.5.5/src/deb-installer/immutable/immutable_backend.cpp000066400000000000000000000020171474340456100271530ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "immutable_backend.h" #include namespace Immutable { static const QString kImmutableBin = "deepin-immutable-ctl"; static const QString kImmutableStatus = "-s"; // return e.g. : "immutable mode:[true|false]" static const QByteArray kImmutableEnable = "true"; ImmutableBackend::ImmutableBackend(QObject *parent) : QObject{parent} { initBackend(); } ImmutableBackend *ImmutableBackend::instance() { static ImmutableBackend ins; return &ins; } bool ImmutableBackend::immutableEnabled() const { return m_immutableEnabled; } void ImmutableBackend::initBackend() { QProcess process; process.setProgram(kImmutableBin); process.setArguments({kImmutableStatus}); process.start(); process.waitForFinished(); const QByteArray output = process.readAllStandardOutput(); m_immutableEnabled = output.contains(kImmutableEnable); } }; // namespace Immutable deepin-deb-installer-6.5.5/src/deb-installer/immutable/immutable_backend.h000066400000000000000000000012721474340456100266220ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef IMMUTABLEBACKEND_H #define IMMUTABLEBACKEND_H #include namespace Immutable { class ImmutableBackend : public QObject { Q_OBJECT public: static ImmutableBackend *instance(); [[nodiscard]] bool immutableEnabled() const; private: explicit ImmutableBackend(QObject *parent = nullptr); ~ImmutableBackend() override = default; void initBackend(); bool m_immutableEnabled{false}; Q_DISABLE_COPY(ImmutableBackend); }; }; // namespace Immutable using ImmBackend = Immutable::ImmutableBackend; #endif // IMMUTABLEBACKEND_H deepin-deb-installer-6.5.5/src/deb-installer/immutable/immutable_process_controller.cpp000066400000000000000000000133741474340456100315150ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "immutable_process_controller.h" #include #include "process/Pty.h" #include "utils/hierarchicalverify.h" #include "utils/package_defines.h" namespace Immutable { static const QString kPkexecBin = "pkexec"; static const QString kInstallProcessorBin = "deepin-deb-installer-dependsInstall"; static const QString kParamImmutable = "--install_immutable"; static const QString kParamInstallConfig = "--install_config"; static const QString kParamInstall = "--install"; static const QString kParamRemove = "--remove"; ImmutableProcessController::ImmutableProcessController(QObject *parent) : QObject{parent} { } const Deb::DebPackage::Ptr &ImmutableProcessController::currentPackage() const { return m_currentPackage; } bool ImmutableProcessController::isRunning() const { if (m_process && QProcess::NotRunning != m_process->state()) { return true; } return false; } bool ImmutableProcessController::install(const Deb::DebPackage::Ptr &package) { if (!package || !package->isValid() || isRunning()) { return false; } if (!ensureProcess()) { return false; } // e.g.: pkexec deepin-deb-installer-dependsInstall Compatible InstallConfig[Optional] // install --rootfs [rootfs name] [path to deb file] m_type = Install; m_outputList.clear(); m_currentPackage = package; // reset state m_currentPackage->setError(Pkg::NoError, {}); // For historical reasons, the first argument in programArguments is the // name of the program to execute, so create a list consisting of all // but the first argument to pass to setProgram() // sa: Pty::start() QStringList params{kPkexecBin, kInstallProcessorBin, kParamImmutable, kParamInstall, m_currentPackage->filePath()}; if (m_currentPackage->containsTemplates()) { params << kParamInstallConfig; } m_process->start(kPkexecBin, params, {}, 0, false); qInfo() << "Comaptible install:" << m_process->program(); Q_EMIT processStart(); return true; } bool ImmutableProcessController::uninstall(const Deb::DebPackage::Ptr &package) { if (!package || !package->isValid() || isRunning()) { return false; } if (!ensureProcess()) { return false; } // e.g.: pkexec deepin-deb-installer-dependsInstall Compatible // remove --rootfs [rootfs name] [package name] m_type = Unintsall; m_outputList.clear(); m_currentPackage = package; // reset state m_currentPackage->setError(Pkg::NoError, {}); // For historical reasons, the first argument in programArguments is the // name of the program to execute, so create a list consisting of all // but the first argument to pass to setProgram() // sa: Pty::start() m_process->start( kPkexecBin, {kPkexecBin, kInstallProcessorBin, kParamImmutable, kParamRemove, m_currentPackage->debInfo()->packageName()}, {}, 0, false); qInfo() << "Comaptible uninstall:" << m_process->program(); Q_EMIT processStart(); return true; } bool ImmutableProcessController::needTemplates() const { // Unisntallation not need config templates. return (Unintsall != m_type) && m_currentPackage && m_currentPackage->containsTemplates(); } void ImmutableProcessController::writeConfigData(const QString &configData) { if (m_process) { m_process->pty()->write(configData.toUtf8()); m_process->pty()->write("\n"); } } bool ImmutableProcessController::ensureProcess() { if (!m_process) { m_process = new Konsole::Pty(this); connect(m_process, &Konsole::Pty::receivedData, this, &ImmutableProcessController::onReadOutput); connect(m_process, QOverload::of(&QProcess::finished), this, &ImmutableProcessController::onFinished); } else if (QProcess::NotRunning != m_process->state()) { qWarning() << "Unable to restart compatible process is still running"; return false; } return true; } void ImmutableProcessController::onReadOutput(const char *buffer, int length, bool isCommandExec) { Q_UNUSED(isCommandExec); const QByteArray output = QByteArray::fromRawData(buffer, length); Q_EMIT processOutput(output); // simulate porgress, progress = log2(x) * 10 m_outputList.append(output); int bitMax = 0; int logCount = m_outputList.size(); while (logCount > 0) { logCount >>= 1; bitMax++; } float progress = qMin(9, bitMax) * 10; Q_EMIT progressChanged(progress); } void ImmutableProcessController::onFinished(int exitCode, int exitStatus) { const bool success = (Pkg::ExitNoError == exitCode && QProcess::NormalExit == exitStatus); if (!success) { switch (exitCode) { case Pkg::ExitAuthError: m_currentPackage->setError(Pkg::ConfigAuthCancel, {}); break; default: { // up to 512 outputs static const int kMaxCheckLen = 512; for (int i = m_outputList.size() - 1; i >= qMax(0, m_outputList.size() - kMaxCheckLen); --i) { if (HierarchicalVerify::instance()->checkTransactionError(m_currentPackage->debInfo()->packageName(), m_outputList.at(i))) { // mark hierachical verify failed m_currentPackage->setError(Pkg::DigitalSignatureError, {}); } } } break; } } Q_EMIT processFinished(success); // release temp data m_outputList.clear(); } }; // namespace Immutable deepin-deb-installer-6.5.5/src/deb-installer/immutable/immutable_process_controller.h000066400000000000000000000031221474340456100311500ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef IMMUTABLEPROCESSCONTROLLER_H #define IMMUTABLEPROCESSCONTROLLER_H #include #include "utils/deb_package.h" namespace Konsole { class Pty; } // namespace Konsole namespace Immutable { class ImmutableProcessController : public QObject { Q_OBJECT public: explicit ImmutableProcessController(QObject *parent = nullptr); ~ImmutableProcessController() override = default; [[nodiscard]] const Deb::DebPackage::Ptr ¤tPackage() const; [[nodiscard]] bool isRunning() const; [[nodiscard]] bool install(const Deb::DebPackage::Ptr &package); [[nodiscard]] bool uninstall(const Deb::DebPackage::Ptr &package); [[nodiscard]] bool needTemplates() const; void writeConfigData(const QString &configData); Q_SIGNAL void processStart(); Q_SIGNAL void processFinished(bool success); Q_SIGNAL void processOutput(const QString &output); Q_SIGNAL void progressChanged(float progress); private: [[nodiscard]] bool ensureProcess(); Q_SLOT void onReadOutput(const char *buffer, int length, bool isCommandExec); Q_SLOT void onFinished(int exitCode, int exitStatus); enum ProcessType { Install, Unintsall, }; ProcessType m_type{Install}; QStringList m_outputList; // for simunalte progress Konsole::Pty *m_process{nullptr}; Deb::DebPackage::Ptr m_currentPackage; Q_DISABLE_COPY(ImmutableProcessController) }; }; // namespace Immutable #endif // IMMUTABLEPROCESSCONTROLLER_H deepin-deb-installer-6.5.5/src/deb-installer/main.cpp000066400000000000000000000053131474340456100224740ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "model/deblistmodel.h" #include "utils/accessible.h" #include "utils/utils.h" #include "singleInstallerApplication.h" #include "environments.h" #include "utils/eventlogutils.h" #include #include #include #include #include #include #include #include #include DWIDGET_USE_NAMESPACE #ifdef DUTIL_USE_NAMESPACE DUTIL_USE_NAMESPACE #else DCORE_USE_NAMESPACE #endif #define RECENT_PATH QDir::homePath() + "/.local/share/recently-used.xbel" #define DAPPLICATION_XSTRING(s) DAPPLICATION_STRING(s) #define DAPPLICATION_STRING(s) #s int main(int argc, char *argv[]) { SingleInstallerApplication app(argc, argv); app.setOrganizationName("deepin"); app.setApplicationName("deepin-deb-installer"); app.setApplicationVersion(VERSION); // qmake 转cmake 解决版本不对的问题 app.setApplicationAcknowledgementPage("https://www.deepin.org/acknowledgments/deepin-package-manager/"); app.setProductIcon(QIcon::fromTheme("deepin-deb-installer")); app.setAttribute(Qt::AA_UseHighDpiPixmaps); app.setAttribute(Qt::AA_EnableHighDpiScaling); app.loadTranslator(); app.setProductName(QApplication::translate("main", "Package Installer")); app.setApplicationDisplayName(QApplication::translate("main", "Package Installer")); app.setApplicationDescription(QApplication::translate( "main", "Package Installer helps users install and remove local packages, and supports bulk installation.")); qputenv("DTK_USE_SEMAPHORE_SINGLEINSTANCE", "1"); if (!QString(qgetenv("XDG_CURRENT_DESKTOP")).toLower().startsWith("deepin")) setenv("XDG_CURRENT_DESKTOP", "Deepin", 1); DLogManager::registerConsoleAppender(); DLogManager::registerFileAppender(); QAccessible::installFactory(accessibleFactory); // 自动化测试 qInfo() << qApp->applicationName() << "started, version = " << qApp->applicationVersion(); QDBusConnection dbus = QDBusConnection::sessionBus(); if (app.parseCmdLine()) { app.activateWindow(); // 埋点记录启动数据 QJsonObject objStartEvent{ {"tid", Eventlogutils::StartUp}, {"vsersion", VERSION}, {"mode", 1}, }; Eventlogutils::GetInstance()->writeLogs(objStartEvent); return app.exec(); } else { qDebug() << "argument_parser.parseArguments()"; // 解析参数失败,100ms退出进程 QTimer::singleShot(100, [&]() { app.quit(); }); return app.exec(); } } deepin-deb-installer-6.5.5/src/deb-installer/manager/000077500000000000000000000000001474340456100224545ustar00rootroot00000000000000deepin-deb-installer-6.5.5/src/deb-installer/manager/AddPackageThread.cpp000066400000000000000000000141331474340456100262560ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "AddPackageThread.h" #include "packagesmanager.h" #include "utils/utils.h" #include #include #include #include #include DCORE_USE_NAMESPACE using namespace QApt; AddPackageThread::AddPackageThread(QSet appendedPackagesMd5) : m_appendedPackagesMd5(appendedPackagesMd5) { } void AddPackageThread::setPackages(const QStringList &packages, int validPkgCount) { m_packages.clear(); m_packages.append(packages); m_validPackageCount = validPkgCount; } void AddPackageThread::setAppendPackagesMd5(const QSet &appendedPackagesMd5) { m_appendedPackagesMd5 = appendedPackagesMd5; } void AddPackageThread::setSamePackageMd5(const QMap &packagesMd5) { m_allPackages = packagesMd5; } bool AddPackageThread::dealInvalidPackage(const QString &packagePath) { auto readablilty = Utils::checkPackageReadable(packagePath); switch (readablilty) { case Pkg::PkgNotInLocal: emit signalAppendFailMessage(Pkg::PackageNotLocal); return false; case Pkg::PkgNoPermission: emit signalAppendFailMessage(Pkg::PackageNotInstallable); return false; default: break; } return true; } QString AddPackageThread::dealPackagePath(const QString &packagePath) { auto tempPath = packagePath; // 判断当前文件路径是否是绝对路径,不是的话转换为绝对路径 if (!tempPath.startsWith("/")) { QFileInfo packageAbsolutePath(tempPath); // 获取绝对路径 tempPath = packageAbsolutePath.absoluteFilePath(); } // 判断当前文件路径中是否存在空格,如果存在则创建软链接并在之后的安装时使用软链接进行访问. if (tempPath.contains(" ")) { QApt::DebFile p(tempPath); if (p.isValid()) { tempPath = SymbolicLink(tempPath, p.packageName()); qWarning() << "PackagesManager:" << "There are spaces in the path, add a soft link" << tempPath; } } return tempPath; } void AddPackageThread::run() { for (QString debPackage : m_packages) { // 处理包不在本地的情况。 if (!dealInvalidPackage(debPackage)) { continue; } QString debPkg = debPackage; debPackage = dealPackagePath(debPackage); if (debPackage.endsWith(".ddim")) { Q_EMIT signalAppendFailMessage(Pkg::PackageNotDdim); continue; } QApt::DebFile pkgFile(debPackage); // 判断当前文件是否是无效文件 if (!pkgFile.isValid()) { // 根据文件无效的类型提示不同的文案 Q_EMIT signalAppendFailMessage(Pkg::PackageInvalid); continue; } // 获取当前文件的md5的值,防止重复添加 // 先查看之前检测包有效性时是否获取过md5 QByteArray md5 = m_allPackages.value(debPkg); if (md5.isEmpty()) md5 = pkgFile.md5Sum(); // 如果当前已经存在此md5的包,则说明此包已经添加到程序中 if (m_appendedPackagesMd5.contains(md5)) { // 处理重复文件 Q_EMIT signalAppendFailMessage(Pkg::PackageAlreadyExists); continue; } // 管理最近文件列表 DRecentData data; data.appName = "Deepin Deb Installer"; data.appExec = "deepin-deb-installer"; DRecentManager::addItem(debPackage, data); // 添加到set中,用来判断重复 m_appendedPackagesMd5 << md5; // 可以添加,发送添加信号 emit signalAddPackageToInstaller(m_validPackageCount, debPackage, md5); } emit signalAppendFinished(); } QString AddPackageThread::SymbolicLink(const QString &previousName, const QString &packageName) { // 如果创建临时目录失败,则提示 if (!mkTempDir()) { qWarning() << "AddPackageThread:" << "Failed to create temporary folder"; return previousName; } // 成功则开始创建 return link(previousName, packageName); } bool AddPackageThread::mkTempDir() { QDir tempPath(m_tempLinkDir); if (!tempPath.exists()) { // 如果临时目录不存在则返回创建结果 return tempPath.mkdir(m_tempLinkDir); } else { // 临时目录已经存在,直接返回创建成功 return true; } } QString AddPackageThread::link(const QString &linkPath, const QString &packageName) { QFile linkDeb(linkPath); // 创建软链接时,如果当前临时目录中存在同名文件,即同一个名字的应用,考虑到版本可能有变化,将后续添加进入的包重命名为{packageName}_i // 删除后再次添加会在临时文件的后面添加_1,此问题不影响安装。如果有问题,后续再行修改。 int count = 1; QString tempName = packageName; // 命名创建的软链接文件 while (true) { QFile tempLinkPath(m_tempLinkDir + tempName); // 对已经存在重名文件的处理 if (tempLinkPath.exists()) { // 命名方式为在包名后+"_i" PS:i 为当前重复的数字,无实际意义,只是为了区别不同的包 tempName = packageName + "_" + QString::number(count); qWarning() << "AddPackageThread:" << "A file with the same name exists in the current temporary directory," "and the current file name is changed to" << tempName; count++; } else { break; } } // 创建软链接 if (linkDeb.link(linkPath, m_tempLinkDir + tempName)) return m_tempLinkDir + tempName; // 创建成功,返回创建的软链接的路径. else { // 创建失败,直接返回路径 qWarning() << "AddPackageThread:" << "Failed to create Symbolick link error."; return linkPath; } } deepin-deb-installer-6.5.5/src/deb-installer/manager/AddPackageThread.h000066400000000000000000000065771474340456100257400ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef ADDPACKAGETHREAD_H #define ADDPACKAGETHREAD_H #include "utils/package_defines.h" #include #include #include #include #include class PackagesManager; /** * @brief The AddPackageThread class * 批量添加,部分加载 */ class AddPackageThread : public QThread { Q_OBJECT public: AddPackageThread(QSet appendedPackagesMd5); void run(); /** * @brief setPackages 获取需要安装的软件包的列表 * @param packages 软件包列表 */ void setPackages(const QStringList &packages, int validPkgCount); /** * @brief setAppendPackagesMd5 获取到已经添加到应用的deb包的Md5的set * @param appendPackagesMd5 目前应用中的deb包的Md5的set */ void setAppendPackagesMd5(const QSet &appendedPackagesMd5); /** * @brief setSamePackageMd5 * @param packagesMd5 */ void setSamePackageMd5(const QMap &packagesMd5); Q_SIGNALS: /** * @brief sigAddPackageToInstaller 把包添加到安装器中 */ void signalAddPackageToInstaller(int, QString, QByteArray); /** * @brief appendFinished 批量添加结束 * @param 是否需要下载wine依赖的标识 */ void signalAppendFinished(); // Manange package insert failed reason. void signalAppendFailMessage(Pkg::AppendFailReason reason, Pkg::PackageType type = Pkg::Deb); private: // 要添加的软件包列表 QStringList m_packages = {}; // 已经添加的deb包的MD5值的集合 QSet m_appendedPackagesMd5 = {}; QMap m_allPackages = {}; private: /** * @brief SymbolicLink 为路径中存在空格的包创建临时文件夹以及软链接 * @param previousName 存在空格的路径ruanji * @param packageName 当前包的包名 * @return 创建成功后软链接的全路径 */ QString SymbolicLink(const QString &previousName, const QString &packageName); /** * @brief link 创建软链接 * @param linkPath 原路径 * @param packageName 包名 * @return 创建软链接之后的路径 */ QString link(const QString &linkPath, const QString &packageName); /** * @brief mkTempDir 创建存放软链接的临时路径 * @return 是否创建成功 */ bool mkTempDir(); private: /** * @brief dealInvalidPackage 查看包是否有效 * @param packagePath 包的路径 * @return 包的有效性 * true : 文件能打开 * fasle : 文件不在本地或无权限 */ bool dealInvalidPackage(const QString &packagePath); /** * @brief dealPackagePath 处理包的路径 * @param packagePath 包的路径 * @return 经过处理后的包的路径 * 处理两种情况 * 1: 相对路径 --------> 转化为绝对路径 * 2: 包的路径中存在空格 --------> 使用软链接,链接到/tmp下 */ QString dealPackagePath(const QString &packagePath); private: // 软链接的存放路径 const QString m_tempLinkDir = "/tmp/LinkTemp/"; private: // 有效文件的数量 int m_validPackageCount = 0; }; #endif // ADDPACKAGETHREAD_H deepin-deb-installer-6.5.5/src/deb-installer/manager/DealDependThread.cpp000066400000000000000000000056621474340456100263060ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "DealDependThread.h" #include "model/deblistmodel.h" #include "utils/hierarchicalverify.h" DealDependThread::DealDependThread(QObject *parent) { Q_UNUSED(parent); proc = new QProcess(this); connect(proc, QOverload::of(&QProcess::finished), this, &DealDependThread::slotInstallFinished); connect(proc, &QProcess::readyReadStandardOutput, this, &DealDependThread::slotReadOutput); } DealDependThread::~DealDependThread() { delete proc; } void DealDependThread::setDependsList(const QStringList &dependList, int index) { m_index = index; m_dependsList = dependList; } void DealDependThread::setBrokenDepend(const QString &dependName) { m_brokenDepend = dependName; } void DealDependThread::slotReadOutput() { QString tmp = proc->readAllStandardOutput().data(); if (tmp.contains("StartInstallDeepinwine")) { emit signalDependResult(DebListModel::AuthConfirm, m_index, m_brokenDepend); return; } if (tmp.contains("Not authorized")) { bDependsStatusErr = true; qWarning() << qPrintable("install Wine dependency Not authorized"); emit signalDependResult(DebListModel::CancelAuth, m_index, m_brokenDepend); } // 检测是否包含分级验签错误信息 if (HierarchicalVerify::instance()->checkTransactionError(m_brokenDepend, tmp)) { bVerifyStatusErr = true; qWarning() << QString("[Hierarchical] Install Wine dependency not verify, [output]: %1").arg(tmp); // 结束后统一发送信号 } } void DealDependThread::run() { proc->setProcessChannelMode(QProcess::MergedChannels); msleep(100); bDependsStatusErr = false; bVerifyStatusErr = false; emit signalDependResult(DebListModel::AuthBefore, m_index, m_brokenDepend); proc->start("pkexec", QStringList() << "deepin-deb-installer-dependsInstall" << "--install_wine" << m_dependsList); emit signalEnableCloseButton(false); } void DealDependThread::slotInstallFinished(int num = -1) { if (bDependsStatusErr) { emit signalDependResult(DebListModel::AnalysisErr, m_index, m_brokenDepend); bDependsStatusErr = false; return; } if (bVerifyStatusErr) { emit signalDependResult(DebListModel::VerifyDependsErr, m_index, m_brokenDepend); bVerifyStatusErr = false; return; } if (num == 0) { emit signalDependResult(DebListModel::AuthDependsSuccess, m_index, m_brokenDepend); } else { qWarning() << m_dependsList << "install error" << num; emit signalDependResult(DebListModel::AuthDependsErr, m_index, m_brokenDepend); } emit signalEnableCloseButton(true); qInfo() << qPrintable("Process(apt) install finished, num: ") << num << qPrintable("Depends list:") << m_dependsList; } deepin-deb-installer-6.5.5/src/deb-installer/manager/DealDependThread.h000066400000000000000000000035001474340456100257400ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef DEALDEPENDTHREAD_H #define DEALDEPENDTHREAD_H #include #include #include class DealDependThread : public QThread { Q_OBJECT public: DealDependThread(QObject *parent = nullptr); virtual ~DealDependThread(); /** * @brief setDependsList 添加安装列表 * @param dependList 依赖列表 * @param index 需要安装的依赖下标 */ void setDependsList(const QStringList &dependList, int index); /** * @brief setBrokenDepend 设置依赖不满足的依赖名称 * @param dependName break的依赖名 */ void setBrokenDepend(const QString &dependName); /** * @brief run 线程的运行函数 */ void run(); signals: /** * @brief signalDependResult 依赖下载的过程处理信号 */ void signalDependResult(int, int, QString); /** * @brief enableCloseButton 依赖下载时设置关闭按钮是否可用的信号 */ void signalEnableCloseButton(bool); public slots: /** * @brief onFinished 依赖下载完成的处理槽函数 */ void slotInstallFinished(int); /** * @brief on_readoutput 依赖下载过程中的输出函数 */ void slotReadOutput(); private: // 执行下载的进程指针 QProcess *proc = nullptr; // 出现问题依赖的下标 int m_index = -1; // 需要安装的依赖列表 QStringList m_dependsList = { nullptr }; // 依赖安装状态是否错误的标识 bool bDependsStatusErr = false; // 分级管控验签失败的标识 bool bVerifyStatusErr = false; // 下载失败的依赖的名称 QString m_brokenDepend = ""; }; #endif // DEALDEPENDTHREAD_H deepin-deb-installer-6.5.5/src/deb-installer/manager/PackageDependsStatus.cpp000066400000000000000000000047551474340456100272350ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "PackageDependsStatus.h" #include "utils/package_defines.h" PackageDependsStatus PackageDependsStatus::ok() { return {Pkg::DependsStatus::DependsOk, QString()}; } PackageDependsStatus PackageDependsStatus::available(const QString &package) { // 修复卸载p7zip导致deepin-wine-helper被卸载的问题,Available 添加packageName return {Pkg::DependsStatus::DependsAvailable, package}; } PackageDependsStatus PackageDependsStatus::_break(const QString &package) { return {Pkg::DependsStatus::DependsBreak, package}; } PackageDependsStatus PackageDependsStatus::_prohibit(const QString &package) { return {Pkg::DependsStatus::DependsBreak, package}; } PackageDependsStatus::PackageDependsStatus() : PackageDependsStatus(Pkg::DependsStatus::DependsOk, QString()) { } PackageDependsStatus::PackageDependsStatus(const int status, const QString &package) : status(status) , package(package) { } PackageDependsStatus &PackageDependsStatus::operator=(const PackageDependsStatus &other) { status = other.status; package = other.package; return *this; } PackageDependsStatus PackageDependsStatus::max(const PackageDependsStatus &other) { if (other.status > status) *this = other; return *this; } PackageDependsStatus PackageDependsStatus::maxEq(const PackageDependsStatus &other) { if (other.status >= status) *this = other; return *this; } PackageDependsStatus PackageDependsStatus::min(const PackageDependsStatus &other) { if (other.status < status) *this = other; return *this; } PackageDependsStatus PackageDependsStatus::minEq(const PackageDependsStatus &other) { if (other.status <= status) *this = other; return *this; } bool PackageDependsStatus::isBreak() const { return status == Pkg::DependsStatus::DependsBreak; } bool PackageDependsStatus::isAuthCancel() const { return status == Pkg::DependsStatus::DependsAuthCancel; } bool PackageDependsStatus::isAvailable() const { return status == Pkg::DependsStatus::DependsAvailable; } bool PackageDependsStatus::isProhibit() const { return status == Pkg::DependsStatus::Prohibit; } bool PackageDependsStatus::canInstall() const { return status == Pkg::DependsAvailable || status == Pkg::DependsOk; } bool PackageDependsStatus::canInstallCompatible() const { return status == Pkg::CompatibleNotInstalled; } deepin-deb-installer-6.5.5/src/deb-installer/manager/PackageDependsStatus.h000066400000000000000000000070041474340456100266700ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef PACKAGEDEPENDSSTATUS_H #define PACKAGEDEPENDSSTATUS_H #include class PackageDependsStatus { public: /** * @brief ok 组装依赖的状态,将传入的包的依赖状态设置为ok * @return 某个包的依赖状态为ok */ static PackageDependsStatus ok(); /** * @brief available 组装依赖的状态,将传入的包名的依赖状态设置为Available * @param package 当前依赖包的包名。 * @return 某个包的依赖状态为Available */ static PackageDependsStatus available(const QString &package); /** * @brief _break 组装break依赖状态。将传入的包的依赖状态设置为break * @param package 包的名字 * @return 某个包的依赖状态为break */ static PackageDependsStatus _break(const QString &package); /** * @brief _prohibit 将传入的报名的依赖状态设置为_prohibit * @param package 包的名字 * @return 包依赖状态为_prohibit */ static PackageDependsStatus _prohibit(const QString &package); PackageDependsStatus(); PackageDependsStatus(const int status, const QString &package); /** * @brief operator = 重写=操作符 * @param other 要赋值的依赖的状态 * @return 赋值后的依赖的状态 */ PackageDependsStatus &operator=(const PackageDependsStatus &other); /** * @brief max 比较当前状态并返回状态值更大的那一个 * @param other 与当前状态比较的另一个依赖状态 * @return 两个状态中更大的一个 */ PackageDependsStatus max(const PackageDependsStatus &other); /** * @brief maxEq 比较当前状态并返回状态值更大的那一个 * @param other 与当前状态比较的另一个依赖状态 * @return 两个状态中更大的一个 */ PackageDependsStatus maxEq(const PackageDependsStatus &other); /** * @brief min 比较当前状态并返回状态值更小的那一个 * @param other 与当前状态比较的另一个依赖状态 * @return 两个状态中更小的一个 */ PackageDependsStatus min(const PackageDependsStatus &other); /** * @brief minEq 比较当前状态并返回状态值更小的那一个 * @param other 与当前状态比较的另一个依赖状态 * @return 两个状态中更小的一个 */ PackageDependsStatus minEq(const PackageDependsStatus &other); /** * @brief 当前依赖状态是否为break * * @return true 当前依赖状态为break * @return false 当前依赖状态不是break */ bool isBreak() const; /** * @brief 当前依赖状态是否为AuthCancel * * @return true 当前依赖状态是AuthCancle * @return false 当前依赖状态不是AuthCancle */ bool isAuthCancel() const; /** * @brief 当前依赖状态是否为Available * * @return true 当前依赖状态是Available * @return false 当前依赖状态不是Available */ bool isAvailable() const; /** * @brief isProhibit 当前依赖状态是否为prohibit * @return true 当前依赖状态是prohibit * @return fasle 当前依赖状态不是prohibit */ bool isProhibit() const; bool canInstall() const; bool canInstallCompatible() const; public: int status; QString package; }; #endif // PACKAGEDEPENDSSTATUS_H deepin-deb-installer-6.5.5/src/deb-installer/manager/packagesmanager.cpp000066400000000000000000003115171474340456100263010ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "packagesmanager.h" #include "DealDependThread.h" #include "PackageDependsStatus.h" #include "AddPackageThread.h" #include "utils/utils.h" #include "utils/deb_package.h" #include "model/deblistmodel.h" #include "model/dependgraph.h" #include "model/packageanalyzer.h" #include "singleInstallerApplication.h" #include "compatible/compatible_backend.h" #include "utils/qtcompat.h" #include #include #include #include #include #include DCORE_USE_NAMESPACE DWIDGET_USE_NAMESPACE using namespace QApt; // 特殊的 Wine 软件包标签 static const QString g_Tagi386 = "i386"; static const QString g_TagDeepinWine = "deepin-wine"; static const QString g_DeepinWineHelper = "deepin-wine-helper"; /** * @brief 检测传入软件包架构是否支持多架构 */ bool archMultiSupport(const QString &arch) { return "native" == arch || "all" == arch || "any" == arch; } /** * @brief isArchMatches 判断包的架构是否符合系统要求 * @param sysArch 系统架构 * @param packageArch 包的架构 * @param multiArchType 系统多架构类型 * @return 是否符合多架构要求 */ bool PackagesManager::isArchMatches(QString sysArch, const QString &packageArch, const int multiArchType) { Q_UNUSED(multiArchType); if (sysArch.startsWith(':')) sysArch.remove(0, 1); if ("all" == sysArch || "any" == sysArch) return true; // bug119619 安装包时,仓库中的依赖fcitx是全架构,导致系统架构与包架构不匹配 // 增加依赖包为全架构的判断 if ("all" == packageArch || "any" == packageArch) return true; return sysArch == packageArch; } QString PackagesManager::resolvMultiArchAnnotation(const QString &annotation, const QString &debArch, const int multiArchType) { if ("native" == annotation || "any" == annotation) return QString(); if ("all" == annotation) return QString(); if (multiArchType == MultiArchForeign) return QString(); QString arch; if (annotation.isEmpty()) arch = debArch; else arch = annotation; if (!arch.startsWith(':') && !arch.isEmpty()) return arch.prepend(':'); else return arch; } bool PackagesManager::dependencyVersionMatch(const int result, const RelationType relation) { switch (relation) { case LessOrEqual: return result <= 0; case GreaterOrEqual: return result >= 0; case LessThan: return result < 0; case GreaterThan: return result > 0; case Equals: return result == 0; case NotEqual: return result != 0; default: return true; } } Pkg::PackageInstallStatus PackagesManager::checkInstallStatus(const QString &package_path) { DebFile debFile(package_path); if (!debFile.isValid()) return Pkg::PackageInstallStatus::NotInstalled; const QString packageName = debFile.packageName(); const QString packageArch = debFile.architecture(); Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qWarning() << "Failed to load libqapt backend"; return Pkg::PackageInstallStatus::NotInstalled; } Package *package = packageWithArch(packageName, packageArch); if (!package) return Pkg::PackageInstallStatus::NotInstalled; const QString installedVersion = package->installedVersion(); package = nullptr; if (installedVersion.isEmpty()) return Pkg::PackageInstallStatus::NotInstalled; const QString packageVersion = debFile.version(); const int result = Package::compareVersion(packageVersion, installedVersion); Pkg::PackageInstallStatus ret; if (result == 0) ret = Pkg::PackageInstallStatus::InstalledSameVersion; else if (result < 0) ret = Pkg::PackageInstallStatus::InstalledLaterVersion; else ret = Pkg::PackageInstallStatus::InstalledEarlierVersion; return ret; } /** * @brief Detect the dependency status of the incoming package \a package_path . * This interface is provided for the DBus interface. There will be no runtime processing, * for example, to install the Wine dependency, compatibility mode check, etc. * * @sa getPackageDependsStatus() */ PackageDependsStatus PackagesManager::checkDependsStatus(const QString &package_path) { DebFile debFile(package_path); if (!debFile.isValid()) return PackageDependsStatus::_break(""); m_currentPkgName = debFile.packageName(); m_orDepends.clear(); m_checkedOrDependsStatus.clear(); m_unCheckedOrDepends.clear(); m_dependsInfo.clear(); m_loopErrorDeepends.clear(); // 用debFile.packageName()无法打开deb文件,故替换成debFile.filePath() // 更新m_dependsInfo getPackageOrDepends(debFile.filePath(), debFile.architecture(), true); const QString architecture = debFile.architecture(); PackageDependsStatus dependsStatus = PackageDependsStatus::ok(); if (isBlackApplication(debFile.packageName())) { dependsStatus.status = Pkg::DependsStatus::Prohibit; dependsStatus.package = debFile.packageName(); qWarning() << debFile.packageName() << "In the blacklist"; return dependsStatus; } if (isArchErrorQstring(package_path)) { dependsStatus.status = Pkg::DependsStatus::ArchBreak; // 添加ArchBreak错误。 dependsStatus.package = debFile.packageName(); QString packageName = debFile.packageName(); return PackageDependsStatus::_break(packageName); } // conflicts const ConflictResult debConflitsResult = isConflictSatisfy(architecture, debFile.conflicts(), debFile.replaces()); if (!debConflitsResult.is_ok()) { qWarning() << "PackagesManager:" << "depends break because conflict" << debFile.packageName(); dependsStatus.package = debConflitsResult.unwrap(); dependsStatus.status = Pkg::DependsStatus::DependsBreak; } else { const ConflictResult localConflictsResult = isInstalledConflict(debFile.packageName(), debFile.version(), architecture); if (!localConflictsResult.is_ok()) { qWarning() << "PackagesManager:" << "depends break because conflict with local package" << debFile.packageName(); dependsStatus.package = localConflictsResult.unwrap(); dependsStatus.status = Pkg::DependsStatus::DependsBreak; } else { QSet choose_set; choose_set << debFile.packageName(); QStringList dependList; // 依赖信息映射 QHash dependInfoMap; bool isWineApplication = false; // 判断是否是wine应用 for (auto ditem : debFile.depends()) { // 每一个list中的关系是或的关系 for (auto dinfo : ditem) { // Note: 此处使用依赖包的架构查找软件包版本,某些场景下deb包架构和依赖包架构不一定一致。 QString packageArch = dinfo.multiArchAnnotation(); Package *depend = packageWithArch(dinfo.packageName(), packageArch); if (depend) { if (depend->name() == "deepin-elf-verify" || packageArch.isEmpty()) // deepi-elf-verify 是amd64架构非i386 dependList << depend->name(); else dependList << depend->name() + ":" + depend->architecture(); dependInfoMap.insert(depend->name(), dinfo); depend = nullptr; if (dinfo.packageName().contains("deepin-wine")) // 如果依赖中出现deepin-wine字段。则是wine应用 isWineApplication = true; } } } GlobalStatus::setWinePreDependsInstalling(false); // mark wine dependent download thread start isDependsExists = false; // mark multi-schema dependency conflicts m_pair.first.clear(); // clear available dependencies m_pair.second.clear(); // clear the broken dependency if (m_dependsPackages.contains(m_currentPkgMd5)) m_dependsPackages.remove(m_currentPkgMd5); dependsStatus = checkDependsPackageStatus(choose_set, debFile.architecture(), debFile.depends()); // 删除无用冗余的日志 // 由于卸载p7zip会导致wine依赖被卸载,再次安装会造成应用闪退,因此判断的标准改为依赖不满足即调用pkexec // wine应用+非wine依赖不满足即可导致出问题 do { if (isWineApplication && dependsStatus.status != Pkg::DependsStatus::DependsOk) { // 增加是否是wine应用的判断 // 额外判断wine依赖是否已安装,同时剔除非wine依赖 filterNeedInstallWinePackage(dependList, debFile, dependInfoMap); if (dependList.isEmpty()) { // 所有的wine依赖均已安装 break; } dependsStatus.status = Pkg::DependsStatus::DependsBreak; // 只要是下载,默认当前wine应用依赖为break } } while (0); } } if (dependsStatus.isBreak()) Q_ASSERT(!dependsStatus.package.isEmpty()); return dependsStatus; } QStringList PackagesManager::getPackageInfo(const QString &package_path) { QStringList value_list; const DebFile deb(package_path); if (!deb.isValid()) return value_list; QString packageName = deb.packageName(); // 包名 QString filePath = deb.filePath(); // 包的路径 QString version = deb.version(); // 包的版本 QString architecture = deb.architecture(); // 包可用的架构 QString shortDescription = deb.shortDescription(); // 包的短描述 QString longDescription = deb.longDescription(); // 包的长描述 value_list << packageName << filePath << version << architecture << shortDescription << longDescription; return value_list; } QString PackagesManager::checkPackageValid(const QStringList &package_path) { for (QString debPackage : package_path) { // 通过循环添加所有的包 // 处理包不在本地的情况。 if (Pkg::PkgReadable != Utils::checkPackageReadable(debPackage)) { // 判断路径信息是不是本地路径 return "You can only install local deb packages"; } QString debPkg = debPackage; // 处理package文件路径相关问题 debPackage = dealPackagePath(debPackage); QApt::DebFile pkgFile(debPackage); // 判断当前文件是否是无效文件 if (!pkgFile.isValid()) { return "The deb package may be broken"; } // 获取当前文件的md5的值,防止重复添加 // 在checkInvalid中已经获取过md5,避免2次获取影响性能 QByteArray md5 = m_allPackages.value(debPkg); if (md5.isEmpty()) md5 = pkgFile.md5Sum(); // 如果当前已经存在此md5的包,则说明此包已经添加到程序中 if (m_appendedPackagesMd5.contains(md5)) { return "The deb package Already Added"; } } return ""; } PackagesManager::PackagesManager(QObject *parent) : QObject(parent) { m_installWineThread = new DealDependThread(); connect(m_installWineThread, &DealDependThread::signalDependResult, this, &PackagesManager::slotDealDependResult); connect(m_installWineThread, &DealDependThread::signalEnableCloseButton, this, &PackagesManager::signalEnableCloseButton); // 批量打开 分批加载线程 m_pAddPackageThread = new AddPackageThread(m_appendedPackagesMd5); // 添加经过检查的包到软件中 connect(m_pAddPackageThread, &AddPackageThread::signalAddPackageToInstaller, this, &PackagesManager::addPackage, Qt::AutoConnection); // append fail reason connect(m_pAddPackageThread, &AddPackageThread::signalAppendFailMessage, this, &PackagesManager::signalAppendFailMessage); // 处理包添加结束的信号 // 处理包添加结束的信号 connect(m_pAddPackageThread, &AddPackageThread::signalAppendFinished, this, &PackagesManager::slotAppendPackageFinished); getBlackApplications(); } bool PackagesManager::isBackendReady() { return PackageAnalyzer::instance().isBackendReady(); } bool PackagesManager::isArchError(const int idx) { if (idx < 0 || idx >= m_preparedPackages.size()) return true; Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qWarning() << "Failed to load libqapt backend"; return true; } DebFile deb(m_preparedPackages[idx]); if (!deb.isValid()) return false; const QString arch = deb.architecture(); if ("all" == arch || "any" == arch) return false; bool architectures = !backend->architectures().contains(deb.architecture()); return architectures; } bool PackagesManager::isArchErrorQstring(const QString &package_name) { Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qWarning() << "Failed to load libqapt backend"; return true; } DebFile deb(package_name); if (!deb.isValid()) return false; const QString arch = deb.architecture(); if ("all" == arch || "any" == arch) return false; bool architectures = !backend->architectures().contains(deb.architecture()); return architectures; } const ConflictResult PackagesManager::packageConflictStat(const int index) { if (index < 0 || index >= m_preparedPackages.size()) return ConflictResult::err(""); DebFile debfile(m_preparedPackages[index]); if (!debfile.isValid()) return ConflictResult::err(""); ConflictResult ConflictResult = isConflictSatisfy(debfile.architecture(), debfile.conflicts(), debfile.replaces()); return ConflictResult; } const ConflictResult PackagesManager::isConflictSatisfy(const QString &arch, Package *package) { if (!package) { qWarning() << "invalid package pointer"; return ConflictResult::err(""); } const QString &packageName = package->name(); const auto ret_installed = isInstalledConflict(packageName, package->version(), package->architecture()); if (!ret_installed.is_ok()) { qWarning() << packageName << "check installed conflict not satisfied"; return ret_installed; } const auto conflictStatus = isConflictSatisfy(arch, package->conflicts(), package->replaces(), package); return conflictStatus; } const ConflictResult PackagesManager::isInstalledConflict(const QString &packageName, const QString &packageVersion, const QString &packageArch) { static QList> sysConflicts; if (sysConflicts.isEmpty()) { Backend *backend = PackageAnalyzer::instance().backendPtr(); for (Package *pkg : backend->availablePackages()) { if (!pkg) continue; if (!pkg->isInstalled()) { pkg = nullptr; continue; } const auto &conflicts = pkg->conflicts(); if (conflicts.isEmpty()) { pkg = nullptr; continue; } for (const auto &conflict_list : conflicts) for (const auto &conflict : conflict_list) { // FIXME: 在 Realse 模式下,某些场景后续调用 QLatin1String 时可能访问失败(内存被释放)! // 临时修改为拷贝数据。 sysConflicts << QPair(pkg->name(), conflict); } pkg = nullptr; } } Package *pkg = packageWithArch(packageName, packageArch); if (pkg && pkg->installedVersion() == packageVersion) return ConflictResult::ok(QString()); for (const auto &info : sysConflicts) { const auto &conflict = info.second; const auto &pkgName = conflict.packageName(); const auto &pkgVersion = conflict.packageVersion(); const auto &pkgArch = conflict.multiArchAnnotation(); if (pkgName != packageName) continue; /* 部分特殊软件包 conflicts 包名和当前包名一致,若一致,则认为无效 e.g.: 在 debian/control 文件配置中按如下设置的软件包 Pakcage: ImageEnhance Conflicts: ImageEnhance Replaces: ImageEnhnace */ if (pkg->name() == info.first) { continue; } // pass if arch not match if (!pkgArch.isEmpty() && pkgArch != packageArch && pkgArch != "any" && pkgArch != "native") continue; if (pkgVersion.isEmpty()) return ConflictResult::err(info.first); const int relation = Package::compareVersion(packageVersion, conflict.packageVersion()); // match, so is bad if (dependencyVersionMatch(relation, conflict.relationType())) return ConflictResult::err(info.first); } return ConflictResult::ok(QString()); } const ConflictResult PackagesManager::isConflictSatisfy(const QString &arch, const QList &conflicts, const QList &replaces, QApt::Package *targetPackage) { for (const auto &conflict_list : conflicts) { for (const auto &conflict : conflict_list) { const QString name = conflict.packageName(); // 修复依赖中 conflict与provides 存在相同 virtual package // 此前使用packageWithArch, 在package打包失败时,会寻找virtual package的提供的其他包 // 在dde-daemon中 lastore-daemon-migration与dde-daemon为conflict, // lastore-daemon-migration 又提供了dde-daemon,导致最后打成的包不是virtual package而是provides的包 Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) return ConflictResult::err(QString()); Package *package = backend->package(name); if (!package) continue; if (!package->isInstalled()) { package = nullptr; continue; } // arch error, conflicts if (!isArchMatches(arch, package->architecture(), package->multiArchType())) { qWarning() << "PackagesManager:" << "conflicts package installed: " << arch << package->name() << package->architecture() << package->multiArchTypeString(); package = nullptr; return ConflictResult::err(name); } const QString conflict_version = conflict.packageVersion(); const QString installed_version = package->installedVersion(); const auto type = conflict.relationType(); const auto result = Package::compareVersion(installed_version, conflict_version); // not match, ok if (!dependencyVersionMatch(result, type)) { package = nullptr; continue; } // test package const QString mirror_version = package->availableVersion(); // 删除版本相同比较,如果安装且版本符合则判断冲突,此前逻辑存在问题 // mirror version is also break const auto mirror_result = Package::compareVersion(mirror_version, conflict_version); if (dependencyVersionMatch(mirror_result, type) && name != m_currentPkgName) { // 此处即可确认冲突成立 // 额外判断是否会替换此包 bool conflict_yes = true; for (auto replace_list : replaces) { for (auto replace : replace_list) { if (replace.packageName() == name) { // 包名符合 auto replaceType = replace.relationType(); // 提取版本号规则 auto versionCompare = Package::compareVersion(installed_version, replace.packageVersion()); // 比较版本号 if (dependencyVersionMatch(versionCompare, replaceType)) { // 如果版本号符合要求,即判定replace成立 conflict_yes = false; break; } } } if (!conflict_yes) { break; } } // check current package and conflict package provides same package, can be replaced if (conflict_yes && targetPackage) { conflict_yes = !targetPackageCanReplace(targetPackage, package); } if (!conflict_yes) { package = nullptr; continue; } qWarning() << "PackagesManager:" << "conflicts package installed: " << arch << package->name() << package->architecture() << package->multiArchTypeString() << mirror_version << conflict_version; return ConflictResult::err(name); } } } return ConflictResult::ok(QString()); } /** @brief Check if \a targetPackage can replace conflict package \a installedPackage. If \a targetPackage provides \a installedPackage 's reverse depends package dependencies, @return True if \a targetPackage meets provides depends or or depends, otherwise false. */ bool PackagesManager::targetPackageCanReplace(QApt::Package *targetPackage, QApt::Package *installedPackage) { if (!targetPackage || !installedPackage) { return false; } Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { return false; } auto reqList = installedPackage->requiredByList(); #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) auto rdepends = reqList.toSet(); #else QSet rdepends(reqList.begin(), reqList.end()); #endif // itself package rdepends.remove(targetPackage->name()); // conflict package rdepends.remove(installedPackage->name()); // provides package #ifdef ENABLE_VIRTUAL_PACKAGE_ENHANCE auto targetProvides = targetPackage->providesListEnhance(); auto installedProvides = installedPackage->providesListEnhance(); QMap canReplaceProvides; for (auto itr = installedProvides.begin(); itr != installedProvides.end(); ++itr) { if (targetProvides.contains(itr.key())) { canReplaceProvides.insert(itr.key(), targetProvides.value(itr.key())); } } #else auto providList = targetPackage->providesList(); auto installList = installedPackage->providesList(); #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) auto targetProvides = providList.toSet(); auto installedProvides = installList.toSet(); #else QSet targetProvides(providList.begin(), providList.end()); QSet installedProvides(installList.begin(), installList.end()); #endif QSet canReplaceProvides = targetProvides.unite(installedProvides); #endif // ENABLE_VIRTUAL_PACKAGE_ENHANCE bool replaceable = false; bool containsInstalledProvides = false; // requiredByList contains depends, conflicts, recommends, etc. // we focus on depends, so only check provides depends and or depends. for (const QString &rdependName : rdepends) { QApt::Package *rdependPackage = backend->package(rdependName); if (!rdependPackage || !rdependPackage->isInstalled()) { continue; } QList rdependsDep = rdependPackage->depends(); for (const DependencyItem &item : rdependsDep) { replaceable = false; containsInstalledProvides = false; // or depends for (const DependencyInfo &info : item) { // support provides if (canReplaceProvides.contains(info.packageName())) { containsInstalledProvides = true; #ifdef ENABLE_VIRTUAL_PACKAGE_ENHANCE // check version match QString version = canReplaceProvides.value(info.packageName()); if (!version.isEmpty()) { const auto type = info.relationType(); const auto result = Package::compareVersion(version, info.packageVersion()); if (!dependencyVersionMatch(result, type)) { break; } } #endif // ENABLE_VIRTUAL_PACKAGE_ENHANCE replaceable = true; break; } // support depends if (info.packageName() == targetPackage->name()) { const auto type = info.relationType(); const auto result = Package::compareVersion(targetPackage->version(), info.packageVersion()); if (!dependencyVersionMatch(result, type)) { break; } replaceable = true; break; } if (info.packageName() == installedPackage->name()) { containsInstalledProvides = true; } } // current or depends contains installedPackage but not contains targetPackage. if (!replaceable && containsInstalledProvides) { qWarning() << QString("Package (%1) can't replace (%2), not support (%3)") .arg(targetPackage->name()) .arg(installedPackage->name()) .arg(rdependPackage->name()); return false; } // the current package satisfies the constraint if (replaceable) { break; } } } return true; } const ConflictResult PackagesManager::isConflictSatisfy(const QString &arch, const QList &conflicts) { for (const auto &conflict_list : conflicts) { for (const auto &conflict : conflict_list) { const QString name = conflict.packageName(); // 修复依赖中 conflict与provides 存在相同 virtual package // 此前使用packageWithArch, 在package打包失败时,会寻找virtual package的提供的其他包 // 在dde-daemon中 lastore-daemon-migration与dde-daemon为conflict, // lastore-daemon-migration 又提供了dde-daemon,导致最后打成的包不是virtual package而是provides的包 Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) return ConflictResult::err(QString()); Package *package = backend->package(name); if (!package) continue; if (!package->isInstalled()) { package = nullptr; continue; } // arch error, conflicts if (!isArchMatches(arch, package->architecture(), package->multiArchType())) { qWarning() << "PackagesManager:" << "conflicts package installed: " << arch << package->name() << package->architecture() << package->multiArchTypeString(); package = nullptr; return ConflictResult::err(name); } const QString conflict_version = conflict.packageVersion(); const QString installed_version = package->installedVersion(); const auto type = conflict.relationType(); const auto result = Package::compareVersion(installed_version, conflict_version); // not match, ok if (!dependencyVersionMatch(result, type)) { package = nullptr; continue; } // test package const QString mirror_version = package->availableVersion(); // 删除版本相同比较,如果安装且版本符合则判断冲突,此前逻辑存在问题 // mirror version is also break const auto mirror_result = Package::compareVersion(mirror_version, conflict_version); if (dependencyVersionMatch(mirror_result, type) && name != m_currentPkgName) { qWarning() << "PackagesManager:" << "conflicts package installed: " << arch << package->name() << package->architecture() << package->multiArchTypeString() << mirror_version << conflict_version; package = nullptr; return ConflictResult::err(name); } } } return ConflictResult::ok(QString()); } int PackagesManager::packageInstallStatus(const int index) { if (index < 0 || index >= m_preparedPackages.size()) return -1; // 修改安装状态的存放方式,将安装状态与MD5绑定,而非与index绑定 // 如果此时已经刷新过安装状态,则直接返回。 // PS: 修改原因见头文件 // 提前获取当前的md5 auto currentPackageMd5 = m_packageMd5[index]; if (m_packageInstallStatus.contains(currentPackageMd5)) return m_packageInstallStatus[currentPackageMd5]; DebFile debFile(m_preparedPackages[index]); if (!debFile.isValid()) return Pkg::PackageInstallStatus::NotInstalled; const QString packageName = debFile.packageName(); const QString packageArch = debFile.architecture(); Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qWarning() << "Failed to load libqapt backend"; return Pkg::PackageInstallStatus::NotInstalled; } Package *package = packageWithArch(packageName, packageArch); if (!package) return Pkg::PackageInstallStatus::NotInstalled; const QString installedVersion = package->installedVersion(); package = nullptr; if (installedVersion.isEmpty()) return Pkg::PackageInstallStatus::NotInstalled; const QString packageVersion = debFile.version(); const int result = Package::compareVersion(packageVersion, installedVersion); int ret; if (result == 0) ret = Pkg::PackageInstallStatus::InstalledSameVersion; else if (result < 0) ret = Pkg::PackageInstallStatus::InstalledLaterVersion; else ret = Pkg::PackageInstallStatus::InstalledEarlierVersion; // 存储包的安装状态 // 2020-11-19 修改安装状态的存储绑定方式 m_packageInstallStatus[currentPackageMd5] = ret; return ret; } /** @return The package list that \a md5 will install/upgrade/remove... */ QStringList PackagesManager::removePackages(const QByteArray &md5) const { if (auto markedPtr = m_markedDepends.value(md5)) { return markedPtr->removePackages(); } return {}; } void PackagesManager::slotDealDependResult(int iAuthRes, int iIndex, const QString &dependName) { if (iIndex < 0 || iIndex > m_preparedPackages.size()) return; if (iAuthRes == DebListModel::AuthDependsSuccess) { for (int num = 0; num < m_dependInstallMark.size(); num++) { m_packageMd5DependsStatus[m_dependInstallMark.at(num)].status = Pkg::DependsStatus::DependsOk; // 更换依赖的存储结构 } m_errorIndex.clear(); } if (iAuthRes == DebListModel::CancelAuth || iAuthRes == DebListModel::AnalysisErr) { for (int num = 0; num < m_dependInstallMark.size(); num++) { m_packageMd5DependsStatus[m_dependInstallMark.at(num)].status = Pkg::DependsStatus::DependsAuthCancel; // 更换依赖的存储结构 } emit signalEnableCloseButton(true); } if (iAuthRes == DebListModel::AuthDependsErr || iAuthRes == DebListModel::AnalysisErr || iAuthRes == DebListModel::VerifyDependsErr) { for (int num = 0; num < m_dependInstallMark.size(); num++) { m_packageMd5DependsStatus[m_dependInstallMark.at(num)].status = Pkg::DependsStatus::DependsBreak; // 更换依赖的存储结构 if (!m_errorIndex.contains(m_dependInstallMark[num])) m_errorIndex.insert(m_dependInstallMark[num], iAuthRes); } // If the download of a wine dependency fails, might be the dependency is missing if (GlobalStatus::winePreDependsInstalling()) { qInfo() << "check wine depends again !" << iIndex; getPackageDependsStatus(iIndex); if (!m_dependsPackages.isEmpty()) { qInfo() << m_dependsPackages.size() << m_dependsPackages.value(m_currentPkgMd5).second.size(); if (m_preparedPackages.size() > 1) { GlobalStatus::setWinePreDependsInstalling(false); } } } emit signalEnableCloseButton(true); } emit signalDependResult(iAuthRes, iIndex, dependName); } /** * @brief PackagesManager::getPackageMd5 获取某个包的md5 值 * @param index 包的下表 * @return 包的md5 * 现在包的状态与md5绑定,下标再与md5绑定,而非直接与下标绑定 * 这种做法的优点在于,不需要在前端再去调整所有包的顺序,只需要获取对应下标的md5即可,调整大多数状态不需要担心状态与下标对应错乱 * 缺点是:每次获取状态都需要读md5.频繁读取会造成性能影响 */ QByteArray PackagesManager::getPackageMd5(const int index) { if (index < m_packageMd5.size()) return m_packageMd5[index]; return nullptr; } /** * @brief Detect the dependency status of the \a index package . * If there is a wine dependency, the wine package dependency will be automatically pre-installed. * Compatibility mode processing is also detected. */ PackageDependsStatus PackagesManager::getPackageDependsStatus(const int index) { // 提前获取需要的md5 if (index < 0 || index >= m_preparedPackages.size()) { qWarning() << "invalid param index"; return PackageDependsStatus::_break(""); } auto currentPackageMd5 = m_packageMd5[index]; m_currentPkgMd5 = currentPackageMd5; if (m_packageMd5DependsStatus.contains(currentPackageMd5)) return m_packageMd5DependsStatus[currentPackageMd5]; DebFile debFile(m_preparedPackages[index]); if (!debFile.isValid()) return PackageDependsStatus::_break(""); m_currentPkgName = debFile.packageName(); m_orDepends.clear(); m_checkedOrDependsStatus.clear(); m_unCheckedOrDepends.clear(); m_dependsInfo.clear(); m_loopErrorDeepends.clear(); // 用debFile.packageName()无法打开deb文件,故替换成debFile.filePath() // 更新m_dependsInfo getPackageOrDepends(debFile.filePath(), debFile.architecture(), true); const QString architecture = debFile.architecture(); PackageDependsStatus dependsStatus = PackageDependsStatus::ok(); if (isBlackApplication(debFile.packageName())) { dependsStatus.status = Pkg::DependsStatus::Prohibit; dependsStatus.package = debFile.packageName(); m_packageMd5DependsStatus.insert(currentPackageMd5, dependsStatus); qWarning() << debFile.packageName() << "In the blacklist"; return dependsStatus; } if (isArchError(index)) { dependsStatus.status = Pkg::DependsStatus::ArchBreak; // 添加ArchBreak错误。 dependsStatus.package = debFile.packageName(); m_packageMd5DependsStatus.insert(currentPackageMd5, dependsStatus); // 更换依赖的存储方式 return dependsStatus; } // conflicts const ConflictResult debConflitsResult = isConflictSatisfy(architecture, debFile.conflicts(), debFile.replaces()); // Check whether it is a wine application bool isWineApplication = false; if (!debConflitsResult.is_ok()) { qWarning() << "PackagesManager:" << "depends break because conflict" << debFile.packageName(); dependsStatus.package = debConflitsResult.unwrap(); dependsStatus.status = Pkg::DependsStatus::DependsBreak; } else { const ConflictResult localConflictsResult = isInstalledConflict(debFile.packageName(), debFile.version(), architecture); if (!localConflictsResult.is_ok()) { qWarning() << "PackagesManager:" << "depends break because conflict with local package" << debFile.packageName(); dependsStatus.package = localConflictsResult.unwrap(); dependsStatus.status = Pkg::DependsStatus::DependsBreak; } else { QSet choose_set; choose_set << debFile.packageName(); QStringList dependList; QHash dependInfoMap; for (auto ditem : debFile.depends()) { // 每一个list中的关系是或的关系 for (auto dinfo : ditem) { // Note: 此处使用依赖包的架构查找软件包版本,某些场景下deb包架构和依赖包架构不一定一致。 QString packageArch = dinfo.multiArchAnnotation(); Package *depend = packageWithArch(dinfo.packageName(), packageArch); if (depend) { QString dependName; if (depend->name() == "deepin-elf-verify" || packageArch.isEmpty()) // deepin-elf-verify // 是amd64架构非i386 dependName = depend->name(); else dependName = depend->name() + ":" + depend->architecture(); dependList << dependName; dependInfoMap.insert(dependName, dinfo); depend = nullptr; if (dinfo.packageName().contains("deepin-wine")) // 如果依赖中出现deepin-wine字段。则是wine应用 isWineApplication = true; } } } GlobalStatus::setWinePreDependsInstalling(false); // mark wine dependent download thread start isDependsExists = false; // mark multi-schema dependency conflicts m_pair.first.clear(); // clear available dependencies m_pair.second.clear(); // clear the broken dependency if (m_dependsPackages.contains(m_currentPkgMd5)) m_dependsPackages.remove(m_currentPkgMd5); dependsStatus = checkDependsPackageStatus(choose_set, debFile.architecture(), debFile.depends()); // 删除无用冗余的日志 // 由于卸载p7zip会导致wine依赖被卸载,再次安装会造成应用闪退,因此判断的标准改为依赖不满足即调用pkexec // wine应用+非wine依赖不满足即可导致出问题 do { if (isWineApplication && dependsStatus.status != Pkg::DependsStatus::DependsOk) { // 增加是否是wine应用的判断 // 额外判断wine依赖是否已安装,同时剔除非wine依赖 filterNeedInstallWinePackage(dependList, debFile, dependInfoMap); if (dependList.isEmpty()) { // 所有的wine依赖均已安装 break; } if (!m_dependInstallMark.contains(currentPackageMd5)) { // replace the marker that the depends error GlobalStatus::setWinePreDependsInstalling(true); if (!m_installWineThread->isRunning()) { m_dependInstallMark.append(currentPackageMd5); // 依赖错误的软件包的标记 更改为md5取代验证下标 qInfo() << "PackagesManager:" << "wine command install depends:" << dependList; m_installWineThread->setDependsList(dependList, index); if (m_brokenDepend.isEmpty()) m_brokenDepend = dependsStatus.package; m_installWineThread->setBrokenDepend(m_brokenDepend); m_installWineThread->run(); } } dependsStatus.status = Pkg::DependsStatus::DependsBreak; // 只要是下载,默认当前wine应用依赖为break } } while (false); } } if (dependsStatus.isBreak()) { Q_ASSERT(!dependsStatus.package.isEmpty()); } // Wine or DDIM package not support compatible mode if (CompBackend::instance()->compatibleValid()) { if (!isWineApplication && SingleInstallerApplication::mode != SingleInstallerApplication::DdimChannel) { auto compPkgPtr = CompBackend::instance()->containsPackage(debFile.packageName()); if (compPkgPtr) { dependsStatus.status = Pkg::DependsStatus::CompatibleIntalled; } else if (dependsStatus.isBreak()) { // check if current system install the package. Package *pkg = packageWithArch(debFile.packageName(), debFile.architecture()); if (pkg && pkg->isInstalled()) { dependsStatus.status = Pkg::DependsStatus::CompatibleIntalled; } else { dependsStatus.status = Pkg::DependsStatus::CompatibleNotInstalled; } } // If depends ok and not installed in compatible, not need install to compatible rootfs } } // If depends need install if (Pkg::DependsOk == dependsStatus.status || Pkg::DependsAvailable == dependsStatus.status) { refreshPackageMarkedInfo(currentPackageMd5, debFile.filePath()); } m_packageMd5DependsStatus.insert(currentPackageMd5, dependsStatus); return dependsStatus; } void PackagesManager::getPackageOrDepends(const QString &package, const QString &arch, bool flag) { /* * 解析安装包依赖,若存在或依赖关系则进行处理并且存储 *such as,teamviewer depends: "libc6 (>= 2.17), libdbus-1-3, libqt5gui5 (>= 5.5)| qt56-teamviewer, * libqt5widgets5 (>= 5.5) | qt56-teamviewer, libqt5qml5 (>= 5.5) | qt56-teamviewer, libqt5quick5 (>= 5.5) | *qt56-teamviewer..." */ // 更新m_dependsInfo auto insertToDependsInfo = [this](const QList &depends) { for (auto candicate_list : depends) { for (const auto &info : candicate_list) { m_dependsInfo.insert(info.packageName(), info); } } }; auto checkVirtualPackage = [this](QVector &dependStatus, const QString &depend) { QVector virtualPackage; Backend *backend = PackageAnalyzer::instance().backendPtr(); for (auto *availablePackage : backend->availablePackages()) { if (!availablePackage->providesList().contains(depend)) { continue; } if (!dependStatus.contains(availablePackage->name())) { dependStatus.append(availablePackage->name()); virtualPackage.append(availablePackage->name()); // 使用虚包的依赖关系 if (m_dependsInfo.contains(depend)) { m_dependsInfo.insert(availablePackage->name(), m_dependsInfo.value(depend)); } } } qInfo() << QString("Detect or depends %1 contains virtual packages: ").arg(depend) << virtualPackage; }; QString packageName; QString controlDepends; if (flag) { DebFile debFile(package); if (!debFile.isValid()) return; packageName = debFile.packageName(); controlDepends = debFile.controlField("Depends"); // 软件包 insertToDependsInfo(debFile.depends()); } else { QApt::Package *pkg = packageWithArch(package, arch); if (!pkg) return; packageName = pkg->name(); controlDepends = pkg->controlField("Depends"); // 子依赖 insertToDependsInfo(pkg->depends()); } // 仅在Debug下打印 qDebug() << qPrintable("Package:") << packageName << qPrintable("controlDepends") << controlDepends; QStringList dependsList = controlDepends.split(","); // Fix 229757,不直接移除非或包依赖,而是判断是否存在虚包。 // 使用二维数组进行存储 for (QString depend : dependsList) { depend = depend.remove(REG_EXP("\\s")); // 非或包,判断虚包依赖 if (!depend.contains("|")) { // 截取依赖包名 if (depend.contains("(")) { int mid = depend.indexOf("("); depend = depend.left(mid); } QVector dependStatus; // 判断是否为虚包,若为虚包,将实现包都加入或列表 Package *package = packageWithArch(depend, arch, arch); if (package && depend != package->name()) { // 需要将当前包同样插入,方便查找 dependStatus.append(depend); checkVirtualPackage(dependStatus, depend); } if (!dependStatus.isEmpty()) { m_orDepends.append(dependStatus); m_unCheckedOrDepends.append(dependStatus); } continue; } QStringList orDepends = depend.split("|"); QVector dependStatus; for (QString ordepend : orDepends) { // 截取依赖包名 if (ordepend.contains("(")) { int mid = ordepend.indexOf("("); ordepend = ordepend.left(mid); } // 判断是否为虚包,若为虚包,将实现包都加入或列表 Package *package = packageWithArch(ordepend, arch, arch); if (package && ordepend != package->name()) { checkVirtualPackage(dependStatus, ordepend); } else { dependStatus.append(ordepend); } } m_orDepends.append(dependStatus); m_unCheckedOrDepends.append(dependStatus); } qDebug() << qPrintable("Package:") << packageName << qPrintable("orDepends") << m_orDepends; } const QString PackagesManager::packageInstalledVersion(const int index) { // 更换安装状态的存储结构 DebFile debFile(m_preparedPackages[index]); if (!debFile.isValid()) return ""; const QString packageName = debFile.packageName(); const QString packageArch = debFile.architecture(); Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qWarning() << "libqapt backend loading error"; return ""; } Package *package = backend->package(packageName + ":" + packageArch); // 修复可能某些包无法package的错误,如果遇到此类包,返回安装版本为空 if (package) { return package->installedVersion(); // 能正常打包,返回包的安装版本 } else return ""; // 此包无法正常package,返回空 } const QStringList PackagesManager::packageAvailableDepends(const int index) { return debFileAvailableDepends(m_preparedPackages[index]); } QStringList PackagesManager::debFileAvailableDepends(const QString &filePath) { DebFile debFile(filePath); if (!debFile.isValid()) return QStringList(); QSet choose_set; const QString debArch = debFile.architecture(); const auto &depends = debFile.depends(); m_unCheckedOrDepends = m_orDepends; QString levelInfo = QString("%1:%2 (%3)").arg(debFile.packageName()).arg(debArch).arg(debFile.version()); packageCandidateChoose(choose_set, debArch, depends, levelInfo); // TODO: check upgrade from conflicts return choose_set.values(); } void PackagesManager::packageCandidateChoose(QSet &choosed_set, const QString &debArch, const QList &dependsList, const QString &levelInfo) { qInfo() << "[Package Choose]" << levelInfo; for (auto const &candidate_list : dependsList) packageCandidateChoose(choosed_set, debArch, candidate_list, levelInfo); qInfo() << "[Package Choose End]" << levelInfo; } void PackagesManager::packageCandidateChoose(QSet &choosed_set, const QString &debArch, const DependencyItem &candidateList, const QString &levelInfo) { for (const auto &info : candidateList) { Package *package = packageWithArch(info.packageName(), debArch, info.multiArchAnnotation()); if (!package) continue; const auto choosed_name = package->name() + resolvMultiArchAnnotation(QString(), package->architecture()); if (choosed_set.contains(choosed_name)) break; QString packageInfo = QString("%1 (%2)").arg(choosed_name).arg(package->version()); QVector infos; if (!m_unCheckedOrDepends.isEmpty()) { for (auto dInfo : m_unCheckedOrDepends) { // 遍历或依赖容器中容器中是否存在当前依赖 if (!dInfo.contains(package->name())) { continue; } else { infos = dInfo; m_unCheckedOrDepends.removeOne(dInfo); } } } qDebug() << __func__ << infos << package->name() << "ChooseName:" << choosed_name; if (infos.isEmpty()) { // 没有或依赖关系或者当前依赖不属于或依赖关系 qDebug() << "not ordepends or not contain depend"; // 当前依赖未安装,则安装当前依赖。 if (package->installedVersion().isEmpty()) { choosed_set << choosed_name; } else { // 当前依赖已安装,判断是否需要升级 // 修复升级依赖时,因为依赖包版本过低,造成安装循环。 // 删除无用冗余的日志 if (Package::compareVersion(package->installedVersion(), info.packageVersion()) < 0) { Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qWarning() << "libqapt backend loading error"; return; } Package *updatePackage = backend->package(package->name() + resolvMultiArchAnnotation(QString(), package->architecture())); if (updatePackage) choosed_set << updatePackage->name() + resolvMultiArchAnnotation(QString(), package->architecture()); else choosed_set << info.packageName() + " not found"; } else { // 若依赖包符合版本要求,则不进行升级 continue; } } } else { // 存在或依赖且当前依赖属于或依赖关系 bool isInstalling = false; for (auto iter = infos.begin(); iter != infos.end(); iter++) { Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qWarning() << "libqapt backend loading error"; return; } Package *otherPackage = backend->package(*iter + resolvMultiArchAnnotation(QString(), debArch)); if (!otherPackage) continue; qDebug() << __func__ << *iter << otherPackage->installedVersion() << m_dependsInfo[*iter].packageVersion(); if (otherPackage->compareVersion(otherPackage->installedVersion(), m_dependsInfo[*iter].packageVersion()) >= 0 && !otherPackage->installedVersion().isEmpty()) { // 如果或依赖中有依赖已安装且符合版本要求,则当前依赖不进行下载 isInstalling = true; break; } } if (!isInstalling) { // 若或依赖中其他依赖也需要下载或者存在缺失,则当前依赖需要下载 qDebug() << __func__ << isInstalling << QString("%1 need to install current depend").arg(packageInfo); if (package->installedVersion().isEmpty()) { choosed_set << choosed_name; } else { if (Package::compareVersion(package->installedVersion(), info.packageVersion()) < 0) { Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) return; Package *updatePackage = backend->package(package->name() + resolvMultiArchAnnotation(QString(), package->architecture())); if (updatePackage) choosed_set << updatePackage->name() + resolvMultiArchAnnotation(QString(), package->architecture()); else choosed_set << info.packageName() + " not found"; } else { continue; } } } else { qDebug() << __func__ << isInstalling << QString("%1 other ordepend is installed").arg(packageInfo); break; } } if (!isConflictSatisfy(debArch, package->conflicts(), package->replaces()).is_ok()) continue; QSet upgradeDependsSet = choosed_set; upgradeDependsSet << choosed_name; const auto stat = checkDependsPackageStatus(upgradeDependsSet, package->architecture(), package->depends()); if (stat.isBreak()) continue; choosed_set << choosed_name; // 使用依赖包请求架构递归解析,而不是使用安装包的架构!(例如:i386 软件包依赖 amd64 软件包) packageCandidateChoose( choosed_set, package->architecture(), package->depends(), QString("%1 -> %2").arg(levelInfo).arg(packageInfo)); break; } } QMap PackagesManager::specialPackage() { QMap sp; sp.insert("deepin-wine-plugin-virtual", "deepin-wine-helper"); sp.insert("deepin-wine32", "deepin-wine"); sp.insert("deepin-wine-helper", "deepin-wine-plugin"); return sp; } const QStringList PackagesManager::packageReverseDependsList(const QString &packageName, const QString &sysArch) { Package *package = packageWithArch(packageName, sysArch); if (!package) { qWarning() << "Failed to package from" << packageName << "with" << sysArch; return {}; } QStringList requiredList = package->requiredByList(); package = nullptr; // 确定和当前包存在直接或间接反向依赖的包的集合 QSet reverseDependSet{packageName}; // 存放当前需要验证反向依赖的包 QQueue reverseQueue; for (const auto &requiredPackage : requiredList) reverseQueue.append(requiredPackage); while (!reverseQueue.isEmpty()) { const auto item = reverseQueue.first(); reverseQueue.pop_front(); if (reverseDependSet.contains(item)) continue; Package *currentPackage = packageWithArch(item, sysArch); if (!currentPackage || !currentPackage->isInstalled()) { currentPackage = nullptr; continue; } if (currentPackage->recommendsList().contains(packageName)) { currentPackage = nullptr; continue; } if (currentPackage->suggestsList().contains(packageName)) { currentPackage = nullptr; continue; } // Conflict / Replace / Break 的反向依赖同样跳过 if (isNegativeReverseDepend(packageName, currentPackage)) { currentPackage = nullptr; continue; } reverseDependSet << item; if (specialPackage().contains(item)) reverseQueue.append(specialPackage()[item]); // 判断当前反向依赖是否有反向依赖 for (const auto &dependRequiredPackage : currentPackage->requiredByList()) { if (reverseDependSet.contains(dependRequiredPackage) || reverseQueue.contains(dependRequiredPackage)) continue; Package *subPackage = packageWithArch(dependRequiredPackage, sysArch); if (dependRequiredPackage.startsWith("deepin.")) { // 此类wine应用在系统中的存在都是以deepin.开头 // 部分wine应用在系统中有一个替换的名字,使用requiredByList 可以获取到这些名字 if (subPackage && !subPackage->requiredByList().isEmpty()) { // 增加对package指针的检查 for (QString rdepends : subPackage->requiredByList()) { reverseQueue.append(rdepends); } } } if (!subPackage || !subPackage->isInstalled()) { // 增加对package指针的检查 subPackage = nullptr; continue; } if (subPackage->recommendsList().contains(item)) { subPackage = nullptr; continue; } if (subPackage->suggestsList().contains(item)) { subPackage = nullptr; continue; } reverseQueue.append(dependRequiredPackage); } currentPackage = nullptr; } // remove self reverseDependSet.remove(packageName); return reverseDependSet.values(); } bool PackagesManager::isNegativeReverseDepend(const QString &packageName, const QApt::Package *reverseDepend) { if (!reverseDepend) { return false; } static auto containPackage = [](const QString &packageName, const QList &itemList) -> bool { return std::any_of(itemList.begin(), itemList.end(), [&](const DependencyItem &item) { return std::any_of( item.begin(), item.end(), [&](const DependencyInfo &info) { return info.packageName() == packageName; }); }); }; // 不排除部分包设置 替换(Replace)/破坏(Breaks) 仍依赖 packageName , Depends 字段设置视为非消极包 if (containPackage(packageName, reverseDepend->depends())) { return false; } return containPackage(packageName, reverseDepend->conflicts()) || containPackage(packageName, reverseDepend->replaces()) || containPackage(packageName, reverseDepend->breaks()); } void PackagesManager::reset() { m_errorIndex.clear(); m_dependInstallMark.clear(); m_preparedPackages.clear(); m_packageInstallStatus.clear(); m_packageMd5DependsStatus.clear(); // 修改依赖状态的存储结构,此处清空存储的依赖状态数据 m_markedDepends.clear(); m_appendedPackagesMd5.clear(); m_packageMd5.clear(); m_dependGraph.reset(); // reloadCache必须要加 PackageAnalyzer::instance().backendPtr()->reloadCache(); m_dependsPackages.clear(); } void PackagesManager::resetPackageDependsStatus(const int index) { // 查看此包是否已经存储依赖状态。 // 提前获取package 的md5 auto currentPackageMd5 = m_packageMd5[index]; if (!m_packageMd5DependsStatus.contains(currentPackageMd5)) { return; } else { // 针对wine依赖做一个特殊处理,如果wine依赖break,则直接返回。 if ((m_packageMd5DependsStatus[currentPackageMd5].package == "deepin-wine") && m_packageMd5DependsStatus[currentPackageMd5].status != Pkg::DependsStatus::DependsOk) return; } // reload backend cache // reloadCache必须要加 PackageAnalyzer::instance().backendPtr()->reloadCache(); m_packageMd5DependsStatus.remove(currentPackageMd5); // 删除当前包的依赖状态(之后会重新获取此包的依赖状态) // we don't need reset m_markedDepends on installing } /** * @brief PackagesManager::removePackage 删除指定下标的包 * @param index 指定的下标 */ void PackagesManager::removePackage(int index) { if (index < 0 || index >= m_preparedPackages.size()) { qWarning() << "[PackagesManager]" << "[removePackage]" << "Subscript boundary check error"; return; } // 如果此前的文件已经被修改,则获取到的MD5的值与之前不同,因此从现有的md5中寻找. const auto md5 = m_packageMd5[index]; // 提前删除标记list中的md5 否则在删除最后一个的时候会崩溃 if (m_dependInstallMark.contains(md5)) // 如果这个包是wine包,则在wine标记list中删除 m_dependInstallMark.removeOne(md5); m_preparedPackages.removeAt(index); m_appendedPackagesMd5.remove(md5); // 在判断是否重复的md5的集合中删除掉当前包的md5 m_markedDepends.remove(md5); m_packageMd5DependsStatus.remove(md5); // 删除指定包的依赖状态 m_packageMd5.removeAt(index); // 在索引map中删除指定的项 m_dependsPackages.remove(md5); // 删除指定包的依赖关系 m_dependGraph.remove(md5); // 从依赖关系图中删除对应节点 m_packageInstallStatus.clear(); // 告诉model md5更新了 emit signalPackageMd5Changed(m_packageMd5); // notify data changed Q_EMIT signalPackageCountChanged(m_preparedPackages.size()); } /** * @brief PackagesManager::appendPackage 将前端给的包,传输到添加线程中。并开始添加 * @param packages 要添加的包的列表 * 此处可以优化,如果只有一两个包直接添加 * 大于等于三个包,先添加两个再开始线程 */ void PackagesManager::appendPackage(QStringList packages) { if (packages.isEmpty()) // 当前放进来的包列表为空(可能拖入的是文件夹) return; checkInvalid(packages); if (1 == packages.size()) { appendNoThread(packages, packages.size()); } else { QStringList subPackages; subPackages << packages[0]; appendNoThread(subPackages, packages.size()); packages.removeAt(0); if (packages.isEmpty()) return; if (!m_allPackages.isEmpty()) m_pAddPackageThread->setSamePackageMd5(m_allPackages); m_pAddPackageThread->setPackages(packages, m_validPackageCount); // 传递要添加的包到添加线程中 m_pAddPackageThread->setAppendPackagesMd5(m_appendedPackagesMd5); // 传递当前已经添加的包的MD5 判重时使用 m_pAddPackageThread->start(); // 开始添加线程 } } /** * @brief AddPackageThread::checkInvalid 检查有效文件的数量 */ void PackagesManager::checkInvalid(const QStringList &packages) { m_allPackages.clear(); m_validPackageCount = packages.size(); int validCount = 0; // 计入有效包的数量 QSet pkgSize; // 存储安装包的安装大小,初步去除无效包以及可能重复的包 for (auto package : packages) { QApt::DebFile file(package); if (!file.isValid()) { m_validPackageCount--; continue; } validCount++; auto size = file.installedSize(); if (pkgSize.contains(size)) { m_validPackageCount--; continue; } pkgSize << size; } // m_validPackageCount==1,可能有效包都是重复包,需要最终根据md5值来判定 QSet pkgMd5; // 最后通过md5来区分是否是重复包 if (1 == m_validPackageCount && validCount > 1) { for (auto package : packages) { QApt::DebFile pkgFile(package); if (!pkgFile.isValid()) continue; auto md5 = pkgFile.md5Sum(); m_allPackages.insert(package, md5); if (!pkgMd5.isEmpty() && !pkgMd5.contains(md5)) { // 根据md5判断,有不是重复的包,刷新批量界面 m_validPackageCount = 2; break; } pkgMd5 << md5; } } } /** * @brief PackagesManager::dealInvalidPackage 处理不在本地的安装包 * @param packagePath 包的路径 * @return 包是否在本地 * true : 包在本地 * fasle : 文件不在本地 */ bool PackagesManager::dealInvalidPackage(const QString &packagePath) { auto readablilty = Utils::checkPackageReadable(packagePath); switch (readablilty) { case Pkg::PkgNotInLocal: emit signalAppendFailMessage(Pkg::PackageNotLocal); return false; case Pkg::PkgNoPermission: emit signalAppendFailMessage(Pkg::PackageNotInstallable); return false; default: break; } return true; } /** * @brief PackagesManager::dealPackagePath 处理路径相关的问题 * @param packagePath 当前包的文件路径 * @return 处理后的文件路径 * 处理两种情况 * 1: 相对路径 --------> 转化为绝对路径 * 2: 包的路径中存在空格 --------> 使用软链接,链接到/tmp下 */ QString PackagesManager::dealPackagePath(const QString &packagePath) { auto tempPath = packagePath; // 判断当前文件路径是否是绝对路径,不是的话转换为绝对路径 if (!tempPath.startsWith("/")) { QFileInfo packageAbsolutePath(tempPath); tempPath = packageAbsolutePath.absoluteFilePath(); // 获取绝对路径 qInfo() << "get AbsolutePath" << packageAbsolutePath.absoluteFilePath(); } // 判断当前文件路径中是否存在空格,如果存在则创建软链接并在之后的安装时使用软链接进行访问. if (tempPath.contains(" ")) { QApt::DebFile p(tempPath); if (p.isValid()) { tempPath = SymbolicLink(tempPath, p.packageName()); qWarning() << "PackagesManager:" << "There are spaces in the path, add a soft link" << tempPath; } } return tempPath; } Pkg::DependsPair PackagesManager::getPackageDependsDetail(const int index) { if (index < m_packageMd5.size() && index >= 0) return m_dependsPackages.value(m_packageMd5[index]); return {}; } /** * @brief PackagesManager::appendNoThread * @param packages * @param allPackageSize */ void PackagesManager::appendNoThread(const QStringList &packages, int allPackageSize) { for (QString debPackage : packages) { // 通过循环添加所有的包 // 处理包不在本地的情况。 if (!dealInvalidPackage(debPackage)) continue; QString debPkg = debPackage; // 处理package文件路径相关问题 debPackage = dealPackagePath(debPackage); // 检测到是ddim文件 if (debPackage.endsWith(".ddim")) { Q_EMIT signalAppendFailMessage(Pkg::PackageNotDdim); continue; } QApt::DebFile pkgFile(debPackage); // 判断当前文件是否是无效文件 if (!pkgFile.isValid()) { Q_EMIT signalAppendFailMessage(Pkg::PackageInvalid); continue; } // 获取当前文件的md5的值,防止重复添加 // 在checkInvalid中已经获取过md5,避免2次获取影响性能 QByteArray md5 = m_allPackages.value(debPkg); if (md5.isEmpty()) md5 = pkgFile.md5Sum(); // 如果当前已经存在此md5的包,则说明此包已经添加到程序中 if (m_appendedPackagesMd5.contains(md5)) { // 处理重复文件 Q_EMIT signalAppendFailMessage(Pkg::PackageAlreadyExists); continue; } // 可以添加,发送添加信号 // 管理最近文件列表 DRecentData data; data.appName = "Deepin Deb Installer"; data.appExec = "deepin-deb-installer"; DRecentManager::addItem(debPackage, data); addPackage(m_validPackageCount, debPackage, md5); } // 所有包都添加结束. if (1 == allPackageSize) { emit signalAppendFinished(m_packageMd5); // 添加一个包时 发送添加结束信号,启用安装按钮 } } /** * @brief PackagesManager::refreshPage 根据添加包的情况 刷新页面 * @param validPkgCount 此次添加的包的数量(一次拖入或者打开【可能是多个包】【此处只是预计能够添加到程序中的包的数量】) */ void PackagesManager::refreshPage(int validPkgCount) { // 获取当前已经添加到程序中的包的数量 const int packageCount = m_preparedPackages.size(); Q_EMIT signalPackageCountChanged(packageCount); // If current first append and only one package, will append directly. if (1 != packageCount || 1 != validPkgCount) { Q_EMIT signalAppendStart(); } } /** * @brief PackagesManager::slotAppendPackageFinished 此次添加已经结束 */ void PackagesManager::slotAppendPackageFinished() { // 告诉前端,此次添加已经结束 // 向model传递 md5 emit signalAppendFinished(m_packageMd5); } void PackagesManager::addPackage(int validPkgCount, const QString &packagePath, const QByteArray &packageMd5Sum) { // 预先校验包是否有效或是否重复 DebFile currentDebfile(packagePath); if (!currentDebfile.isValid() || m_appendedPackagesMd5.contains(packageMd5Sum)) { return; } // 加入md5集合 m_appendedPackagesMd5 << packageMd5Sum; // 使用依赖图计算安装顺序 auto currentDebDepends = currentDebfile.depends(); m_dependGraph.addNode(packagePath, packageMd5Sum, currentDebfile.packageName(), currentDebDepends); // 添加图节点 auto installQueue = m_dependGraph.getBestInstallQueue(); // 输出最佳安装顺序 m_preparedPackages = installQueue.first; m_packageMd5 = installQueue.second; int indexRow = 0; for (; indexRow != m_packageMd5.size(); ++indexRow) { if (m_packageMd5[indexRow] == packageMd5Sum) { break; } } if (indexRow == m_packageMd5.size()) { // error return; } // 需要在此之前刷新出正确的安装顺序 getPackageDependsStatus(indexRow); // 刷新当前添加包的依赖 refreshPage(validPkgCount); // 添加后,根据添加的状态刷新界面 } QList PackagesManager::getAllDepends(const QList &depends, const QString &architecture) { // 检索当前包的所有依赖 for (const auto &list : depends) { for (auto info : list) { // 获取当前包的依赖 QList dList = getAllDepends(info.packageName(), architecture); m_allDependsList << info.packageName() << dList; // 存储所有依赖 } } return m_allDependsList; } QList PackagesManager::getAllDepends(const QString &packageName, const QString &architecture) { QList dDepends; // 存储依赖的依赖 dDepends << packageName; // 对安装包依赖的依赖进行检索 Package *package = packageWithArch(packageName, architecture); if (package) { for (const auto &list : package->depends()) { for (auto info : list) { // 若列表中已存在该依赖,直接跳过 static QSet set; if (set.contains(info.packageName())) continue; set << info.packageName(); // 将依赖存入列表并进行下一层依赖检索 dDepends << info.packageName() << getAllDepends(info.packageName(), architecture); } } } return dDepends; } const PackageDependsStatus PackagesManager::checkDependsPackageStatus(QSet &choosed_set, const QString &architecture, const QList &depends) { // 只有单包,认为首次进入 if (choosed_set.size() <= 1) { m_loopErrorDeepends.clear(); } PackageDependsStatus dependsStatus = PackageDependsStatus::ok(); QList break_list; QList available_list; for (const auto &candicate_list : depends) { const auto r = checkDependsPackageStatus(choosed_set, architecture, candicate_list); dependsStatus.maxEq(r); if (!m_dinfo.packageName.isEmpty()) { if (r.isBreak()) { break_list.append(m_dinfo); } else if (r.isAvailable()) { available_list.append(m_dinfo); } } } m_pair.first.append(available_list); m_pair.second.append(break_list); m_dependsPackages.insert(m_currentPkgMd5, m_pair); return dependsStatus; } const PackageDependsStatus PackagesManager::checkDependsPackageStatus(QSet &choosed_set, const QString &architecture, const DependencyItem &candicate) { PackageDependsStatus dependsStatus = PackageDependsStatus::_break(QString()); for (const auto &info : candicate) { const auto r = checkDependsPackageStatus(choosed_set, architecture, info); dependsStatus.minEq(r); // 空包名表示只返回 ok if (!r.package.isEmpty() && !m_loopErrorDeepends.contains(r.package)) { m_loopErrorDeepends.insert(r.package, r.status); } // 安装包存在或依赖关系且当前依赖状态不能直接满足,筛选依赖关系最优的选项 if (!m_unCheckedOrDepends.isEmpty() && Pkg::DependsStatus::DependsOk != r.status) { for (auto orDepends : m_unCheckedOrDepends) { // 遍历或依赖组,检测当前依赖是否存在或依赖关系 if (orDepends.contains(info.packageName())) { m_unCheckedOrDepends.removeOne(orDepends); m_checkedOrDependsStatus.insert(info.packageName(), r); auto depends = orDepends; depends.removeOne(info.packageName()); // 将当前依赖从或依赖中删除,检测或依赖中剩余依赖状态 qInfo() << depends << orDepends; for (auto otherDepend : depends) { // 避免检测过的或依赖重复检测 PackageDependsStatus status; if (m_checkedOrDependsStatus.contains(otherDepend)) { status = m_checkedOrDependsStatus[otherDepend]; } else { // 虚拟或包共用,区分判断 if (m_dependsInfo.contains(otherDepend)) { DependencyInfo dependencyInfo = m_dependsInfo.value(otherDepend); if (dependencyInfo.packageName() == otherDepend) { status = checkDependsPackageStatus(choosed_set, architecture, dependencyInfo); } else { // 依赖名和包名不同,为虚包依赖 status = checkDependsPackageStatus(choosed_set, architecture, dependencyInfo, otherDepend); } } else { // 虚包使用或包判断 status = checkDependsPackageStatus( choosed_set, architecture, m_dependsInfo.find(info.packageName()).value(), otherDepend); } m_checkedOrDependsStatus.insert(otherDepend, status); // 空包名表示只返回 ok if (!status.package.isEmpty() && !m_loopErrorDeepends.contains(status.package)) { m_loopErrorDeepends.insert(status.package, status.status); } } qInfo() << qPrintable("Orpackage depends") << status.status; if (status.isBreak()) // 若剩余依赖中存在状态不为break,则说明依赖关系满足 continue; dependsStatus.minEq(status); if (Pkg::DependsStatus::DependsOk == dependsStatus.status) { qDebug() << QString("Select or package %1 for %2.").arg(otherDepend).arg(info.packageName()); break; } } break; } } } if (dependsStatus.status == Pkg::DependsStatus::DependsOk) { break; } } return dependsStatus; } const PackageDependsStatus PackagesManager::checkDependsPackageStatus(QSet &choosed_set, const QString &architecture, const DependencyInfo &dependencyInfo, const QString &providesName) { m_dinfo.packageName.clear(); m_dinfo.version.clear(); const QString package_name = providesName.isEmpty() ? dependencyInfo.packageName() : providesName; QString realArch = architecture; // 对 wine 应用特殊处理,wine包依赖升级混用i386/amd64,不使用主包的架构 if (package_name.contains(g_TagDeepinWine) && realArch == g_Tagi386) { realArch.clear(); } Package *package = packageWithArch(package_name, realArch, dependencyInfo.multiArchAnnotation()); if (!package) { qWarning() << "PackagesManager:" << "depends break because package" << package_name << "not available"; isDependsExists = true; m_dinfo.packageName = package_name + ":" + realArch; m_dinfo.version = dependencyInfo.packageVersion(); return PackageDependsStatus::_break(package_name); } // 虚拟包版本号处理步骤 QString pkgRealVer = package->version(); bool isVirtualPackage = false; #ifdef ENABLE_VIRTUAL_PACKAGE_ENHANCE if (package->name() != package_name) { auto pkgMap = package->providesListEnhance(); auto iter = pkgMap.find(package_name); if (iter != pkgMap.end()) { pkgRealVer = *iter; isVirtualPackage = true; } } #endif const RelationType relation = dependencyInfo.relationType(); QString installedVersion = package->installedVersion(); if (!installedVersion.isEmpty()) { if (isVirtualPackage) { installedVersion = pkgRealVer; } const int result = Package::compareVersion(installedVersion, dependencyInfo.packageVersion()); if (dependencyVersionMatch(result, relation)) { return PackageDependsStatus::ok(); } else { const QString &mirror_version = package->availableVersion(); if (mirror_version != installedVersion) { const auto mirror_result = Package::compareVersion(mirror_version, dependencyInfo.packageVersion()); if (dependencyVersionMatch(mirror_result, relation)) { qInfo() << "PackagesManager:" << "availble by upgrade package" << package->name() + ":" + package->architecture() << "from" << installedVersion << "to" << mirror_version; // 修复卸载p7zip导致deepin-wine-helper被卸载的问题,Available 添加packageName m_dinfo.packageName = package_name + ":" + package->architecture(); m_dinfo.version = package->availableVersion(); return PackageDependsStatus::available(package->name()); } } qWarning() << "PackagesManager:" << "depends break by" << package->name() << package->architecture() << dependencyInfo.packageVersion(); qWarning() << "PackagesManager:" << "installed version not match" << installedVersion; m_dinfo.packageName = package_name + ":" + package->architecture(); m_dinfo.version = dependencyInfo.packageVersion(); return PackageDependsStatus::_break(package->name()); } } else { const int result = Package::compareVersion(pkgRealVer, dependencyInfo.packageVersion()); if (!dependencyVersionMatch(result, relation)) { qWarning() << "PackagesManager:" << "depends break by" << package->name() << package->architecture() << dependencyInfo.packageVersion(); qWarning() << "PackagesManager:" << "available version not match" << package->version(); m_dinfo.packageName = package_name + ":" + package->architecture(); m_dinfo.version = dependencyInfo.packageVersion(); return PackageDependsStatus::_break(package->name()); } // is that already choosed? if (choosed_set.contains(package->name())) { // 已有记录,返回之前排查的结果,而不是直接返回 Ok , 当前包名可能为虚包。 if (m_loopErrorDeepends.contains(package->name())) { return PackageDependsStatus(m_loopErrorDeepends.value(package->name()), package->name()); } return PackageDependsStatus::ok(); } // check arch conflicts if (package->multiArchType() == MultiArchSame) { Backend *backend = PackageAnalyzer::instance().backendPtr(); for (const auto &arch : backend->architectures()) { if (arch == package->architecture()) continue; Package *otherArchPackage = backend->package(package->name() + ":" + arch); if (otherArchPackage && otherArchPackage->isInstalled()) { isDependsExists = true; // 依赖冲突不属于依赖缺失 qWarning() << "PackagesManager:" << "multiple architecture installed: " << package->name() << package->version() << package->architecture() << "but now need" << otherArchPackage->name() << otherArchPackage->version() << otherArchPackage->architecture() << isDependsExists; m_brokenDepend = package->name() + ":" + package->architecture(); return PackageDependsStatus::available(package->name() + ":" + package->architecture()); } } } // let's check conflicts if (!isConflictSatisfy(realArch, package).is_ok()) { Backend *backend = PackageAnalyzer::instance().backendPtr(); for (auto *availablePackage : backend->availablePackages()) { if (!availablePackage->providesList().contains(package->name())) { availablePackage = nullptr; continue; } // is that already provide by another package? if (availablePackage->isInstalled()) { qInfo() << "PackagesManager:" << "find a exist provider: " << availablePackage->name(); availablePackage = nullptr; return PackageDependsStatus::ok(); } // provider is ok, switch to provider. if (isConflictSatisfy(realArch, availablePackage).is_ok()) { qInfo() << "PackagesManager:" << "switch to depends a new provider: " << availablePackage->name(); choosed_set << availablePackage->name(); availablePackage = nullptr; return PackageDependsStatus::ok(); } availablePackage = nullptr; } qWarning() << "PackagesManager:" << "providers not found, still break: " << package->name(); m_dinfo.packageName = package_name + ":" + package->architecture(); m_dinfo.version = dependencyInfo.packageVersion(); return PackageDependsStatus::_break(package->name()); } // now, package dependencies status is available or break, // time to check depends' dependencies, but first, we need // to add this package to choose list choosed_set << package->name(); // 判断并获取依赖的或依赖关系 getPackageOrDepends(package->name(), package->architecture(), false); const auto dependsStatus = checkDependsPackageStatus(choosed_set, package->architecture(), package->depends()); if (dependsStatus.isBreak()) { choosed_set.remove(package->name()); qWarning() << "PackagesManager:" << "depends break by direct depends" << package->name() << package->architecture() << dependsStatus.package << isDependsExists; if (!isDependsExists) { m_dinfo.packageName = package_name + ":" + package->architecture(); m_dinfo.version = dependencyInfo.packageVersion(); } else { m_dinfo.packageName = ""; m_dinfo.version = ""; } return PackageDependsStatus::_break(package->name()); } qInfo() << "PackagesManager:" << "Check finished for package" << package->name(); // 修复卸载p7zip导致deepin-wine-helper被卸载的问题,Available 添加packageName m_dinfo.packageName = package_name; m_dinfo.version = package->availableVersion(); return PackageDependsStatus::available(package->name()); } } /** * @brief 检测通过包名 \a packageName 获取的软件包 \a package 架构是否支持建议架构 \a suggestArch 。 * 判断是否指定安装包架构类型,未指定的依赖包将按照安装包架构进行判断,注意,部分软件包提供多架构支持, * 例如部分 amd64 软件包同样提供 i386 支持。 * * @bug https://pms.uniontech.com/bug-view-220019.html * * @note 此函数期望查找包架构能满足架构依赖,参考 apt 实际行为处理,后续底层改造为 apt-pkg 后,建议重构为调用 apt-pkg 借口。 * 1. 通过命令行指令 `apt-cache showpkg [package name]` 在字段 `Provides` 中可以取得软件包支持的包别名, * `Provides` 会展示软件包提供的包名列表,这些包名会包含支持的虚包、不同的架构等; * 2. 部分软件包架构标注 all/any , 但实际并未提供多架构支持,通过 multiArchType() 类型过滤; * 3. 部分软件包虽然架构未标注 all/any ,但同样提供其他架构的支持,多出现于 amd64/i386 架构软件包互补; * 4. 如果传入的建议架构 \a suggestArch 为空或支持多架构,同样允许此类架构支持。 */ bool PackagesManager::checkPackageArchValid(const QApt::Package *package, const QString &packageName, const QString &suggestArch) { QString resloveArch = suggestArch; resloveArch.remove(':'); if (!package) { // 不打印信息,由后续错误信息提示 return false; } else if (resloveArch.isEmpty() || (package->architecture() == resloveArch) || archMultiSupport(resloveArch)) { // 部分传入包名写携带了版本,若版本一致,则无需继续判断 // 建议架构为多架构支持,则同样允许安装 return true; } QApt::MultiArchType multiType = package->multiArchType(); QString pkgArch = package->architecture(); // 判断传入包是否符合多架构兼容校验 bool archMatch = isArchMatches(resloveArch, pkgArch, multiType); // 部分软件包虽然标识 "all" "any", 但仍需进一步判断包支持类型是否为多架构支持。 bool archTypeMatch = bool(InvalidMultiArchType != multiType); bool archIsValidRet = false; if (archMatch && archTypeMatch) { archIsValidRet = true; } else if (archMatch /* && !archTypeMatch */) { // 软件包标识 "all" "any",但不支持多架构 Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { return false; } // 如果建议架构是当前架构,同样认为支持 archIsValidRet = bool(resloveArch == backend->nativeArchitecture()); } else if (/* !archMatch && */ archTypeMatch) { // 部分软件包虽然架构和建议架构不同,但软件包提供多架构支持,多为 amd64/i386 相互支持 QStringList providesList = package->providesList(); #if 0 // TODO: 改造 QApt 以对 providesList 同样检测架构 Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { return false; } // 判断建议架构是否为当前系统架构,当前系统架构默认无后缀,同时若应用已包含架构名,则不再插入 bool isNativeArch = bool(resloveArch == backend->nativeArchitecture()); QString findPackage = (isNativeArch || packageName.contains(":")) ? packageName : (packageName + ":" + resloveArch); #else // QApt 返回 providesList 不带 arch 后缀, 移除查找包架构后缀 // providesList 列表中含当前包名的则认为满足多架构支持 // i386 包一般不提供 amd64 架构支持,而 amd64 经常提供 i386 QString findPackage = packageName; findPackage.remove(REG_EXP(":[^:]*$")); #endif // 查找当前软件包支持的包名中是否包含对应架构软件包 if (providesList.contains(findPackage)) { qInfo() << QString("Package %1 %2 provides %3, all provides: ") .arg(package->name()) .arg(package->architecture()) .arg(findPackage) << providesList; archIsValidRet = true; } } else /* !archTypeMatch && !archMatch */ { // 等同 archIsValid = false; } if (archIsValidRet) { qInfo() << QString("Auto detect multi arch package %1 (arch:%2, ver:%3), suggestArch: %4 multiArchType: %5") .arg(packageName) .arg(package->architecture()) .arg(package->version()) .arg(resloveArch) .arg(package->multiArchType()); } else { qWarning() << QString("Find package %1 (arch:%2, ver:%3)").arg(packageName).arg(package->architecture()).arg(package->version()); qWarning() << QString("but not compitable with %1, multiArchType: %2(%3)") .arg(resloveArch) .arg(package->multiArchTypeString()) .arg(package->multiArchType()); } return archIsValidRet; } Package *PackagesManager::packageWithArch(const QString &packageName, const QString &sysArch, const QString &annotation) { Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qWarning() << "Failed to load libqapt backend"; return nullptr; } QString suggestArch = resolvMultiArchAnnotation(annotation, sysArch); Package *package = backend->package(packageName + suggestArch); // change: 按照当前支持的CPU架构进行打包。取消对deepin-wine的特殊处理 if (!package) package = backend->package(packageName); if (checkPackageArchValid(package, packageName, suggestArch)) return package; for (QString arch : backend->architectures()) { package = backend->package(packageName + ":" + arch); if (checkPackageArchValid(package, packageName, suggestArch)) return package; } // check virtual package providers for (auto *virtualPackage : backend->availablePackages()) { if (virtualPackage->name() != packageName && virtualPackage->providesList().contains(packageName)) { return packageWithArch(virtualPackage->name(), sysArch, annotation); } } return nullptr; } /** * @brief PackagesManager::SymbolicLink 创建软连接 * @param previousName 原始路径 * @param packageName 软件包的包名 * @return 软链接的路径 */ QString PackagesManager::SymbolicLink(const QString &previousName, const QString &packageName) { if (!mkTempDir()) { // 如果创建临时目录失败,则提示 qWarning() << "PackagesManager:" << "Failed to create temporary folder"; return previousName; } // 成功则开始创建 return link(previousName, packageName); } /** * @brief PackagesManager::mkTempDir 创建软链接存放的临时目录 * @return 创建目录的结果 */ bool PackagesManager::mkTempDir() { QDir tempPath(m_tempLinkDir); if (!tempPath.exists()) // 如果临时目录不存在则返回创建结果 return tempPath.mkdir(m_tempLinkDir); else return true; } /** * @brief PackagesManager::link 创建软链接 * @param linkPath 原文件的路径 * @param packageName 包的packageName * @return 软链接之后的路径 */ QString PackagesManager::link(const QString &linkPath, const QString &packageName) { QFile linkDeb(linkPath); // 创建软链接时,如果当前临时目录中存在同名文件,即同一个名字的应用,考虑到版本可能有变化,将后续添加进入的包重命名为{packageName}_i // 删除后再次添加会在临时文件的后面添加_1,此问题不影响安装。如果有问题,后续再行修改。 int count = 1; QString tempName = packageName; // 命名创建的软链接文件 while (true) { QFile tempLinkPath(m_tempLinkDir + tempName); // 对已经存在重名文件的处理 if (tempLinkPath.exists()) { // 命名方式为在包名后+"_i" PS:i 为当前重复的数字,无实际意义,只是为了区别不同的包 tempName = packageName + "_" + QString::number(count); qWarning() << "PackagesManager:" << "A file with the same name exists in the current temporary directory," "and the current file name is changed to" << tempName; count++; } else { break; } } // 创建软链接 if (linkDeb.link(linkPath, m_tempLinkDir + tempName)) { return m_tempLinkDir + tempName; // 创建成功,返回创建的软链接的路径. } else { // 创建失败,直接返回路径 qWarning() << "PackagesManager:" << "Failed to create Symbolick link error."; return linkPath; } } /** * @brief PackagesManager::rmTempDir 删除存放软链接的临时目录 * @return 删除临时目录的结果 * PS: 移动创建临时目录 创建软链接的函数到 AddPackageThread中 * */ bool PackagesManager::rmTempDir() { QDir tempPath(m_tempLinkDir); if (tempPath.exists()) // 如果临时目录存在,则删除临时目录 return tempPath.removeRecursively(); else return true; // 临时目录不存在,返回删除成功 } QString PackagesManager::package(const int index) const { return m_preparedPackages[index]; } void PackagesManager::getBlackApplications() { QFile blackListFile(BLACKFILE); if (blackListFile.exists()) { blackListFile.open(QFile::ReadOnly); QString blackApplications = blackListFile.readAll(); blackApplications.replace(" ", ""); blackApplications = blackApplications.replace("\n", ""); m_blackApplicationList = blackApplications.split(","); blackListFile.close(); return; } qWarning() << "Black File not Found"; } /** @brief 判断 \a debFile 的依赖列表 \a dependList 中 wine 依赖是否已安装,同时剔除非 wine 依赖。 \a dependInfoMap 提供详细的依赖项架构、版本信息。 @note Wine安装包升级无架构信息(i386 amd64混用),仅使用安装包信息判断无法覆盖所有场景, 升降级存在问题。依赖包 deepin-wine-helper 由 i386 变更为 amd64。 */ void PackagesManager::filterNeedInstallWinePackage(QStringList &dependList, const DebFile &debFile, const QHash &dependInfoMap) { // 额外判断wine依赖是否已安装,同时剔除非wine依赖 auto removedIter = std::remove_if(dependList.begin(), dependList.end(), [&debFile, &dependInfoMap, this](const QString &eachDepend) { if (!eachDepend.contains("deepin-wine")) { return true; } // 使用软件包架构查询 Package *package = nullptr; const DependencyInfo &info = dependInfoMap.value(eachDepend); if (Q_UNLIKELY(info.multiArchAnnotation().isEmpty())) { qInfo() << QString("Wine package %1 without architecture info").arg(eachDepend); // 无依赖架构信息,使用默认包 Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qWarning() << qPrintable("Failed to load libqapt backend"); return false; } // 使用默认无版本查找,由apt判断,优先版本高的架构 package = backend->package(eachDepend); if (!package) { package = packageWithArch(eachDepend, debFile.architecture()); } } else { // 有依赖架构信息,判断对应架构是否安装 package = packageWithArch(eachDepend, info.multiArchAnnotation()); } if (!package) { qWarning() << QString("Wine package %1 not found!").arg(eachDepend); return false; } qInfo() << QString("Wine package %1 detect current package: %2, arch: %3, version: %4") .arg(eachDepend) .arg(package->name()) .arg(package->architecture()) .arg(package->version()); // 检查安装包版本是否需要更新。 QString currentInstall = package->installedVersion(); if (currentInstall.isEmpty()) { // 未安装软件包,需进行安装 qInfo() << QString("Wine package %1 not installed").arg(eachDepend); return false; } else { // 判断是否需要更新,满足需求则不处理 const auto cmpVersion = Package::compareVersion(currentInstall, info.packageVersion()); bool notNeedUpdate = dependencyVersionMatch(cmpVersion, info.relationType()); qInfo() << QString("Wine package %1 check version. current installed: %2 require: %3 not need update: %4") .arg(eachDepend) .arg(currentInstall) .arg(info.packageVersion()) .arg(notNeedUpdate); return notNeedUpdate; } }); dependList.erase(removedIter, dependList.end()); } void PackagesManager::refreshPackageMarkedInfo(const QByteArray &md5, const QString &filePath) { if (m_markedDepends.contains(md5)) { return; } const QStringList availableDepends = debFileAvailableDepends(filePath); auto markedPtr = Deb::DebPackage::Ptr::create(filePath); markedPtr->setMarkedPackages(availableDepends); m_markedDepends.insert(md5, markedPtr); } bool PackagesManager::isBlackApplication(const QString &applicationName) { if (m_blackApplicationList.contains(applicationName)) return true; return false; } PackagesManager::~PackagesManager() { // 删除 临时目录,会尝试四次,四次失败后退出。 int rmTempDirCount = 0; while (true) { if (rmTempDir()) // 删除成功 break; qWarning() << "PackagesManager:" << "Failed to delete temporary folder, Current attempts:" << rmTempDirCount << "/3"; if (rmTempDirCount > 3) { // 删除三次仍然失败则警告 不过每次重启都会删除临时目录 qWarning() << "PackagesManager:" << "Failed to delete temporary folder, Exit application"; break; } rmTempDirCount++; } delete m_installWineThread; delete m_pAddPackageThread; } deepin-deb-installer-6.5.5/src/deb-installer/manager/packagesmanager.h000066400000000000000000000501401474340456100257360ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef PACKAGESMANAGER_H #define PACKAGESMANAGER_H #include "utils/package_defines.h" #include "utils/result.h" #include "model/dependgraph.h" #include #include #include #include #include #include using namespace QApt; #define BLACKFILE "/usr/share/udcp/appblacklist.txt" typedef Result ConflictResult; class PackageDependsStatus; class DebListModel; class DealDependThread; class AddPackageThread; namespace Deb { class DebPackage; }; // namespace Deb /** * @brief init_backend 初始化后端 * @return 初始化完成的后端指针 */ Backend *init_backend(); class PackagesManager : public QObject { Q_OBJECT friend class DebListModel; public: explicit PackagesManager(QObject *parent = nullptr); ~PackagesManager(); /** * @brief isArchMatches 判断包的架构是否符合系统要求 * @param sysArch 系统架构 * @param packageArch 包的架构 * @param multiArchType 系统多架构类型 * @return 是否符合多架构要求 */ static bool isArchMatches(QString sysArch, const QString &packageArch, const int multiArchType); /** * @brief resolvMultiArchAnnotation 处理多架构问题 * @param annotation 当前control文件中的附加信息 * @param debArch deb包的架构 * @param multiArchType 多架构的类型 * @return */ static QString resolvMultiArchAnnotation(const QString &annotation, const QString &debArch, const int multiArchType = InvalidMultiArchType); /** * @brief dependencyVersionMatch 判断当前依赖版本是否匹配 * @param result 当前依赖版本 * @param relation 依赖版本关系的类型 * @return */ static bool dependencyVersionMatch(const int result, const RelationType relation); /** * @brief searchPackageInstallInfo 查找指定包安装状态 * @param package_path 路径 */ Pkg::PackageInstallStatus checkInstallStatus(const QString &package_path); /** * @brief searchPackageInstallInfo 查找指定包依赖 * @param package_path 包名字 */ PackageDependsStatus checkDependsStatus(const QString &package_path); /** * @brief searchPackageInstallInfo 查找指定包信息 * @param package_path 包名字 */ QStringList getPackageInfo(const QString &package_path); /** * @brief checkPackageValid 检查包有效性 * @param package_path 包名字 */ QString checkPackageValid(const QStringList &package_path); QStringList removePackages(const QByteArray &md5) const; public slots: /** * @brief DealDependResult 处理wine依赖下载结果的槽函数 * @param iAuthRes 下载结果 * @param iIndex wine应用的下标 * @param dependName wine依赖错误的依赖名称 */ void slotDealDependResult(int iAuthRes, int iIndex, const QString &dependName); //// 依赖下载相关信号 signals: /** * @brief DependResult 处理wine依赖下载结果 */ void signalDependResult(int, int, const QString &); /** * @brief enableCloseButton 设置关闭按钮是否可用的信号 */ void signalEnableCloseButton(bool); ////添加包相关信号 signals: // Manange package insert failed reason. void signalAppendFailMessage(Pkg::AppendFailReason reason, Pkg::PackageType type = Pkg::Deb); /** * @brief appendStart 批量安装开始添加包的信号 */ void signalAppendStart(); /** * @brief appendFinished 批量安装添加包结束的信号 * @param packageMd5List 添加后的md5列表 */ void signalAppendFinished(const QList &packageMd5List); /** * @brief packageMd5Changed 添加完成之后更新MD5的列表 * @param packageMd5List 当前的MD5列表 */ void signalPackageMd5Changed(const QList &packageMd5List); //// 界面刷新相关信号 signals: /** @brief signalPacakgeCountChanged notify pacakge append or remove. */ void signalPackageCountChanged(int count); //// 后端状态相关函数 public: /** * @brief isBackendReady 判断安装程序后端是否加载完成 * @return 安装程序后端加载的结果 * * true: 加载完成 * false: 未加载完成 */ bool isBackendReady(); //// 包状态相关函数 public: /** * @brief package 获取指定下标的包的路径 * @param index 下标 * @return 包的路径 */ QString package(const int index) const; /** * @brief isArchError 判断指定下标的包是否符合架构要求 * @param idx 指定的下标 * @return 符合架构要求的结果 * * false: 符合架构要求 * true: 不符合当前系统架构的要求 */ bool isArchError(const int idx); bool isArchErrorQstring(const QString &package_name); /** * @brief packageInstallStatus 获取指定index的包的安装状态 * @param index 指定的index * @return 包的安装状态 */ int packageInstallStatus(const int index); /** * @brief packageInstalledVersion 获取指定下标的包的安装版本 * @param index 下标 * @return 包的版本 */ const QString packageInstalledVersion(const int index); /** * @brief packageConflictStat 获取指定包的冲突状态 * @param index 下标 * @return 包的冲突状态 */ const ConflictResult packageConflictStat(const int index); /** * @brief packageAvailableDepends 获取指定包的可用的依赖 * @param index 下标 * @return 指定包所有的需要下载的依赖 */ const QStringList packageAvailableDepends(const int index); QStringList debFileAvailableDepends(const QString &filePath); /** * @brief getPackageDependsStatus 获取指定包的依赖的状态 * @param index 下标 * @return 包的依赖状态 */ PackageDependsStatus getPackageDependsStatus(const int index); /** * @brief getPackageOrDepends 解析或依赖关系 * @param package 包的路径或者包名 * @param arch 架构 * @param flag 标记是依赖还是安装包 */ void getPackageOrDepends(const QString &package, const QString &arch, bool flag); /** * @brief getPackageMd5 获取包的md5值 * @param index 下标 * @return 包的MD5值 */ QByteArray getPackageMd5(const int index); /** * @brief packageReverseDependsList 获取依赖于此包的所有应用名称 * @param packageName 需要检查的包的包名 * @param sysArch 包的架构 * @return 依赖于此包的应用列表 */ const QStringList packageReverseDependsList(const QString &packageName, const QString &sysArch); //// 添加删除相关函数 public: /** * @brief appendPackage 添加包到程序中 * @param debPackage 要添加的包的列表 */ void appendPackage(QStringList debPackage); /** * @brief removePackage 删除指定的包 * @param index 要删除的包的下标 * @param listDependInstallMark 因wine依赖被标记的下标 */ void removePackage(int index); //// 重置状态相关函数 public: /** * @brief reset 重置 PackageManager的状态 */ void reset(); /** * @brief resetPackageDependsStatus 重置指定安装包的状态 * @param index 指定包的下标 */ void resetPackageDependsStatus(const int index); //// 依赖查找 获取等相关函数 private: /** * @brief checkDependsPackageStatus 检查依赖包的状态 * @param choosed_set 被选择安装或卸载的包的集合 * @param architecture 包的架构 * @param depends 包的依赖列表 * @return */ const PackageDependsStatus checkDependsPackageStatus(QSet &choosed_set, const QString &architecture, const QList &depends); const PackageDependsStatus checkDependsPackageStatus(QSet &choosed_set, const QString &architecture, const QApt::DependencyItem &candicate); const PackageDependsStatus checkDependsPackageStatus(QSet &choosed_set, const QString &architecture, const QApt::DependencyInfo &dependencyInfo, const QString &providesName = QString()); /** * @brief packageCandidateChoose 查找包的依赖候选 * @param choosed_set 包的依赖候选的集合 * @param debArch 包的架构 * @param dependsList 依赖列表 @param levelInfo 提供用于打印的软件包查找层级依赖信息 */ void packageCandidateChoose(QSet &choosed_set, const QString &debArch, const QList &dependsList, const QString &levelInfo); void packageCandidateChoose(QSet &choosed_set, const QString &debArch, const QApt::DependencyItem &candidateItem, const QString &levelInfo); /** * @brief isInstalledConflict 是否存在下载冲突 * @param packageName 包名 * @param packageVersion 包的版本 * @param packageArch 包的架构 * @return */ const ConflictResult isInstalledConflict(const QString &packageName, const QString &packageVersion, const QString &packageArch); /** * @brief isConflictSatisfy 是否冲突满足 * @param arch 架构 * @param package 包名 * @return 冲突的结果 */ const ConflictResult isConflictSatisfy(const QString &arch, QApt::Package *package); const ConflictResult isConflictSatisfy(const QString &arch, const QList &conflicts); //带replaces的检查,如果判定待安装包可以替换冲突包,则认为不构成冲突 const ConflictResult isConflictSatisfy(const QString &arch, const QList &conflicts, const QList &replaces, QApt::Package *targetPackage = nullptr); // detect if targetPackage can replace installedPackage bool targetPackageCanReplace(QApt::Package *targetPackage, QApt::Package *installedPackage); //// 依赖查找 获取查找包是否为消极的反向依赖 private: /** * @brief isNegativeReverseDepend 判断软件包 `reverseDepend` 是否是 `packageName` 的消极依赖包, * 例如 冲突(Conflict)/替换(Replace)/破坏(Breaks) 这些包在卸载时将被跳过, * 在 依赖(Depends) 字段设置包将不会被视为消极包。 * @param packageName 当前处理的软件包 * @param reverseDepend `packageName` 的反向依赖包 * @return `reverseDepend` 是否为 `packageName` 的消极依赖 */ bool isNegativeReverseDepend(const QString &packageName, const QApt::Package *reverseDepend); private: /** * @brief packageWithArch 从指定的架构上打包 * @param packageName 包名 * @param sysArch 系统架构 * @param annotation 注解 * @return package指针 */ QApt::Package *packageWithArch(const QString &packageName, const QString &sysArch, const QString &annotation = QString()); /** * @brief checkPackageArchValid 检测通过包名 \a packageName 获取的软件包 \a package 架构 * 是否支持建议架构 \a suggestArch * @param package 软件包 * @param packageName 软件包名称 * @param resloveArch 解析建议的软件包名称 * @return 软件包 \a package 支持 \a suggestArch 架构 */ bool checkPackageArchValid(const QApt::Package *package, const QString &packageName, const QString &suggestArch); private: // 卸载deepin-wine-plugin-virture 时无法卸载deepin-wine-helper. Temporary solution:Special treatment for these package QMap specialPackage(); private: /** * @brief SymbolicLink 为路径中存在空格的包创建临时文件夹以及软链接 * @param previousName 存在空格的路径ruanji * @param packageName 当前包的包名 * @return 创建成功后软链接的全路径 */ QString SymbolicLink(const QString &previousName, const QString &packageName); /** * @brief link 创建软链接 * @param linkPath 原路径 * @param packageName 包名 * @return 创建软链接之后的路径 */ QString link(const QString &linkPath, const QString &packageName); /** * @brief mkTempDir 创建存放软链接的临时路径 * @return 是否创建成功 */ bool mkTempDir(); // 使用软连接方式解决文件路径中存在空格的问题。 /** * @brief rmTempDir 删除存放软链接的临时目录 * @return 删除临时目录的结果 */ bool rmTempDir(); private: /** * @brief addPackage 添加包的处理槽函数 * @param validPkgCount 有效包的数量 * @param packagePath 此次添加包的路径 * @param packageMd5Sum 此次添加的包的md5值 */ void addPackage(int validPkgCount, const QString &packagePath, const QByteArray &packageMd5Sum); /** * @brief getAllDepends 获取安装包所有依赖 * @param depends 依赖列表 * @param architecture 安装包架构 * @return */ QList getAllDepends(const QList &depends, const QString &architecture); /** * @brief getAllDepends 获取依赖包所有依赖 * @param packageName 依赖包包名 * @param architecture 架构 * @return */ QList getAllDepends(const QString &packageName, const QString &architecture); /** * @brief refreshPage 刷新当前的页面 * @param pkgCount 需要添加的包的数量 */ void refreshPage(int pkgCount); /** * @brief appendNoThread 不通过线程,直接添加包到应用中 * @param packages 要添加的包 * @param allPackageSize 要添加的包的数量 */ void appendNoThread(const QStringList &packages, int allPackageSize); /** * @brief checkInvalid 检查有效文件的数量 */ void checkInvalid(const QStringList &packages); /** * @brief dealInvalidPackage 处理无效的安装包 * @param packagePath 包的路径 * @return 包的有效性 * true : 文件能打开 * fasle : 文件不在本地或无权限 */ bool dealInvalidPackage(const QString &packagePath); /** * @brief dealPackagePath 处理包的路径 * @param packagePath 包的路径 * @return 经过处理后的包的路径 * 处理两种情况 * 1: 相对路径 --------> 转化为绝对路径 * 2: 包的路径中存在空格 --------> 使用软链接,链接到/tmp下 */ QString dealPackagePath(const QString &packagePath); Pkg::DependsPair getPackageDependsDetail(const int index); private slots: /** * @brief slotAppendPackageFinished 添加包结束后,如果此时需要下载wine依赖,则直接开始下载 */ void slotAppendPackageFinished(); private: /** * @brief 判断当前应用是否为黑名单应用 * * @return true 是黑名单应用 * @return false 不是黑名单应用 */ bool isBlackApplication(const QString &applicationName); /** * @brief 获取当前黑名单应用列表 * */ void getBlackApplications(); /** @brief 过滤已安装或无需更新的Wine软件包 */ void filterNeedInstallWinePackage(QStringList &dependList, const DebFile &debFile, const QHash &dependInfoMap); void refreshPackageMarkedInfo(const QByteArray &md5, const QString &filePath); private: QMap m_errorIndex; // wine依赖错误的包的下标 QMap // 存放包路径的列表 QList m_preparedPackages = {}; // 存放包MD5的集合 QSet m_appendedPackagesMd5 = {}; QMap m_allPackages; // 存放有效包路径及md5,避免二次获取消耗时间 // 包MD5与下标绑定的list QList m_packageMd5 = {}; /** * @brief m_packageMd5DependsStatus 包的依赖状态的Map * QByteArray 包的下标 * PackageDependsStatus 依赖的状态 * * 此前将下标与安装状态绑定 * 此时使用MD5与依赖状态绑定 * 修改原因: * 1.修改添加方式从添加到插入到最前方 * 2.使用之前的方式会导致所有包的依赖状态错乱 */ QMap m_packageMd5DependsStatus; /** @brief The key is md5, the value is the dependent info of the package, marked packages NewInstall/ToUpgrade/ToRemove... If the status of other packages is not changed, the value is nullptr. */ QMap> m_markedDepends; /** * @brief m_packageInstallStatus 包安装状态的Map * int: 包的下标 * int: 包的安装状态 * 此前的安装状态将下标与安装状态绑定 * 此时使用MD5与安装状态绑定 * 修改原因: * 1.修改添加方式从添加到插入到最前方 * 2.使用之前的方式会导致所有包的安装状态都是第一个包的安装状态 */ QMap m_packageInstallStatus = {}; QByteArray m_currentPkgMd5; // 当前包的md5 /** * @brief m_dependsPackages 包依赖关系的map * QPair, QList> 仓库可获取依赖与仓库不可获取依赖 * 与md5进行绑定 */ QMap m_dependsPackages; Pkg::DependInfo m_dinfo; // 依赖包的包名及版本 /** @brief m_loopErrorDeepends 循环判断依赖时缓存非 Ok 的前置包状态 用于对 OR 或依赖及 Provides 虚包依赖在循环中依赖中返回前置已检测的包状态, 而不是直接返回 Ok . */ QHash m_loopErrorDeepends; // wine应用处理的下标 int m_DealDependIndex = -1; // 下载依赖的线程 DealDependThread *m_installWineThread = nullptr; /** * @brief m_dependInstallMark wine依赖下标的标记 * 将依赖下载的标记修改为md5sum 与包绑定 而非下标 */ QList m_dependInstallMark = {}; QPair, QList> m_pair; // 存储available及broken依赖 QList m_allDependsList; // 存储当前添加的包的所有依赖 private: const QString m_tempLinkDir = "/tmp/LinkTemp/"; // 软链接临时路径 private: AddPackageThread *m_pAddPackageThread = nullptr; // 添加包的线程 bool isDependsExists = false; int m_validPackageCount = 0; qint64 dependsStatusTotalTime = 0; QString m_brokenDepend = ""; QString m_currentPkgName = ""; QStringList m_blackApplicationList = {}; // 域管黑名单 QList> m_orDepends; // 存储或依赖关系 QList> m_unCheckedOrDepends; // 存储还未检测的或依赖关系 QMap m_checkedOrDependsStatus; // 存储检测完成的或依赖包及其依赖状态 QMap m_dependsInfo; // 所有依赖的信息 DependGraph m_dependGraph; // 依赖关系图计算器 }; #endif // PACKAGESMANAGER_H deepin-deb-installer-6.5.5/src/deb-installer/model/000077500000000000000000000000001474340456100221425ustar00rootroot00000000000000deepin-deb-installer-6.5.5/src/deb-installer/model/abstract_package_list_model.cpp000066400000000000000000000017451474340456100303460ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "abstract_package_list_model.h" /** @class AbstractPackageListModel @brief Interface for the package data model and package installation control. */ AbstractPackageListModel::AbstractPackageListModel(QObject *parent) : QAbstractListModel(parent) { } AbstractPackageListModel::WorkerStatus AbstractPackageListModel::getWorkerStatus() const { return m_workerStatus; } /** * @brief Set the worker `status` and emit the corresponding signal. */ void AbstractPackageListModel::setWorkerStatus(WorkerStatus status) { m_workerStatus = status; switch (status) { case WorkerProcessing: Q_FALLTHROUGH(); case WorkerUnInstall: Q_EMIT signalWorkerStart(); break; case WorkerFinished: Q_EMIT signalWorkerFinished(); break; default: break; } } deepin-deb-installer-6.5.5/src/deb-installer/model/abstract_package_list_model.h000066400000000000000000000127001474340456100300040ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef ABSTRACT_PACKAGE_LIST_MODEL_H #define ABSTRACT_PACKAGE_LIST_MODEL_H #include "utils/package_defines.h" #include // interface for deb / uab package class AbstractPackageListModel : public QAbstractListModel { Q_OBJECT public: // package role for list model enum PackageRole { PackageNameRole = Qt::DisplayRole, UnusedRole = Qt::UserRole, WorkerIsPrepareRole, // ready to work (install/uninstall) sa WorkerStatus ItemIsCurrentRole, PackageVersionRole, PackagePathRole, PackageInstalledVersionRole, // installed version PackageShortDescriptionRole, PackageLongDescriptionRole, PackageVersionStatusRole, // sa Pkg::PackageInstallStatus PackageDependsStatusRole, // sa Pkg::DependsStatus PackageAvailableDependsListRole, // available dependencies for the package PackageFailReasonRole, // fail reason for install / uninstall failed PackageOperateStatusRole, // sa Pkg::PackageOperationStatus PackageReverseDependsListRole, // list of packages that reversely depend on the current package PackageTypeRole, // is uab or deb package, sa Pkg::PackageType PackageDependsDetailRole, // details for unfinished depends, empty if no errors occur, sa Pkg::DependsPair PackageRemoveDependsRole, // package will be remove if current install CompatibleRootfsRole, // compatible mode only, provides current compatible rootfs name CompatibleTargetRootfsRole, // target rootfs name }; // the list model backend installer status enum WorkerStatus { WorkerPrepare, // ready to work WorkerProcessing, // installing / upgrading WorkerFinished, // install / uninstall finished WorkerUnInstall }; // wine or other predepends install status enum DependsAuthStatus { AuthBefore, // before the authentication dialog pops up AuthPop, // the authentication dialog pops up CancelAuth, // authentication cancellation AuthConfirm, // after authentication confirmation AuthDependsSuccess, // install success AuthDependsErr, // install failed AnalysisErr, // pacakge analysis erorr VerifyDependsErr, // signature verification failed (hierarchical verify) }; explicit AbstractPackageListModel(QObject *parent = nullptr); [[nodiscard]] inline Pkg::PackageType supportPackage() const { return m_supportPackageType; } [[nodiscard]] WorkerStatus getWorkerStatus() const; void setWorkerStatus(WorkerStatus status); [[nodiscard]] inline bool isWorkerPrepare() const { return WorkerPrepare == getWorkerStatus(); } Q_SLOT virtual void slotAppendPackage(const QStringList &packageList) = 0; virtual void removePackage(int index) = 0; virtual QString checkPackageValid(const QString &packagePath) = 0; // package base info virtual Pkg::PackageInstallStatus checkInstallStatus(const QString &packagePath) = 0; virtual Pkg::DependsStatus checkDependsStatus(const QString &packagePath) = 0; virtual QStringList getPackageInfo(const QString &packagePath) = 0; // raw output of install/uninstall failures virtual QString lastProcessError() = 0; // a package signature verification fails virtual bool containsSignatureFailed() const = 0; // trigger install / uninstall Q_SLOT virtual bool slotInstallPackages() = 0; Q_SLOT virtual bool slotUninstallPackage(int index) = 0; virtual void reset() = 0; virtual void resetInstallStatus() = 0; Q_SIGNALS: // package append flow control void signalAppendStart(); void signalAppendFinished(); // manange package insert failed reason void signalAppendFailMessage(Pkg::AppendFailReason reason, Pkg::PackageType type = Pkg::Deb); // manage package appended and remove void signalPackageCountChanged(int count); // install/upgrade/uninstall process output info void signalAppendOutputInfo(const QString &output); // current install progress void signalCurrentPacakgeProgressChanged(int progress); // whole install progress void signalWholeProgressChanged(int progress); // current process install package void signalCurrentProcessPackageIndex(int index); // package removed or rename void signalPackageCannotFind(QString packageName) const; // install/uninstall flow status, start and finish void signalWorkerStart(); void signalWorkerFinished(); // These interfaces are used by authorization and wine dependencies, no changes for compatibility. // They may be moved to singletons. void signalLockForAuth(bool locked) const; void signalAuthCancel(); // set cancel button enabled while open authorization check dialog (pkexec) void signalEnableReCancelBtn(bool bEnable); // wine depends install progress info. void signalDependResult(int, QString); // set close button enabled while install wine depends void signalEnableCloseButton(bool); protected: Pkg::PackageType m_supportPackageType{Pkg::UnknownPackage}; WorkerStatus m_workerStatus{WorkerPrepare}; // current worker status private: Q_DISABLE_COPY(AbstractPackageListModel) }; #endif // ABSTRACT_PACKAGE_LIST_MODEL_H deepin-deb-installer-6.5.5/src/deb-installer/model/deblistmodel.cpp000066400000000000000000002304231474340456100253210ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "deblistmodel.h" #include "manager/packagesmanager.h" #include "manager/PackageDependsStatus.h" #include "packageanalyzer.h" #include "view/pages/AptConfigMessage.h" #include "view/pages/settingdialog.h" #include "utils/utils.h" #include "utils/hierarchicalverify.h" #include "singleInstallerApplication.h" #include "view/widgets/error_notify_dialog_helper.h" #include "compatible/compatible_backend.h" #include "compatible/compatible_process_controller.h" #include "immutable/immutable_backend.h" #include "immutable/immutable_process_controller.h" #include "utils/qtcompat.h" #include #include #include #include #include #include #include #include #include #include #include using namespace QApt; /** * @brief isDpkgRunning 判断当前dpkg 是否在运行 * @return */ DebListModel::DebListModel(QObject *parent) : AbstractPackageListModel(parent) , m_packagesManager(new PackagesManager(this)) { m_supportPackageType = Pkg::Deb; // 配置包安装的进程 m_procInstallConfig = new Konsole::Pty; configWindow = new AptConfigMessage; // 链接信号与槽 initConnections(); // 检查系统版本与是否开启了开发者模式 m_isDevelopMode = Utils::isDevelopMode(); } bool DebListModel::isDpkgRunning() { QProcess proc; // 获取当前的进程信息 proc.start("ps", QStringList() << "-e" << "-o" << "comm"); proc.waitForFinished(); // 获取进程信息的数据 const QString processOutput = proc.readAllStandardOutput(); // 查看进程信息中是否存在dpkg 存在说明已经正在安装其他包 if (processOutput.contains("dpkg")) return true; // 更换判断的方式 return false; } const QStringList DebListModel::netErrors() { QStringList errorDetails; errorDetails << "Address family for hostname not supported"; errorDetails << "Temporary failure resolving"; errorDetails << "Network is unreachable"; errorDetails << "Cannot initiate the connection to"; return errorDetails; } const QString DebListModel::workerErrorString(const int errorCode, const QString &errorInfo) { switch (errorCode) { case FetchError: case DownloadDisallowedError: return QApplication::translate("DebListModel", "Installation failed, please check your network connection"); // 网络错误 case NotFoundError: return QApplication::translate("DebListModel", "Installation failed, please check for updates in Control Center"); case DiskSpaceError: return QApplication::translate("DebListModel", "Installation failed, insufficient disk space"); // 存储空间不足 // lockError 也会报空间不足的错误 case LockError: if (errorInfo.contains("No space left on device")) { return QApplication::translate("DebListModel", "Installation failed, insufficient disk space"); } break; // fix bug:39834 网络断开时,偶现安装deb包失败时提示语不显示 case CommitError: // commit Error 中会报网络错误 for (auto error : netErrors()) { if (errorInfo.contains(error) && errorInfo.contains("http")) return QApplication::translate("DebListModel", "Installation failed, please check your network connection"); } // commitError 有时会出现空间不足的错误 if (errorInfo.contains("No space left on device")) { return QApplication::translate("DebListModel", "Installation failed, insufficient disk space"); } break; // 无数字签名的错误 case Pkg::NoDigitalSignature: return QApplication::translate("DebListModel", "No digital signature"); // 无有效的数字签名 case Pkg::DigitalSignatureError: return QApplication::translate("DebListModel", "Invalid digital signature"); // 安装配置包时,没有得到授权 case Pkg::ConfigAuthCancel: return QApplication::translate("DebListModel", "Authentication failed"); case Pkg::ApplocationProhibit: return QApplication::translate("DebListModel", "The administrator has set policies to prevent installation of this package"); default: break; } // 其余错误,暂不提示具体的错误原因 return QApplication::translate("DebListModel", "Installation Failed"); } void DebListModel::initAppendConnection() { connect(m_packagesManager, &PackagesManager::signalAppendFailMessage, this, &DebListModel::signalAppendFailMessage); // 告诉前端当前处在添加过程中 connect(m_packagesManager, &PackagesManager::signalAppendStart, this, &DebListModel::signalAppendStart); // 提示前端当前已经添加完成 connect(m_packagesManager, &PackagesManager::signalAppendFinished, this, &DebListModel::getPackageMd5); // 当前由于文件路径被修改删除md5 connect(m_packagesManager, &PackagesManager::signalPackageMd5Changed, this, &DebListModel::getPackageMd5); } /** * @brief DebListModel::initInstallConnecions 链接安装过程的信号与槽 */ void DebListModel::initInstallConnections() { // 安装成功后,根据安装结果排序 connect(this, &DebListModel::signalWorkerFinished, this, &DebListModel::slotUpWrongStatusRow); // 配置安装结束 connect(m_procInstallConfig, QOverload::of(&QProcess::finished), this, &DebListModel::slotConfigInstallFinish); // 配置安装的过程数据 connect(m_procInstallConfig, &Konsole::Pty::receivedData, this, &DebListModel::slotConfigReadOutput); // 向安装进程中写入配置信息(一般是配置的序号) connect(configWindow, &AptConfigMessage::AptConfigInputStr, this, &DebListModel::slotConfigInputWrite); // 处理wine依赖安装的过程 connect(m_packagesManager, &PackagesManager::signalDependResult, this, &DebListModel::slotDealDependResult); // 安装wine依赖的时候不允许程序退出 connect(m_packagesManager, &PackagesManager::signalEnableCloseButton, this, &DebListModel::signalEnableCloseButton); } /** * @brief DebListModel::initRefreshPageConnecions 链接刷新界面的信号与槽 */ void DebListModel::initRefreshPageConnecions() { // Refresh the current install page based on the packge count, single / multiple or choose file page. connect(m_packagesManager, &PackagesManager::signalPackageCountChanged, this, &DebListModel::signalPackageCountChanged); } /** * @brief DebListModel::initConnections 链接所有的信号与槽 */ void DebListModel::initConnections() { // 链接添加时的信号与槽 initAppendConnection(); // 链接页面刷新的信号与槽 initRefreshPageConnecions(); // 链接安装过程的信号与槽 initInstallConnections(); } void DebListModel::slotDealDependResult(int authType, int dependIndex, const QString &dependName) { m_brokenDepend = dependName; switch (authType) { case DebListModel::CancelAuth: m_packageOperateStatus[m_packagesManager->getPackageMd5(dependIndex)] = Pkg::PackageOperationStatus::Prepare; // 取消授权后,缺失wine依赖的包的操作状态修改为prepare break; case DebListModel::AuthConfirm: // 确认授权后,状态的修改由debinstaller进行处理 break; case DebListModel::AuthDependsSuccess: // 安装成功后,状态的修改由debinstaller进行处理 m_packageOperateStatus[m_packagesManager->getPackageMd5(dependIndex)] = Pkg::PackageOperationStatus::Prepare; m_workerStatus = WorkerPrepare; break; case DebListModel::AuthDependsErr: // 安装失败后,状态的修改由debinstaller进行处理 break; case DebListModel::VerifyDependsErr: // 依赖包分级管控验证签名失败,弹出分级设置提示框 ErrorNotifyDialogHelper::showHierarchicalVerifyWindow(); break; default: break; } emit signalDependResult(authType, dependName); // 发送信号,由debinstaller处理界面状态。 } bool DebListModel::isReady() const { return m_packagesManager->isBackendReady(); } const QList DebListModel::preparedPackages() const { return m_packagesManager->m_preparedPackages; } QModelIndex DebListModel::first() const { return index(0); } int DebListModel::rowCount(const QModelIndex &parent) const { Q_UNUSED(parent); return m_packagesManager->m_preparedPackages.size(); } QVariant DebListModel::data(const QModelIndex &index, int role) const { const int currentRow = index.row(); // 判断当前下标是否越界 if (currentRow < 0 || currentRow >= m_packagesManager->m_preparedPackages.size()) { return QVariant(); } // 当前给出的路径文件已不可访问.直接删除该文件 if (!recheckPackagePath(m_packagesManager->package(currentRow))) { m_packagesManager->removePackage(currentRow); return QVariant(); } const DebFile deb(m_packagesManager->package(currentRow)); if (!deb.isValid()) return QVariant(); QString packageName = deb.packageName(); // 包名 QString filePath = deb.filePath(); // 包的路径 QString version = deb.version(); // 包的版本 QString architecture = deb.architecture(); // 包可用的架构 QString shortDescription = deb.shortDescription(); // 包的短描述 QString longDescription = deb.longDescription(); // 包的长描述 //删除该指针,以免内存泄露 switch (role) { case WorkerIsPrepareRole: return isWorkerPrepare(); // 获取当前工作状态是否准备九局 case ItemIsCurrentRole: return m_currentIdx == index; // 获取当前的index case PackageNameRole: return packageName; // 获取当前index包的包名 case PackagePathRole: return filePath; // 获取当前index包的路径 case PackageVersionRole: return version; // 获取当前index包的版本 case PackageVersionStatusRole: return m_packagesManager->packageInstallStatus(currentRow); // 获取当前index包的安装状态 case PackageDependsStatusRole: return m_packagesManager->getPackageDependsStatus(currentRow).status; // 获取当前index包的依赖状态 case PackageInstalledVersionRole: return m_packagesManager->packageInstalledVersion(currentRow); // 获取当前index包在系统中安装的版本 case PackageAvailableDependsListRole: return m_packagesManager->packageAvailableDepends(currentRow); // 获取当前index包可用的依赖 case PackageReverseDependsListRole: return m_packagesManager->packageReverseDependsList(packageName, architecture); // 获取依赖于当前index包的应用 case PackageShortDescriptionRole: return Utils::fromSpecialEncoding(shortDescription); // 获取当前index包的短描述 case PackageLongDescriptionRole: return Utils::fromSpecialEncoding(longDescription); // 获取当前index包的长描述 case PackageFailReasonRole: return packageFailedReason(currentRow); // 获取当前index包的安装失败的原因 case PackageOperateStatusRole: { auto md5 = m_packagesManager->getPackageMd5(currentRow); if (m_packageOperateStatus.contains(md5)) // 获取当前包的操作状态 return m_packageOperateStatus[md5]; else return Pkg::PackageOperationStatus::Prepare; } case PackageTypeRole: return Pkg::Deb; case PackageDependsDetailRole: return QVariant::fromValue(m_packagesManager->getPackageDependsDetail(currentRow)); case CompatibleRootfsRole: if (auto pkgPtr = packagePtr(currentRow)) { return pkgPtr->compatible()->rootfs; } break; case CompatibleTargetRootfsRole: if (auto pkgPtr = packagePtr(currentRow)) { return pkgPtr->compatible()->targetRootfs; } break; case PackageRemoveDependsRole: { const QByteArray md5 = m_packagesManager->getPackageMd5(currentRow); return m_packagesManager->removePackages(md5); } case Qt::SizeHintRole: // 设置当前index的大小 return QSize(0, 48); case Qt::ToolTipRole: return itemToolTips(currentRow); default: break; } return QVariant(); } bool DebListModel::setData(const QModelIndex &index, const QVariant &value, int role) { const int currentRow = index.row(); // 判断当前下标是否越界 if (currentRow < 0 || currentRow >= m_packagesManager->m_preparedPackages.size()) { return false; } switch (role) { case CompatibleTargetRootfsRole: { if (auto pkgPtr = packagePtr(currentRow)) { pkgPtr->compatible()->targetRootfs = value.toString(); return true; } break; } default: break; } return false; } bool DebListModel::isDevelopMode() { return m_isDevelopMode; } bool DebListModel::slotInstallPackages() { if (m_workerStatus != WorkerPrepare) return false; m_workerStatus = WorkerProcessing; // 刷新包安装器的工作状态 m_operatingIndex = 0; // 初始化当前操作的index m_operatingStatusIndex = 0; m_operatingPackageMd5 = m_packageMd5[m_operatingIndex]; m_hierarchicalVerifyError = false; // start first initRowStatus(); // 初始化包的操作状态 // 检查当前应用是否在黑名单中 // 非开发者模式且数字签名验证失败 if (checkBlackListApplication() || !checkDigitalSignature()) return false; installNextDeb(); // 开始安装 return true; } bool DebListModel::slotUninstallPackage(int index) { m_workerStatus = WorkerProcessing; // 刷新当前包安装器的工作状态 m_operatingIndex = index; // 获取卸载的包的indx m_operatingPackageMd5 = m_packageMd5[m_operatingIndex]; // fix bug : 卸载失败时不提示卸载失败。 m_operatingStatusIndex = index; // 刷新操作状态的index m_hierarchicalVerifyError = false; auto dependStatus = m_packagesManager->getPackageDependsStatus(m_operatingStatusIndex); // for comaptible mode if (Pkg::CompatibleIntalled == dependStatus.status && supportCompatible() && 0 == index) { auto ptr = packagePtr(index); // check pacakge installed in compatible rootfs if (ptr && ptr->compatible()->installed()) { if (uninstallCompatiblePackage()) { refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Operating); return true; } else { refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); return false; } } // otherwise uninstall from current system } if (ImmBackend::instance()->immutableEnabled()) { auto ptr = packagePtr(index); if (ptr) { if (uninstallImmutablePackage()) { refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Operating); return true; } else { refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); return false; } } qWarning() << qPrintable("Trigger uninstall non-installed pacakge"); return false; } DebFile debFile(m_packagesManager->package(m_operatingIndex)); // 获取到包 if (!debFile.isValid()) return false; const QStringList rdepends = m_packagesManager->packageReverseDependsList(debFile.packageName(), debFile.architecture()); // 检查是否有应用依赖到该包 qInfo() << QString("Will remove reverse depends before remove %1 , Lists:").arg(debFile.packageName()) << rdepends; Backend *backend = PackageAnalyzer::instance().backendPtr(); for (const auto &r : rdepends) { // 卸载所有依赖该包的应用(二者的依赖关系为depends) if (backend->package(r)) { // 更换卸载包的方式,remove卸载不卸载完全会在影响下次安装的依赖判断。 backend->package(r)->setPurge(); } else qWarning() << "DebListModel:" << "reverse depend" << r << "error ,please check it!"; } // 卸载当前包 更换卸载包的方式,remove卸载不卸载完全会在影响下次安装的依赖判断。 QApt::Package *uninstalledPackage = backend->package(debFile.packageName() + ':' + debFile.architecture()); // 未通过当前包的包名以及架构名称获取package对象,刷新操作状态为卸载失败 if (!uninstalledPackage) { refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); return false; } uninstalledPackage->setPurge(); refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Operating); // 刷新当前index的操作状态 Transaction *transsaction = backend->commitChanges(); // trans 进度change 链接 connect(transsaction, &Transaction::progressChanged, this, &DebListModel::signalCurrentPacakgeProgressChanged); // 详细状态信息(安装情况)展示链接 connect(transsaction, &Transaction::statusDetailsChanged, this, &DebListModel::signalAppendOutputInfo); // trans 运行情况(授权是否成功) connect(transsaction, &Transaction::statusChanged, this, &DebListModel::slotTransactionStatusChanged); // trans运行中出现错误 connect(transsaction, &Transaction::errorOccurred, this, &DebListModel::slotTransactionErrorOccurred); // 卸载结束,处理卸载成功与失败的情况并发送结束信号 connect(transsaction, &Transaction::finished, this, &DebListModel::slotUninstallFinished); // 卸载结束之后 删除指针 connect(transsaction, &Transaction::finished, transsaction, &Transaction::deleteLater); m_currentTransaction = transsaction; // 保存trans指针 transsaction->run(); // 开始卸载 return true; } void DebListModel::removePackage(const int idx) { if (WorkerPrepare != m_workerStatus) { qWarning() << "installer status error"; } // 去除操作状态 中的index int packageOperateStatusCount = m_packageOperateStatus.size() - 1; m_packageOperateStatus.clear(); for (int i = 0; i < packageOperateStatusCount; i++) { m_packageOperateStatus[m_packagesManager->getPackageMd5(i)] = Pkg::PackageOperationStatus::Prepare; } if (0 <= idx && idx < m_packagesManager->m_packageMd5.size()) { m_packagePtrMap.remove(m_packagesManager->m_packageMd5[idx]); } m_packagesManager->removePackage(idx); // 在packageManager中删除标记的下标 } Pkg::PackageInstallStatus DebListModel::checkInstallStatus(const QString &package_path) { return m_packagesManager->checkInstallStatus(package_path); } Pkg::DependsStatus DebListModel::checkDependsStatus(const QString &package_path) { return static_cast(m_packagesManager->checkDependsStatus(package_path).status); } int DebListModel::checkDigitalSignature(const QString &package_path) { // 分级管控可用时,交由分级管控进行签名验证 if (HierarchicalVerify::instance()->isValid()) { return Utils::VerifySuccess; } const auto stat = m_packagesManager->checkDependsStatus(package_path); // 获取包的依赖状态 if (stat.isBreak() || stat.isAuthCancel()) return Utils::VerifySuccess; SettingDialog dialog; m_isDigitalVerify = dialog.isDigitalVerified(); int digitalSigntual = Utils::Digital_Verify(package_path); // 判断是否有数字签名 if (m_isDevelopMode && !m_isDigitalVerify) { // 开发者模式且未设置验签功能 return Utils::VerifySuccess; } else if (m_isDevelopMode && m_isDigitalVerify) { // 开发者模式且设置验签功能 return digitalSigntual; } else { // 非开发者模式 return digitalSigntual; } } QStringList DebListModel::getPackageInfo(const QString &package_path) { return m_packagesManager->getPackageInfo(package_path); } QString DebListModel::lastProcessError() { if (m_currentTransaction) return m_currentTransaction->errorString(); return "failed"; } bool DebListModel::containsSignatureFailed() const { return m_hierarchicalVerifyError; } QString DebListModel::checkPackageValid(const QString &package_path) { return m_packagesManager->checkPackageValid(QStringList(package_path)); } void DebListModel::slotAppendPackage(const QStringList &package) { if (WorkerPrepare != m_workerStatus) { qWarning() << "installer status error"; } m_packagesManager->appendPackage(package); // 添加包,并返回添加结果 } void DebListModel::slotTransactionStatusChanged(TransactionStatus transactionStatus) { switch (transactionStatus) { case TransactionStatus::AuthenticationStatus: // 等待授权 emit signalLockForAuth(true); // 设置底层窗口按钮不可用 break; case TransactionStatus::WaitingStatus: // 当前操作在队列中等待操作 emit signalLockForAuth(false); // 设置底层窗口按钮可用 break; default: break; } } void DebListModel::reset() { m_workerStatus = WorkerPrepare; // 工作状态重置为准备态 m_operatingIndex = 0; // 当前操作的index置为0 m_operatingPackageMd5 = nullptr; m_operatingStatusIndex = 0; // 当前操作状态的index置为0 m_packagePtrMap.clear(); m_packageOperateStatus.clear(); // 清空操作状态列表 m_packageFailCode.clear(); // 清空错误原因列表 m_packageFailReason.clear(); m_packagesManager->reset(); // 重置packageManager m_hierarchicalVerifyError = false; // 复位分级管控安装状态 } int DebListModel::getInstallFileSize() { return m_packagesManager->m_preparedPackages.size(); } void DebListModel::resetFileStatus() { m_packageOperateStatus.clear(); // 重置包的操作状态 m_packageFailReason.clear(); // 重置包的错误状态 m_packageFailCode.clear(); } void DebListModel::resetInstallStatus() { m_packageOperateStatus.clear(); // 重置包的操作状态 m_packageFailReason.clear(); // 重置包的错误状态 m_packageFailCode.clear(); initPrepareStatus(); } void DebListModel::bumpInstallIndex() { if (m_currentTransaction.isNull()) { qWarning() << "previous transaction not finished"; } if (++m_operatingIndex >= m_packagesManager->m_preparedPackages.size()) { m_workerStatus = WorkerFinished; // 设置包安装器的工作状态为Finish emit signalWorkerFinished(); // 发送安装完成信号 emit signalWholeProgressChanged(100); // 修改安装进度 emit signalCurrentPacakgeProgressChanged(100); return; } ++m_operatingStatusIndex; m_operatingPackageMd5 = m_packageMd5[m_operatingIndex]; emit signalCurrentProcessPackageIndex(m_operatingIndex); // 修改当前操作的下标 // install next qInfo() << "DebListModel:" << "install next deb package"; // 检查当前应用是否在黑名单中 // 非开发者模式且数字签名验证失败 if (checkBlackListApplication() || !checkDigitalSignature()) return; installNextDeb(); // 安装下一个包 } void DebListModel::slotTransactionErrorOccurred() { if (WorkerProcessing != m_workerStatus) { qWarning() << "installer status error" << m_workerStatus; } Transaction *transaction = qobject_cast(sender()); if (!transaction) return; // 失败时刷新操作状态为failed,并记录失败原因 refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); m_packageOperateStatus[m_operatingPackageMd5] = Pkg::PackageOperationStatus::Failed; m_packageFailCode[m_operatingPackageMd5] = transaction->error(); m_packageFailReason[m_operatingPackageMd5] = transaction->errorString(); if (!transaction->errorString().contains("proper authorization was not provided")) emit signalAppendOutputInfo(transaction->errorString()); const QApt::ErrorCode errorCode = transaction->error(); // trans错误的代码 qWarning() << "DebListModel:" << "Transaction Error:" << errorCode << workerErrorString(errorCode, transaction->errorString()); qWarning() << "DebListModel:" << "Error Infomation:" << transaction->errorDetails() << transaction->errorString(); if (transaction->isCancellable()) transaction->cancel(); // 特殊处理授权错误 if (AuthError == errorCode) { transaction->deleteLater(); // 删除 trans指针 QTimer::singleShot( 100 * 1, this, &DebListModel::checkBoxStatus); // 检查授权弹窗的状态 如果弹窗仍然在只是超时,则底层窗口按钮不可用 qWarning() << "DebListModel:" << "Authorization error"; // 复位,注意先取消锁定状态再设置界面,否则焦点设置丢失 emit signalLockForAuth(false); // 取消授权锁定,设置按钮可用 emit signalAuthCancel(); // 发送授权被取消的信号 emit signalEnableCloseButton(true); m_workerStatus = WorkerPrepare; // 重置工作状态为准备态 return; } // DO NOT install next, this action will finished and will be install next automatic. transaction->setProperty("exitStatus", QApt::ExitFailed); // 设置trans的退出状态为 失败 } void DebListModel::refreshOperatingPackageStatus(Pkg::PackageOperationStatus operationStatus) { m_packageOperateStatus[m_operatingPackageMd5] = operationStatus; // 将失败包的索引和状态修改保存,用于更新 const QModelIndex modelIndex = index(m_operatingStatusIndex); emit dataChanged(modelIndex, modelIndex); // 发送状态已经修改的信号 } QString DebListModel::packageFailedReason(const int idx) const { const auto dependStatus = m_packagesManager->getPackageDependsStatus(idx); // 获取包的依赖状态 const auto md5 = m_packagesManager->getPackageMd5(idx); // 获取包的md5值 if (m_packagesManager->isArchError(idx)) return tr("Unmatched package architecture"); // 判断是否架构冲突 switch (dependStatus.status) { case Pkg::CompatibleIntalled: if (auto ptr = packagePtr(idx)) { QString system = ptr->compatible()->rootfs; system = CompBackend::instance()->osName(system); if (system.isEmpty()) { system = tr("current system"); } return tr("%2 has been installed in %1, please uninstall this package before installing it") .arg(system) .arg(ptr->compatible()->name); } break; case Pkg::CompatibleNotInstalled: return tr("Broken dependencies, try installing the app in compatibility mode"); case Pkg::Prohibit: return tr("The administrator has set policies to prevent installation of this package"); case Pkg::DependsBreak: Q_FALLTHROUGH(); case Pkg::DependsAuthCancel: { // 依赖状态错误 if (!dependStatus.package.isEmpty() || !m_brokenDepend.isEmpty()) { if (m_packagesManager->m_errorIndex.contains(md5)) { // 修改wine依赖的标记方式 auto ret = static_cast(m_packagesManager->m_errorIndex.value(md5)); switch (ret) { case DebListModel::VerifyDependsErr: return m_brokenDepend + tr("Invalid digital signature"); default: return tr("Failed to install %1").arg(m_brokenDepend); // wine依赖安装失败 } } return tr("Broken dependencies: %1").arg(dependStatus.package); // 依赖不满足 } const auto conflictStatus = m_packagesManager->packageConflictStat(idx); // 获取冲突情况 if (!conflictStatus.is_ok()) { return tr("Broken dependencies: %1").arg(conflictStatus.unwrap()); // 依赖冲突 } break; } default: break; } // 修改map存储的数据格式,将错误原因与错误代码与包绑定,而非与下标绑定 return workerErrorString(m_packageFailCode[md5], m_packageFailReason[md5]); // 根据错误代码和错误原因返回具体的错误原因 } void DebListModel::slotTransactionFinished() { if (m_workerStatus == WorkerProcessing) { qWarning() << "installer status still processing"; } // 获取trans指针 Transaction *transaction = qobject_cast(sender()); if (!transaction) return; // prevent next signal disconnect(transaction, &Transaction::finished, this, &DebListModel::slotTransactionFinished); // 不再接收trans结束的信号 // report new progress // 更新安装进度(批量安装进度控制) int progressValue = static_cast(100. * (m_operatingIndex + 1) / m_packagesManager->m_preparedPackages.size()); emit signalWholeProgressChanged(progressValue); qInfo() << "DebListModel:" << "transaciont finished with exit status:" << transaction->exitStatus(); if (transaction->exitStatus()) { // 安装失败 qWarning() << transaction->error() << transaction->errorDetails() << transaction->errorString(); // 检测错误信息是否包含分级管控错误码,若存在,则当前错误为分级管控验证签名不通过 QString errorInfo = transaction->errorDetails(); if (errorInfo.isEmpty()) { errorInfo = transaction->errorString(); } QString sPackageName = m_packagesManager->m_preparedPackages[m_operatingIndex]; bool verifyError = HierarchicalVerify::instance()->checkTransactionError(sPackageName, errorInfo); // 检测安装失败时,弹出对话框提示 if (verifyError) { // 安装结束后再弹出提示对话框 m_hierarchicalVerifyError = true; } // 保存错误原因和错误代码 // 修改map存储的数据格式,将错误原因与错误代码与包绑定,而非与下标绑定 m_packageFailCode[m_operatingPackageMd5] = verifyError ? static_cast(Pkg::DigitalSignatureError) : static_cast(transaction->error()); m_packageFailReason[m_operatingPackageMd5] = transaction->errorString(); // 刷新操作状态 refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); emit signalAppendOutputInfo(transaction->errorString()); } else if (m_packageOperateStatus.contains(m_operatingPackageMd5) && m_packageOperateStatus[m_operatingPackageMd5] != Pkg::PackageOperationStatus::Failed) { // 安装成功 refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Success); // 准备安装下一个包,修改下一个包的状态为正在安装状态 if (m_operatingStatusIndex < m_packagesManager->m_preparedPackages.size() - 1) { auto md5 = m_packagesManager->getPackageMd5(m_operatingIndex + 1); m_packageOperateStatus[md5] = Pkg::PackageOperationStatus::Waiting; } } // delete trans; if (!m_currentTransaction.isNull()) { m_currentTransaction->deleteLater(); m_currentTransaction = nullptr; } transaction = nullptr; bumpInstallIndex(); // 进入安装进度控制 } void DebListModel::slotDependsInstallTransactionFinished() // 依赖安装关系满足 { if (m_workerStatus == WorkerProcessing) { qWarning() << "installer status still processing"; } Transaction *transaction = qobject_cast(sender()); if (!transaction) return; const auto transExitStatus = transaction->exitStatus(); if (transExitStatus) { // record error // 记录错误原因和错误代码 // 修改map存储的数据格式,将错误原因与错误代码与包绑定,而非与下标绑定 qWarning() << transaction->error() << transaction->errorDetails() << transaction->errorString(); // 向终端打印错误 m_packageFailCode[m_operatingPackageMd5] = transaction->error(); m_packageFailReason[m_operatingPackageMd5] = transaction->errorString(); refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); // 刷新操作状态 emit signalAppendOutputInfo(transaction->errorString()); } // delete trans; if (!m_currentTransaction.isNull()) { m_currentTransaction->deleteLater(); m_currentTransaction = nullptr; } transaction = nullptr; // check current operate exit status to install or install next if (transExitStatus) { bumpInstallIndex(); // 依赖安装失败,直接安装下一个包 } else { // 安装依赖前已对此包进行黑名单及验签校验,无需二次验证 installNextDeb(); // 依赖安装成功,开始安装这个包 } } void DebListModel::setEndEnable() { emit signalEnableReCancelBtn(true); } void DebListModel::checkBoxStatus() { QTime startTime = QTime::currentTime(); // 获取弹出的时间 Transaction *transation = nullptr; auto *const backend = PackageAnalyzer::instance().backendPtr(); transation = backend->commitChanges(); QTime stopTime = QTime::currentTime(); int elapsed = startTime.msecsTo(stopTime); // 获取commit授权被取消的时间 if (elapsed > 20000) { // 如果时间超过20ms则不断判断当前窗口是否超时 QTimer::singleShot(100 * 1, this, &DebListModel::checkBoxStatus); return; } if (transation) { if (transation->isCancellable()) { // 当前transaction已经被取消 transation->cancel(); QTimer::singleShot(100 * 1, this, &DebListModel::setEndEnable); // 设置按钮可用 } else { QTimer::singleShot(100 * 1, this, &DebListModel::checkBoxStatus); // 当前Transaction还在运行中,继续等待并判断 } } else { qWarning() << "DebListModel:" << "Transaction is Nullptr"; } } void DebListModel::installDebs() { DebFile deb(m_packagesManager->package(m_operatingIndex)); if (!deb.isValid()) return; qInfo() << QString("Prepare to install %1, ver: %2, arch: %3").arg(deb.packageName()).arg(deb.version()).arg(deb.architecture()); Q_ASSERT_X(m_workerStatus == WorkerProcessing, Q_FUNC_INFO, "installer status error"); Q_ASSERT_X(m_currentTransaction.isNull(), Q_FUNC_INFO, "previous transaction not finished"); // 在判断dpkg启动之前就发送开始安装的信号,并在安装信息中输出 dpkg正在运行的信息。 emit signalWorkerStart(); // fetch next deb auto *const backend = PackageAnalyzer::instance().backendPtr(); if (!backend) return; Transaction *transaction = nullptr; // reset package depends status m_packagesManager->resetPackageDependsStatus(m_operatingStatusIndex); // check available dependencies const auto dependsStat = m_packagesManager->getPackageDependsStatus(m_operatingStatusIndex); // for compatbile install if (dependsStat.canInstallCompatible() && supportCompatible()) { if (installCompatiblePackage()) { refreshOperatingPackageStatus(Pkg::Operating); } else { refreshOperatingPackageStatus(Pkg::Failed); } return; } // for immutable system, if immutable is enabled, the normal installation process will not be entered if (dependsStat.canInstall() && ImmBackend::instance()->immutableEnabled()) { if (installImmutablePackage()) { refreshOperatingPackageStatus(Pkg::Operating); } else { refreshOperatingPackageStatus(Pkg::Failed); } return; } if (!dependsStat.canInstall()) { // 依赖不满足或者下载wine依赖时授权被取消 refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); // 刷新错误状态 // 修改map存储的数据格式,将错误原因与错误代码与包绑定,而非与下标绑定 m_packageFailCode.insert(m_operatingPackageMd5, -1); // 保存错误原因 // 记录详细错误原因 m_packageFailReason.insert(m_operatingPackageMd5, packageFailedReason(m_operatingStatusIndex)); bumpInstallIndex(); // 开始下一步的安装流程 return; } else if (dependsStat.isAvailable()) { if (isDpkgRunning()) { qInfo() << "DebListModel:" << "dpkg running, waitting..."; // 缩短检查的时间,每隔1S检查当前dpkg是否正在运行。 QTimer::singleShot(1000 * 1, this, &DebListModel::installNextDeb); return; } // 依赖可用 但是需要下载 Q_ASSERT_X(m_packageOperateStatus[m_operatingPackageMd5], Q_FUNC_INFO, "package operate status error when start install availble dependencies"); // 获取到所有的依赖包 准备安装 const QStringList availableDepends = m_packagesManager->packageAvailableDepends(m_operatingIndex); qInfo() << QString("Prepare install package: %1 , install depends: ").arg(deb.packageName()) << availableDepends; // 获取到可用的依赖包并根据后端返回的结果判断依赖包的安装结果 for (auto const &p : availableDepends) { if (p.contains(" not found")) { // 依赖安装失败 refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); // 刷新当前包的状态 // 修改map存储的数据格式,将错误原因与错误代码与包绑定,而非与下标绑定 m_packageFailCode.insert(m_operatingPackageMd5, DownloadDisallowedError); // 记录错误代码与错误原因 m_packageFailReason.insert(m_operatingPackageMd5, p); emit signalAppendOutputInfo(m_packagesManager->package(m_operatingIndex) + "\'s depend " + " " + p); // 输出错误原因 bumpInstallIndex(); // 开始安装下一个包或结束安装 qWarning() << QString("Packge %1 install failed, not found depend package: %2").arg(deb.packageName()).arg(p); return; } backend->markPackageForInstall(p); // 开始安装依赖包 } // 打印待安装的软件包信息 printDependsChanges(); transaction = backend->commitChanges(); if (!transaction) return; // 依赖安装结果处理 connect(transaction, &Transaction::finished, this, &DebListModel::slotDependsInstallTransactionFinished); } else { if (isDpkgRunning()) { qInfo() << "DebListModel:" << "dpkg running, waitting..."; // 缩短检查的时间,每隔1S检查当前dpkg是否正在运行。 QTimer::singleShot(1000 * 1, this, &DebListModel::installNextDeb); return; } transaction = backend->installFile(deb); // 触发Qapt授权框和安装线程 if (!transaction) return; // 进度变化和结束过程处理 connect(transaction, &Transaction::progressChanged, this, &DebListModel::signalCurrentPacakgeProgressChanged); connect(transaction, &Transaction::finished, this, &DebListModel::slotTransactionFinished); } // NOTE: DO NOT remove this. transaction->setLocale(".UTF-8"); // 记录日志 connect(transaction, &Transaction::statusDetailsChanged, this, &DebListModel::signalAppendOutputInfo); // 刷新操作状态 connect(transaction, &Transaction::statusDetailsChanged, this, &DebListModel::slotTransactionOutput); // 授权处理 connect(transaction, &Transaction::statusChanged, this, &DebListModel::slotTransactionStatusChanged); // 错误处理 connect(transaction, &Transaction::errorOccurred, this, &DebListModel::slotTransactionErrorOccurred); m_currentTransaction = transaction; m_currentTransaction->run(); } void DebListModel::digitalVerifyFailed(Pkg::ErrorCode errorCode) { if (preparedPackages().size() > 1) { // 批量安装 refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); // 刷新操作状态 // 修改map存储的数据格式,将错误原因与错误代码与包绑定,而非与下标绑定 m_packageFailCode.insert(m_operatingPackageMd5, errorCode); // 记录错误代码与错误原因 m_packageFailReason.insert(m_operatingPackageMd5, ""); bumpInstallIndex(); // 跳过当前包 } else if (preparedPackages().size() == 1) { if (!m_isDevelopMode) { exit(0); } else { // 开发者模式下,点击取消按钮,返回错误界面 refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); // 刷新操作状态 // 修改map存储的数据格式,将错误原因与错误代码与包绑定,而非与下标绑定 m_packageFailCode.insert(m_operatingPackageMd5, errorCode); // 记录错误代码与错误原因 m_packageFailReason.insert(m_operatingPackageMd5, ""); emit signalWorkerFinished(); } } } void DebListModel::showNoDigitalErrWindowInDdimProcess(void (DebListModel::*failedFunction)()) { DDialog *Ddialog = new DDialog(); // 弹出窗口 Ddialog->setModal(true); Ddialog->setWindowFlag(Qt::WindowStaysOnTopHint); // 窗口一直置顶 Ddialog->setTitle(tr("Unable to install")); Ddialog->setIcon(QIcon::fromTheme("di_popwarning")); Ddialog->addButton(QString(tr("OK", "button")), true, DDialog::ButtonNormal); // 添加确认按钮 auto fullPath = m_packagesManager->package(m_operatingIndex); QFileInfo info(fullPath); Ddialog->setMessage(QString(tr("Failed to install %1: no valid digital signature").arg(info.fileName())) + QString("!")); // 消息框reject后的操作,包括点击取消按钮、关闭图标、按ESC退出 std::function rejectOperate = [this, Ddialog, failedFunction]() { if (failedFunction) { (this->*failedFunction)(); } Ddialog->deleteLater(); }; // 取消按钮 QPushButton *btnOk = qobject_cast(Ddialog->getButton(0)); connect(btnOk, &DPushButton::clicked, Ddialog, &DDialog::reject); // 关闭图标 connect(Ddialog, &DDialog::aboutToClose, Ddialog, &DDialog::reject); // ESC退出 connect(Ddialog, &DDialog::rejected, rejectOperate); Ddialog->exec(); // 显示弹窗 } void DebListModel::showNoDigitalErrWindow() { if (SingleInstallerApplication::mode == SingleInstallerApplication::DdimChannel) { showNoDigitalErrWindowInDdimProcess(&DebListModel::slotNoDigitalSignature); return; } // 批量安装时,如果不是最后一个包,则不弹窗,只记录详细错误原因。 if (m_operatingIndex < m_packagesManager->m_preparedPackages.size() - 1) { digitalVerifyFailed(Pkg::NoDigitalSignature); // 刷新安装错误,并记录错误原因 return; } DDialog *Ddialog = new DDialog(); // 弹出窗口 Ddialog->setModal(true); Ddialog->setWindowFlag(Qt::WindowStaysOnTopHint); // 窗口一直置顶 Ddialog->setTitle(tr("Unable to install - no digital signature")); Ddialog->setMessage(QString(tr("Please go to Control Center to enable developer mode and try again. Proceed?"))); Ddialog->setIcon(QIcon::fromTheme("di_popwarning")); Ddialog->addButton(QString(tr("Cancel", "button")), true, DDialog::ButtonNormal); // 添加取消按钮 Ddialog->addButton(QString(tr("Proceed", "button")), true, DDialog::ButtonRecommend); // 添加前往按钮 Ddialog->show(); // 显示弹窗 // 消息框reject后的操作,包括点击取消按钮、关闭图标、按ESC退出 std::function rejectOperate = [this, Ddialog]() { this->slotNoDigitalSignature(); Ddialog->deleteLater(); }; // 取消按钮 QPushButton *btnCancel = qobject_cast(Ddialog->getButton(0)); connect(btnCancel, &DPushButton::clicked, rejectOperate); // 关闭图标 connect(Ddialog, &DDialog::aboutToClose, rejectOperate); // ESC退出 connect(Ddialog, &DDialog::rejected, rejectOperate); // 前往按钮1 QPushButton *btnProceedControlCenter = qobject_cast(Ddialog->getButton(1)); connect(btnProceedControlCenter, &DPushButton::clicked, this, &DebListModel::slotShowDevelopModeWindow); connect(btnProceedControlCenter, &DPushButton::clicked, this, &QApplication::exit); connect(btnProceedControlCenter, &DPushButton::clicked, Ddialog, &DDialog::deleteLater); } void DebListModel::showDigitalErrWindow(bool recordError) { if (SingleInstallerApplication::mode == SingleInstallerApplication::DdimChannel) { // 不记录错误时仅提示,不涉及状态切换及更新记录 showNoDigitalErrWindowInDdimProcess(recordError ? &DebListModel::slotDigitalSignatureError : nullptr); return; } // 批量安装时,如果不是最后一个包,则不弹窗,只记录详细错误原因。 if (m_operatingIndex < m_packagesManager->m_preparedPackages.size() - 1) { if (recordError) { digitalVerifyFailed(Pkg::DigitalSignatureError); // 刷新安装错误,并记录错误原因 } return; } DDialog *Ddialog = new DDialog(); // 设置窗口焦点 Ddialog->setFocusPolicy(Qt::TabFocus); // 设置弹出窗口为模态窗口 Ddialog->setModal(true); // 设置窗口始终置顶 Ddialog->setWindowFlag(Qt::WindowStaysOnTopHint); // 设置弹出窗口显示的信息 Ddialog->setTitle(tr("Unable to install")); Ddialog->setMessage(QString(tr("This package does not have a valid digital signature")) + QString("!")); Ddialog->setIcon(QIcon::fromTheme("di_popwarning")); Ddialog->addButton(QString(tr("OK", "button")), true, DDialog::ButtonNormal); Ddialog->show(); QPushButton *btnOK = qobject_cast(Ddialog->getButton(0)); btnOK->setFocusPolicy(Qt::TabFocus); btnOK->setFocus(); // 窗口退出操作,包括所有可以退出此窗口的操作 std::function exitOperate = [this, Ddialog, recordError]() { if (recordError) { this->slotDigitalSignatureError(); } Ddialog->deleteLater(); }; // 点击弹出窗口的关闭图标按钮 connect(Ddialog, &DDialog::aboutToClose, exitOperate); // 点击弹出窗口的确定按钮 connect(btnOK, &DPushButton::clicked, exitOperate); // ESC退出 connect(Ddialog, &DDialog::rejected, exitOperate); } void DebListModel::showDevelopDigitalErrWindow(Pkg::ErrorCode code) { Dialog *Ddialog = new Dialog(); // 设置窗口焦点 // fix bug:https://pms.uniontech.com/zentao/bug-view-44837.html Ddialog->setFocusPolicy(Qt::TabFocus); // 设置弹出窗口为模态窗口 Ddialog->setModal(true); // 设置窗口始终置顶 Ddialog->setWindowFlag(Qt::WindowStaysOnTopHint); // 设置弹出窗口显示的信息 Ddialog->setMessage(QString(tr("This package does not have a valid digital signature. Continue with the installation?"))); Ddialog->setIcon(QIcon::fromTheme("di_popwarning")); Ddialog->addButton(QString(tr("Cancel")), true, DDialog::ButtonNormal); Ddialog->addButton(QString(tr("Continue", "button")), true, DDialog::ButtonRecommend); // 添加前往按钮 Ddialog->show(); QPushButton *cancelBtn = qobject_cast(Ddialog->getButton(0)); cancelBtn->setFocusPolicy(Qt::TabFocus); cancelBtn->setFocus(); // 点击弹出窗口的关闭图标按钮 connect(Ddialog, &DDialog::aboutToClose, this, [=] { // 刷新当前包的操作状态,失败原因为数字签名校验失败 digitalVerifyFailed(code); }); connect(Ddialog, &DDialog::aboutToClose, Ddialog, &DDialog::deleteLater); // 点击弹出窗口的确定按钮 connect(cancelBtn, &DPushButton::clicked, this, [=] { digitalVerifyFailed(code); }); connect(cancelBtn, &DPushButton::clicked, Ddialog, &DDialog::deleteLater); QPushButton *continueBtn = qobject_cast(Ddialog->getButton(1)); connect(continueBtn, &DPushButton::clicked, this, [&] { installNextDeb(); }); // 点击继续,进入安装流程 connect(continueBtn, &DPushButton::clicked, Ddialog, &DDialog::deleteLater); connect(Ddialog, &Dialog::signalClosed, this, [=] { digitalVerifyFailed(code); }); connect(Ddialog, &Dialog::signalClosed, Ddialog, &DDialog::deleteLater); } void DebListModel::slotDigitalSignatureError() { digitalVerifyFailed(Pkg::DigitalSignatureError); } void DebListModel::slotNoDigitalSignature() { digitalVerifyFailed(Pkg::NoDigitalSignature); } void DebListModel::slotShowDevelopModeWindow() { // 弹出设置 通用窗口 // 1.读取系统版本号 QProcess *unlock = new QProcess(this); unlock->start("lsb_release", {"-r"}); unlock->waitForFinished(); auto output = unlock->readAllStandardOutput(); auto str = QString::fromUtf8(output); REG_EXP re("\t.+\n"); QString osVerStr; #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) if (re.indexIn(str) > -1) { auto result = re.cap(0); #else QRegularExpressionMatch match = re.match(str); if (match.hasMatch()) { auto result = match.captured(0); #endif osVerStr = result.remove(0, 1).remove(result.size() - 1, 1); qInfo() << "lsb_release -r:" << output; qInfo() << "OS version:" << osVerStr; } // 2.打开控制中心 if (osVerStr == "20") { // V20模式 QDBusInterface interface("com.deepin.dde.ControlCenter", "/com/deepin/dde/ControlCenter", "com.deepin.dde.ControlCenter"); if (interface.isValid()) { interface.call("ShowPage", "commoninfo", "Developer Mode"); } QDBusError error = interface.lastError(); if (error.isValid()) { qWarning() << QString("DBus ControlCenter.ShowPage failed, Type: %1 MSG: %2").arg(error.type()).arg(error.message()); } } else if (osVerStr == "23") { // V23模式 if (unlock->exitCode() != QProcess::NormalExit) { QDBusInterface interface( "org.deepin.dde.ControlCenter1", "/org/deepin/dde/ControlCenter1", "org.deepin.dde.ControlCenter1"); if (interface.isValid()) { interface.call("ShowPage", "commoninfo", "Developer Mode"); } QDBusError error = interface.lastError(); if (error.isValid()) { qWarning() << QString("DBus ControlCenter.ShowPage failed, Type: %1 MSG: %2").arg(error.type()).arg(error.message()); } } } else { qWarning() << qPrintable("Unknown OS version, connot open dde-control-center"); } unlock->deleteLater(); } bool DebListModel::checkDigitalSignature() { // 分级管控可用时,交由分级管控进行签名验证 if (HierarchicalVerify::instance()->isValid()) { return true; } const auto stat = m_packagesManager->getPackageDependsStatus(m_operatingIndex); // 获取包的依赖状态 if (stat.isBreak() || stat.isAuthCancel()) return true; SettingDialog dialog; m_isDigitalVerify = dialog.isDigitalVerified(); int digitalSigntual = Utils::Digital_Verify(m_packagesManager->package(m_operatingIndex)); // 判断是否有数字签名 qInfo() << "m_isDevelopMode:" << m_isDevelopMode << " /m_isDigitalVerify:" << m_isDigitalVerify << " /digitalSigntual:" << digitalSigntual; if (m_isDevelopMode && !m_isDigitalVerify) { // 开发者模式且未设置验签功能 return true; } else if (m_isDevelopMode && m_isDigitalVerify) { // 开发者模式且设置验签功能 if (digitalSigntual == Utils::VerifySuccess) { return true; } else { Pkg::ErrorCode code; if (digitalSigntual == Utils::DebfileInexistence) code = Pkg::NoDigitalSignature; else code = Pkg::DigitalSignatureError; showDevelopDigitalErrWindow(code); // 弹出提示框 return false; } } else { // 非开发者模式 bool verifiedResult = false; switch (digitalSigntual) { case Utils::VerifySuccess: // 签名验证成功 verifiedResult = true; break; case Utils::DebfileInexistence: // 无签名文件 showNoDigitalErrWindow(); verifiedResult = false; break; case Utils::ExtractDebFail: // 无有效的数字签名 showDigitalErrWindow(); verifiedResult = false; break; case Utils::DebVerifyFail: case Utils::OtherError: // 其他原因造成的签名校验失败 showDigitalErrWindow(); verifiedResult = false; break; default: // 其他未知错误 qInfo() << "unknown mistake"; verifiedResult = false; break; } return verifiedResult; } } void DebListModel::installNextDeb() { m_packagesManager->resetPackageDependsStatus(m_operatingStatusIndex); // 刷新软件包依赖状态 auto dependStatus = m_packagesManager->getPackageDependsStatus(m_operatingStatusIndex); if (dependStatus.canInstallCompatible() && supportCompatible()) { installDebs(); } else if (ImmBackend::instance()->immutableEnabled()) { installDebs(); } else if (dependStatus.isAvailable()) { // 存在没有安装的依赖包,则进入普通安装流程执行依赖安装 installDebs(); } else if (dependStatus.status >= Pkg::DependsStatus::DependsBreak) { // 安装前置条件不满足,无法处理 refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); bumpInstallIndex(); return; } else { // 如果当前包的依赖全部安装完毕,则进入配置判断流程 QString sPackageName = m_packagesManager->m_preparedPackages[m_operatingIndex]; if (Utils::checkPackageContainsDebConf(sPackageName)) { // 检查当前包是否需要配置 m_procInstallConfig->start("pkexec", QStringList() << "pkexec" << "deepin-deb-installer-dependsInstall" << "--install_config" << sPackageName, {}, 0, false); // 配置安装流程 } else { installDebs(); // 普通安装流程 } } } void DebListModel::slotTransactionOutput() { if (m_workerStatus == WorkerProcessing) { qInfo() << "installer status error"; } Transaction *trans = qobject_cast(sender()); if (!trans) return; refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Operating); // 刷新当前包的操作状态 disconnect(trans, &Transaction::statusDetailsChanged, this, &DebListModel::slotTransactionOutput); } void DebListModel::slotUninstallFinished() { if (m_workerStatus == WorkerProcessing) { qInfo() << "installer status error"; } // 增加卸载失败的情况 // 此前的做法是发出commitError的信号,现在全部在Finished中进行处理。不再特殊处理。 Transaction *trans = qobject_cast(sender()); if (!trans) return; if (trans->exitStatus()) { m_workerStatus = WorkerFinished; // 刷新包安装器的工作状态 refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); // 刷新当前包的操作状态 m_packageOperateStatus[m_operatingPackageMd5] = Pkg::PackageOperationStatus::Failed; qWarning() << "DebListModel:" << "uninstall finished with finished code:" << trans->error() << "finished details:" << trans->errorString(); } else { m_workerStatus = WorkerFinished; // 刷新包安装器的工作状态 refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Success); // 刷新当前包的卸载状态 m_packageOperateStatus[m_operatingPackageMd5] = Pkg::PackageOperationStatus::Success; } emit signalWorkerFinished(); // 发送结束信号(只有单包卸载)卸载结束就是整个流程的结束 trans->deleteLater(); } void DebListModel::slotSetCurrentIndex(const QModelIndex &modelIndex) { if (m_currentIdx == modelIndex) return; // 要修改的index与当前index 一致 const QModelIndex index = m_currentIdx; // 保存当前的index m_currentIdx = modelIndex; // 修改当前的index emit dataChanged(index, index); emit dataChanged(m_currentIdx, m_currentIdx); // 发送index修改信号 } void DebListModel::initPrepareStatus() { for (int i = 0; i < m_packagesManager->m_preparedPackages.size(); i++) { auto md5 = m_packagesManager->getPackageMd5(i); m_packageOperateStatus.insert(md5, Pkg::PackageOperationStatus::Prepare); // 刷新当前所有包的状态为Prepare } } void DebListModel::initRowStatus() { // 更换状态存储方式后修改更新状态的方式 for (auto md5 : m_packageMd5) { m_packageOperateStatus[md5] = Pkg::PackageOperationStatus::Waiting; } } void DebListModel::slotUpWrongStatusRow() { if (m_packagesManager->m_preparedPackages.size() == 1) return; QList installErrorPackages; // 安装错误的包的list QList installSuccessPackages; // 安装成功的包的list // 根据包的操作状态,分别找到所有安装成功的包与安装失败的包 QMapIterator iteratorpackageOperateStatus(m_packageOperateStatus); while (iteratorpackageOperateStatus.hasNext()) { iteratorpackageOperateStatus.next(); // 保存安装成功的包 if (iteratorpackageOperateStatus.value() == Pkg::PackageOperationStatus::Failed || iteratorpackageOperateStatus.value() == Pkg::PackageOperationStatus::VerifyFailed) { // 安装失败或签名验证失败 installErrorPackages.append(iteratorpackageOperateStatus.key()); // 保存下标 } // 保存安装失败的包 if (iteratorpackageOperateStatus.value() == Pkg::PackageOperationStatus::Success) { installSuccessPackages.append(iteratorpackageOperateStatus.key()); } } if (installErrorPackages.size() == 0) // 全部安装成功 直接退出 return; // 先将包与md5 绑定 // 后续要对根据MD5对包的路径进行排序,保证包名和md5的下标统一 QMap md5Packages; for (int i = 0; i < m_packagesManager->m_packageMd5.size(); i++) { md5Packages.insert(m_packagesManager->m_packageMd5[i], m_packagesManager->m_preparedPackages[i]); } m_packagesManager->m_packageMd5.clear(); m_packagesManager->m_packageMd5.append(installErrorPackages); m_packagesManager->m_packageMd5.append(installSuccessPackages); m_packagesManager->m_preparedPackages.clear(); for (int i = 0; i < m_packagesManager->m_packageMd5.size(); i++) { m_packagesManager->m_preparedPackages.append(md5Packages[m_packagesManager->m_packageMd5[i]]); } // update view const QModelIndex idxStart = index(0); const QModelIndex idxEnd = index(m_packageOperateStatus.size() - 1); emit dataChanged(idxStart, idxEnd); // update scroll emit signalCurrentProcessPackageIndex(-1); } void DebListModel::slotConfigInstallFinish(int installResult) { if (m_packagesManager->m_preparedPackages.size() == 0) return; int progressValue = static_cast(100. * (m_operatingIndex + 1) / m_packagesManager->m_preparedPackages.size()); // 批量安装时对进度进行处理 emit signalWholeProgressChanged(progressValue); if (0 == installResult) { // 安装成功 if (m_packagesManager->m_packageMd5DependsStatus[m_packagesManager->m_packageMd5[m_operatingIndex]].status == Pkg::DependsStatus::DependsOk) { refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Success); // 刷新安装状态 m_procInstallConfig->terminate(); // 结束配置 m_procInstallConfig->close(); } bumpInstallIndex(); // 开始安装下一个 } else { if (1 == m_packagesManager->m_preparedPackages.size()) { // 单包安装 refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Prepare); // 刷新当前包的操作状态为准备态 m_workerStatus = WorkerPrepare; emit signalAuthCancel(); // 授权取消 } else { // 批量安装 refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); // 刷新当前包的状态为失败 // 修改map存储的数据格式,将错误原因与错误代码与包绑定,而非与下标绑定 m_packageFailCode.insert(m_operatingPackageMd5, installResult); // 保存失败原因 m_packageFailReason.insert(m_operatingPackageMd5, "Authentication failed"); bumpInstallIndex(); // 开始安装下一个 } } configWindow->hide(); // 隐藏配置窗口 configWindow->clearTexts(); // 清楚配置信息 // m_procInstallConfig->terminate(); //结束配置 // m_procInstallConfig->close(); } void DebListModel::slotConfigReadOutput(const char *buffer, int length, bool isCommandExec) { QString tmp = QByteArray(buffer, length); // 获取配置读取到的信息 tmp.remove(QChar('"'), Qt::CaseInsensitive); tmp.remove(QChar('\n'), Qt::CaseInsensitive); // 取消授权弹窗,则不显示配置安装界面 if (!tmp.contains("Error executing command as another user: Request dismissed")) { // 获取到当前正在安装配置 emit signalWorkerStart(); refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Operating); // 刷新当前的操作状态 configWindow->show(); // 显示配置窗口 int iCutoutNum = tmp.size(); if (iCutoutNum > 0) { emit signalAppendOutputInfo(tmp); // 原本安装信息界面信息也要添加,以备安装完成后查看安装信息 configWindow->appendTextEdit(tmp); // 配置包安装信息界面显示配置信息 } } } void DebListModel::slotConfigInputWrite(const QString &str) { if (supportCompatible() && m_compProcessor && m_compProcessor->isRunning()) { m_compProcessor->writeConfigData(str); return; } if (m_immProcessor && m_immProcessor->isRunning()) { m_immProcessor->writeConfigData(str); return; } m_procInstallConfig->pty()->write(str.toUtf8()); // 将用户输入的配置项写入到配置安装进程中。 m_procInstallConfig->pty()->write("\n"); // 写入换行,配置生效 } void DebListModel::slotCheckInstallStatus(const QString &installInfo) { // 判断当前的信息是否是错误提示信息 if (installInfo.contains("Error executing command as another user: Request dismissed")) { emit signalAppendOutputInfo(installInfo); // 输出安装错误的原因 m_workerStatus = WorkerFinished; // 刷新包安装器的工作状态 refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); // 刷新当前包的操作状态 // 修改map存储的数据格式,将错误原因与错误代码与包绑定,而非与下标绑定 m_packageOperateStatus[m_operatingPackageMd5] = Pkg::PackageOperationStatus::Failed; m_packageFailCode.insert(m_operatingPackageMd5, 0); // 保存失败原因 m_packageFailReason.insert(m_operatingPackageMd5, ""); bumpInstallIndex(); return; } } bool DebListModel::recheckPackagePath(const QString &packagePath) const { QFile packagePathFile(packagePath); do { if (packagePathFile.symLinkTarget().isEmpty()) { if (packagePathFile.exists()) { return true; } } else { QFile realPath(packagePathFile.symLinkTarget()); if (realPath.exists() && packagePathFile.exists()) { return true; } } } while (false); QFileInfo fileInfo(packagePath); qWarning() << "check file path" << packagePath << "source file and link file not exist "; emit signalPackageCannotFind(fileInfo.fileName()); return false; } void DebListModel::getPackageMd5(const QList &packagesMD5) { m_packageMd5.clear(); m_packageMd5 = packagesMD5; emit signalAppendFinished(); } void DebListModel::slotShowProhibitWindow() { digitalVerifyFailed(Pkg::ApplocationProhibit); } void DebListModel::showProhibitWindow() { // 批量安装时,如果不是最后一个包,则不弹窗,只记录详细错误原因。 if (m_operatingIndex < m_packagesManager->m_preparedPackages.size() - 1) { digitalVerifyFailed(Pkg::ApplocationProhibit); // 刷新安装错误,并记录错误原因 return; } DDialog *Ddialog = new DDialog(); // 设置窗口焦点 Ddialog->setFocusPolicy(Qt::TabFocus); // 设置弹出窗口为模态窗口 Ddialog->setModal(true); // 设置窗口始终置顶 Ddialog->setWindowFlag(Qt::WindowStaysOnTopHint); // 设置弹出窗口显示的信息 Ddialog->setTitle(tr("Unable to install")); Ddialog->setMessage(QString(tr("The administrator has set policies to prevent installation of this package"))); Ddialog->setIcon(QIcon::fromTheme("di_popwarning")); Ddialog->addButton(QString(tr("OK", "button")), true, DDialog::ButtonNormal); Ddialog->show(); QPushButton *btnOK = qobject_cast(Ddialog->getButton(0)); btnOK->setFocusPolicy(Qt::TabFocus); btnOK->setFocus(); // 窗口退出操作,包括所有可以退出此窗口的操作 std::function exitOperate = [this, Ddialog]() { this->slotShowProhibitWindow(); Ddialog->deleteLater(); }; // 点击弹出窗口的关闭图标按钮 connect(Ddialog, &DDialog::aboutToClose, exitOperate); // 点击弹出窗口的确定按钮 connect(btnOK, &DPushButton::clicked, exitOperate); // ESC connect(Ddialog, &DDialog::rejected, exitOperate); } bool DebListModel::checkBlackListApplication() { PackageDependsStatus dependsStat = m_packagesManager->getPackageDependsStatus(m_operatingIndex); if (dependsStat.isProhibit()) { showProhibitWindow(); return true; } return false; } DebListModel::~DebListModel() { delete m_packagesManager; delete configWindow; delete m_procInstallConfig; } /** @brief 打印待安装的软件包信息,将根据安装、升级、卸载等分类分别打印对应变更的软件包 */ void DebListModel::printDependsChanges() { auto *const backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { return; } auto changeList = backend->markedPackages(); if (changeList.isEmpty()) { return; } static QMap tagTable = {{Package::IsManuallyHeld, "Package::IsManuallyHeld"}, {Package::NewInstall, "Package::NewInstall"}, {Package::ToReInstall, "Package::ToReInstall"}, {Package::ToUpgrade, "Package::ToUpgrade"}, {Package::ToDowngrade, "Package::ToDowngrade"}, {Package::ToRemove, "Package::ToRemove"}}; QMap changeInfo; for (const Package *package : changeList) { int flags = package->state(); int status = flags & (Package::IsManuallyHeld | Package::NewInstall | Package::ToReInstall | Package::ToUpgrade | Package::ToDowngrade | Package::ToRemove); changeInfo[status] << QString("%1, %2, %3").arg(package->name()).arg(package->version()).arg(package->architecture()); } qInfo() << "Install depends details:"; for (auto info = changeInfo.begin(); info != changeInfo.end(); info++) { qInfo() << tagTable[info.key()] << info.value(); } } QString DebListModel::itemToolTips(int index) const { const auto dependStatus = m_packagesManager->getPackageDependsStatus(index); if (!dependStatus.canInstall()) { static const int kTipsWidth = 440; return Utils::formatWrapText(packageFailedReason(index), kTipsWidth); } return {}; } void DebListModel::ensureCompatibleProcessor() { if (!m_compProcessor) { m_compProcessor.reset(new Compatible::CompatibleProcessController); connect( m_compProcessor.data(), &Compatible::CompatibleProcessController::processOutput, this, [this](const QString &output) { Q_EMIT signalAppendOutputInfo(output); if (configWindow->isVisible()) { configWindow->appendTextEdit(output); } else if (m_compProcessor->needTemplates()) { configWindow->appendTextEdit(output); configWindow->show(); } }); connect(m_compProcessor.data(), &Compatible::CompatibleProcessController::progressChanged, this, [this](float progress) { const int progressValue = static_cast((100. / m_packagesManager->m_preparedPackages.size()) * (m_operatingIndex + progress / 100.)); Q_EMIT signalWholeProgressChanged(progressValue); Q_EMIT signalCurrentPacakgeProgressChanged(static_cast(progress)); }); connect(m_compProcessor.data(), &Compatible::CompatibleProcessController::processFinished, this, [this](bool success) { if (configWindow->isVisible()) { configWindow->hide(); configWindow->clearTexts(); } if (success) { refreshOperatingPackageStatus(Pkg::Success); } else { auto pkgPtr = m_compProcessor->currentPackage(); if (pkgPtr) { m_packageFailCode.insert(m_operatingPackageMd5, pkgPtr->errorCode()); m_packageFailReason.insert(m_operatingPackageMd5, pkgPtr->errorString()); if (Pkg::DigitalSignatureError == pkgPtr->errorCode()) { m_hierarchicalVerifyError = true; } if (Pkg::ConfigAuthCancel == pkgPtr->errorCode()) { // notify UI reset, cancel current flow m_workerStatus = WorkerPrepare; Q_EMIT signalAuthCancel(); refreshOperatingPackageStatus(Pkg::Failed); return; } } refreshOperatingPackageStatus(Pkg::Failed); } bumpInstallIndex(); }); } } bool DebListModel::installCompatiblePackage() { ensureCompatibleProcessor(); m_currentPackage = packagePtr(m_operatingIndex); return m_compProcessor->install(m_currentPackage); } bool DebListModel::uninstallCompatiblePackage() { ensureCompatibleProcessor(); m_currentPackage = packagePtr(m_operatingIndex); return m_compProcessor->uninstall(m_currentPackage); } void DebListModel::ensureImmutableProcessor() { if (!m_immProcessor) { m_immProcessor.reset(new Immutable::ImmutableProcessController); connect( m_immProcessor.data(), &Immutable::ImmutableProcessController::processOutput, this, [this](const QString &output) { Q_EMIT signalAppendOutputInfo(output); if (configWindow->isVisible()) { configWindow->appendTextEdit(output); } else if (m_immProcessor->needTemplates()) { configWindow->appendTextEdit(output); configWindow->show(); } }); connect(m_immProcessor.data(), &Immutable::ImmutableProcessController::progressChanged, this, [this](float progress) { const int progressValue = static_cast((100. / m_packagesManager->m_preparedPackages.size()) * (m_operatingIndex + progress / 100.)); Q_EMIT signalWholeProgressChanged(progressValue); Q_EMIT signalCurrentPacakgeProgressChanged(static_cast(progress)); }); connect(m_immProcessor.data(), &Immutable::ImmutableProcessController::processFinished, this, [this](bool success) { if (configWindow->isVisible()) { configWindow->hide(); configWindow->clearTexts(); } if (success) { refreshOperatingPackageStatus(Pkg::Success); } else { auto pkgPtr = m_immProcessor->currentPackage(); if (pkgPtr) { m_packageFailCode.insert(m_operatingPackageMd5, pkgPtr->errorCode()); m_packageFailReason.insert(m_operatingPackageMd5, pkgPtr->errorString()); if (Pkg::DigitalSignatureError == pkgPtr->errorCode()) { m_hierarchicalVerifyError = true; } if (Pkg::ConfigAuthCancel == pkgPtr->errorCode()) { // notify UI reset, cancel current flow m_workerStatus = WorkerPrepare; Q_EMIT signalAuthCancel(); refreshOperatingPackageStatus(Pkg::Failed); return; } } refreshOperatingPackageStatus(Pkg::Failed); } bumpInstallIndex(); }); } } bool DebListModel::installImmutablePackage() { ensureImmutableProcessor(); m_currentPackage = packagePtr(m_operatingIndex); return m_immProcessor->install(m_currentPackage); } bool DebListModel::uninstallImmutablePackage() { ensureImmutableProcessor(); m_currentPackage = packagePtr(m_operatingIndex); return m_immProcessor->uninstall(m_currentPackage); } Deb::DebPackage::Ptr DebListModel::packagePtr(int index) const { Deb::DebPackage::Ptr pkgPtr; if (0 <= index && index < m_packagesManager->m_packageMd5.size()) { const QByteArray md5 = m_packagesManager->m_packageMd5[index]; if (!m_packagePtrMap.contains(md5)) { const QString packagePath = m_packagesManager->m_preparedPackages[index]; pkgPtr = Deb::DebPackage::Ptr::create(packagePath); // temporary code: wait for use DebPackage replace scattered package data const_cast(this)->m_packagePtrMap.insert(md5, pkgPtr); } else { pkgPtr = m_packagePtrMap.value(md5); } } return pkgPtr; } Dialog::Dialog() {} void Dialog::keyPressEvent(QKeyEvent *event) { if (event->key() == Qt::Key_Escape) emit signalClosed(); } deepin-deb-installer-6.5.5/src/deb-installer/model/deblistmodel.h000066400000000000000000000360561474340456100247740ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef DEBLISTMODEL_H #define DEBLISTMODEL_H #include "manager/packagesmanager.h" #include "process/Pty.h" #include "abstract_package_list_model.h" #include "utils/deb_package.h" #include #include #include #include #include #include #include #include #include #include #include #include #include DWIDGET_USE_NAMESPACE class AptConfigMessage; namespace Compatible { class CompatibleProcessController; } namespace Immutable { class ImmutableProcessController; } class Dialog : public DDialog { Q_OBJECT public: explicit Dialog(); void keyPressEvent(QKeyEvent *event); signals: void signalClosed(); }; class DebListModel : public AbstractPackageListModel { Q_OBJECT public: explicit DebListModel(QObject *parent = nullptr); ~DebListModel() override; /** * @brief isDpkgRunning 判断当前dpkg 是否在运行 * @return */ static bool isDpkgRunning(); /** * @brief netErrors * @return the List of The Error infomations. * 无网络安装依赖时,库返回错误为FetechError 偶尔为CommitError * 此函数处理库返回CommitError时,网络错误的各种情况,如果错误信息中包含此列表中的信息,则判断为网络原因。 */ static const QStringList netErrors(); /** * @brief workerErrorString 根据安装失败的代码显示安装失败的原因。 * @param errorCode 库或自定义的安装失败代码 * @param errorInfo 库返回的或自定义的安装错误的原因 * @return 要显示的安装失败的原因 */ static const QString workerErrorString(const int errorCode, const QString &errorInfo); /** * @brief reset * 重置包的工作状态、安装状态 * 重置当前处理的下标装啊提 * 清空安装错误的缓存 * 重置packageManage的状态 */ void reset() override; /** * @brief resetFilestatus * 重置包的操作状态 * 清空安装错误原因的缓存 */ void resetFileStatus(); void resetInstallStatus() override; /** * @brief isReady 查看后端初始化的状态 * @return 后端是否准备就绪 */ bool isReady() const; /** * @brief preparedPackages 获取当前已经添加的包的列表 * @return 添加的包的列表 */ const QList preparedPackages() const; /** * @brief first 获取添加的第一个包 * @return 第一个包的index */ QModelIndex first() const; /** * @brief rowCount 当前行的数量 * @param parent * @return 当前包的数量 */ int rowCount(const QModelIndex &parent) const override; /** * @brief data 获取某一项的数据 * @param index 下表 * @param role 数据的角色 * @return */ QVariant data(const QModelIndex &index, int role) const override; bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override; /** * @brief isDevelopMode 是否是开发者模式 * @return */ bool isDevelopMode(); public: /** * @brief initPrepareStatus 初始化所有包的状态为Prepare */ void initPrepareStatus(); public: /** * @brief getInstallFileSize 获取要安装的包的数量 * @return 包的数量 */ int getInstallFileSize(); public: /** * @brief removePackage 删除某一个包 * @param idx 要删除的包的index */ void removePackage(const int idx) override; /** * @brief checkPackageDigitalSignature 查找指定包安装状态 * @param package_path 路径 */ Pkg::PackageInstallStatus checkInstallStatus(const QString &package_path) override; /** * @brief searchPackageInstallInfo 查找指定包依赖 * @param package_path 路径 */ Pkg::DependsStatus checkDependsStatus(const QString &package_path) override; /** * @brief searchPackageInstallInfo 查找指定包数字签名 * @param package_path 路径 */ int checkDigitalSignature(const QString &package_path); /** * @brief searchPackageInstallInfo 查找指定包信息 * @param package_path 路径 */ QStringList getPackageInfo(const QString &package_path) override; QString lastProcessError() override; bool containsSignatureFailed() const override; /** * @brief checkPackageValid 查找指定包信息 * @param package_path 路径 */ QString checkPackageValid(const QString &package_path) override; signals: /** * @brief signalPackageOperationChanged 包操作状态改变 * @param index 包的index * @param status 修改的状态 */ void signalPackageOperationChanged(const QModelIndex &index, int status) const; /** * @brief signalPackageDependsChanged 包的依赖状态改变 * @param index 包的index * @param status 修改后的状态 */ void signalPackageDependsChanged(const QModelIndex &index, int status) const; public slots: /** * @brief slotSetCurrentIndex 设置当前操作的index * @param idx 修改后的index */ void slotSetCurrentIndex(const QModelIndex &idx); /** * @brief slotInstallPackages 开始安装所有的包 */ bool slotInstallPackages() override; /** * @brief slotUninstallPackage 卸载某一个包 * @param index 包的index */ bool slotUninstallPackage(int index) override; /** * @brief slotAppendPackage 添加包 * @param package 添加的包的路径 */ void slotAppendPackage(const QStringList &packages) override; /** * @brief slotTransactionErrorOccurred 安装过程中出现错误 */ void slotTransactionErrorOccurred(); /** * @brief slotTransactionStatusChanged 安装状态出现改变 * @param TransactionStatus */ void slotTransactionStatusChanged(QApt::TransactionStatus TransactionStatus); /** * @brief slotDealDependResult 处理依赖安装的过程 * @param authType 授权类型 * @param dependIndex 依赖包的index(因为这个包的依赖不被满足) * @param dependName 发生依赖安装失败的依赖名称 */ void slotDealDependResult(int authType, int dependIndex, const QString &dependName); public slots: /** * @brief slotConfigReadOutput 处理配置包的输出并显示 */ void slotConfigReadOutput(const char *buffer, int length, bool isCommandExec); /** * @brief slotConfigInstallFinish 配置结束 * @param flag 配置安装的结果 */ void slotConfigInstallFinish(int flag); /** * @brief slotConfigInputWrite 配置的输入数据处理 * @param str 输入的数据(一般是输入的选项) */ void slotConfigInputWrite(const QString &str); /** * @brief slotCheckInstallStatus 根据命令返回的消息判断安装状态 * @param str 命令返回的安装信息 * 如果命令返回的信息是Cannot run program deepin-deb-installer-dependsInstall: No such file or directory * 意味着当前/usr/bin下没有deepin-deb-installer-dependsInstall命令,此版本有问题,需要重新安装deepin-deb-installer-dependsInstall命令 */ void slotCheckInstallStatus(const QString &str); private slots: /** * @brief slotUpWrongStatusRow 安装完成后对安装失败的包上滚 其中包括各种状态的变更 */ void slotUpWrongStatusRow(); /** * @brief slotTransactionOutput * 修改当前包的工作状态 */ void slotTransactionOutput(); /** * @brief slotTransactionFinished * 当前包安装结束 */ void slotTransactionFinished(); /** * @brief slotDependsInstallTransactionFinished(); * 当前包依赖安装结束 * 依赖安装成功,安装当前包 * 依赖安装失败,记录失败原因,安装下一个包 */ void slotDependsInstallTransactionFinished(); /** * @brief slotUninstallFinished * 卸载结束槽函数 * 切换工作状态 * 切换操作状态 * 发送卸载结束信号 */ void slotUninstallFinished(); /** * @brief slotNoDigitalSignature 无数字签名 */ void slotNoDigitalSignature(); /** * @brief slotDigitalSignatureError 数字签名校验失败 */ void slotDigitalSignatureError(); /** * @brief showDevelopModeWindow 打开控制中心通用界面 */ void slotShowDevelopModeWindow(); /** * @brief slotShowProhibitWindow 应用在域管黑名单中,无法安装 */ void slotShowProhibitWindow(); private: /** * @brief setEndEnable 授权框取消,按钮启用 */ void setEndEnable(); /** * @brief checkBoxStatus 检查授权框的弹出状态,判断当前按钮是否需要被禁用 */ void checkBoxStatus(); /** * @brief bumpInstallIndex 安装包整体的流程控制 * 安装完成上一个之后 index 增加 * 全部安装完成之后 发送安装完成信号 */ void bumpInstallIndex(); /** * @brief installNextDeb * 判断操作系统的状态,判断签名的状态 * 检查当前包是否需要配置 * 安装包 */ void installNextDeb(); /** * @brief installDebs 安装单个包。 */ void installDebs(); /** * @brief refreshOperatingPackageStatus 刷新当前操作的包的操作状态 * @param oprationStatus 要修改的操作状态 */ void refreshOperatingPackageStatus(Pkg::PackageOperationStatus oprationStatus); /** * @brief packageFailedReason 获取包安装失败的原因 * @param idx 包的下标 * @return 包失败原因的描述 */ QString packageFailedReason(const int idx) const; /** * @brief initRowStatus 初始化每一个项的 操作状态 */ void initRowStatus(); private: /** * @brief checkDigitalSignature 检查数字签名 * @return 检查当前包是否有数字签名 */ bool checkDigitalSignature(); /** * @brief showNoDigitalErrWindow 弹出无数字签名的错误弹窗 */ void showNoDigitalErrWindow(); /** * @brief showNoDigitalErrWindow 弹出数字签名校验错误的错误弹窗 * @param recordError 是否记录错误信息,引入分级验签后,允许只提示验签错误信息, * 不涉及状态切换及更新记录 */ void showDigitalErrWindow(bool recordError = true); /** * @brief showDevelopDigitalErrWindow 开发者模式下弹出数字签名无效的弹窗 */ void showDevelopDigitalErrWindow(Pkg::ErrorCode code); /** * @brief showNoDigitalErrWindowInDdimProcess DDIM流程下的签名错误弹窗 */ void showNoDigitalErrWindowInDdimProcess(void (DebListModel::*failedFunction)()); /** * @brief showProhibitWindow 弹出数字签名校验错误的错误弹窗 */ void showProhibitWindow(); /** * @brief 检查当前将要安装的包是否在黑名单中。 * * @return true 当前要安装的包在黑名单中 * @return false 当前要安装的包不在黑名单中 */ bool checkBlackListApplication(); /** * @brief 数字签名校验失败 弹窗处理的槽函数 * * @param errorCode 错误原因代码 */ void digitalVerifyFailed(Pkg::ErrorCode errorCode); private: /** * @brief enableTitleBarFocus * 启用TitleBar焦点切换策略 */ void enableTitleBarFocus(); /** * @brief Get the Package Md5 object * * @param packagesMD5 所有包的md5的列表 */ void getPackageMd5(const QList &packagesMD5); //// 文件移动、删除、修改检查 private: /** * @brief recheckPackagePath 重新检查文件路径 * @param packagePath 当前需要检查的文件路径 * @return 检查的结果 * true : 文件存在 * false: 文件不存在 */ bool recheckPackagePath(const QString &packagePath) const; private: /** * @brief initConnections 初始化信号与槽的链接 */ void initConnections(); /** * @brief initInstallConnecions 链接安装过程中的信号与槽 */ void initInstallConnections(); /** * @brief initAppendConnection 链接添加过程中的信号与槽 */ void initAppendConnection(); /** * @brief initRefreshPageConnecions 链接页面刷新的信号与槽 */ void initRefreshPageConnecions(); /** @brief printDependsChanges 打印安装的依赖包变更 */ void printDependsChanges(); QString itemToolTips(int index) const; // Compatbile interface // compatible mode only support single package install/uninstall. [[nodiscard]] inline bool supportCompatible() const { return 1 == m_packagesManager->m_preparedPackages.size(); } void ensureCompatibleProcessor(); [[nodiscard]] bool installCompatiblePackage(); [[nodiscard]] bool uninstallCompatiblePackage(); // Immutable interface void ensureImmutableProcessor(); [[nodiscard]] bool installImmutablePackage(); [[nodiscard]] bool uninstallImmutablePackage(); Deb::DebPackage::Ptr packagePtr(int index) const; private: // 当前正在操作的index int m_operatingIndex = 0; // 当前正在操作的状态的index int m_operatingStatusIndex = 0; // 当前正在处理的包的md5 QByteArray m_operatingPackageMd5 = nullptr; // 当前的index QModelIndex m_currentIdx; // 后端类 PackagesManager *m_packagesManager = nullptr; // 当前正在运行的Trans QPointer m_currentTransaction; // 所有包的操作状态Map QMap m_packageOperateStatus = {}; // FailCode 错误代码 ,trans返回的错误代码 QMap m_packageFailCode = {}; // FailReason , trans返回的详细错误信息 QMap m_packageFailReason = {}; QList m_packageMd5 = {}; // 配置安装进程 Konsole::Pty *m_procInstallConfig = {}; QString m_brokenDepend = ""; // 开发者模式的标志变量 // 部分系统版本无需签名验证,默认开发者模式 bool m_isDevelopMode = true; bool m_isDigitalVerify = false; AptConfigMessage *configWindow = nullptr; // 当前安装是否存在分级管控签名验证失败 bool m_hierarchicalVerifyError = false; // Compatible Deb::DebPackage::Ptr m_currentPackage; QMap m_packagePtrMap; QScopedPointer m_compProcessor; // immutable QScopedPointer m_immProcessor; }; #endif // DEBLISTMODEL_H deepin-deb-installer-6.5.5/src/deb-installer/model/dependgraph.cpp000066400000000000000000000117071474340456100251350ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "dependgraph.h" #include #include struct DependGraphNode { QString packageName; QString packagePath; QByteArray md5; QList depends; std::vector dependsInGraph; }; DependGraph::~DependGraph() { reset(); } void DependGraph::addNode(const QString &packagePath, const QByteArray &md5, const QString &packageName, const QList &depends) { auto node = new DependGraphNode; node->packagePath = packagePath; node->packageName = packageName; node->depends = depends; node->md5 = md5; // 建立依赖关系图 std::vector dependsInGraph; // 1.搜索当前节点的潜在依赖关系 for (auto &eachDepend : depends) { for (auto &eachOrDepend : eachDepend) { auto pkgName = eachOrDepend.packageName(); auto iter = std::find_if( nodes.begin(), nodes.end(), [pkgName](const auto &eachNode) { return eachNode->packageName == pkgName; }); if (iter != nodes.end()) { dependsInGraph.push_back(*iter); } } } // 2.为其他节点添加潜在依赖关系 for (auto &eachNode : nodes) { bool finded = false; for (auto &eachDepends : eachNode->depends) { for (auto &eachOrDepend : eachDepends) { if (eachOrDepend.packageName() == packageName) { eachNode->dependsInGraph.push_back(node); break; } } if (finded) { break; } } } node->dependsInGraph = dependsInGraph; nodes.push_back(node); } bool isCircularDepend(DependGraphNode *currentNode, DependGraphNode *dependNode) { auto iter = std::find_if(dependNode->dependsInGraph.begin(), dependNode->dependsInGraph.end(), [currentNode](DependGraphNode *node) { return currentNode->packageName == node->packageName; }); return iter != dependNode->dependsInGraph.end(); } void addDepend(QList &paths, QList &md5s, QStringList &result, DependGraphNode *node) { if (result.contains(node->packageName)) { return; } for (auto &eachDependNode : node->dependsInGraph) { if (eachDependNode->dependsInGraph.empty()) { if (result.contains(eachDependNode->packageName)) { continue; } result.push_back(eachDependNode->packageName); paths.push_back(eachDependNode->packagePath); md5s.push_back(eachDependNode->md5); } else { if (isCircularDepend(node, eachDependNode)) { // 检查循环依赖 qWarning() << "Detect circular depend: lhs:" << node->packageName << "rhs:" << eachDependNode->packageName; continue; } addDepend(paths, md5s, result, eachDependNode); if (result.contains(eachDependNode->packageName)) { continue; } result.push_back(eachDependNode->packageName); paths.push_back(eachDependNode->packagePath); md5s.push_back(eachDependNode->md5); } } } std::pair, QList> DependGraph::getBestInstallQueue() const { QStringList result; QList paths; QList md5s; for (size_t i = 0; i != nodes.size(); ++i) { if (result.contains(nodes[i]->packageName)) { continue; } // 添加前置依赖 addDepend(paths, md5s, result, nodes[i]); // 添加本体 if (result.contains(nodes[i]->packageName)) { continue; } result.push_back(nodes[i]->packageName); paths.push_back(nodes[i]->packagePath); md5s.push_back(nodes[i]->md5); } return std::make_pair(paths, md5s); } void DependGraph::reset() { for (auto &node : nodes) { delete node; } nodes.clear(); } void DependGraph::remove(const QByteArray &md5) { for (size_t i = 0; i != nodes.size(); ++i) { if (nodes[i]->md5 == md5) { // 删除包需要更新依赖图(bug 179891) removeInGraph(nodes[i]); delete nodes[i]; nodes.erase(nodes.begin() + static_cast(i)); break; } } } void DependGraph::removeInGraph(const DependGraphNode *dependnode) { // 清除当前节点潜在依赖 for (auto eachNode : nodes) { for (size_t i = 0; i != eachNode->dependsInGraph.size(); ++i) { if (eachNode->dependsInGraph[i] == dependnode) { eachNode->dependsInGraph.erase(eachNode->dependsInGraph.begin() + static_cast(i)); break; } } } } deepin-deb-installer-6.5.5/src/deb-installer/model/dependgraph.h000066400000000000000000000014151474340456100245750ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #pragma once #include #include #include #include struct DependGraphNode; class DependGraph { public: DependGraph() = default; ~DependGraph(); void addNode(const QString &packagePath, const QByteArray &md5, const QString &packageName, const QList &depends); std::pair, QList> getBestInstallQueue() const; void reset(); void remove(const QByteArray &md5); protected: void removeInGraph(const DependGraphNode *dependnode); private: std::vector nodes; }; deepin-deb-installer-6.5.5/src/deb-installer/model/packageanalyzer.cpp000066400000000000000000000304421474340456100260120ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "packageanalyzer.h" #include "singleInstallerApplication.h" #include "compatible/compatible_backend.h" #include #include #include #include #include #include PackageAnalyzer &PackageAnalyzer::instance() { static PackageAnalyzer analyzer; while (analyzer.backendInInit) { QThread::msleep(10); QApplication::processEvents(); } return analyzer; } PackageAnalyzer::PackageAnalyzer(QObject *parent) : QObject(parent) { backendInInit = false; inPkgAnalyze = false; uiExited = false; qRegisterMetaType>("QList"); } void PackageAnalyzer::setUiExit() { uiExited = true; } void PackageAnalyzer::initBackend() { if (backend != nullptr) { return; } emit runBackend(true); backendInInit = true; while (SingleInstallerApplication::BackendIsRunningInit) { QThread::msleep(10); } SingleInstallerApplication::BackendIsRunningInit = true; // init compatible backend with deb backend asynchronous if (CompBackend::instance()->compatibleExists()) { CompBackend::instance()->initBackend(); } backend = new QApt::Backend; bool initSuccess = backend->init(); SingleInstallerApplication::BackendIsRunningInit = false; if (!initSuccess) { qFatal("%s", backend->initErrorMessage().toStdString().c_str()); } archs = backend->architectures(); archs.append("all"); archs.append("any"); backendInInit = false; emit runBackend(false); } bool PackageAnalyzer::isBackendReady() { return backend != nullptr; } QApt::Backend *PackageAnalyzer::backendPtr() { return backend; } QPair PackageAnalyzer::packageInstallStatus(const DebIr &ir) const { Pkg::PackageInstallStatus status; QString installedVersion; do { if (!ir.isValid) { status = Pkg::NotInstalled; break; } QApt::Package *package = packageWithArch(ir.packageName, ir.architecture, ""); if (package == nullptr) { status = Pkg::NotInstalled; break; } installedVersion = package->installedVersion(); if (installedVersion.isEmpty()) { status = Pkg::NotInstalled; break; } int result = QApt::Package::compareVersion(ir.version, installedVersion); if (result == 0) { status = Pkg::InstalledSameVersion; } else if (result < 0) { status = Pkg::InstalledLaterVersion; } else { status = Pkg::InstalledEarlierVersion; } } while (0); return {status, installedVersion}; } QApt::Package * PackageAnalyzer::packageWithArch(const QString &packageName, const QString &sysArch, const QString &annotation) const { QApt::Package *package = backend->package(packageName + resolvMultiArchAnnotation(annotation, sysArch, QApt::InvalidMultiArchType)); if (!package) { package = backend->package(packageName); } if (package) { return package; } for (QString arch : backend->architectures()) { package = backend->package(packageName + ":" + arch); if (package) return package; } for (auto *virtualPackage : backend->availablePackages()) { if (virtualPackage->name() != packageName && virtualPackage->providesList().contains(packageName)) { return packageWithArch(virtualPackage->name(), sysArch, annotation); } } return nullptr; } QString PackageAnalyzer::resolvMultiArchAnnotation(const QString &annotation, const QString &debArch, int multiArchType) const { if ("native" == annotation || "any" == annotation) { return QString(); } if ("all" == annotation) { return QString(); } if (multiArchType == QApt::MultiArchForeign) { return QString(); } QString arch; if (annotation.isEmpty()) { arch = debArch; } else { arch = annotation; } if (!arch.startsWith(':') && !arch.isEmpty()) { return arch.prepend(':'); } else { return arch; } } bool PackageAnalyzer::virtualPackageIsExist(const QString &virtualPackageName) const { // 由于没法搜索虚拟包,此处只能进行全包遍历 for (auto *package : backend->availablePackages()) { if (package->name() != virtualPackageName && package->providesList().contains(virtualPackageName)) { return true; } } return false; } bool PackageAnalyzer::versionMatched(const QString &lhs, const QString &rhs, QApt::RelationType relationType) const { if (relationType == QApt::NoOperand) { return true; } int compareResult = QApt::Package::compareVersion(lhs, rhs); bool isMatched = false; if (compareResult == 0) { // lhs == rhs if (relationType == QApt::LessOrEqual || relationType == QApt::GreaterOrEqual || relationType == QApt::Equals) { isMatched = true; } } else if (compareResult < 0) { // lhs < rhs if (relationType == QApt::GreaterOrEqual || relationType == QApt::GreaterThan || relationType == QApt::NotEqual) { isMatched = true; } } else { // lhs > rhs if (relationType == QApt::LessOrEqual || relationType == QApt::LessThan || relationType == QApt::NotEqual) { isMatched = true; } } return isMatched; } bool PackageAnalyzer::dependIsReady(const QApt::DependencyItem &depend) const { // 1.每个item内部为或关系,只要有一个满足条件,即可认为该依赖已就绪 bool isReady = false; for (const auto &item : depend) { // 2.简单检查item是否安装 // 2.1获取基本数据 auto name = item.packageName(); auto version = item.packageVersion(); auto type = item.relationType(); auto arch = item.multiArchAnnotation(); // 2.2获取包状态 auto package = packageWithArch(name, arch, ""); if (package != nullptr && package->isInstalled()) { // 如果已安装,则检查版本情况 auto pkgVersion = package->version(); if (versionMatched(version, pkgVersion, type)) { isReady = true; break; } } else if (virtualPackageIsExist(name)) { // 3.如果没有安装,则检查其作为虚拟包是否已安装 isReady = true; break; } } return isReady; } QList PackageAnalyzer::debDependNotInstalled(const DebIr &ir) const { // 获取依赖项 auto debDepends = ir.depends; // 获取安装状态,已安装的就丢出去 for (int i = 0; i != debDepends.size(); ++i) { if (dependIsReady(debDepends.at(i))) { debDepends.removeAt(i); --i; } } return debDepends; } void PackageAnalyzer::startPkgAnalyze(int total) { if (total > 0) { pkgWaitToAnalyzeTotal = total; alreadyAnalyzed = 0; } } void PackageAnalyzer::stopPkgAnalyze() { pkgWaitToAnalyzeTotal = -1; alreadyAnalyzed = 0; emit runAnalyzeDeb(false, 0, 0); } QList PackageAnalyzer::analyzeDebFiles(const QFileInfoList &infos, QSet *md5s, QStringList *appNames, bool excludeArchNotMatched, bool excludeInstalledOrLaterVersion) { QList irs; QList appNameNeedRemove; for (int i = 0; i != infos.size(); ++i) { qWarning() << __FUNCTION__ << "analyze deb file:" << infos[i].absoluteFilePath(); if (uiExited) { break; } if (pkgWaitToAnalyzeTotal > 0) { emit runAnalyzeDeb(true, alreadyAnalyzed++, pkgWaitToAnalyzeTotal); } auto path = infos[i].absoluteFilePath(); QApt::DebFile deb(path); if (!deb.isValid()) { // 无效包直接去除 appNameNeedRemove.append(i); continue; } // 如果需要丢掉不匹配的架构 bool archMatched = supportArch(deb.architecture()); if (excludeArchNotMatched && !archMatched) { appNameNeedRemove.append(i); continue; } // 如果需要丢掉已安装或已安装高版本 if (excludeInstalledOrLaterVersion) { auto pkg = packageWithArch(deb.packageName(), deb.architecture(), ""); if (pkg != nullptr && pkg->isInstalled()) { if (QApt::Package::compareVersion(pkg->version(), deb.version()) >= 0) { appNameNeedRemove.append(i); continue; } } } auto packageMd5 = deb.md5Sum(); if (md5s->contains(packageMd5)) { // 包已存在,去重 appNameNeedRemove.append(i); continue; } else { md5s->insert(packageMd5); } // 生成ir DebIr ir; ir.filePath = path; ir.version = deb.version(); ir.shortDescription = deb.shortDescription(); ir.packageName = deb.packageName(); ir.architecture = deb.architecture(); ir.archMatched = archMatched; ir.md5 = deb.md5Sum(); ir.isValid = deb.isValid(); ir.depends = deb.depends(); // TODO:QApt不支持从deb内部提取提供的虚拟包 irs.push_back(ir); } if (appNames != nullptr && !uiExited) { for (int i = appNameNeedRemove.size() - 1; i != -1; --i) { appNames->removeAt(appNameNeedRemove[i]); } } return irs; } void PackageAnalyzer::chooseDebFromDepend(QList *result, QSet *md5s, const QList &depends, const QList &debIrs) const { for (const auto &depend : depends) { // 对每一个不满足的依赖项 bool finded = false; for (const auto &item : depend) { // 对每一个或依赖 auto name = item.packageName(); auto version = item.packageVersion(); auto type = item.relationType(); for (const auto &ir : debIrs) { // 对每一个候选包 if (ir.packageName == name && versionMatched(version, ir.version, type)) { auto depdeps = debDependNotInstalled(ir); // 依赖包的依赖 if (!depdeps.isEmpty()) { // 有未就绪的依赖,在依赖包集合里面执行递归搜索 chooseDebFromDepend(result, md5s, depdeps, debIrs); } if (!md5s->contains(ir.md5)) { md5s->insert(ir.md5); result->push_back(ir); } finded = true; break; } } if (finded) { break; } } } } QList PackageAnalyzer::bestInstallQueue(const QList &installIrs, const QList &dependIrs) { // TODO:后面重构的时候需要实现安装顺序计算,本轮需求仅实现抽取需要的包 // 1.检查依赖是否已就绪,将未就绪的项抽取出来 QList installDeps; // 记录每一个安装项的依赖情况 for (const auto &installIr : installIrs) { qWarning() << __FUNCTION__ << "analyze deb file:" << installIr.filePath; if (uiExited) { return QList(); } if (pkgWaitToAnalyzeTotal > 0) { emit runAnalyzeDeb(true, alreadyAnalyzed++, pkgWaitToAnalyzeTotal); } auto notInstallDepends = debDependNotInstalled(installIr); if (!notInstallDepends.isEmpty()) { installDeps.append(notInstallDepends); } } // 2.从依赖包集合中抽取目前尚未就绪的项 QList realDepends; QSet md5s; chooseDebFromDepend(&realDepends, &md5s, installDeps, dependIrs); // 3.融合并返回结果 return realDepends + installIrs; } deepin-deb-installer-6.5.5/src/deb-installer/model/packageanalyzer.h000066400000000000000000000067631474340456100254700ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef PACKAGEANALYZER_H #define PACKAGEANALYZER_H #include #include #include "model/packageselectmodel.h" #include "utils/package_defines.h" namespace QApt { class Backend; class Package; } // namespace QApt class PackageAnalyzer : public QObject { Q_OBJECT public: static PackageAnalyzer &instance(); // 异步信号 // 告知外部的UI已经退出了 void setUiExit(); // 初始化阶段 void initBackend(); bool isBackendReady(); QApt::Backend *backendPtr(); // 选择阶段 // 当前APT支持的架构 bool supportArch(const QString &arch) const { return archs.contains(arch); } inline QStringList supportArchList() const { return archs; } // 软件包安装状态,first:安装状态,secend:已安装版本(当状态不为NotInstalled时有效) QPair packageInstallStatus(const DebIr &ir) const; // 分析包结构 // 启动/停止包分析,内部会根据分析进度对外发送信号 void startPkgAnalyze(int total); void stopPkgAnalyze(); // 参数:文件信息,md5码过滤集,应用名,是否去除架构不满足项,是否去除已安装或安装了高版本的项 QList analyzeDebFiles(const QFileInfoList &infos, QSet *md5s, QStringList *appNames, bool excludeArchNotMatched, bool excludeInstalledOrLaterVersion); // 提取未安装依赖,传入包名和对应的架构,返回未安装的依赖列表 QList debDependNotInstalled(const DebIr &ir) const; // 依赖是否就绪 bool dependIsReady(const QApt::DependencyItem &depend) const; // 虚拟包是否已安装 bool virtualPackageIsExist(const QString &virtualPackageName) const; // 版本号是否匹配 // rhs是否以relationType的方式匹配lhs bool versionMatched(const QString &lhs, const QString &rhs, QApt::RelationType relationType) const; // 抽取需要的依赖包 void chooseDebFromDepend(QList *result, QSet *md5s, const QList &depends, const QList &debIrs) const; // 返回最佳安装顺序 QList bestInstallQueue(const QList &installIrs, const QList &dependIrs); signals: // 正在初始化后端,true:启动,false:完成 void runBackend(bool inProcess); // 正在分析包情况 void runAnalyzeDeb(bool inProcess, int currentRote, int pkgCount); private: QApt::Package *packageWithArch(const QString &packageName, const QString &sysArch, const QString &annotation) const; QString resolvMultiArchAnnotation(const QString &annotation, const QString &debArch, int multiArchType) const; explicit PackageAnalyzer(QObject *parent = nullptr); PackageAnalyzer(const PackageAnalyzer &) = delete; PackageAnalyzer operator=(const PackageAnalyzer &) = delete; QStringList archs; QApt::Backend *backend = nullptr; std::atomic_bool backendInInit; std::atomic_bool inPkgAnalyze; int pkgWaitToAnalyzeTotal = -1; int alreadyAnalyzed = 0; std::atomic_bool uiExited; }; Q_DECLARE_METATYPE(QList); #endif // PACKAGEANALYZER_H deepin-deb-installer-6.5.5/src/deb-installer/model/packagelistview.cpp000066400000000000000000000252121474340456100260320ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "packagelistview.h" #include "model/abstract_package_list_model.h" #include "utils/utils.h" #include "singleInstallerApplication.h" #include #include #include PackagesListView::PackagesListView(QWidget *parent) : DListView(parent) , m_bLeftMouse(false) , m_rightMenu(nullptr) { initUI(); // 初始化界面参数 initConnections(); // 初始化链接 initRightContextMenu(); // 初始化右键菜单 initShortcuts(); // 添加快捷删除键 } /** * @brief PackagesListView::initUI 初始化listView参数 */ void PackagesListView::initUI() { QScroller::grabGesture(this, QScroller::TouchGesture); // 添加触控屏触控 setVerticalScrollMode(ScrollPerPixel); // 设置垂直滚动的模式 setSelectionMode(QListView::SingleSelection); // 只允许单选 setAutoScroll(true); // 允许自动滚动 setMouseTracking(true); // 设置鼠标跟踪 setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn); // 滚动条一直存在 } /** * @brief PackagesListView::initConnections 初始化链接 */ void PackagesListView::initConnections() { // 鼠标右键点击,根据条件判断是否需要弹出右键菜单 connect(this, &PackagesListView::signalShowContextMenu, this, &PackagesListView::slotListViewShowContextMenu, Qt::ConnectionType::QueuedConnection); } /** * @brief PackagesListView::initShortcuts 添加快捷删除键 */ void PackagesListView::initShortcuts() { if (SingleInstallerApplication::mode == SingleInstallerApplication::NormalChannel) { QShortcut *deleteShortcut = new QShortcut(QKeySequence::Delete, this); // 初始化快捷键 deleteShortcut->setContext(Qt::ApplicationShortcut); // 设置快捷键的显示提示 connect(deleteShortcut, &QShortcut::activated, this, &PackagesListView::slotShortcutDeleteAction); // 链接快捷键 } } /** * @brief PackagesListView::mousePressEvent 鼠标按下事件 * @param event * 如果左键按下,则置标志位为true * 解决后续右键菜单左键取消的问题 */ void PackagesListView::mousePressEvent(QMouseEvent *event) { if (event->button() == Qt::LeftButton) { // 当前检测到鼠标左键按下 m_bLeftMouse = true; } else { m_bLeftMouse = false; // 当前按下的不是左键 } DListView::mousePressEvent(event); } /** * @brief PackagesListView::mouseReleaseEvent 鼠标释放事件 * @param event * 判断当前model是否准备就绪 */ void PackagesListView::mouseReleaseEvent(QMouseEvent *event) { AbstractPackageListModel *listModel = qobject_cast(this->model()); // 获取debListModel if (!listModel->isWorkerPrepare()) { // 当前model未就绪 return; } emit signalCurrentIndexRow(m_currentIndex); DListView::mouseReleaseEvent(event); } /** * @brief PackagesListView::setSelection 设置选中 * @param rect * @param command */ void PackagesListView::setSelection(const QRect &rect, QItemSelectionModel::SelectionFlags command) { DListView::setSelection(rect, command); // 转发消息 QPoint clickPoint(rect.x(), rect.y()); QModelIndex modelIndex = indexAt(clickPoint); m_highlightIndex = modelIndex; m_currModelIndex = m_highlightIndex; if (!m_bLeftMouse) { m_bShortcutDelete = false; // 不允许删除 emit signalShowContextMenu(modelIndex); // 显示右键菜单 } else { m_bShortcutDelete = true; } } /** * @brief PackagesListView::keyPressEvent 键盘按键按下 * @param event */ void PackagesListView::keyPressEvent(QKeyEvent *event) { m_bLeftMouse = true; // 添加 右键菜单快捷键 if ((event->modifiers() == Qt::AltModifier) && (event->key() == Qt::Key_M)) { if (this->selectionModel()->currentIndex().row() > -1) { m_bShortcutDelete = false; // 增加右键菜单的调出判断,当前有焦点且状态为允许右键菜单出现 if (this->hasFocus() && m_bIsRightMenuShow) { // 右键菜单的触发位置为当前item的位置。此前为鼠标的位置。 m_rightMenu->exec(mapToGlobal(m_rightMenuPos)); } } } AbstractPackageListModel *listModel = qobject_cast(this->model()); // 获取debListModel if (listModel) { if (listModel->isWorkerPrepare()) { // 当前model未就绪 if (event->key() == Qt::Key_Down) { // 默认tab键获取焦点行是第一行,按down键行号+1,但不超过listview的最大行数 m_currentIndex = qMin(m_currentIndex + 1, this->model()->rowCount() - 1); emit signalCurrentIndexRow(m_currentIndex); } if (event->key() == Qt::Key_Up) { // 按up键行号-1,但不小于0 m_currentIndex = qMax(m_currentIndex - 1, 0); emit signalCurrentIndexRow(m_currentIndex); } } } DListView::keyPressEvent(event); } /** * @brief PackagesListView::initRightContextMenu 初始化右键菜单 */ void PackagesListView::initRightContextMenu() { if (nullptr == m_rightMenu && SingleInstallerApplication::mode == SingleInstallerApplication::NormalChannel) { // 当前右键菜单未初始化 m_rightMenu = new DMenu(this); // 初始化右键菜单 // 给右键菜单添加快捷键Delete QAction *deleteAction = new QAction(tr("Delete"), this); m_rightMenu->addAction(deleteAction); // 右键菜单添加action connect(deleteAction, &QAction::triggered, this, &PackagesListView::slotRightMenuDeleteAction); // action 添加链接事件 } } /** * @brief PackagesListView::onListViewShowContextMenu 显示右键菜单 * @param index */ void PackagesListView::slotListViewShowContextMenu(QModelIndex index) { Q_UNUSED(index) AbstractPackageListModel *listModel = qobject_cast(this->model()); // 获取debListModel if (listModel) { if (listModel->isWorkerPrepare()) // 当前model未就绪 emit signalCurrentIndexRow(index.row()); } m_bShortcutDelete = false; // 右键菜单显示时不允许使用快捷键删除 m_currModelIndex = index; // 修改右键菜单的调出判断,当前有焦点且状态为允许右键菜单出现 if (m_bIsRightMenuShow && m_rightMenu != nullptr) { // 在当前鼠标位置显示右键菜单 m_rightMenu->exec(QCursor::pos()); } } /** * @brief PackagesListView::onShortcutDeleteAction 快捷键删除 */ void PackagesListView::slotShortcutDeleteAction() { // fix bug: 42602 添加多个deb包到软件包安装器,选择列表中任一应用,连续多次点击delete崩溃 if (-1 == m_currModelIndex.row() || m_rightMenu->isVisible() || this->count() == 1) { return; } // fix bug: 42602 添加多个deb包到软件包安装器,选择列表中任一应用,连续多次点击delete崩溃 // fix bug: 44901 https://pms.uniontech.com/zentao/bug-view-44901.htm // 只删除当前选中的项 if (m_currModelIndex.row() < this->count() && this->selectionModel()->selectedIndexes().contains(m_currModelIndex)) emit signalRemoveItemClicked(m_currModelIndex); } /** * @brief PackagesListView::onRightMenuDeleteAction 右键菜单删除选中的项 */ void PackagesListView::slotRightMenuDeleteAction() { if (-1 == m_currModelIndex.row()) { return; } emit signalRemoveItemClicked(m_currModelIndex); } /** * @brief PackagesListView::paintEvent 获取当前index * @param event * 定位右键菜单弹出的位置 */ void PackagesListView::paintEvent(QPaintEvent *event) { // 获取currentIndex并保存,用于右键菜单的定位。 m_currentIndex = this->currentIndex().row(); DListView::paintEvent(event); } /** * @brief PackagesListView::getPos * @param rect 某一个Item的rect * @param index Item的index.row() * * 获取某一个Item的rect,与index。用于保存位置参数触发右键菜单 */ void PackagesListView::slotGetPos(QRect rect, int index) { if (index == m_currentIndex) { // 获取当前项右键菜单出现的位置 m_rightMenuPos.setX(rect.x() + rect.width() - 162); m_rightMenuPos.setY(rect.y() + rect.height() / 2); } } /** * @brief PackagesListView::setRightMenuShowStatus 设置是否可以显示右键菜单 * @param isShow */ void PackagesListView::setRightMenuShowStatus(bool isShow) { m_bIsRightMenuShow = isShow; // 设置右键菜单是否显示的标识位 } /** * @brief PackagesListView::focusInEvent 焦点FocusIn事件 * @param event * 当焦点切换到PackListView时,默认选中第一项。 */ void PackagesListView::focusInEvent(QFocusEvent *event) { if (event->reason() == Qt::TabFocusReason) { // tab焦点 if (this->count() > 0) { m_currModelIndex = this->model()->index(0, 0); this->setCurrentIndex(m_currModelIndex); // 存在焦点时,默认选入第一项 m_currentIndex = 0; AbstractPackageListModel *listModel = qobject_cast(this->model()); // 获取debListModel if (listModel) { if (listModel->isWorkerPrepare()) // 当前model未就绪 emit signalCurrentIndexRow(0); } } } } void PackagesListView::focusOutEvent(QFocusEvent *event) { // not change focus index when the right menu pop-up. if (event->reason() != Qt::PopupFocusReason) { this->clearSelection(); m_currentIndex = -1; m_currModelIndex = this->model()->index(-1, -1); emit signalCurrentIndexRow(-1); } DListView::focusOutEvent(event); } /** * @brief event 事件 */ bool PackagesListView::event(QEvent *event) { // 字体变化事件 if (event->type() == QEvent::FontChange) { qInfo() << DFontSizeManager::fontPixelSize(qGuiApp->font()); if (DFontSizeManager::fontPixelSize(qGuiApp->font()) <= 13) { // 当前字体大小是否小于13 emit signalChangeItemHeight(50 - 2 * (13 - DFontSizeManager::fontPixelSize(qGuiApp->font()))); } else { emit signalChangeItemHeight(52 + 2 * (DFontSizeManager::fontPixelSize(qGuiApp->font()) - 13)); } } return DListView::event(event); } deepin-deb-installer-6.5.5/src/deb-installer/model/packagelistview.h000066400000000000000000000104361474340456100255010ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef PACKAGESLISTVIEW_H #define PACKAGESLISTVIEW_H #include #include #include #include #include DWIDGET_USE_NAMESPACE class PackagesListView : public DListView { Q_OBJECT public: explicit PackagesListView(QWidget *parent = nullptr); /** * @brief setRightMenuShowStatus 根据安装进程来设置是否显示右键菜单 * @param isShow 是否显示右键菜单 */ void setRightMenuShowStatus(bool isShow); signals: /** * @brief signalChangeItemHeight 设置item高度 * @param height item高度 */ void signalChangeItemHeight(int height); /** * @brief signalShowContextMenu 显示右键菜单 * @param index 显示右键菜单的index */ void signalShowContextMenu(QModelIndex index); /** * @brief signalRemoveItemClicked 删除该item * @param index 要删除的item的index */ void signalRemoveItemClicked(QModelIndex index); /** * @brief signalCurrentIndexRow 当前选中行 * @param row 行号 */ void signalCurrentIndexRow(int row); public slots: /** * @brief slotGetPos 获取到的当前Item的位置和row * @param rect 当前item的rect * @param index 当前item的下标 */ void slotGetPos(QRect rect, int index); // 获取到的当前Item的位置和row protected: /** * @brief mousePressEvent 鼠标按下事件 * 如果是左键按下,如果右键菜单出现,则取消右键菜单 */ void mousePressEvent(QMouseEvent *event) override; /** * @brief mouseReleaseEvent 鼠标释放事件 * @param event */ void mouseReleaseEvent(QMouseEvent *event) override; /** * @brief setSelection 选中事件 * @param rect * @param command * 选中时,允许跳出右键菜单。置标志位为true */ void setSelection(const QRect &rect, QItemSelectionModel::SelectionFlags command) override; /** * @brief keyPressEvent 键盘按下事件 * @param event * 添加alt+m 快捷键触发右键菜单 */ void keyPressEvent(QKeyEvent *event) override; /** * @brief paintEvent 绘制事件 * @param event */ void paintEvent(QPaintEvent *event) override; /** * @brief focusInEvent 焦点进入事件 * @param event * 当焦点切换到当前控件时,默认选中第一项。 */ void focusInEvent(QFocusEvent *event) override; void focusOutEvent(QFocusEvent *event) override; /** * @brief event 事件 */ virtual bool event(QEvent *event) override; private: /** * @brief initUI * 初始化 listview的各个属性参数 */ void initUI(); /** * @brief initConnections * 链接listView的信号和槽 */ void initConnections(); /** * @brief initRightContextMenu * 初始化右键菜单 */ void initRightContextMenu(); /** * @brief initShortcuts * 初始化快捷键 */ void initShortcuts(); private slots: /** * @brief slotListViewShowContextMenu 弹出右键菜单 * @param index 点击右键菜单的index的位置 */ void slotListViewShowContextMenu(QModelIndex index); /** * @brief slotRightMenuDeleteAction 删除某一个包 */ void slotRightMenuDeleteAction(); /** * @brief slotShortcutDeleteAction 使用快捷键删除 */ void slotShortcutDeleteAction(); private: bool m_bLeftMouse = false; // 左键按下,取消右键菜单标识 bool m_bShortcutDelete = false; // 快捷删除标识 DMenu *m_rightMenu = nullptr; // 右键菜单 QModelIndex m_currModelIndex; // 当前选中的index QModelIndex m_highlightIndex; // 当前选中的index QPoint m_rightMenuPos; // 确定的右键菜单出现的位置 int m_currentIndex = -1; // 当前选中的index.row /** * @brief m_bIsRightMenuShow 当前是否能够调出右键菜单标识,由MultiPage工作状态决定,并传入 */ bool m_bIsRightMenuShow = false; // 当前是否允许右键菜单显示 }; #endif // PACKAGESLISTVIEW_H deepin-deb-installer-6.5.5/src/deb-installer/model/packageselectmodel.cpp000066400000000000000000000117721474340456100264720ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "packageselectmodel.h" #include "model/packageanalyzer.h" #include #include #include #include PackageSelectModel::PackageSelectModel(QObject *parent) : QObject(parent) , model(new QStandardItemModel) { } QStandardItemModel *PackageSelectModel::viewModel() const { return model; } void PackageSelectModel::appendDdimPackages(const QList &ddims) { for (const auto &ddim : ddims) { // 初始化ddim ir包 DdimIrPackage ddimIrPkg; ddimIrPkg.dirPath = ddim.dirPath; ddimIrPkg.version = ddim.version; ddimIrPkg.token = ddim.token; // 逐个转换为IR模式 // 去重优先级:必装 > 选装 > 依赖 PackageAnalyzer::instance().startPkgAnalyze(ddim.mustInstallList.size() + ddim.selectList.size() + ddim.dependList.size()); QSet md5s; auto currentMustInstallInfos = PackageAnalyzer::instance().analyzeDebFiles(ddim.mustInstallList, &md5s, nullptr, true, true); QStringList selectAppNameList = ddim.selectAppNameList; auto currentSelectInfos = PackageAnalyzer::instance().analyzeDebFiles(ddim.selectList, &md5s, &selectAppNameList, false, false); auto currentDependInfos = PackageAnalyzer::instance().analyzeDebFiles(ddim.dependList, &md5s, nullptr, true, false); PackageAnalyzer::instance().stopPkgAnalyze(); for (int i = 0; i != currentSelectInfos.size(); ++i) { currentSelectInfos[i].appName = selectAppNameList[i]; } ddimIrPkg.selectInfos = currentSelectInfos; ddimIrPkg.dependInfos = currentDependInfos; ddimIrPkg.mustInstallInfos = currentMustInstallInfos; // 查询是否有相同token的ddim,有相同的执行更新,没有相同的执行新增 auto ddimIter = std::find_if(ddimIrs.begin(), ddimIrs.end(), [ddimIrPkg](const DdimIrPackage ¤tDdimIrPkg) { return currentDdimIrPkg.token == ddimIrPkg.token; }); if (ddimIter != ddimIrs.end()) { *ddimIter = ddimIrPkg; } else { ddimIrs.push_back(ddimIrPkg); } } // 汇聚全部数据(依据ddimIrs目前的情况,刷新selectInfos,dependInfos,mustInstallInfos) if (collectData()) { emit selectInfosChanged(selectInfos); // 刷新选择界面 } else { emit selectInfosDoNotHaveChange(); // 告知没有必要刷新选择界面 } } QList PackageSelectModel::analyzePackageInstallNeeded(const QList &selectIndexes) const { QList installIrs; QList dependIrs; // 1.筛选需要安装的可选包 for (int i : selectIndexes) { installIrs.push_back(selectInfos.at(i)); } // 2.汇集可选包和必装包为需要安装的包 installIrs.append(mustInstallInfos); dependIrs = dependInfos; // 3.将需要安装的包和本地可用依赖包传入分析工具,获取最佳安装顺序(原则是能不装就不装,确保安装过程最小化) PackageAnalyzer::instance().startPkgAnalyze(installIrs.size()); auto result = PackageAnalyzer::instance().bestInstallQueue(installIrs, dependIrs); PackageAnalyzer::instance().stopPkgAnalyze(); return result; } template void getDebIrs(QList *container, QSet *md5s, const QList &ddimIrs, Func &&dataGetter) { for (auto &eachIrPkg : ddimIrs) { auto infos = dataGetter(eachIrPkg); for (auto &eachInfo : infos) { if (!md5s->contains(eachInfo.md5)) { md5s->insert(eachInfo.md5); container->push_back(eachInfo); } } } } bool PackageSelectModel::collectData() { // 1.构建新数据包,由于只需要监控可选项,因此其它两个直接清空 QList newSelectInfos; dependInfos.clear(); mustInstallInfos.clear(); // 2.处理ddimIrs的数据,需要依据包的md5进行去重 QSet md5s; // 2.1汇聚必装包 getDebIrs(&mustInstallInfos, &md5s, ddimIrs, [](const DdimIrPackage &info) { return info.mustInstallInfos; }); // 2.2汇聚可选包 getDebIrs(&newSelectInfos, &md5s, ddimIrs, [](const DdimIrPackage &info) { return info.selectInfos; }); // 2.3汇聚依赖包 getDebIrs(&dependInfos, &md5s, ddimIrs, [](const DdimIrPackage &info) { return info.dependInfos; }); // 3.查看是否存在改变 bool ret = false; if (newSelectInfos.size() != selectInfos.size()) { ret = true; } else { for (int i = 0; i < newSelectInfos.size(); ++i) { if (!(newSelectInfos[i] == selectInfos[i])) { ret = true; break; } } } // 4.清理老数据 selectInfos = newSelectInfos; return ret; } deepin-deb-installer-6.5.5/src/deb-installer/model/packageselectmodel.h000066400000000000000000000064251474340456100261360ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef PACKAGESELECTMODEL_H #define PACKAGESELECTMODEL_H #include #include #include #include class PackageAnalyzer; class QStandardItemModel; // 初步解析DDIM的结果 struct DdimSt { bool isAvailable = false; QString dirPath; // ddim所在目录 QString version; // ddim版本 QString token; // ddim标识,作为ddim去重的依据 QStringList selectAppNameList; // 可选项里的应用名称 QFileInfoList selectList; // 可选 QFileInfoList dependList; // 依赖 QFileInfoList mustInstallList; // 必装 }; // 单个包的基础信息 // TODO:就程序设计来说,需要一个单独生成deb IR的函数 struct DebIr { QString filePath; // 完整绝对路径 QString appName; // 应用名 QString packageName; // 包名 QString architecture; // 包支持的架构 QString version; // 包版本 QString shortDescription; // 短描述 QByteArray md5; // 包的md5码 QStringList virtualPackages; // 提供的虚拟包 QApt似乎不支持读Provides项 QList depends; // 完整的包依赖 bool archMatched; // 是否与当前架构匹配 bool isValid; // 包是否有效(根据以前的老代码,此处如果无效,可以暂时当做未安装处理,由后续的apt安装时进行报错) bool operator==(const DebIr &rhs) { return this->md5 == rhs.md5; } }; // 单个DDIM下的包信息 struct DdimIrPackage { QString dirPath; // ddim所在目录 QString version; // ddim版本 QString token; // ddim标识 QList selectInfos; QList dependInfos; QList mustInstallInfos; }; class PackageSelectModel : public QObject { Q_OBJECT public: explicit PackageSelectModel(QObject *parent = nullptr); // 添加解析好的ddims void appendDdimPackages(const QList &ddims); // 获取最终需要安装的包列表,传入参数为选中的selectInfos的index QList analyzePackageInstallNeeded(const QList &selectIndexes) const; QList selectData() const { return selectInfos; } QList dependData() const { return dependInfos; } QList mustInstallData() const { return mustInstallInfos; } QStandardItemModel *viewModel() const; // 先留着,后面性能不够再启用 signals: void selectInfosChanged(const QList &infos); // 刷新选择面板 void selectInfosDoNotHaveChange(); // 上一轮执行的appendDdimPackages没有刷新选择面板的必要 private: bool collectData(); // 汇聚数据,返回值表示可选项是否存在更新 // 暂存汇聚好的数据,用于后续安装使用 QList selectInfos; QList dependInfos; QList mustInstallInfos; QStandardItemModel *model; // 解析为IR格式的ddim,需要依据内部的token进行去重 QList ddimIrs; }; #endif // PACKAGESELECTMODEL_H deepin-deb-installer-6.5.5/src/deb-installer/model/packageslistdelegate.cpp000066400000000000000000000312301474340456100270120ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "packageslistdelegate.h" #include "model/deblistmodel.h" #include "utils/utils.h" #include #include #include #include #include #include #include DWIDGET_USE_NAMESPACE // delegate 直接传入 model 解决多次创建model packagemanager导致崩溃的问题 PackagesListDelegate::PackagesListDelegate(AbstractPackageListModel *m_model, QAbstractItemView *parent) : DStyledItemDelegate(parent) , m_fileListModel(m_model) // 从新new一个对象修改为获取传入的对象 , m_parentView(parent) { qGuiApp->installEventFilter(this); // 事件筛选 m_itemHeight = 50 - 2 * (13 - DFontSizeManager::fontPixelSize(qGuiApp->font())); if (DFontSizeManager::fontPixelSize(qGuiApp->font()) > 13) { // 当前字体大小是否小于13 m_itemHeight += 2; } } void PackagesListDelegate::refreshDebItemStatus( const int operate_stat, QRect install_status_rect, QPainter *painter, bool isSelect, bool isEnable) const { DPalette parentViewPattle = DebApplicationHelper::instance()->palette(m_parentView); DGuiApplicationHelper *dAppHelper = DGuiApplicationHelper::instance(); DPalette appPalette = dAppHelper->applicationPalette(); QPen forground; // 前景色 QColor color; // 画笔颜色 QString showText; // 要显示的文本信息(安装状态) DPalette::ColorGroup colorGroup; if (DApplication::activeWindow()) { // 当前处于激活状态 colorGroup = DPalette::Active; // 设置Palette为激活状态 } else { colorGroup = DPalette::Inactive; // 设置Palette为非激活状态 } // 根据操作的状态显示提示语 switch (operate_stat) { case Pkg::PackageOperationStatus::Operating: // 正在安装 painter->setPen(QPen(parentViewPattle.color(DPalette::TextLively))); showText = tr("Installing"); break; case Pkg::PackageOperationStatus::Success: // 安装成功 painter->setPen(QPen(parentViewPattle.color(DPalette::LightLively))); showText = tr("Installed"); break; case Pkg::PackageOperationStatus::Waiting: // 等待安装 painter->setPen(QPen(parentViewPattle.color(DPalette::TextLively))); showText = tr("Waiting"); break; default: // 安装失败 painter->setPen(QPen(parentViewPattle.color(DPalette::TextWarning))); showText = tr("Failed"); break; } if (isSelect && isEnable) { // 当前被选中 未被选中使用默认颜色 forground.setColor(appPalette.color(colorGroup, DPalette::HighlightedText)); painter->setPen(forground); } painter->drawText(install_status_rect, showText, Qt::AlignVCenter | Qt::AlignRight); // 在item上添加安装提示 } void PackagesListDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const { if (!index.isValid()) { // 判断传入的index是否有效 DStyledItemDelegate::paint(painter, option, index); return; } auto themeType = DGuiApplicationHelper::instance()->themeType(); painter->save(); painter->setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing | QPainter::SmoothPixmapTransform, true); const int content_x = 46; painter->setOpacity(1); QPainterPath bgPath; bgPath.addRect(option.rect); // 将当前Item的位置参数 发送给ListView,确定右键菜单的位置。 emit sigIndexAndRect(option.rect, index.row()); DGuiApplicationHelper *dAppHelper = DGuiApplicationHelper::instance(); DPalette palette = dAppHelper->applicationPalette(); QBrush background; QPen forground; DPalette::ColorGroup colorGroup; if (!(option.state & DStyle::State_Enabled)) { // 当前appListView not enable colorGroup = DPalette::Disabled; } else { if (!DApplication::activeWindow()) { // 当前窗口未被激活 colorGroup = DPalette::Inactive; } else { colorGroup = DPalette::Active; // 当前窗口被激活 } } background.setColor(QColor(0, 0, 0, 0)); // 未选中时直接背景透明 // 被选中时设置颜色高亮 forground.setColor(palette.color(colorGroup, DPalette::Text)); if (option.state & DStyle::State_Enabled) { if (option.state & DStyle::State_Selected) { background = palette.color(colorGroup, DPalette::Highlight); } } painter->setPen(forground); painter->fillPath(bgPath, background); // 设置包名和版本号的字体颜色 fix bug: 59390 forground.setColor(palette.color(colorGroup, DPalette::ToolTipText)); // 绘制分割线 QRect lineRect; lineRect.setX(content_x); int itemHeight = m_itemHeight; lineRect.setY(option.rect.y() + itemHeight - 1); lineRect.setWidth(option.rect.width() - content_x - 10); lineRect.setHeight(1); auto fillColor = themeType == DGuiApplicationHelper::LightType ? QColor(0, 0, 0, 12) : QColor(255, 255, 255, 12); painter->fillRect(lineRect, fillColor); QRect bg_rect = option.rect; Pkg::PackageType type = index.data(AbstractPackageListModel::PackageTypeRole).value(); QIcon icon = Utils::packageIcon(type); // draw package icon const int x = 6; int y = bg_rect.y() + (m_itemHeight - 32) / 2; icon.paint(painter, x, y, 32, 32); // draw package name QRect name_rect = bg_rect; name_rect.setX(content_x); name_rect.setY(bg_rect.y() + 5); const QString pkg_name = index.data(DebListModel::PackageNameRole).toString(); QString mediumFontFamily = Utils::loadFontFamilyByType(Utils::SourceHanSansMedium); QString normalFontFamily = Utils::loadFontFamilyByType(Utils::SourceHanSansNormal); QString defaultFontFamily = Utils::loadFontFamilyByType(Utils::DefautFont); QFont pkg_name_font = Utils::loadFontBySizeAndWeight(mediumFontFamily, 14, QFont::Medium); pkg_name_font.setPixelSize(DFontSizeManager::instance()->fontPixelSize(DFontSizeManager::T6)); name_rect.setHeight(pkg_name_font.pixelSize() + 7); painter->setFont(pkg_name_font); QFontMetrics fontMetric(pkg_name_font); const QString elided_pkg_name = fontMetric.elidedText(pkg_name, Qt::ElideRight, 150); if (option.state & DStyle::State_Enabled) { if (option.state & DStyle::State_Selected) { forground.setColor(palette.color(colorGroup, DPalette::HighlightedText)); } } painter->setPen(forground); painter->drawText(name_rect, elided_pkg_name, Qt::AlignLeft | Qt::AlignVCenter); // draw package version QRect version_rect = name_rect; const int version_y = version_rect.top(); version_rect.setLeft(200); version_rect.setTop(version_y); version_rect.setRight(option.rect.right() - 80); QFontMetrics versionFontMetric(pkg_name_font); const QString version = index.data(DebListModel::PackageVersionRole).toString(); const QString version_str = versionFontMetric.elidedText(version, Qt::ElideRight, 195); painter->setPen(forground); QFont version_font = Utils::loadFontBySizeAndWeight(defaultFontFamily, 12, QFont::Light); version_font.setPixelSize(DFontSizeManager::instance()->fontPixelSize(DFontSizeManager::T8)); painter->setFont(version_font); painter->drawText(version_rect, version_str, Qt::AlignLeft | Qt::AlignVCenter); // install status const int operate_stat = index.data(DebListModel::PackageOperateStatusRole).toInt(); // 获取包的状态 if (operate_stat != Pkg::PackageOperationStatus::Prepare) { QRect install_status_rect = option.rect; install_status_rect.setRight(option.rect.right() - 20); install_status_rect.setTop(version_y - 4); QFont stat_font = Utils::loadFontBySizeAndWeight(mediumFontFamily, 11, QFont::Medium); stat_font.setPixelSize(DFontSizeManager::instance()->fontPixelSize(DFontSizeManager::T9)); painter->setFont(stat_font); // 刷新添加包状态的提示 refreshDebItemStatus(operate_stat, install_status_rect, painter, (option.state & DStyle::State_Selected), (option.state & DStyle::State_Enabled)); } // draw package info QString info_str; QRect info_rect = option.rect; info_rect.setLeft(content_x); info_rect.setTop(name_rect.bottom() + 2); // 获取包的版本 const int install_stat = index.data(DebListModel::PackageVersionStatusRole).toInt(); // 获取包的依赖状态 const int dependsStat = index.data(DebListModel::PackageDependsStatusRole).toInt(); DPalette pa = DebApplicationHelper::instance()->palette(m_parentView); // 未被选中,设置正常的颜色 forground.setColor(palette.color(colorGroup, DPalette::ToolTipText)); // 安装状态 if (install_stat != Pkg::PackageInstallStatus::NotInstalled) { // 获取安装版本 if (install_stat == Pkg::PackageInstallStatus::InstalledSameVersion) { // 安装了相同版本 info_str = tr("Same version installed"); } else if (install_stat == Pkg::PackageInstallStatus::InstalledLaterVersion) { // 安装了更新的版本 info_str = tr("Later version installed: %1").arg(index.data(DebListModel::PackageInstalledVersionRole).toString()); } else { // 安装了较早的版本 info_str = tr("Earlier version installed: %1").arg(index.data(DebListModel::PackageInstalledVersionRole).toString()); } // fix bug: 43139 forground.setColor(palette.color(colorGroup, DPalette::TextTips)); } else { // 当前没有安装过 // 获取包的短描述(model增加长描述接口,批量安装显示的是短描述) info_str = index.data(DebListModel::PackageShortDescriptionRole).toString(); // fix bug: 43139 forground.setColor(palette.color(colorGroup, DPalette::TextTips)); } if (operate_stat == Pkg::PackageOperationStatus::Failed) { info_str = index.data(DebListModel::PackageFailReasonRole).toString(); forground.setColor(palette.color(colorGroup, DPalette::TextWarning)); // 安装失败或依赖错误 } // not contains prohibit error if (dependsStat == Pkg::DependsStatus::DependsBreak || dependsStat == Pkg::DependsStatus::DependsAuthCancel || dependsStat == Pkg::DependsStatus::DependsVerifyFailed || dependsStat == Pkg::DependsStatus::ArchBreak || dependsStat == Pkg::CompatibleIntalled || dependsStat == Pkg::CompatibleNotInstalled) { info_str = index.data(DebListModel::PackageFailReasonRole).toString(); forground.setColor(palette.color(colorGroup, DPalette::TextWarning)); // 安装失败或依赖错误 } // No other error, show will remove packages if (dependsStat != Pkg::CompatibleIntalled && dependsStat != Pkg::CompatibleNotInstalled) { QStringList removePackages = index.data(DebListModel::PackageRemoveDependsRole).toStringList(); if (!removePackages.isEmpty()) { forground.setColor(palette.color(colorGroup, DPalette::TextWarning)); info_str = QObject::tr("Will remove: ") + removePackages.join(' '); } } // 当前选中 设置高亮 if (option.state & DStyle::State_Enabled) { if (option.state & DStyle::State_Selected) { forground.setColor(palette.color(colorGroup, DPalette::HighlightedText)); } } painter->setPen(forground); QFont info_font = Utils::loadFontBySizeAndWeight(normalFontFamily, 12, QFont::ExtraLight); info_font.setPixelSize(DFontSizeManager::instance()->fontPixelSize(DFontSizeManager::T8)); painter->setFont(info_font); info_str = painter->fontMetrics().elidedText(info_str, Qt::ElideRight, 306); painter->drawText(info_rect, info_str, Qt::AlignLeft | Qt::AlignTop); // 将提示绘制到item上 painter->restore(); } QSize PackagesListDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const { Q_UNUSED(index); Q_UNUSED(option); QSize itemSize = QSize(0, m_itemHeight); // 设置Item的高度 return itemSize; } bool PackagesListDelegate::eventFilter(QObject *watched, QEvent *event) { if (event->type() == QEvent::FontChange && watched == this) { QFontInfo fontinfo = m_parentView->fontInfo(); emit fontinfo.pixelSize(); } return QObject::eventFilter(watched, event); } void PackagesListDelegate::getItemHeight(int height) { m_itemHeight = height; } deepin-deb-installer-6.5.5/src/deb-installer/model/packageslistdelegate.h000066400000000000000000000040751474340456100264660ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef PACKAGESLISTDELEGATE_H #define PACKAGESLISTDELEGATE_H #include "packagelistview.h" #include #include class AbstractPackageListModel; class PackagesListDelegate : public DStyledItemDelegate { Q_OBJECT public: // delegate使用传入的model而非重新new一个对象 解决多次创建model packagemanager导致崩溃的问题 explicit PackagesListDelegate(AbstractPackageListModel *m_model, QAbstractItemView *parent = nullptr); bool eventFilter(QObject *watched, QEvent *event) override; public: /** * @brief getItemHeight 获取当前选中的Item的高度 * @param height 当前选中Item的高度 * */ void getItemHeight(int height); signals: /** * @brief sigIndexAndRect 发送当前Item的位置参数和row。确定右键菜单的位置。 * @param rect 当前rect的位置等参数 * @param index 当前item的下标 */ void sigIndexAndRect(QRect rect, int index) const; private: void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override; private: /** * @brief refreshDebItemStatus 刷新每个item 包的状态 * @param operate_stat 操作状态 * @param install_status_rect 安装状态的位置 * @param painter * @param isSelect 是否被选中 * @param isEnable 是否可用 */ void refreshDebItemStatus( const int operate_stat, QRect install_status_rect, QPainter *painter, bool isSelect, bool isEnable) const; private: QPixmap m_packageIcon; // 包的图标 QSettings m_qsettings; // 废弃变量 // item的高度 int m_itemHeight = 0; // 传入的model AbstractPackageListModel *m_fileListModel = nullptr; QAbstractItemView *m_parentView; }; #endif // PACKAGESLISTDELEGATE_H deepin-deb-installer-6.5.5/src/deb-installer/model/proxy_package_list_model.cpp000066400000000000000000000353531474340456100277260ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "proxy_package_list_model.h" #include "deblistmodel.h" #include "uab/uab_package_list_model.h" #include "utils/utils.h" ProxyPackageListModel::ProxyPackageListModel(QObject *parent) : AbstractPackageListModel{parent} { m_supportPackageType = Pkg::Proxy; } QVariant ProxyPackageListModel::data(const QModelIndex &index, int role) const { if (m_packageModels.empty()) { return {}; } auto modelWithIndex = findFromProxyIndex(index.row()); ModelPtr model = modelWithIndex.first; if (!model) { return {}; } return model->data(model->index(modelWithIndex.second), role); } bool ProxyPackageListModel::setData(const QModelIndex &index, const QVariant &value, int role) { if (m_packageModels.empty()) { return false; } auto modelWithIndex = findFromProxyIndex(index.row()); ModelPtr model = modelWithIndex.first; if (!model) { return false; } return model->setData(model->index(modelWithIndex.second), value, role); } int ProxyPackageListModel::rowCount(const QModelIndex &parent) const { Q_UNUSED(parent); int count = 0; for (const ModelInfo &info : m_packageModels) { count += info.model->rowCount(); } return count; } void ProxyPackageListModel::slotAppendPackage(const QStringList &packageList) { QMap filterList; for (const QString &packagePath : packageList) { const Pkg::PackageType type = Utils::detectPackage(packagePath); filterList[type].append(packagePath); }; for (auto itr = filterList.begin(); itr != filterList.end(); ++itr) { switch (itr.key()) { case Pkg::Uab: Q_FALLTHROUGH(); case Pkg::Deb: { ModelPtr model = modelFromType(itr.key()); if (model) { model->slotAppendPackage(itr.value()); } } break; default: return; } } } void ProxyPackageListModel::removePackage(int index) { auto modelWithIndex = findFromProxyIndex(index); if (!modelWithIndex.first) { return; } modelWithIndex.first->removePackage(modelWithIndex.second); } QString ProxyPackageListModel::checkPackageValid(const QString &packagePath) { Pkg::PackageType type = Utils::detectPackage(packagePath); ModelPtr model = modelFromType(type); // TODO: static package check or remove it if (!model) { return ""; } return model->checkPackageValid(packagePath); } Pkg::PackageInstallStatus ProxyPackageListModel::checkInstallStatus(const QString &packagePath) { ModelPtr model = addModelFromFile(packagePath); if (model) { return model->checkInstallStatus(packagePath); } return Pkg::NotInstalled; } Pkg::DependsStatus ProxyPackageListModel::checkDependsStatus(const QString &packagePath) { ModelPtr model = addModelFromFile(packagePath); if (model) { return model->checkDependsStatus(packagePath); } return Pkg::DependsOk; } QStringList ProxyPackageListModel::getPackageInfo(const QString &packagePath) { ModelPtr model = addModelFromFile(packagePath); if (model) { return model->getPackageInfo(packagePath); } return {}; } QString ProxyPackageListModel::lastProcessError() { QString errorMessage; (void)std::find_if(m_packageModels.rbegin(), m_packageModels.rend(), [&errorMessage](const ModelInfo &info) { errorMessage = info.model->lastProcessError(); return !errorMessage.isEmpty(); }); return errorMessage; } bool ProxyPackageListModel::containsSignatureFailed() const { auto findItr = std::find_if(m_packageModels.begin(), m_packageModels.end(), [](const ModelInfo &info) { return info.model->containsSignatureFailed(); }); return findItr != m_packageModels.end(); } bool ProxyPackageListModel::slotInstallPackages() { if (!isWorkerPrepare()) { return false; } if (m_packageModels.isEmpty() || m_packageModels.last().rightCount <= 0) { return false; } setWorkerStatus(WorkerProcessing); m_procModelIndex = -1; return nextModelInstall(); } bool ProxyPackageListModel::slotUninstallPackage(int index) { if (!isWorkerPrepare()) { return false; } auto modelWithIndex = findFromProxyIndex(index); if (!modelWithIndex.first) { return false; } setWorkerStatus(WorkerUnInstall); return modelWithIndex.first->slotUninstallPackage(modelWithIndex.second); } void ProxyPackageListModel::reset() { for (ModelInfo &info : m_packageModels) { info.model->reset(); info.count = 0; info.rightCount = 0; } setWorkerStatus(WorkerPrepare); } void ProxyPackageListModel::resetInstallStatus() { for (const ModelInfo &info : m_packageModels) { info.model->resetInstallStatus(); } setWorkerStatus(WorkerPrepare); } bool ProxyPackageListModel::nextModelInstall() { ++m_procModelIndex; if (m_procModelIndex < 0) { setWorkerStatus(WorkerFinished); return false; } // check if all package finished if (m_procModelIndex >= m_packageModels.count()) { setWorkerStatus(WorkerFinished); Q_EMIT signalWholeProgressChanged(100); return true; } const ModelInfo &info = m_packageModels.at(m_procModelIndex); if (info.count > 0) { return info.model->slotInstallPackages(); } else { return nextModelInstall(); } } /** @return Pointer to an Abstract Package ListModel of a specific type, or null if cannot create model. */ ProxyPackageListModel::ModelPtr ProxyPackageListModel::modelFromType(Pkg::PackageType type) { for (const ModelInfo &info : m_packageModels) { if (type == info.model->supportPackage()) { return info.model; } } return addModel(type); } ProxyPackageListModel::ModelPtr ProxyPackageListModel::addModelFromFile(const QString &packagePath) { Pkg::PackageType type = Utils::detectPackage(packagePath); return modelFromType(type); } ProxyPackageListModel::ModelPtr ProxyPackageListModel::addModel(Pkg::PackageType type) { ModelPtr newModel{nullptr}; switch (type) { case Pkg::Uab: newModel = new Uab::UabPackageListModel(this); break; case Pkg::Deb: newModel = new DebListModel(this); break; default: break; } if (newModel) { connectModel(newModel); ModelInfo newInfo; newInfo.model = newModel; m_packageModels.append(newInfo); // sort, ensure deb package model first. std::sort(m_packageModels.begin(), m_packageModels.end(), [](const ModelInfo &info1, const ModelInfo &info2) { return info1.model->supportPackage() < info2.model->supportPackage(); }); // refresh all count int rightCount = 0; for (ModelInfo &info : m_packageModels) { info.count = info.model->rowCount(); info.rightCount = rightCount + info.count; rightCount = info.rightCount; } } return newModel; } void ProxyPackageListModel::connectModel(ModelPtr model) { if (!model) { return; } // pass-through QObject::connect(model, &AbstractPackageListModel::signalAppendStart, this, &ProxyPackageListModel::signalAppendStart); QObject::connect(model, &AbstractPackageListModel::signalAppendFinished, this, &ProxyPackageListModel::signalAppendFinished); QObject::connect( model, &AbstractPackageListModel::signalAppendFailMessage, this, &ProxyPackageListModel::signalAppendFailMessage); QObject::connect( model, &AbstractPackageListModel::signalAppendOutputInfo, this, &ProxyPackageListModel::signalAppendOutputInfo); QObject::connect( model, &AbstractPackageListModel::signalPackageCannotFind, this, &ProxyPackageListModel::signalPackageCannotFind); QObject::connect(model, &AbstractPackageListModel::signalLockForAuth, this, &ProxyPackageListModel::signalLockForAuth); QObject::connect(model, &AbstractPackageListModel::signalAuthCancel, this, [this]() { // if auth canceled, reset to prepare state. setWorkerStatus(WorkerPrepare); Q_EMIT signalAuthCancel(); }); QObject::connect( model, &AbstractPackageListModel::signalEnableReCancelBtn, this, &ProxyPackageListModel::signalEnableReCancelBtn); QObject::connect(model, &AbstractPackageListModel::signalDependResult, this, &ProxyPackageListModel::signalDependResult); QObject::connect( model, &AbstractPackageListModel::signalEnableCloseButton, this, &ProxyPackageListModel::signalEnableCloseButton); // pass-through, only single page need current package progress QObject::connect(model, &AbstractPackageListModel::signalCurrentPacakgeProgressChanged, this, &ProxyPackageListModel::signalCurrentPacakgeProgressChanged); // signals forwarded through proxy QObject::connect( model, &AbstractPackageListModel::signalPackageCountChanged, this, &ProxyPackageListModel::onSourcePacakgeCountChanged); QObject::connect( model, &AbstractPackageListModel::signalWholeProgressChanged, this, &ProxyPackageListModel::onSourceWholeProgressChanged); QObject::connect(model, &AbstractPackageListModel::signalCurrentProcessPackageIndex, this, &ProxyPackageListModel::onSourceCurrentProcessPackageIndex); // signalWorkerStart() does not need to be forwarded from the model being proxied, managed by proxy package list model. QObject::connect(model, &AbstractPackageListModel::signalWorkerFinished, this, &ProxyPackageListModel::onSoureWorkerFinished); // qt interface QObject::connect(model, &QAbstractListModel::dataChanged, this, &ProxyPackageListModel::onSourceDataChanged); } QPair ProxyPackageListModel::findFromProxyIndex(int proxyIndex) const { if (m_packageModels.isEmpty()) { return qMakePair(nullptr, -1); } if (proxyIndex < 0 || proxyIndex >= m_packageModels.last().rightCount) { return qMakePair(nullptr, -1); } auto findItr = std::lower_bound(m_packageModels.begin(), m_packageModels.end(), proxyIndex, [](const ModelInfo &info, int proxyIndex) { return info.rightCount <= proxyIndex; }); if (findItr != m_packageModels.end()) { const int sourceIndex = proxyIndex - ((*findItr).rightCount - (*findItr).count); return qMakePair((*findItr).model, sourceIndex); } return qMakePair(nullptr, -1); } int ProxyPackageListModel::proxyIndexFromModel(ModelPtr findModel, int index) { if (m_packageModels.isEmpty()) { return -1; } if (index < 0 || index >= m_packageModels.last().rightCount) { return -1; } for (const ModelInfo &info : m_packageModels) { if (findModel == info.model) { if (info.count > index) { return info.rightCount - info.count + index; } break; } } return -1; } void ProxyPackageListModel::onSourcePacakgeCountChanged(int count) { const auto sendModel = qobject_cast(sender()); if (sendModel && !m_packageModels.isEmpty()) { int newCount = 0; for (ModelInfo &info : m_packageModels) { if (sendModel == info.model) { info.count = count; // not break, update remaining model count. } newCount += info.count; info.rightCount = newCount; } Q_EMIT signalPackageCountChanged(m_packageModels.last().rightCount); } else { qWarning() << qPrintable("Inavlid model signal sender"); } } void ProxyPackageListModel::onSourceWholeProgressChanged(int progress) { const auto sendModel = qobject_cast(sender()); if (sendModel && !m_packageModels.empty()) { if (m_procModelIndex < 0 || m_procModelIndex >= m_packageModels.count()) { return; } const ModelInfo &info = m_packageModels.at(m_procModelIndex); if (info.model != sendModel) { return; } const int allCount = m_packageModels.last().rightCount; const int wholeProgress = static_cast(progress * (info.count * 1.0f / allCount)); Q_EMIT signalWholeProgressChanged(wholeProgress); } else { qWarning() << qPrintable("Inavlid model signal sender"); } } void ProxyPackageListModel::onSourceCurrentProcessPackageIndex(int index) { const auto sendModel = qobject_cast(sender()); if (sendModel && !m_packageModels.empty()) { if (m_procModelIndex < 0 || m_procModelIndex >= m_packageModels.count()) { return; } const ModelInfo &info = m_packageModels.at(m_procModelIndex); if (info.model != sendModel) { return; } const int proxyIndex = proxyIndexFromModel(sendModel, index); Q_EMIT signalCurrentProcessPackageIndex(proxyIndex); } else { qWarning() << qPrintable("Inavlid model signal sender"); } } void ProxyPackageListModel::onSoureWorkerFinished() { if (!m_packageModels.empty()) { switch (m_workerStatus) { case AbstractPackageListModel::WorkerProcessing: nextModelInstall(); break; case AbstractPackageListModel::WorkerUnInstall: setWorkerStatus(WorkerFinished); break; default: break; } } else { qWarning() << qPrintable("Inavlid model signal sender"); } } void ProxyPackageListModel::onSourceDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector &roles) { for (const ModelInfo &info : m_packageModels) { if (topLeft.model() == info.model) { if (topLeft.row() > info.count || bottomRight.row() > info.count) { return; } const int leftCount = info.rightCount - info.count; const int proxyTopIndex = leftCount + topLeft.row(); const int proxyBottomIndex = leftCount + bottomRight.row(); // check index valid interal const QModelIndex proxyTopLeft = this->index(proxyTopIndex); const QModelIndex proxyBottomRight = this->index(proxyBottomIndex); if (proxyTopLeft.isValid() && proxyBottomRight.isValid()) { Q_EMIT dataChanged(proxyTopLeft, proxyBottomRight, roles); } return; } } } deepin-deb-installer-6.5.5/src/deb-installer/model/proxy_package_list_model.h000066400000000000000000000047141474340456100273700ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef PROXY_PACKAGE_LIST_MODEL_H #define PROXY_PACKAGE_LIST_MODEL_H #include "abstract_package_list_model.h" class ProxyPackageListModel : public AbstractPackageListModel { Q_OBJECT public: using ModelPtr = AbstractPackageListModel *; explicit ProxyPackageListModel(QObject *parent = nullptr); QVariant data(const QModelIndex &index, int role) const override; bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override; int rowCount(const QModelIndex &parent = QModelIndex()) const override; Q_SLOT void slotAppendPackage(const QStringList &packageList) override; void removePackage(int index) override; QString checkPackageValid(const QString &packagePath) override; Pkg::PackageInstallStatus checkInstallStatus(const QString &packagePath) override; Pkg::DependsStatus checkDependsStatus(const QString &packagePath) override; QStringList getPackageInfo(const QString &packagePath) override; QString lastProcessError() override; bool containsSignatureFailed() const override; Q_SLOT bool slotInstallPackages() override; Q_SLOT bool slotUninstallPackage(int index) override; void reset() override; void resetInstallStatus() override; ModelPtr modelFromType(Pkg::PackageType type); ModelPtr addModelFromFile(const QString &packagePath); private: bool nextModelInstall(); ModelPtr addModel(Pkg::PackageType type); void connectModel(ModelPtr model); QPair findFromProxyIndex(int proxyIndex) const; int proxyIndexFromModel(ModelPtr findModel, int index); // signals forwarded through Q_SLOT void onSourcePacakgeCountChanged(int count); Q_SLOT void onSourceWholeProgressChanged(int progress); Q_SLOT void onSourceCurrentProcessPackageIndex(int index); Q_SLOT void onSoureWorkerFinished(); Q_SLOT void onSourceDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector &roles); private: int m_procModelIndex{-1}; // current processing model index struct ModelInfo { ModelPtr model{nullptr}; int count{0}; // cached model item count int rightCount{0}; // index counts for current and previous models }; QList m_packageModels; // all package list models (deb/uab) }; #endif // PROXY_PACKAGE_LIST_MODEL_H deepin-deb-installer-6.5.5/src/deb-installer/process/000077500000000000000000000000001474340456100225205ustar00rootroot00000000000000deepin-deb-installer-6.5.5/src/deb-installer/process/Pty.cpp000066400000000000000000000447601474340456100240130ustar00rootroot00000000000000/* * This file is a part of QTerminal - http://gitorious.org/qterminal * * This file was un-linked from KDE and modified * by Maxim Bourmistrov * */ /* This file is part of Konsole, an X terminal. Copyright 1997,1998 by Lars Doelle This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ // Own #include "Pty.h" #include "kpty.h" #include "kptydevice.h" // System #include #include #include #include #include #include // Qt #include #include #include #include #include #include #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) #include #include #else #include #include #endif using namespace Konsole; void Pty::setWindowSize(int lines, int cols) { _windowColumns = cols; _windowLines = lines; if (pty()->masterFd() >= 0) pty()->setWinSize(lines, cols); } QSize Pty::windowSize() const { return {_windowColumns, _windowLines}; } void Pty::setFlowControlEnabled(bool enable) { _xonXoff = enable; if (pty()->masterFd() >= 0) { struct ::termios ttmode; pty()->tcGetAttr(&ttmode); if (!enable) ttmode.c_iflag &= ~(IXOFF | IXON); else ttmode.c_iflag |= (IXOFF | IXON); if (!pty()->tcSetAttr(&ttmode)) qWarning() << "Unable to set terminal attributes."; } } bool Pty::flowControlEnabled() const { if (pty()->masterFd() >= 0) { struct ::termios ttmode; pty()->tcGetAttr(&ttmode); return ttmode.c_iflag & IXOFF && ttmode.c_iflag & IXON; } qWarning() << "Unable to get flow control status, terminal not connected."; return false; } void Pty::setUtf8Mode(bool enable) { #ifdef IUTF8 // XXX not a reasonable place to check it. _utf8 = enable; if (pty()->masterFd() >= 0) { struct ::termios ttmode; pty()->tcGetAttr(&ttmode); if (!enable) ttmode.c_iflag &= ~IUTF8; else ttmode.c_iflag |= IUTF8; if (!pty()->tcSetAttr(&ttmode)) qWarning() << "Unable to set terminal attributes."; } #endif } void Pty::setErase(char erase) { _eraseChar = erase; if (pty()->masterFd() >= 0) { struct ::termios ttmode; pty()->tcGetAttr(&ttmode); ttmode.c_cc[VERASE] = erase; if (!pty()->tcSetAttr(&ttmode)) qWarning() << "Unable to set terminal attributes."; } } char Pty::erase() const { if (pty()->masterFd() >= 0) { struct ::termios ttyAttributes; pty()->tcGetAttr(&ttyAttributes); return ttyAttributes.c_cc[VERASE]; } return _eraseChar; } void Pty::addEnvironmentVariables(const QStringList &environment) { QListIterator iter(environment); while (iter.hasNext()) { QString pair = iter.next(); // split on the first '=' character int pos = pair.indexOf(QLatin1Char('=')); if (pos >= 0) { QString variable = pair.left(pos); QString value = pair.mid(pos + 1); setEnv(variable, value); } } } int Pty::start(const QString &program, const QStringList &programArguments, const QStringList &environment, ulong winid, bool addToUtmp //const QString& dbusService, //const QString& dbusSession ) { clearProgram(); // For historical reasons, the first argument in programArguments is the // name of the program to execute, so create a list consisting of all // but the first argument to pass to setProgram() Q_ASSERT(programArguments.count() >= 1); setProgram(program, programArguments.mid(1)); _program = program; addEnvironmentVariables(environment); setEnv(QLatin1String("WINDOWID"), QString::number(winid)); setEnv(QLatin1String("COLORTERM"), QLatin1String("truecolor")); // unless the LANGUAGE environment variable has been set explicitly // set it to a null string // this fixes the problem where KCatalog sets the LANGUAGE environment // variable during the application's startup to something which // differs from LANG,LC_* etc. and causes programs run from // the terminal to display messages in the wrong language // // this can happen if LANG contains a language which KDE // does not have a translation for // // BR:149300 setEnv(QLatin1String("LANGUAGE"), QString(), false /* do not overwrite existing value if any */); setUseUtmp(addToUtmp); struct ::termios ttmode; pty()->tcGetAttr(&ttmode); if (!_xonXoff) ttmode.c_iflag &= ~(IXOFF | IXON); else ttmode.c_iflag |= (IXOFF | IXON); #ifdef IUTF8 // XXX not a reasonable place to check it. if (!_utf8) ttmode.c_iflag &= ~IUTF8; else ttmode.c_iflag |= IUTF8; #endif if (_eraseChar != 0) ttmode.c_cc[VERASE] = _eraseChar; if (!pty()->tcSetAttr(&ttmode)) qWarning() << "Unable to set terminal attributes."; pty()->setWinSize(_windowLines, _windowColumns); KProcess::start(); if (!waitForStarted()) return -1; return 0; } void Pty::setEmptyPTYProperties() { struct ::termios ttmode; pty()->tcGetAttr(&ttmode); if (!_xonXoff) ttmode.c_iflag &= ~(IXOFF | IXON); else ttmode.c_iflag |= (IXOFF | IXON); #ifdef IUTF8 // XXX not a reasonable place to check it. if (!_utf8) ttmode.c_iflag &= ~IUTF8; else ttmode.c_iflag |= IUTF8; #endif if (_eraseChar != 0) ttmode.c_cc[VERASE] = _eraseChar; if (!pty()->tcSetAttr(&ttmode)) qWarning() << "Unable to set terminal attributes."; } void Pty::setWriteable(bool writeable) { struct stat sbuf; stat(pty()->ttyName(), &sbuf); if (writeable) chmod(pty()->ttyName(), sbuf.st_mode | S_IWGRP); else chmod(pty()->ttyName(), sbuf.st_mode & ~(S_IWGRP | S_IWOTH)); } Pty::Pty(int masterFd, QObject *parent) : KPtyProcess(masterFd, parent) { init(); } Pty::Pty(QObject *parent) : KPtyProcess(parent) { init(); } void Pty::init() { _windowColumns = 0; _windowLines = 0; _eraseChar = 0; _xonXoff = true; _utf8 = true; _bUninstall = false; connect(pty(), SIGNAL(readyRead()), this, SLOT(dataReceived())); setPtyChannels(KPtyProcess::AllChannels); } Pty::~Pty() { } bool Pty::isTerminalRemoved() { QFile terminalExecFile("/usr/bin/deepin-terminal"); if (terminalExecFile.exists()) { return false; } return true; } bool isPatternAcceptable(QString strCommand, QString strPattern) { QString strTrimmedCmd = strCommand.trimmed(); #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) QRegularExpression cmdRegExp(strPattern); QRegularExpressionValidator cmdREValidator(cmdRegExp, nullptr); #else QRegExp cmdRegExp; cmdRegExp.setPattern(strPattern); QRegExpValidator cmdREValidator(cmdRegExp, nullptr); #endif int pos = 0; QValidator::State validateState = cmdREValidator.validate(strTrimmedCmd, pos); return (validateState == QValidator::Acceptable); } //判断当前命令是否是要删除终端 bool Pty::bWillRemoveTerminal(QString strCommand) { QString packageName = "deepin-terminal"; QStringList strCommandList; strCommandList.append(strCommand); if (strCommand.contains("&&")) { QStringList cmdList = strCommand.split("&&"); for (int i = 0; i < cmdList.size(); i++) { QString currCmd = cmdList.at(i).trimmed(); if (currCmd.length() > 0 && currCmd.contains(packageName)) { strCommandList.append(currCmd); } } } if (strCommand.contains(";")) { QStringList cmdList = strCommand.split(";"); for (int i = 0; i < cmdList.size(); i++) { QString currCmd = cmdList.at(i).trimmed(); if (currCmd.length() > 0 && currCmd.contains(packageName)) { strCommandList.append(currCmd); } } } QList acceptableList; QStringList packageNameList; packageNameList << packageName; for (int i = 0; i < strCommandList.size(); i++) { QString strCurrCommand = strCommandList.at(i); for (int j = 0; j < packageNameList.size(); j++) { QString packageName = packageNameList.at(j); QString removePattern = QString("sudo\\s+apt-get\\s+remove\\s+%1").arg(packageName); acceptableList << isPatternAcceptable(strCurrCommand, removePattern); removePattern = QString("sudo\\s+apt\\s+remove\\s+%1").arg(packageName); acceptableList << isPatternAcceptable(strCurrCommand, removePattern); /******** Modify by nt001000 renfeixiang 2020-05-27:修改 放到bWillPurgeTerminal函数中 Begin***************/ // removePattern = QString("sudo\\s+dpkg\\s+-P\\s+%1").arg(packageName); // acceptableList << isPatternAcceptable(strCurrCommand, removePattern); /******** Modify by nt001000 renfeixiang 2020-05-27:修改 放到bWillPurgeTerminal函数中 End***************/ removePattern = QString("sudo\\s+dpkg\\s+-r\\s+%1").arg(packageName); acceptableList << isPatternAcceptable(strCurrCommand, removePattern); removePattern = QString("sudo\\s+rm\\s+.+\\s+/usr/bin/deepin-terminal"); acceptableList << isPatternAcceptable(strCurrCommand, removePattern); removePattern = QString("sudo\\s+rm\\s+/usr/bin/deepin-terminal"); acceptableList << isPatternAcceptable(strCurrCommand, removePattern); } } return acceptableList.contains(true); } /******** Add by nt001000 renfeixiang 2020-05-27:增加 Purge卸载命令的判断,显示不同的卸载提示框 Begin***************/ bool Pty::bWillPurgeTerminal(QString strCommand) { QString packageName = "deepin-terminal"; QStringList strCommandList; strCommandList.append(strCommand); if (strCommand.contains("&&")) { QStringList cmdList = strCommand.split("&&"); for (int i = 0; i < cmdList.size(); i++) { QString currCmd = cmdList.at(i).trimmed(); if (currCmd.length() > 0 && currCmd.contains(packageName)) { strCommandList.append(currCmd); } } } if (strCommand.contains(";")) { QStringList cmdList = strCommand.split(";"); for (int i = 0; i < cmdList.size(); i++) { QString currCmd = cmdList.at(i).trimmed(); if (currCmd.length() > 0 && currCmd.contains(packageName)) { strCommandList.append(currCmd); } } } QList acceptableList; QStringList packageNameList; packageNameList << packageName; for (int i = 0; i < strCommandList.size(); i++) { QString strCurrCommand = strCommandList.at(i); for (int j = 0; j < packageNameList.size(); j++) { QString packageName = packageNameList.at(j); QString removePattern = QString("sudo\\s+apt-get\\s+purge\\s+%1").arg(packageName); acceptableList << isPatternAcceptable(strCurrCommand, removePattern); removePattern = QString("sudo\\s+apt-get\\s+purge\\s+-y\\s+%1").arg(packageName); acceptableList << isPatternAcceptable(strCurrCommand, removePattern); removePattern = QString("sudo\\s+apt-get\\s+remove\\s+--purge\\s+%1").arg(packageName); acceptableList << isPatternAcceptable(strCurrCommand, removePattern); removePattern = QString("sudo\\s+apt-get\\s+--purge\\s+remove\\s+%1").arg(packageName); acceptableList << isPatternAcceptable(strCurrCommand, removePattern); removePattern = QString("sudo\\s+apt\\s+purge\\s+%1").arg(packageName); acceptableList << isPatternAcceptable(strCurrCommand, removePattern); removePattern = QString("sudo\\s+apt\\s+purge\\s+-y\\s+%1").arg(packageName); acceptableList << isPatternAcceptable(strCurrCommand, removePattern); removePattern = QString("sudo\\s+apt\\s+remove\\s+--purge\\s+%1").arg(packageName); acceptableList << isPatternAcceptable(strCurrCommand, removePattern); removePattern = QString("sudo\\s+apt\\s+--purge\\s+remove\\s+%1").arg(packageName); acceptableList << isPatternAcceptable(strCurrCommand, removePattern); removePattern = QString("sudo\\s+dpkg\\s+-P\\s+%1").arg(packageName); acceptableList << isPatternAcceptable(strCurrCommand, removePattern); } } return acceptableList.contains(true); } /******** Add by nt001000 renfeixiang 2020-05-27:增加 Purge卸载命令的判断,显示不同的卸载提示框 End***************/ void Pty::sendData(const char *data, int length, const QTextCodec *codec) { _textCodec = codec; if (!length) { return; } //判断是否是点了自定义命令面板列表项触发的命令 bool isCustomCommand = false; QString currCommand = QString::fromLatin1(data); if (currCommand.length() > 0 && currCommand.endsWith('\n')) { isCustomCommand = true; } _isCommandExec = false; _bNeedBlockCommand = false; //为GBK/GB2312/GB18030编码,且不是输入命令执行的情况(没有按回车) if (QString(codec->name()).toUpper().startsWith("GB") && !_isCommandExec) { QTextCodec *utf8Codec = QTextCodec::codecForName("UTF-8"); QString unicodeData = codec->toUnicode(data); QByteArray unicode = utf8Codec->fromUnicode(unicodeData); qInfo() << __FILE__ << __LINE__ << unicode; if (!pty()->write(unicode.constData(), unicode.length())) { qWarning() << "Pty::doSendJobs - Could not send input data to terminal process."; return; } } else { qInfo() << __FILE__ << __LINE__ << QByteArray(data, length); if (!pty()->write(data, length)) { qWarning() << "Pty::doSendJobs - Could not send input data to terminal process."; return; } } } void Pty::dataReceived() { QByteArray data = pty()->readAll(); QString recvData = QString(data); if (_bNeedBlockCommand) { QString judgeData = recvData; if (recvData.length() > 1) { judgeData = recvData.replace("\r", ""); judgeData = judgeData.replace("\n", ""); } //使用zsh的时候,发送过来的字符会残留一个字母"e",需要特殊处理下 if (_program.endsWith("/zsh") && 1 == judgeData.length() && judgeData.startsWith("e") && -1 == _receiveDataIndex) { _receiveDataIndex = 0; return; } //不显示远程登录时候的敏感信息(主要是expect -f命令跟随的明文密码) //同时考虑了zsh的情况 if (judgeData.startsWith("expect -f") || judgeData.startsWith("\bexpect") || judgeData.startsWith("\be") || judgeData.startsWith("e\bexpect") || judgeData.startsWith("e\be")) { _receiveDataIndex = 1; return; } if (_receiveDataIndex >= 1) { if (judgeData.contains("Press")) { //这里需要置回false,否则后面其他命令也会被拦截 _bNeedBlockCommand = false; _receiveDataIndex = -1; int pressStringIndex = recvData.indexOf("Press"); if (pressStringIndex > 0) { recvData = recvData.mid(pressStringIndex); } QString helpData = recvData.replace("\n", ""); recvData = "\r\n" + helpData + "\r\n"; data = recvData.toUtf8(); emit receivedData(data.constData(), data.count(), _textCodec); } else { ++_receiveDataIndex; } return; } } /******** Modify by m000714 daizhengwen 2020-04-30: 处理上传下载时乱码显示命令不执行****************/ // 乱码提示信息不显示 if (recvData.contains("bash: $'\\212") || recvData.contains("bash: **0800000000022d:") || recvData.contains("**^XB0800000000022d") || recvData.startsWith("**\u0018B0800000000022d\r\u008A")) { return; } // "\u008A"这个乱码不替换调会导致显示时有\b的效果导致命令错乱bug#23741 if (recvData.contains("\u008A")) { recvData.replace("\u008A", "\b \b #"); data = recvData.toUtf8(); } if (recvData == "rz waiting to receive.") { recvData += "\r\n"; data = recvData.toUtf8(); } /********************* Modify by m000714 daizhengwen End ************************/ emit receivedData(data.constData(), data.count(), _isCommandExec); } void Pty::lockPty(bool lock) { Q_UNUSED(lock); // TODO: Support for locking the Pty //if (lock) //suspend(); //else //resume(); } int Pty::foregroundProcessGroup() const { int pid = tcgetpgrp(pty()->masterFd()); if (pid != -1) { return pid; } return 0; } void Pty::setSessionId(int sessionId) { _sessionId = sessionId; } #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) void Pty::setupChildProcess() { KPtyProcess::setupChildProcess(); // reset all signal handlers // this ensures that terminal applications respond to // signals generated via key sequences such as Ctrl+C // (which sends SIGINT) struct sigaction action; sigset_t sigset; sigemptyset(&action.sa_mask); sigemptyset(&sigset); action.sa_handler = SIG_DFL; action.sa_flags = 0; for (int signal = 1; signal < NSIG; signal++) { sigaction(signal, &action, nullptr); sigaddset(&sigset, signal); } sigprocmask(SIG_UNBLOCK, &sigset, nullptr); } #endif deepin-deb-installer-6.5.5/src/deb-installer/process/Pty.h000066400000000000000000000166151474340456100234560ustar00rootroot00000000000000/* * This file is a part of QTerminal - http://gitorious.org/qterminal * * This file was un-linked from KDE and modified * by Maxim Bourmistrov * */ /* This file is part of Konsole, KDE's terminal emulator. Copyright 2007-2008 by Robert Knight Copyright 1997,1998 by Lars Doelle This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef PTY_H #define PTY_H // Qt #include #include #include #include #include // KDE #include "kptyprocess.h" namespace Konsole { /** * The Pty class is used to start the terminal process, * send data to it, receive data from it and manipulate * various properties of the pseudo-teletype interface * used to communicate with the process. * * To use this class, construct an instance and connect * to the sendData slot and receivedData signal to * send data to or receive data from the process. * * To start the terminal process, call the start() method * with the program name and appropriate arguments. */ class Pty: public KPtyProcess { Q_OBJECT public: /** * Constructs a new Pty. * * Connect to the sendData() slot and receivedData() signal to prepare * for sending and receiving data from the terminal process. * * To start the terminal process, call the run() method with the * name of the program to start and appropriate arguments. */ explicit Pty(QObject* parent = nullptr); /** * Construct a process using an open pty master. * See KPtyProcess::KPtyProcess() */ explicit Pty(int ptyMasterFd, QObject* parent = nullptr); ~Pty() override; /** * Starts the terminal process. * * Returns 0 if the process was started successfully or non-zero * otherwise. * * @param program Path to the program to start * @param arguments Arguments to pass to the program being started * @param environment A list of key=value pairs which will be added * to the environment for the new process. At the very least this * should include an assignment for the TERM environment variable. * @param winid Specifies the value of the WINDOWID environment variable * in the process's environment. * @param addToUtmp Specifies whether a utmp entry should be created for * the pty used. See K3Process::setUsePty() * @param dbusService Specifies the value of the KONSOLE_DBUS_SERVICE * environment variable in the process's environment. * @param dbusSession Specifies the value of the KONSOLE_DBUS_SESSION * environment variable in the process's environment. */ int start( const QString& program, const QStringList& arguments, const QStringList& environment, ulong winid, bool addToUtmp ); /** * set properties for "EmptyPTY" */ void setEmptyPTYProperties(); /** TODO: Document me */ void setWriteable(bool writeable); /** * Enables or disables Xon/Xoff flow control. The flow control setting * may be changed later by a terminal application, so flowControlEnabled() * may not equal the value of @p on in the previous call to setFlowControlEnabled() */ void setFlowControlEnabled(bool on); /** Queries the terminal state and returns true if Xon/Xoff flow control is enabled. */ bool flowControlEnabled() const; /** * Sets the size of the window (in lines and columns of characters) * used by this teletype. */ void setWindowSize(int lines, int cols); /** Returns the size of the window used by this teletype. See setWindowSize() */ QSize windowSize() const; /** TODO Document me */ void setErase(char erase); /** */ char erase() const; /** * Returns the process id of the teletype's current foreground * process. This is the process which is currently reading * input sent to the terminal via. sendData() * * If there is a problem reading the foreground process group, * 0 will be returned. */ int foregroundProcessGroup() const; void setSessionId(int sessionId); public slots: /** * Put the pty into UTF-8 mode on systems which support it. */ void setUtf8Mode(bool on); /** * Suspend or resume processing of data from the standard * output of the terminal process. * * See K3Process::suspend() and K3Process::resume() * * @param lock If true, processing of output is suspended, * otherwise processing is resumed. */ void lockPty(bool lock); /** * Sends data to the process currently controlling the * teletype ( whose id is returned by foregroundProcessGroup() ) * * @param buffer Pointer to the data to send. * @param length Length of @p buffer. */ void sendData(const char* buffer, int length, const QTextCodec *codec); signals: /** * Emitted when a new block of data is received from * the teletype. * * @param buffer Pointer to the data received. * @param length Length of @p buffer */ void receivedData(const char* buffer, int length, bool isCommandExec); /******** Modify by nt001000 renfeixiang 2020-05-27:修改 增加参数区别remove和purge卸载命令 Begin***************/ bool ptyUninstallTerminal(QString commandname); /******** Modify by nt001000 renfeixiang 2020-05-14:修改 增加参数区别remove和purge卸载命令 End***************/ protected: #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) void setupChildProcess() override; #endif private slots: // called when data is received from the terminal process void dataReceived(); private: void init(); bool isTerminalRemoved(); bool bWillRemoveTerminal(QString strCommand); /******** Add by nt001000 renfeixiang 2020-05-14:增加 Purge卸载命令的判断,显示不同的卸载提示框 Begin***************/ bool bWillPurgeTerminal(QString strCommand); /******** Add by nt001000 renfeixiang 2020-05-14:增加 Purge卸载命令的判断,显示不同的卸载提示框 End***************/ // takes a list of key=value pairs and adds them // to the environment for the process void addEnvironmentVariables(const QStringList& environment); int _windowColumns; int _windowLines; char _eraseChar; bool _xonXoff; bool _utf8; int _sessionId; bool _bUninstall; bool _bNeedBlockCommand = false;//是否为终端内部发送的命令(不是用户手动输入的命令),默认用户手动输入 int _receiveDataIndex = -1; const QTextCodec *_textCodec = nullptr; bool _isCommandExec = false; QString _program; }; } #endif // PTY_H deepin-deb-installer-6.5.5/src/deb-installer/process/kprocess.cpp000066400000000000000000000240211474340456100250540ustar00rootroot00000000000000/* * This file is a part of QTerminal - http://gitorious.org/qterminal * * This file was un-linked from KDE and modified * by Maxim Bourmistrov * */ /* This file is part of the KDE libraries Copyright (C) 2007 Oswald Buddenhagen This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "kprocess.h" #include #ifdef Q_OS_WIN # include #else # include # include #endif #ifndef Q_OS_WIN # define STD_OUTPUT_HANDLE 1 # define STD_ERROR_HANDLE 2 #endif #ifdef _WIN32_WCE #include #endif void KProcessPrivate::writeAll(const QByteArray &buf, int fd) { #ifdef Q_OS_WIN #ifndef _WIN32_WCE HANDLE h = GetStdHandle(fd); if (h) { DWORD wr; WriteFile(h, buf.data(), buf.size(), &wr, 0); } #else fwrite(buf.data(), 1, buf.size(), (FILE *)fd); #endif #else int off = 0; do { int ret = ::write(fd, buf.data() + off, buf.size() - off); if (ret < 0) { if (errno != EINTR) return; } else { off += ret; } } while (off < buf.size()); #endif } void KProcessPrivate::forwardStd(KProcess::ProcessChannel good, int fd) { Q_Q(KProcess); QProcess::ProcessChannel oc = q->readChannel(); q->setReadChannel(good); writeAll(q->readAll(), fd); q->setReadChannel(oc); } void KProcessPrivate::_k_forwardStdout() { #ifndef _WIN32_WCE forwardStd(KProcess::StandardOutput, STD_OUTPUT_HANDLE); #else forwardStd(KProcess::StandardOutput, (int)stdout); #endif } void KProcessPrivate::_k_forwardStderr() { #ifndef _WIN32_WCE forwardStd(KProcess::StandardError, STD_ERROR_HANDLE); #else forwardStd(KProcess::StandardError, (int)stderr); #endif } ///////////////////////////// // public member functions // ///////////////////////////// KProcess::KProcess(QObject *parent) : QProcess(parent), d_ptr(new KProcessPrivate) { d_ptr->q_ptr = this; setOutputChannelMode(ForwardedChannels); } KProcess::KProcess(KProcessPrivate *d, QObject *parent) : QProcess(parent), d_ptr(d) { d_ptr->q_ptr = this; setOutputChannelMode(ForwardedChannels); } KProcess::~KProcess() { delete d_ptr; } void KProcess::setOutputChannelMode(OutputChannelMode mode) { Q_D(KProcess); d->outputChannelMode = mode; disconnect(this, SIGNAL(readyReadStandardOutput())); disconnect(this, SIGNAL(readyReadStandardError())); switch (mode) { case OnlyStdoutChannel: connect(this, SIGNAL(readyReadStandardError()), SLOT(_k_forwardStderr())); break; case OnlyStderrChannel: connect(this, SIGNAL(readyReadStandardOutput()), SLOT(_k_forwardStdout())); break; default: QProcess::setProcessChannelMode((ProcessChannelMode)mode); return; } QProcess::setProcessChannelMode(QProcess::SeparateChannels); } KProcess::OutputChannelMode KProcess::outputChannelMode() const { Q_D(const KProcess); return d->outputChannelMode; } void KProcess::setNextOpenMode(QIODevice::OpenMode mode) { Q_D(KProcess); d->openMode = mode; } #define DUMMYENV "_KPROCESS_DUMMY_=" void KProcess::clearEnvironment() { setEnvironment(QStringList() << QString::fromLatin1(DUMMYENV)); } void KProcess::setEnv(const QString &name, const QString &value, bool overwrite) { QStringList env = environment(); if (env.isEmpty()) { env = systemEnvironment(); env.removeAll(QString::fromLatin1(DUMMYENV)); } QString fname(name); fname.append(QLatin1Char('=')); for (QStringList::Iterator it = env.begin(); it != env.end(); ++it) if ((*it).startsWith(fname)) { if (overwrite) { *it = fname.append(value); setEnvironment(env); } return; } env.append(fname.append(value)); setEnvironment(env); } void KProcess::unsetEnv(const QString &name) { QStringList env = environment(); if (env.isEmpty()) { env = systemEnvironment(); env.removeAll(QString::fromLatin1(DUMMYENV)); } QString fname(name); fname.append(QLatin1Char('=')); for (QStringList::Iterator it = env.begin(); it != env.end(); ++it) if ((*it).startsWith(fname)) { env.erase(it); if (env.isEmpty()) env.append(QString::fromLatin1(DUMMYENV)); setEnvironment(env); return; } } void KProcess::setProgram(const QString &exe, const QStringList &args) { Q_D(KProcess); d->prog = exe; d->args = args; #ifdef Q_OS_WIN setNativeArguments(QString()); #endif } void KProcess::setProgram(const QStringList &argv) { Q_D(KProcess); Q_ASSERT(!argv.isEmpty()); d->args = argv; d->prog = d->args.takeFirst(); #ifdef Q_OS_WIN setNativeArguments(QString()); #endif } KProcess &KProcess::operator<<(const QString &arg) { Q_D(KProcess); if (d->prog.isEmpty()) d->prog = arg; else d->args << arg; return *this; } KProcess &KProcess::operator<<(const QStringList &args) { Q_D(KProcess); if (d->prog.isEmpty()) setProgram(args); else d->args << args; return *this; } void KProcess::clearProgram() { Q_D(KProcess); d->prog.clear(); d->args.clear(); #ifdef Q_OS_WIN setNativeArguments(QString()); #endif } #if 0 void KProcess::setShellCommand(const QString &cmd) { Q_D(KProcess); KShell::Errors err; d->args = KShell::splitArgs( cmd, KShell::AbortOnMeta | KShell::TildeExpand, &err); if (err == KShell::NoError && !d->args.isEmpty()) { d->prog = KStandardDirs::findExe(d->args[0]); if (!d->prog.isEmpty()) { d->args.removeFirst(); #ifdef Q_OS_WIN setNativeArguments(QString()); #endif return; } } d->args.clear(); #ifdef Q_OS_UNIX // #ifdef NON_FREE // ... as they ship non-POSIX /bin/sh # if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__) && !defined(__GNU__) // If /bin/sh is a symlink, we can be pretty sure that it points to a // POSIX shell - the original bourne shell is about the only non-POSIX // shell still in use and it is always installed natively as /bin/sh. d->prog = QFile::symLinkTarget(QString::fromLatin1("/bin/sh")); if (d->prog.isEmpty()) { // Try some known POSIX shells. d->prog = KStandardDirs::findExe(QString::fromLatin1("ksh")); if (d->prog.isEmpty()) { d->prog = KStandardDirs::findExe(QString::fromLatin1("ash")); if (d->prog.isEmpty()) { d->prog = KStandardDirs::findExe(QString::fromLatin1("bash")); if (d->prog.isEmpty()) { d->prog = KStandardDirs::findExe(QString::fromLatin1("zsh")); if (d->prog.isEmpty()) // We're pretty much screwed, to be honest ... d->prog = QString::fromLatin1("/bin/sh"); } } } } # else d->prog = QString::fromLatin1("/bin/sh"); # endif d->args << QString::fromLatin1("-c") << cmd; #else // Q_OS_UNIX // KMacroExpander::expandMacrosShellQuote(), KShell::quoteArg() and // KShell::joinArgs() may generate these for security reasons. setEnv(PERCENT_VARIABLE, QLatin1String("%")); #ifndef _WIN32_WCE WCHAR sysdir[MAX_PATH + 1]; UINT size = GetSystemDirectoryW(sysdir, MAX_PATH + 1); d->prog = QString::fromUtf16((const ushort *) sysdir, size); d->prog += QLatin1String("\\cmd.exe"); setNativeArguments(QLatin1String("/V:OFF /S /C \"") + cmd + QLatin1Char('"')); #else d->prog = QLatin1String("\\windows\\cmd.exe"); setNativeArguments(QLatin1String("/S /C \"") + cmd + QLatin1Char('"')); #endif #endif } #endif QStringList KProcess::program() const { Q_D(const KProcess); QStringList argv = d->args; argv.prepend(d->prog); return argv; } void KProcess::start() { Q_D(KProcess); QProcess::start(d->prog, d->args, d->openMode); } int KProcess::execute(int msecs) { start(); if (!waitForFinished(msecs)) { kill(); waitForFinished(-1); return -2; } return (exitStatus() == QProcess::NormalExit) ? exitCode() : -1; } // static int KProcess::execute(const QString &exe, const QStringList &args, int msecs) { KProcess p; p.setProgram(exe, args); return p.execute(msecs); } // static int KProcess::execute(const QStringList &argv, int msecs) { KProcess p; p.setProgram(argv); return p.execute(msecs); } int KProcess::startDetached() { Q_D(KProcess); qint64 pid; if (!QProcess::startDetached(d->prog, d->args, workingDirectory(), &pid)) return 0; return (int) pid; } // static int KProcess::startDetached(const QString &exe, const QStringList &args) { qint64 pid; if (!QProcess::startDetached(exe, args, QString(), &pid)) return 0; return (int) pid; } // static int KProcess::startDetached(const QStringList &argv) { QStringList args = argv; QString prog = args.takeFirst(); return startDetached(prog, args); } int KProcess::pid() const { #ifdef Q_OS_UNIX #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) return (int) QProcess::pid(); #else return QProcess::processId(); #endif #else return QProcess::pid() ? QProcess::pid()->dwProcessId : 0; #endif } deepin-deb-installer-6.5.5/src/deb-installer/process/kprocess.h000066400000000000000000000264431474340456100245330ustar00rootroot00000000000000/* * This file is a part of QTerminal - http://gitorious.org/qterminal * * This file was un-linked from KDE and modified * by Maxim Bourmistrov * */ /* This file is part of the KDE libraries Copyright (C) 2007 Oswald Buddenhagen This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef KPROCESS_H #define KPROCESS_H //#include #include class KProcessPrivate; /** * \class KProcess kprocess.h * * Child process invocation, monitoring and control. * * This class extends QProcess by some useful functionality, overrides * some defaults with saner values and wraps parts of the API into a more * accessible one. * This is the preferred way of spawning child processes in KDE; don't * use QProcess directly. * * @author Oswald Buddenhagen **/ class KProcess : public QProcess { Q_OBJECT Q_DECLARE_PRIVATE(KProcess) public: /** * Modes in which the output channels can be opened. */ enum OutputChannelMode { SeparateChannels = QProcess::SeparateChannels, /**< Standard output and standard error are handled by KProcess as separate channels */ MergedChannels = QProcess::MergedChannels, /**< Standard output and standard error are handled by KProcess as one channel */ ForwardedChannels = QProcess::ForwardedChannels, /**< Both standard output and standard error are forwarded to the parent process' respective channel */ OnlyStdoutChannel, /**< Only standard output is handled; standard error is forwarded */ OnlyStderrChannel /**< Only standard error is handled; standard output is forwarded */ }; /** * Constructor */ explicit KProcess(QObject *parent = nullptr); /** * Destructor */ ~KProcess() override; /** * Set how to handle the output channels of the child process. * * The default is ForwardedChannels, which is unlike in QProcess. * Do not request more than you actually handle, as this output is * simply lost otherwise. * * This function must be called before starting the process. * * @param mode the output channel handling mode */ void setOutputChannelMode(OutputChannelMode mode); /** * Query how the output channels of the child process are handled. * * @return the output channel handling mode */ OutputChannelMode outputChannelMode() const; /** * Set the QIODevice open mode the process will be opened in. * * This function must be called before starting the process, obviously. * * @param mode the open mode. Note that this mode is automatically * "reduced" according to the channel modes and redirections. * The default is QIODevice::ReadWrite. */ void setNextOpenMode(QIODevice::OpenMode mode); /** * Adds the variable @p name to the process' environment. * * This function must be called before starting the process. * * @param name the name of the environment variable * @param value the new value for the environment variable * @param overwrite if @c false and the environment variable is already * set, the old value will be preserved */ void setEnv(const QString &name, const QString &value, bool overwrite = true); /** * Removes the variable @p name from the process' environment. * * This function must be called before starting the process. * * @param name the name of the environment variable */ void unsetEnv(const QString &name); /** * Empties the process' environment. * * Note that LD_LIBRARY_PATH/DYLD_LIBRARY_PATH is automatically added * on *NIX. * * This function must be called before starting the process. */ void clearEnvironment(); /** * Set the program and the command line arguments. * * This function must be called before starting the process, obviously. * * @param exe the program to execute * @param args the command line arguments for the program, * one per list element */ void setProgram(const QString &exe, const QStringList &args = QStringList()); /** * @overload * * @param argv the program to execute and the command line arguments * for the program, one per list element */ void setProgram(const QStringList &argv); /** * Append an element to the command line argument list for this process. * * If no executable is set yet, it will be set instead. * * For example, doing an "ls -l /usr/local/bin" can be achieved by: * \code * KProcess p; * p << "ls" << "-l" << "/usr/local/bin"; * ... * \endcode * * This function must be called before starting the process, obviously. * * @param arg the argument to add * @return a reference to this KProcess */ KProcess &operator<<(const QString &arg); /** * @overload * * @param args the arguments to add * @return a reference to this KProcess */ KProcess &operator<<(const QStringList &args); /** * Clear the program and command line argument list. */ void clearProgram(); /** * Set a command to execute through a shell (a POSIX sh on *NIX * and cmd.exe on Windows). * * Using this for anything but user-supplied commands is usually a bad * idea, as the command's syntax depends on the platform. * Redirections including pipes, etc. are better handled by the * respective functions provided by QProcess. * * If KProcess determines that the command does not really need a * shell, it will trasparently execute it without one for performance * reasons. * * This function must be called before starting the process, obviously. * * @param cmd the command to execute through a shell. * The caller must make sure that all filenames etc. are properly * quoted when passed as argument. Failure to do so often results in * serious security holes. See KShell::quoteArg(). */ void setShellCommand(const QString &cmd); /** * Obtain the currently set program and arguments. * * @return a list, the first element being the program, the remaining ones * being command line arguments to the program. */ QStringList program() const; /** * Start the process. * * @see QProcess::start(const QString &, const QStringList &, OpenMode) */ void start(); /** * Start the process, wait for it to finish, and return the exit code. * * This method is roughly equivalent to the sequence: * * start(); * waitForFinished(msecs); * return exitCode(); * * * Unlike the other execute() variants this method is not static, * so the process can be parametrized properly and talked to. * * @param msecs time to wait for process to exit before killing it * @return -2 if the process could not be started, -1 if it crashed, * otherwise its exit code */ int execute(int msecs = -1); /** * @overload * * @param exe the program to execute * @param args the command line arguments for the program, * one per list element * @param msecs time to wait for process to exit before killing it * @return -2 if the process could not be started, -1 if it crashed, * otherwise its exit code */ static int execute(const QString &exe, const QStringList &args = QStringList(), int msecs = -1); /** * @overload * * @param argv the program to execute and the command line arguments * for the program, one per list element * @param msecs time to wait for process to exit before killing it * @return -2 if the process could not be started, -1 if it crashed, * otherwise its exit code */ static int execute(const QStringList &argv, int msecs = -1); /** * Start the process and detach from it. See QProcess::startDetached() * for details. * * Unlike the other startDetached() variants this method is not static, * so the process can be parametrized properly. * @note Currently, only the setProgram()/setShellCommand() and * setWorkingDirectory() parametrizations are supported. * * The KProcess object may be re-used immediately after calling this * function. * * @return the PID of the started process or 0 on error */ int startDetached(); /** * @overload * * @param exe the program to start * @param args the command line arguments for the program, * one per list element * @return the PID of the started process or 0 on error */ static int startDetached(const QString &exe, const QStringList &args = QStringList()); /** * @overload * * @param argv the program to start and the command line arguments * for the program, one per list element * @return the PID of the started process or 0 on error */ static int startDetached(const QStringList &argv); /** * Obtain the process' ID as known to the system. * * Unlike with QProcess::pid(), this is a real PID also on Windows. * * This function can be called only while the process is running. * It cannot be applied to detached processes. * * @return the process ID */ int pid() const; protected: /** * @internal */ KProcess(KProcessPrivate *d, QObject *parent); /** * @internal */ KProcessPrivate *const d_ptr; private: // hide those #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) using QProcess::setReadChannelMode; using QProcess::readChannelMode; #endif using QProcess::setProcessChannelMode; using QProcess::processChannelMode; Q_PRIVATE_SLOT(d_func(), void _k_forwardStdout()) Q_PRIVATE_SLOT(d_func(), void _k_forwardStderr()) }; /* ----------- kprocess_p.h ---------------- */ class KProcessPrivate { Q_DECLARE_PUBLIC(KProcess) protected: KProcessPrivate() : openMode(QIODevice::ReadWrite) { } virtual ~KProcessPrivate() { } void writeAll(const QByteArray &buf, int fd); void forwardStd(KProcess::ProcessChannel good, int fd); void _k_forwardStdout(); void _k_forwardStderr(); QString prog; QStringList args; KProcess::OutputChannelMode outputChannelMode; QIODevice::OpenMode openMode; KProcess *q_ptr; }; /* ------------------------------------------- */ #endif deepin-deb-installer-6.5.5/src/deb-installer/process/kpty.cpp000066400000000000000000000416141474340456100242210ustar00rootroot00000000000000/* This file is part of the KDE libraries Copyright (C) 2002 Waldo Bastian Copyright (C) 2002-2003,2007 Oswald Buddenhagen Rewritten for QT4 by e_k , Copyright (C)2008 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "kpty_p.h" #include #define HAVE_POSIX_OPENPT #if defined(__FreeBSD__) || defined(__DragonFly__) #define HAVE_LOGIN #define HAVE_LIBUTIL_H #endif #if defined(__OpenBSD__) #define HAVE_LOGIN #define HAVE_UTIL_H #endif #if defined(__NetBSD__) #define HAVE_LOGIN #define HAVE_UTIL_H #define HAVE_OPENPTY #endif #if defined(__APPLE__) #define HAVE_OPENPTY #define HAVE_UTIL_H #endif #ifdef __sgi #define __svr4__ #endif #ifdef __osf__ #define _OSF_SOURCE #include #endif #ifdef _AIX #define _ALL_SOURCE #endif // __USE_XOPEN isn't defined by default in ICC // (needed for ptsname(), grantpt() and unlockpt()) #ifdef __INTEL_COMPILER # ifndef __USE_XOPEN # define __USE_XOPEN # endif #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if defined(HAVE_PTY_H) # include #endif #ifdef HAVE_LIBUTIL_H # include #elif defined(HAVE_UTIL_H) # include #endif #ifdef HAVE_UTEMPTER extern "C" { # include } #else # include # ifdef HAVE_UTMPX # include # endif # if !defined(_PATH_UTMPX) && defined(_UTMPX_FILE) # define _PATH_UTMPX _UTMPX_FILE # endif # ifdef HAVE_UPDWTMPX # if !defined(_PATH_WTMPX) && defined(_WTMPX_FILE) # define _PATH_WTMPX _WTMPX_FILE # endif # endif #endif /* for HP-UX (some versions) the extern C is needed, and for other platforms it doesn't hurt */ extern "C" { #include #if defined(HAVE_TERMIO_H) # include // struct winsize on some systems #endif } #if defined (_HPUX_SOURCE) # define _TERMIOS_INCLUDED # include #endif #ifdef HAVE_SYS_STROPTS_H # include // Defines I_PUSH # define _NEW_TTY_CTRL #endif #if defined (__FreeBSD__) || defined(__FreeBSD_kernel__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) || defined (__DragonFly__) # define _tcgetattr(fd, ttmode) ioctl(fd, TIOCGETA, (char *)ttmode) #else # if defined(_HPUX_SOURCE) || defined(__Lynx__) || defined (__CYGWIN__) || defined(__GNU__) # define _tcgetattr(fd, ttmode) tcgetattr(fd, ttmode) # else # define _tcgetattr(fd, ttmode) ioctl(fd, TCGETS, (char *)ttmode) # endif #endif #if defined (__FreeBSD__) || defined(__FreeBSD_kernel__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) || defined (__DragonFly__) # define _tcsetattr(fd, ttmode) ioctl(fd, TIOCSETA, (char *)ttmode) #else # if defined(_HPUX_SOURCE) || defined(__CYGWIN__) || defined(__GNU__) # define _tcsetattr(fd, ttmode) tcsetattr(fd, TCSANOW, ttmode) # else # define _tcsetattr(fd, ttmode) ioctl(fd, TCSETS, (char *)ttmode) # endif #endif //#include //#include // findExe // not defined on HP-UX for example #ifndef CTRL # define CTRL(x) ((x) & 037) #endif #define TTY_GROUP "tty" /////////////////////// // private functions // /////////////////////// ////////////////// // private data // ////////////////// KPtyPrivate::KPtyPrivate(KPty* parent) : masterFd(-1), slaveFd(-1), ownMaster(true), q_ptr(parent) { } KPtyPrivate::~KPtyPrivate() { } bool KPtyPrivate::chownpty(bool) { // return !QProcess::execute(KStandardDirs::findExe("kgrantpty"), // QStringList() << (grant?"--grant":"--revoke") << QString::number(masterFd)); return true; } ///////////////////////////// // public member functions // ///////////////////////////// KPty::KPty() : d_ptr(new KPtyPrivate(this)) { } KPty::KPty(KPtyPrivate *d) : d_ptr(d) { d_ptr->q_ptr = this; } KPty::~KPty() { close(); delete d_ptr; } bool KPty::open() { Q_D(KPty); if (d->masterFd >= 0) return true; d->ownMaster = true; QByteArray ptyName; // Find a master pty that we can open //////////////////////////////// // Because not all the pty animals are created equal, they want to // be opened by several different methods. // We try, as we know them, one by one. #ifdef HAVE_OPENPTY char ptsn[PATH_MAX]; if (::openpty( &d->masterFd, &d->slaveFd, ptsn, 0, 0)) { d->masterFd = -1; d->slaveFd = -1; qWarning() << "Can't open a pseudo teletype"; return false; } d->ttyName = ptsn; #else #ifdef HAVE__GETPTY // irix char *ptsn = _getpty(&d->masterFd, O_RDWR|O_NOCTTY, S_IRUSR|S_IWUSR, 0); if (ptsn) { d->ttyName = ptsn; goto grantedpt; } #elif defined(HAVE_PTSNAME) || defined(TIOCGPTN) #ifdef HAVE_POSIX_OPENPT d->masterFd = ::posix_openpt(O_RDWR|O_NOCTTY); #elif defined(HAVE_GETPT) d->masterFd = ::getpt(); #elif defined(PTM_DEVICE) d->masterFd = ::open(PTM_DEVICE, O_RDWR|O_NOCTTY); #else # error No method to open a PTY master detected. #endif if (d->masterFd >= 0) { #ifdef HAVE_PTSNAME char *ptsn = ptsname(d->masterFd); if (ptsn) { d->ttyName = ptsn; #else int ptyno; if (!ioctl(d->masterFd, TIOCGPTN, &ptyno)) { d->ttyName = QByteArray("/dev/pts/") + QByteArray::number(ptyno); #endif #ifdef HAVE_GRANTPT if (!grantpt(d->masterFd)) { goto grantedpt; } #else goto gotpty; #endif } ::close(d->masterFd); d->masterFd = -1; } #endif // HAVE_PTSNAME || TIOCGPTN // Linux device names, FIXME: Trouble on other systems? for (const char * s3 = "pqrstuvwxyzabcde"; *s3; s3++) { for (const char * s4 = "0123456789abcdef"; *s4; s4++) { ptyName = QByteArrayLiteral("/dev/pty") + *s3 + *s4; d->ttyName = QByteArrayLiteral("/dev/tty") + *s3 + *s4; d->masterFd = ::open(ptyName.data(), O_RDWR); if (d->masterFd >= 0) { #ifdef Q_OS_SOLARIS /* Need to check the process group of the pty. * If it exists, then the slave pty is in use, * and we need to get another one. */ int pgrp_rtn; if (ioctl(d->masterFd, TIOCGPGRP, &pgrp_rtn) == 0 || errno != EIO) { ::close(d->masterFd); d->masterFd = -1; continue; } #endif /* Q_OS_SOLARIS */ if (!access(d->ttyName.data(),R_OK|W_OK)) { // checks availability based on permission bits if (!geteuid()) { struct group * p = getgrnam(TTY_GROUP); if (!p) { p = getgrnam("wheel"); } gid_t gid = p ? p->gr_gid : getgid (); if (!chown(d->ttyName.data(), getuid(), gid)) { chmod(d->ttyName.data(), S_IRUSR|S_IWUSR|S_IWGRP); } } goto gotpty; } ::close(d->masterFd); d->masterFd = -1; } } } qWarning() << "Can't open a pseudo teletype"; return false; gotpty: struct stat st; if (stat(d->ttyName.data(), &st)) { return false; // this just cannot happen ... *cough* Yeah right, I just // had it happen when pty #349 was allocated. I guess // there was some sort of leak? I only had a few open. } if (((st.st_uid != getuid()) || (st.st_mode & (S_IRGRP|S_IXGRP|S_IROTH|S_IWOTH|S_IXOTH))) && !d->chownpty(true)) { qWarning() << "chownpty failed for device " << ptyName << "::" << d->ttyName << "\nThis means the communication can be eavesdropped."; } #if defined (HAVE__GETPTY) || defined (HAVE_GRANTPT) grantedpt: #endif #ifdef HAVE_REVOKE revoke(d->ttyName.data()); #endif #ifdef HAVE_UNLOCKPT unlockpt(d->masterFd); #elif defined(TIOCSPTLCK) int flag = 0; ioctl(d->masterFd, TIOCSPTLCK, &flag); #endif d->slaveFd = ::open(d->ttyName.data(), O_RDWR | O_NOCTTY); if (d->slaveFd < 0) { qWarning() << "Can't open slave pseudo teletype"; ::close(d->masterFd); d->masterFd = -1; return false; } #if (defined(__svr4__) || defined(__sgi__)) // Solaris ioctl(d->slaveFd, I_PUSH, "ptem"); ioctl(d->slaveFd, I_PUSH, "ldterm"); #endif #endif /* HAVE_OPENPTY */ fcntl(d->masterFd, F_SETFD, FD_CLOEXEC); fcntl(d->slaveFd, F_SETFD, FD_CLOEXEC); return true; } bool KPty::open(int fd) { #if !defined(HAVE_PTSNAME) && !defined(TIOCGPTN) qWarning() << "Unsupported attempt to open pty with fd" << fd; return false; #else Q_D(KPty); if (d->masterFd >= 0) { qWarning() << "Attempting to open an already open pty"; return false; } d->ownMaster = false; # ifdef HAVE_PTSNAME char *ptsn = ptsname(fd); if (ptsn) { d->ttyName = ptsn; # else int ptyno; if (!ioctl(fd, TIOCGPTN, &ptyno)) { const size_t sz = 32; char buf[sz]; const size_t r = snprintf(buf, sz, "/dev/pts/%d", ptyno); if (sz <= r) { qWarning("KPty::open: Buffer too small\n"); } d->ttyName = buf; # endif } else { qWarning() << "Failed to determine pty slave device for fd" << fd; return false; } d->masterFd = fd; if (!openSlave()) { d->masterFd = -1; return false; } return true; #endif } void KPty::closeSlave() { Q_D(KPty); if (d->slaveFd < 0) { return; } ::close(d->slaveFd); d->slaveFd = -1; } bool KPty::openSlave() { Q_D(KPty); if (d->slaveFd >= 0) return true; if (d->masterFd < 0) { qInfo() << "Attempting to open pty slave while master is closed"; return false; } //d->slaveFd = KDE_open(d->ttyName.data(), O_RDWR | O_NOCTTY); d->slaveFd = ::open(d->ttyName.data(), O_RDWR | O_NOCTTY); if (d->slaveFd < 0) { qInfo() << "Can't open slave pseudo teletype"; return false; } fcntl(d->slaveFd, F_SETFD, FD_CLOEXEC); return true; } void KPty::close() { Q_D(KPty); if (d->masterFd < 0) { return; } closeSlave(); // don't bother resetting unix98 pty, it will go away after closing master anyway. if (memcmp(d->ttyName.data(), "/dev/pts/", 9)) { if (!geteuid()) { struct stat st; if (!stat(d->ttyName.data(), &st)) { chown(d->ttyName.data(), 0, st.st_gid == getgid() ? 0 : -1); chmod(d->ttyName.data(), S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH); } } else { fcntl(d->masterFd, F_SETFD, 0); d->chownpty(false); } } ::close(d->masterFd); d->masterFd = -1; } void KPty::setCTty() { Q_D(KPty); // Setup job control ////////////////////////////////// // Become session leader, process group leader, // and get rid of the old controlling terminal. setsid(); // make our slave pty the new controlling terminal. #ifdef TIOCSCTTY ioctl(d->slaveFd, TIOCSCTTY, 0); #else // __svr4__ hack: the first tty opened after setsid() becomes controlling tty ::close(::open(d->ttyName, O_WRONLY, 0)); #endif // make our new process group the foreground group on the pty int pgrp = getpid(); #if defined(_POSIX_VERSION) || defined(__svr4__) tcsetpgrp(d->slaveFd, pgrp); #elif defined(TIOCSPGRP) ioctl(d->slaveFd, TIOCSPGRP, (char *)&pgrp); #endif } void KPty::login(const char * user, const char * remotehost) { #ifdef HAVE_UTEMPTER Q_D(KPty); addToUtmp(d->ttyName.constData(), remotehost, d->masterFd); Q_UNUSED(user); #else # ifdef HAVE_UTMPX struct utmpx l_struct; # else struct utmp l_struct; # endif memset(&l_struct, 0, sizeof(l_struct)); // note: strncpy without terminators _is_ correct here. man 4 utmp if (user) { # ifdef HAVE_UTMPX strncpy(l_struct.ut_user, user, sizeof(l_struct.ut_user)); # else strncpy(l_struct.ut_name, user, sizeof(l_struct.ut_name)); # endif } if (remotehost) { strncpy(l_struct.ut_host, remotehost, sizeof(l_struct.ut_host)); # ifdef HAVE_STRUCT_UTMP_UT_SYSLEN l_struct.ut_syslen = qMin(strlen(remotehost), sizeof(l_struct.ut_host)); # endif } # ifndef __GLIBC__ Q_D(KPty); const char * str_ptr = d->ttyName.data(); if (!memcmp(str_ptr, "/dev/", 5)) { str_ptr += 5; } strncpy(l_struct.ut_line, str_ptr, sizeof(l_struct.ut_line)); # ifdef HAVE_STRUCT_UTMP_UT_ID strncpy(l_struct.ut_id, str_ptr + strlen(str_ptr) - sizeof(l_struct.ut_id), sizeof(l_struct.ut_id)); # endif # endif # ifdef HAVE_UTMPX gettimeofday(&l_struct.ut_tv, 0); # else l_struct.ut_time = time(nullptr); # endif # ifdef HAVE_LOGIN # ifdef HAVE_LOGINX ::loginx(&l_struct); # else ::login(&l_struct); # endif # else # ifdef HAVE_STRUCT_UTMP_UT_TYPE l_struct.ut_type = USER_PROCESS; # endif # ifdef HAVE_STRUCT_UTMP_UT_PID l_struct.ut_pid = getpid(); # ifdef HAVE_STRUCT_UTMP_UT_SESSION l_struct.ut_session = getsid(0); # endif # endif # ifdef HAVE_UTMPX utmpxname(_PATH_UTMPX); setutxent(); pututxline(&l_struct); endutxent(); # ifdef HAVE_UPDWTMPX updwtmpx(_PATH_WTMPX, &l_struct); # endif # else utmpname(_PATH_UTMP); setutent(); pututline(&l_struct); endutent(); updwtmp(_PATH_WTMP, &l_struct); # endif # endif #endif } void KPty::logout() { #ifdef HAVE_UTEMPTER Q_D(KPty); removeLineFromUtmp(d->ttyName.constData(), d->masterFd); #else Q_D(KPty); const char *str_ptr = d->ttyName.data(); if (!memcmp(str_ptr, "/dev/", 5)) { str_ptr += 5; } # ifdef __GLIBC__ else { const char * sl_ptr = strrchr(str_ptr, '/'); if (sl_ptr) { str_ptr = sl_ptr + 1; } } # endif # ifdef HAVE_LOGIN # ifdef HAVE_LOGINX ::logoutx(str_ptr, 0, DEAD_PROCESS); # else ::logout(str_ptr); # endif # else # ifdef HAVE_UTMPX struct utmpx l_struct, *ut; # else struct utmp l_struct, *ut; # endif memset(&l_struct, 0, sizeof(l_struct)); strncpy(l_struct.ut_line, str_ptr, sizeof(l_struct.ut_line)); # ifdef HAVE_UTMPX utmpxname(_PATH_UTMPX); setutxent(); if ((ut = getutxline(&l_struct))) { # else utmpname(_PATH_UTMP); setutent(); if ((ut = getutline(&l_struct))) { # endif # ifdef HAVE_UTMPX memset(ut->ut_user, 0, sizeof(*ut->ut_user)); # else memset(ut->ut_name, 0, sizeof(*ut->ut_name)); # endif memset(ut->ut_host, 0, sizeof(*ut->ut_host)); # ifdef HAVE_STRUCT_UTMP_UT_SYSLEN ut->ut_syslen = 0; # endif # ifdef HAVE_STRUCT_UTMP_UT_TYPE ut->ut_type = DEAD_PROCESS; # endif # ifdef HAVE_UTMPX gettimeofday(&ut->ut_tv, 0); pututxline(ut); } endutxent(); # else ut->ut_time = time(nullptr); pututline(ut); } endutent(); # endif # endif #endif } // XXX Supposedly, tc[gs]etattr do not work with the master on Solaris. // Please verify. bool KPty::tcGetAttr(struct ::termios * ttmode) const { Q_D(const KPty); return _tcgetattr(d->masterFd, ttmode) == 0; } bool KPty::tcSetAttr(struct ::termios * ttmode) { Q_D(KPty); return _tcsetattr(d->masterFd, ttmode) == 0; } bool KPty::setWinSize(int lines, int columns) { Q_D(KPty); struct winsize winSize; memset(&winSize, 0, sizeof(winSize)); winSize.ws_row = (unsigned short)lines; winSize.ws_col = (unsigned short)columns; return ioctl(d->masterFd, TIOCSWINSZ, (char *)&winSize) == 0; } bool KPty::setEcho(bool echo) { struct ::termios ttmode; if (!tcGetAttr(&ttmode)) { return false; } if (!echo) { ttmode.c_lflag &= ~ECHO; } else { ttmode.c_lflag |= ECHO; } return tcSetAttr(&ttmode); } const char * KPty::ttyName() const { Q_D(const KPty); return d->ttyName.data(); } int KPty::masterFd() const { Q_D(const KPty); return d->masterFd; } int KPty::slaveFd() const { Q_D(const KPty); return d->slaveFd; } deepin-deb-installer-6.5.5/src/deb-installer/process/kpty.h000066400000000000000000000125671474340456100236730ustar00rootroot00000000000000/* This file is part of the KDE libraries Copyright (C) 2003,2007 Oswald Buddenhagen Rewritten for QT4 by e_k , Copyright (C)2008 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef kpty_h #define kpty_h #include class KPtyPrivate; struct termios; /** * Provides primitives for opening & closing a pseudo TTY pair, assigning the * controlling TTY, utmp registration and setting various terminal attributes. */ class KPty { Q_DECLARE_PRIVATE(KPty) public: /** * Constructor */ KPty(); /** * Destructor: * * If the pty is still open, it will be closed. Note, however, that * an utmp registration is @em not undone. */ ~KPty(); /** * Create a pty master/slave pair. * * @return true if a pty pair was successfully opened */ bool open(); bool open(int fd); /** * Close the pty master/slave pair. */ void close(); /** * Close the pty slave descriptor. * * When creating the pty, KPty also opens the slave and keeps it open. * Consequently the master will never receive an EOF notification. * Usually this is the desired behavior, as a closed pty slave can be * reopened any time - unlike a pipe or socket. However, in some cases * pipe-alike behavior might be desired. * * After this function was called, slaveFd() and setCTty() cannot be * used. */ void closeSlave(); bool openSlave(); /** * Creates a new session and process group and makes this pty the * controlling tty. */ void setCTty(); /** * Creates an utmp entry for the tty. * This function must be called after calling setCTty and * making this pty the stdin. * @param user the user to be logged on * @param remotehost the host from which the login is coming. This is * @em not the local host. For remote logins it should be the hostname * of the client. For local logins from inside an X session it should * be the name of the X display. Otherwise it should be empty. */ void login(const char * user = nullptr, const char * remotehost = nullptr); /** * Removes the utmp entry for this tty. */ void logout(); /** * Wrapper around tcgetattr(3). * * This function can be used only while the PTY is open. * You will need an #include <termios.h> to do anything useful * with it. * * @param ttmode a pointer to a termios structure. * Note: when declaring ttmode, @c struct @c ::termios must be used - * without the '::' some version of HP-UX thinks, this declares * the struct in your class, in your method. * @return @c true on success, false otherwise */ bool tcGetAttr(struct ::termios * ttmode) const; /** * Wrapper around tcsetattr(3) with mode TCSANOW. * * This function can be used only while the PTY is open. * * @param ttmode a pointer to a termios structure. * @return @c true on success, false otherwise. Note that success means * that @em at @em least @em one attribute could be set. */ bool tcSetAttr(struct ::termios * ttmode); /** * Change the logical (screen) size of the pty. * The default is 24 lines by 80 columns. * * This function can be used only while the PTY is open. * * @param lines the number of rows * @param columns the number of columns * @return @c true on success, false otherwise */ bool setWinSize(int lines, int columns); /** * Set whether the pty should echo input. * * Echo is on by default. * If the output of automatically fed (non-interactive) PTY clients * needs to be parsed, disabling echo often makes it much simpler. * * This function can be used only while the PTY is open. * * @param echo true if input should be echoed. * @return @c true on success, false otherwise */ bool setEcho(bool echo); /** * @return the name of the slave pty device. * * This function should be called only while the pty is open. */ const char * ttyName() const; /** * @return the file descriptor of the master pty * * This function should be called only while the pty is open. */ int masterFd() const; /** * @return the file descriptor of the slave pty * * This function should be called only while the pty slave is open. */ int slaveFd() const; protected: /** * @internal */ KPty(KPtyPrivate * d); /** * @internal */ KPtyPrivate * const d_ptr; }; #endif deepin-deb-installer-6.5.5/src/deb-installer/process/kpty_p.h000066400000000000000000000024331474340456100242010ustar00rootroot00000000000000/* This file is part of the KDE libraries Copyright (C) 2003,2007 Oswald Buddenhagen Rewritten for QT4 by e_k , Copyright (C)2008 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef kpty_p_h #define kpty_p_h #include "kpty.h" #include class KPtyPrivate { public: Q_DECLARE_PUBLIC(KPty) KPtyPrivate(KPty* parent); virtual ~KPtyPrivate(); bool chownpty(bool grant); int masterFd; int slaveFd; bool ownMaster:1; QByteArray ttyName; KPty *q_ptr; }; #endif deepin-deb-installer-6.5.5/src/deb-installer/process/kptydevice.cpp000066400000000000000000000252531474340456100254020ustar00rootroot00000000000000/* * This file is a part of QTerminal - http://gitorious.org/qterminal * * This file was un-linked from KDE and modified * by Maxim Bourmistrov * */ /* This file is part of the KDE libraries Copyright (C) 2007 Oswald Buddenhagen Copyright (C) 2010 KDE e.V. Author Adriaan de Groot This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "kptydevice.h" #include "kpty_p.h" #include #include #include #include #include #include #include #ifdef HAVE_SYS_FILIO_H # include #endif #ifdef HAVE_SYS_TIME_H # include #endif #if defined(Q_OS_FREEBSD) || defined(Q_OS_MAC) // "the other end's output queue size" - kinda braindead, huh? # define PTY_BYTES_AVAILABLE TIOCOUTQ #elif defined(TIOCINQ) // "our end's input queue size" # define PTY_BYTES_AVAILABLE TIOCINQ #else // likewise. more generic ioctl (theoretically) # define PTY_BYTES_AVAILABLE FIONREAD #endif ////////////////// // private data // ////////////////// // Lifted from Qt. I don't think they would mind. ;) // Re-lift again from Qt whenever a proper replacement for pthread_once appears static void qt_ignore_sigpipe() { static QBasicAtomicInt atom = Q_BASIC_ATOMIC_INITIALIZER(0); if (atom.testAndSetRelaxed(0, 1)) { struct sigaction noaction; memset(&noaction, 0, sizeof(noaction)); noaction.sa_handler = SIG_IGN; sigaction(SIGPIPE, &noaction, nullptr); } } #define NO_INTR(ret,func) do { ret = func; } while (ret < 0 && errno == EINTR) bool KPtyDevicePrivate::_k_canRead() { Q_Q(KPtyDevice); qint64 readBytes = 0; #ifdef Q_OS_IRIX // this should use a config define, but how to check it? size_t available; #else int available; #endif if (!::ioctl(q->masterFd(), PTY_BYTES_AVAILABLE, (char *) &available)) { #ifdef Q_OS_SOLARIS // A Pty is a STREAMS module, and those can be activated // with 0 bytes available. This happens either when ^C is // pressed, or when an application does an explicit write(a,b,0) // which happens in experiments fairly often. When 0 bytes are // available, you must read those 0 bytes to clear the STREAMS // module, but we don't want to hit the !readBytes case further down. if (!available) { char c; // Read the 0-byte STREAMS message NO_INTR(readBytes, read(q->masterFd(), &c, 0)); // Should return 0 bytes read; -1 is error if (readBytes < 0) { readNotifier->setEnabled(false); emit q->readEof(); return false; } return true; } #endif char *ptr = readBuffer.reserve(available); #ifdef Q_OS_SOLARIS // Even if available > 0, it is possible for read() // to return 0 on Solaris, due to 0-byte writes in the stream. // Ignore them and keep reading until we hit *some* data. // In Solaris it is possible to have 15 bytes available // and to (say) get 0, 0, 6, 0 and 9 bytes in subsequent reads. // Because the stream is set to O_NONBLOCK in finishOpen(), // an EOF read will return -1. readBytes = 0; while (!readBytes) #endif // Useless block braces except in Solaris { NO_INTR(readBytes, read(q->masterFd(), ptr, available)); } if (readBytes < 0) { readBuffer.unreserve(available); q->setErrorString(QLatin1String("Error reading from PTY")); return false; } readBuffer.unreserve(available - readBytes); // *should* be a no-op } if (!readBytes) { readNotifier->setEnabled(false); emit q->readEof(); return false; } else { if (!emittedReadyRead) { emittedReadyRead = true; emit q->readyRead(); emittedReadyRead = false; } return true; } } bool KPtyDevicePrivate::_k_canWrite() { Q_Q(KPtyDevice); writeNotifier->setEnabled(false); if (writeBuffer.isEmpty()) return false; qt_ignore_sigpipe(); int wroteBytes; NO_INTR(wroteBytes, write(q->masterFd(), writeBuffer.readPointer(), writeBuffer.readSize())); if (wroteBytes < 0) { q->setErrorString(QLatin1String("Error writing to PTY")); return false; } writeBuffer.free(wroteBytes); if (!emittedBytesWritten) { emittedBytesWritten = true; emit q->bytesWritten(wroteBytes); emittedBytesWritten = false; } if (!writeBuffer.isEmpty()) writeNotifier->setEnabled(true); return true; } #ifndef timeradd // Lifted from GLIBC # define timeradd(a, b, result) \ do { \ (result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \ (result)->tv_usec = (a)->tv_usec + (b)->tv_usec; \ if ((result)->tv_usec >= 1000000) { \ ++(result)->tv_sec; \ (result)->tv_usec -= 1000000; \ } \ } while (0) # define timersub(a, b, result) \ do { \ (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \ if ((result)->tv_usec < 0) { \ --(result)->tv_sec; \ (result)->tv_usec += 1000000; \ } \ } while (0) #endif bool KPtyDevicePrivate::doWait(int msecs, bool reading) { Q_Q(KPtyDevice); #ifndef __linux__ struct timeval etv; #endif struct timeval tv, *tvp; if (msecs < 0) tvp = nullptr; else { tv.tv_sec = msecs / 1000; tv.tv_usec = (msecs % 1000) * 1000; #ifndef __linux__ gettimeofday(&etv, 0); timeradd(&tv, &etv, &etv); #endif tvp = &tv; } while (reading ? readNotifier->isEnabled() : !writeBuffer.isEmpty()) { fd_set rfds; fd_set wfds; FD_ZERO(&rfds); FD_ZERO(&wfds); if (readNotifier->isEnabled()) FD_SET(q->masterFd(), &rfds); if (!writeBuffer.isEmpty()) FD_SET(q->masterFd(), &wfds); #ifndef __linux__ if (tvp) { gettimeofday(&tv, 0); timersub(&etv, &tv, &tv); if (tv.tv_sec < 0) tv.tv_sec = tv.tv_usec = 0; } #endif switch (select(q->masterFd() + 1, &rfds, &wfds, nullptr, tvp)) { case -1: if (errno == EINTR) break; return false; case 0: q->setErrorString(QLatin1String("PTY operation timed out")); return false; default: if (FD_ISSET(q->masterFd(), &rfds)) { bool canRead = _k_canRead(); if (reading && canRead) return true; } if (FD_ISSET(q->masterFd(), &wfds)) { bool canWrite = _k_canWrite(); if (!reading) return canWrite; } break; } } return false; } void KPtyDevicePrivate::finishOpen(QIODevice::OpenMode mode) { Q_Q(KPtyDevice); q->QIODevice::open(mode); fcntl(q->masterFd(), F_SETFL, O_NONBLOCK); readBuffer.clear(); readNotifier = new QSocketNotifier(q->masterFd(), QSocketNotifier::Read, q); writeNotifier = new QSocketNotifier(q->masterFd(), QSocketNotifier::Write, q); QObject::connect(readNotifier, SIGNAL(activated(int)), q, SLOT(_k_canRead())); QObject::connect(writeNotifier, SIGNAL(activated(int)), q, SLOT(_k_canWrite())); readNotifier->setEnabled(true); } ///////////////////////////// // public member functions // ///////////////////////////// KPtyDevice::KPtyDevice(QObject *parent) : QIODevice(parent), KPty(new KPtyDevicePrivate(this)) { } KPtyDevice::~KPtyDevice() { close(); } bool KPtyDevice::open(OpenMode mode) { Q_D(KPtyDevice); if (masterFd() >= 0) return true; if (!KPty::open()) { setErrorString(QLatin1String("Error opening PTY")); return false; } d->finishOpen(mode); return true; } bool KPtyDevice::open(int fd, OpenMode mode) { Q_D(KPtyDevice); if (!KPty::open(fd)) { setErrorString(QLatin1String("Error opening PTY")); return false; } d->finishOpen(mode); return true; } void KPtyDevice::close() { Q_D(KPtyDevice); if (masterFd() < 0) return; delete d->readNotifier; delete d->writeNotifier; QIODevice::close(); KPty::close(); } bool KPtyDevice::isSequential() const { return true; } bool KPtyDevice::canReadLine() const { Q_D(const KPtyDevice); return QIODevice::canReadLine() || d->readBuffer.canReadLine(); } bool KPtyDevice::atEnd() const { Q_D(const KPtyDevice); return QIODevice::atEnd() && d->readBuffer.isEmpty(); } qint64 KPtyDevice::bytesAvailable() const { Q_D(const KPtyDevice); return QIODevice::bytesAvailable() + d->readBuffer.size(); } qint64 KPtyDevice::bytesToWrite() const { Q_D(const KPtyDevice); return d->writeBuffer.size(); } bool KPtyDevice::waitForReadyRead(int msecs) { Q_D(KPtyDevice); return d->doWait(msecs, true); } bool KPtyDevice::waitForBytesWritten(int msecs) { Q_D(KPtyDevice); return d->doWait(msecs, false); } void KPtyDevice::setSuspended(bool suspended) { Q_D(KPtyDevice); d->readNotifier->setEnabled(!suspended); } bool KPtyDevice::isSuspended() const { Q_D(const KPtyDevice); return !d->readNotifier->isEnabled(); } // protected qint64 KPtyDevice::readData(char *data, qint64 maxlen) { Q_D(KPtyDevice); return d->readBuffer.read(data, (int)qMin(maxlen, KMAXINT)); } // protected qint64 KPtyDevice::readLineData(char *data, qint64 maxlen) { Q_D(KPtyDevice); return d->readBuffer.readLine(data, (int)qMin(maxlen, KMAXINT)); } // protected qint64 KPtyDevice::writeData(const char *data, qint64 len) { Q_D(KPtyDevice); Q_ASSERT(len <= KMAXINT); d->writeBuffer.write(data, len); d->writeNotifier->setEnabled(true); return len; } deepin-deb-installer-6.5.5/src/deb-installer/process/kptydevice.h000066400000000000000000000222131474340456100250400ustar00rootroot00000000000000/* * This file is a part of QTerminal - http://gitorious.org/qterminal * * This file was un-linked from KDE and modified * by Maxim Bourmistrov * */ /* This file is part of the KDE libraries Copyright (C) 2007 Oswald Buddenhagen This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef kptydev_h #define kptydev_h #include "kpty_p.h" #include #define KMAXINT ((int)(~0U >> 1)) struct KPtyDevicePrivate; class QSocketNotifier; #define Q_DECLARE_PRIVATE_MI(Class, SuperClass) \ inline Class##Private* d_func() { return reinterpret_cast(SuperClass::d_ptr); } \ inline const Class##Private* d_func() const { return reinterpret_cast(SuperClass::d_ptr); } \ friend struct Class##Private; /** * Encapsulates KPty into a QIODevice, so it can be used with Q*Stream, etc. */ class KPtyDevice : public QIODevice, public KPty { Q_OBJECT Q_DECLARE_PRIVATE_MI(KPtyDevice, KPty) public: /** * Constructor */ KPtyDevice(QObject *parent = nullptr); /** * Destructor: * * If the pty is still open, it will be closed. Note, however, that * an utmp registration is @em not undone. */ ~KPtyDevice() override; /** * Create a pty master/slave pair. * * @return true if a pty pair was successfully opened */ bool open(OpenMode mode = ReadWrite | Unbuffered) override; /** * Open using an existing pty master. The ownership of the fd * remains with the caller, i.e., close() will not close the fd. * * This is useful if you wish to attach a secondary "controller" to an * existing pty device such as a terminal widget. * Note that you will need to use setSuspended() on both devices to * control which one gets the incoming data from the pty. * * @param fd an open pty master file descriptor. * @param mode the device mode to open the pty with. * @return true if a pty pair was successfully opened */ bool open(int fd, OpenMode mode = ReadWrite | Unbuffered); /** * Close the pty master/slave pair. */ void close() override; /** * Sets whether the KPtyDevice monitors the pty for incoming data. * * When the KPtyDevice is suspended, it will no longer attempt to buffer * data that becomes available from the pty and it will not emit any * signals. * * Do not use on closed ptys. * After a call to open(), the pty is not suspended. If you need to * ensure that no data is read, call this function before the main loop * is entered again (i.e., immediately after opening the pty). */ void setSuspended(bool suspended); /** * Returns true if the KPtyDevice is not monitoring the pty for incoming * data. * * Do not use on closed ptys. * * See setSuspended() */ bool isSuspended() const; /** * @return always true */ bool isSequential() const override; /** * @reimp */ bool canReadLine() const override; /** * @reimp */ bool atEnd() const override; /** * @reimp */ qint64 bytesAvailable() const override; /** * @reimp */ qint64 bytesToWrite() const override; bool waitForBytesWritten(int msecs = -1) override; bool waitForReadyRead(int msecs = -1) override; Q_SIGNALS: /** * Emitted when EOF is read from the PTY. * * Data may still remain in the buffers. */ void readEof(); protected: qint64 readData(char *data, qint64 maxSize) override; qint64 readLineData(char *data, qint64 maxSize) override; qint64 writeData(const char *data, qint64 maxSize) override; private: Q_PRIVATE_SLOT(d_func(), bool _k_canRead()) Q_PRIVATE_SLOT(d_func(), bool _k_canWrite()) }; ///////////////////////////////////////////////////// // Helper. Remove when QRingBuffer becomes public. // ///////////////////////////////////////////////////// #include #include #define CHUNKSIZE 4096 class KRingBuffer { public: KRingBuffer() { clear(); } void clear() { buffers.clear(); QByteArray tmp; tmp.resize(CHUNKSIZE); buffers.push_back(tmp); head = tail = 0; totalSize = 0; } inline bool isEmpty() const { return buffers.size() == 1 && !tail; } inline int size() const { return totalSize; } inline int readSize() const { return (buffers.size() == 1 ? tail : buffers.front().size()) - head; } inline const char *readPointer() const { Q_ASSERT(totalSize > 0); return buffers.front().constData() + head; } void free(int bytes) { totalSize -= bytes; Q_ASSERT(totalSize >= 0); forever { int nbs = readSize(); if (bytes < nbs) { head += bytes; if (head == tail && buffers.size() == 1) { buffers.front().resize(CHUNKSIZE); head = tail = 0; } break; } bytes -= nbs; if (buffers.size() == 1) { buffers.front().resize(CHUNKSIZE); head = tail = 0; break; } buffers.pop_front(); head = 0; } } char *reserve(int bytes) { totalSize += bytes; char *ptr; if (tail + bytes <= buffers.back().size()) { ptr = buffers.back().data() + tail; tail += bytes; } else { buffers.back().resize(tail); QByteArray tmp; tmp.resize(qMax(CHUNKSIZE, bytes)); ptr = tmp.data(); buffers.push_back(tmp); tail = bytes; } return ptr; } // release a trailing part of the last reservation inline void unreserve(int bytes) { totalSize -= bytes; tail -= bytes; } inline void write(const char *data, int len) { memcpy(reserve(len), data, len); } // Find the first occurrence of c and return the index after it. // If c is not found until maxLength, maxLength is returned, provided // it is smaller than the buffer size. Otherwise -1 is returned. int indexAfter(char c, int maxLength = KMAXINT) const { int index = 0; int start = head; std::list::const_iterator it = buffers.cbegin(); forever { if (!maxLength) return index; if (index == size()) return -1; const QByteArray &buf = *it; ++it; int len = qMin((it == buffers.cend() ? tail : buf.size()) - start, maxLength); const char *ptr = buf.data() + start; if (const char *rptr = (const char *)memchr(ptr, c, len)) return index + (rptr - ptr) + 1; index += len; maxLength -= len; start = 0; } } inline int lineSize(int maxLength = KMAXINT) const { return indexAfter('\n', maxLength); } inline bool canReadLine() const { return lineSize() != -1; } int read(char *data, int maxLength) { int bytesToRead = qMin(size(), maxLength); int readSoFar = 0; while (readSoFar < bytesToRead) { const char *ptr = readPointer(); int bs = qMin(bytesToRead - readSoFar, readSize()); memcpy(data + readSoFar, ptr, bs); readSoFar += bs; free(bs); } return readSoFar; } int readLine(char *data, int maxLength) { return read(data, lineSize(qMin(maxLength, size()))); } private: std::list buffers; int head, tail; int totalSize; }; struct KPtyDevicePrivate : public KPtyPrivate { Q_DECLARE_PUBLIC(KPtyDevice) KPtyDevicePrivate(KPty* parent) : KPtyPrivate(parent), emittedReadyRead(false), emittedBytesWritten(false), readNotifier(nullptr), writeNotifier(nullptr) { } bool _k_canRead(); bool _k_canWrite(); bool doWait(int msecs, bool reading); void finishOpen(QIODevice::OpenMode mode); bool emittedReadyRead; bool emittedBytesWritten; QSocketNotifier *readNotifier; QSocketNotifier *writeNotifier; KRingBuffer readBuffer; KRingBuffer writeBuffer; }; #endif deepin-deb-installer-6.5.5/src/deb-installer/process/kptyprocess.cpp000066400000000000000000000071531474340456100256200ustar00rootroot00000000000000/* * This file is a part of QTerminal - http://gitorious.org/qterminal * * This file was un-linked from KDE and modified * by Maxim Bourmistrov * */ /* This file is part of the KDE libraries Copyright (C) 2007 Oswald Buddenhagen This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "kptyprocess.h" #include "kprocess.h" #include "kptydevice.h" #include #include #include #include KPtyProcess::KPtyProcess(QObject *parent) : KProcess(new KPtyProcessPrivate, parent) { Q_D(KPtyProcess); d->pty = new KPtyDevice(this); d->pty->open(); connect(this, SIGNAL(stateChanged(QProcess::ProcessState)), SLOT(_k_onStateChanged(QProcess::ProcessState))); } KPtyProcess::KPtyProcess(int ptyMasterFd, QObject *parent) : KProcess(new KPtyProcessPrivate, parent) { Q_D(KPtyProcess); d->pty = new KPtyDevice(this); d->pty->open(ptyMasterFd); connect(this, SIGNAL(stateChanged(QProcess::ProcessState)), SLOT(_k_onStateChanged(QProcess::ProcessState))); } KPtyProcess::~KPtyProcess() { Q_D(KPtyProcess); if (state() != QProcess::NotRunning) { if (d->addUtmp) { d->pty->logout(); disconnect(SIGNAL(stateChanged(QProcess::ProcessState)), this, SLOT(_k_onStateChanged(QProcess::ProcessState))); } } delete d->pty; waitForFinished(300); // give it some time to finish if (state() != QProcess::NotRunning) { qWarning() << Q_FUNC_INFO << "the terminal process is still running, trying to stop it by SIGHUP"; ::kill(pid(), SIGHUP); waitForFinished(300); if (state() != QProcess::NotRunning) qCritical() << Q_FUNC_INFO << "process didn't stop upon SIGHUP and will be SIGKILL-ed"; } } void KPtyProcess::setPtyChannels(PtyChannels channels) { Q_D(KPtyProcess); d->ptyChannels = channels; } KPtyProcess::PtyChannels KPtyProcess::ptyChannels() const { Q_D(const KPtyProcess); return d->ptyChannels; } void KPtyProcess::setUseUtmp(bool value) { Q_D(KPtyProcess); d->addUtmp = value; } bool KPtyProcess::isUseUtmp() const { Q_D(const KPtyProcess); return d->addUtmp; } KPtyDevice *KPtyProcess::pty() const { Q_D(const KPtyProcess); return d->pty; } #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) void KPtyProcess::setupChildProcess() { Q_D(KPtyProcess); d->pty->setCTty(); #if 0 if (d->addUtmp) d->pty->login(KUser(KUser::UseRealUserID).loginName().toLocal8Bit().data(), qgetenv("DISPLAY")); #endif if (d->ptyChannels & StdinChannel) dup2(d->pty->slaveFd(), 0); if (d->ptyChannels & StdoutChannel) dup2(d->pty->slaveFd(), 1); if (d->ptyChannels & StderrChannel) dup2(d->pty->slaveFd(), 2); KProcess::setupChildProcess(); } #endif //#include "kptyprocess.moc" deepin-deb-installer-6.5.5/src/deb-installer/process/kptyprocess.h000066400000000000000000000114021474340456100252550ustar00rootroot00000000000000/* * This file is a part of QTerminal - http://gitorious.org/qterminal * * This file was un-linked from KDE and modified * by Maxim Bourmistrov * */ /* This file is part of the KDE libraries Copyright (C) 2007 Oswald Buddenhagen This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef KPTYPROCESS_H #define KPTYPROCESS_H #include "kprocess.h" #include "kptydevice.h" #include class KPtyDevice; class KPtyProcessPrivate; /** * This class extends KProcess by support for PTYs (pseudo TTYs). * * The PTY is opened as soon as the class is instantiated. Verify that * it was opened successfully by checking that pty()->masterFd() is not -1. * * The PTY is always made the process' controlling TTY. * Utmp registration and connecting the stdio handles to the PTY are optional. * * No attempt to integrate with QProcess' waitFor*() functions was made, * for it is impossible. Note that execute() does not work with the PTY, too. * Use the PTY device's waitFor*() functions or use it asynchronously. * * @author Oswald Buddenhagen */ class KPtyProcess : public KProcess { Q_OBJECT Q_DECLARE_PRIVATE(KPtyProcess) public: enum PtyChannelFlag { NoChannels = 0, /**< The PTY is not connected to any channel. */ StdinChannel = 1, /**< Connect PTY to stdin. */ StdoutChannel = 2, /**< Connect PTY to stdout. */ StderrChannel = 4, /**< Connect PTY to stderr. */ AllOutputChannels = 6, /**< Connect PTY to all output channels. */ AllChannels = 7 /**< Connect PTY to all channels. */ }; Q_DECLARE_FLAGS(PtyChannels, PtyChannelFlag) /** * Constructor */ explicit KPtyProcess(QObject *parent = nullptr); /** * Construct a process using an open pty master. * * @param ptyMasterFd an open pty master file descriptor. * The process does not take ownership of the descriptor; * it will not be automatically closed at any point. */ KPtyProcess(int ptyMasterFd, QObject *parent = nullptr); /** * Destructor */ ~KPtyProcess() override; /** * Set to which channels the PTY should be assigned. * * This function must be called before starting the process. * * @param channels the output channel handling mode */ void setPtyChannels(PtyChannels channels); bool isRunning() const { bool rval; (pid() > 0) ? rval= true : rval= false; return rval; } /** * Query to which channels the PTY is assigned. * * @return the output channel handling mode */ PtyChannels ptyChannels() const; /** * Set whether to register the process as a TTY login in utmp. * * Utmp is disabled by default. * It should enabled for interactively fed processes, like terminal * emulations. * * This function must be called before starting the process. * * @param value whether to register in utmp. */ void setUseUtmp(bool value); /** * Get whether to register the process as a TTY login in utmp. * * @return whether to register in utmp */ bool isUseUtmp() const; /** * Get the PTY device of this process. * * @return the PTY device */ KPtyDevice *pty() const; protected: /** * @reimp */ #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) void setupChildProcess() override; #endif private: Q_PRIVATE_SLOT(d_func(), void _k_onStateChanged(QProcess::ProcessState)) }; ////////////////// // private data // ////////////////// class KPtyProcessPrivate : public KProcessPrivate { public: KPtyProcessPrivate() : ptyChannels(KPtyProcess::NoChannels), addUtmp(false) { } void _k_onStateChanged(QProcess::ProcessState newState) { if (newState == QProcess::NotRunning && addUtmp) pty->logout(); } KPtyDevice *pty; KPtyProcess::PtyChannels ptyChannels; bool addUtmp : 1; }; Q_DECLARE_OPERATORS_FOR_FLAGS(KPtyProcess::PtyChannels) #endif deepin-deb-installer-6.5.5/src/deb-installer/singleInstallerApplication.cpp000066400000000000000000000147311474340456100270770ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "singleInstallerApplication.h" #include "view/pages/debinstaller.h" #include "uab/uab_backend.h" #include #include #include #include const QString kDebInstallManagerService = "com.deepin.DebInstaller"; const QString kDebInstallManagerIface = "/com/deepin/DebInstaller"; SingleInstallerApplication::AppWorkChannel SingleInstallerApplication::mode; std::atomic_bool SingleInstallerApplication::BackendIsRunningInit; SingleInstallerApplication::SingleInstallerApplication(int &argc, char **argv) : DApplication(argc, argv) { BackendIsRunningInit = false; } void SingleInstallerApplication::activateWindow() { if (!m_ddimFiles.isEmpty()) { mode = DdimChannel; } else { mode = NormalChannel; } if (nullptr == m_qspMainWnd.get()) { m_qspMainWnd.reset(new DebInstaller()); Dtk::Widget::moveToCenter(m_qspMainWnd.get()); m_qspMainWnd->show(); } else { m_qspMainWnd->setWindowState(Qt::WindowActive); m_qspMainWnd->activateWindow(); // Reactive main window m_qspMainWnd->showNormal(); // 非特效模式下激活窗口 } if (bIsDbus) { // init uab backend synchronous on bus mode, but must be initialized after deb backend. // sa PackageAnalyzer::instance() Uab::UabBackend::instance()->initBackend(false); m_qspMainWnd->hide(); } if (!m_ddimFiles.isEmpty()) { QMetaObject::invokeMethod(m_qspMainWnd.get(), "slotDdimSelected", Qt::QueuedConnection, Q_ARG(QStringList, m_ddimFiles)); } else if (!m_selectedFiles.isEmpty()) { QMetaObject::invokeMethod( m_qspMainWnd.get(), "slotPackagesSelected", Qt::QueuedConnection, Q_ARG(QStringList, m_selectedFiles)); } else { // do nothing } } void SingleInstallerApplication::InstallerDeb(const QStringList &debPathList) { if (mode == DdimChannel) { QMetaObject::invokeMethod(m_qspMainWnd.get(), "slotDdimSelected", Qt::QueuedConnection, Q_ARG(QStringList, debPathList)); } else if (debPathList.size() > 0) { QMetaObject::invokeMethod( m_qspMainWnd.get(), "slotPackagesSelected", Qt::QueuedConnection, Q_ARG(QStringList, debPathList)); } else { if (m_qspMainWnd.get()) { // 先判断当前是否已经存在一个进程。 m_qspMainWnd.get()->activateWindow(); // 特效模式下激活窗口 m_qspMainWnd.get()->showNormal(); // 无特效激活窗口 } } } QString SingleInstallerApplication::InstallerDebPackge(const QString &debPath) { QString ret; // 启动安装 QMetaObject::invokeMethod( m_qspMainWnd.get(), "startInstallPackge", Qt::DirectConnection, Q_RETURN_ARG(QString, ret), Q_ARG(QString, debPath)); // 调用结束关闭进程 QTimer::singleShot(100, [&]() { quit(); }); return ret; } QString SingleInstallerApplication::unInstallDebPackge(const QString &debPath) { QString ret; // 卸载包 QMetaObject::invokeMethod( m_qspMainWnd.get(), "startUnInstallPackge", Qt::DirectConnection, Q_RETURN_ARG(QString, ret), Q_ARG(QString, debPath)); // 调用结束关闭进程 QTimer::singleShot(100, [&]() { quit(); }); return ret; } int SingleInstallerApplication::checkInstallStatus(const QString &debPath) { int ret; // 获取包安装状态 QMetaObject::invokeMethod( m_qspMainWnd.get(), "checkInstallStatus", Qt::DirectConnection, Q_RETURN_ARG(int, ret), Q_ARG(QString, debPath)); return ret; } int SingleInstallerApplication::checkDependsStatus(const QString &debPath) { int ret; // 获取包依赖状态 QMetaObject::invokeMethod( m_qspMainWnd.get(), "checkDependsStatus", Qt::DirectConnection, Q_RETURN_ARG(int, ret), Q_ARG(QString, debPath)); return ret; } int SingleInstallerApplication::checkDigitalSignature(const QString &debPath) { int ret; // 获取包依赖状态 QMetaObject::invokeMethod( m_qspMainWnd.get(), "checkDigitalSignature", Qt::DirectConnection, Q_RETURN_ARG(int, ret), Q_ARG(QString, debPath)); return ret; } QString SingleInstallerApplication::getPackageInfo(const QString &debPath) { QString ret; // 获取包信息 QMetaObject::invokeMethod( m_qspMainWnd.get(), "getPackageInfo", Qt::DirectConnection, Q_RETURN_ARG(QString, ret), Q_ARG(QString, debPath)); return ret; } bool SingleInstallerApplication::parseCmdLine() { QCommandLineParser parser; parser.setApplicationDescription("Deepin Package Installer."); parser.addOption(QCommandLineOption("dbus", "enable daemon mode")); parser.addHelpOption(); parser.addVersionOption(); parser.addPositionalArgument("filename", "Deb package path.", "file [file..]"); parser.process(*this); m_selectedFiles.clear(); m_ddimFiles.clear(); QDBusConnection conn = QDBusConnection::sessionBus(); if (!conn.registerService(kDebInstallManagerService) || !conn.registerObject( kDebInstallManagerIface, this, QDBusConnection::ExportScriptableSlots)) { // 注册失败 说明已经存在deb-installer qDebug() << "Failed to register dbus"; QDBusInterface deb_install( kDebInstallManagerService, kDebInstallManagerIface, kDebInstallManagerService, QDBusConnection::sessionBus()); QList debInstallPathList; debInstallPathList << parser.positionalArguments(); // 激活已有deb-installer QDBusMessage msg = deb_install.callWithArgumentList(QDBus::AutoDetect, "InstallerDeb", debInstallPathList); qWarning() << msg.errorMessage(); return false; } else { qDebug() << "Register dbus service successfully"; const QStringList paraList = parser.positionalArguments(); if (paraList.isEmpty()) { // hide main window on dbus if (parser.isSet("dbus")) { bIsDbus = true; } } else { for (auto it : paraList) { if (it.endsWith("ddim")) { m_ddimFiles.append(it); } else { m_selectedFiles.append(it); } } if (!paraList.isEmpty() && m_selectedFiles.isEmpty() && m_ddimFiles.isEmpty()) { return false; } } return true; } return true; } deepin-deb-installer-6.5.5/src/deb-installer/singleInstallerApplication.h000066400000000000000000000065711474340456100265470ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef SINGLEFONTAPPLICATION_H #define SINGLEFONTAPPLICATION_H #include #include #include DWIDGET_USE_NAMESPACE class SingleInstallerApplication : public DApplication { Q_OBJECT Q_CLASSINFO("D-Bus Interface", "com.deepin.DebInstaller") public: enum AppWorkChannel { NormalChannel, DdimChannel }; explicit SingleInstallerApplication(int &argc, char **argv); /** * @brief 激活软件包安装器窗口 * */ void activateWindow(); /** * @brief 解析命令行参数 * * @return true * @return false */ bool parseCmdLine(); static AppWorkChannel mode; // 当前运行的工作模式,用于判断二次启动的时候走哪个通道 static std::atomic_bool BackendIsRunningInit; public slots: /** * @brief InstallerDeb 启动软件包安装器 * * @param debPathList 是否有传递的包 * @return Q_SCRIPTABLE */ Q_SCRIPTABLE void InstallerDeb(const QStringList &debPathList); /** * @brief InstallerDebPackge 安装包 * * @param debPath 包路径信息 * @return 返回安装信息 */ Q_SCRIPTABLE QString InstallerDebPackge(const QString &debPath); /** * @brief unInstallDebPackge 卸载包 * * @param debPath 包路径信息 * @return 返回卸载信息 */ Q_SCRIPTABLE QString unInstallDebPackge(const QString &debPath); /** * @brief checkInstallStatus 包安装状态 * * @param debPath 包路径信息 * @return -1: 其他错误 * 0:当前包没有被安装 * 1:当前已经安装过相同的版本 * 2:当前已经安装过较早的版本 * 3.当前已经安装过更新的版本 */ Q_SCRIPTABLE int checkInstallStatus(const QString &debPath); /** * @brief checkDependsStatus 包依赖信息 * * @param debPath 包路径信息 * @return -1:其他错误 * 0:依赖满足 * 1:依赖可用但是需要下载 * 2:依赖不满足 * 3: 签名验证失败 * 4: 依赖授权失败(wine依赖) * 5: 架构不满足(此前架构不满足在前端验证,此后会优化到后端) * 6: 应用被域管限制,无法安装 */ Q_SCRIPTABLE int checkDependsStatus(const QString &debPath); /** * @brief checkDigitalSignature 包的数字签名 * * @param debPath 包路径信息 * @return -1: 其他错误 * 0: 验证成功 * 1: 解压deb文件用的临时目录不存在 * 2: 提取deb包内容时出错 * 3: deb包验证失败 */ Q_SCRIPTABLE int checkDigitalSignature(const QString &debPath); /** * @brief getPackageInfo 包信息 * * @param debPath 包路径信息 * @return (包名;包的路径;包的版本;包可用的架构;包的短描述;包的长描述) */ Q_SCRIPTABLE QString getPackageInfo(const QString &debPath); private: QStringList m_selectedFiles; QStringList m_ddimFiles; QScopedPointer m_qspMainWnd; // MainWindow ptr bool bIsDbus = false; }; #endif // SINGLEFONTAPPLICATION_H deepin-deb-installer-6.5.5/src/deb-installer/uab/000077500000000000000000000000001474340456100216115ustar00rootroot00000000000000deepin-deb-installer-6.5.5/src/deb-installer/uab/uab_backend.cpp000066400000000000000000000325061474340456100245410ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "uab_backend.h" #include #include #include #include #include #include #include #include #include #include #include "utils/utils.h" // depends deb pacakge arch #include "model/packageanalyzer.h" namespace Uab { // bin command static const QString kUabCliBin = "ll-cli"; static const QString kUabJson = "--json"; static const QString kUabCliList = "list"; // e.g.: [path to package] --print-meta static const QString kUabPkgCmdPrintMeta = "--print-meta"; // json field static const QString kUabLayers = "layers"; static const QString kUabInfo = "info"; static const QString kUabKind = "kind"; static const QString kUabKindAppTag = "app"; // json package info field static const QString kUabId = "id"; static const QString kUabName = "name"; static const QString kUabVersion = "version"; static const QString kUabArch = "arch"; static const QString kUabChannel = "channel"; static const QString kUabModule = "module"; static const QString kUabDescription = "description"; UabBackend::UabBackend(QObject *parent) : QObject{parent} { recheckLinglongExists(); qRegisterMetaType>("QList"); } UabBackend::~UabBackend() {} UabBackend *UabBackend::instance() { static UabBackend ins; return &ins; } /** * @brief Check uab package exist and executable. * If executable, execute `uabPath --print-meta` to get package meta data. * @return UabPkgInfo::Ptr uab package info, or null if error. */ UabPkgInfo::Ptr UabBackend::packageFromMetaData(const QString &uabPath, QString *errorString) { const QFileInfo info(uabPath); if (!info.exists()) { if (errorString) { *errorString = QString("uab file not exists"); } return {}; } const QByteArray output = uabExecuteOutput(uabPath, errorString); if (output.isEmpty()) { return {}; } auto uabPtr = UabBackend::packageFromMetaJson(output); if (uabPtr) { uabPtr->filePath = info.absoluteFilePath(); } return uabPtr; } /** @brief Find package named \a packageId , and version equal \a version If \a version is empty, the return package is the latest version of the installed packages. @return Uab package pointer, or null if not found. */ UabPkgInfo::Ptr UabBackend::findPackage(const QString &packageId, const QString &version) { if (!backendInited()) { m_lastError = QString("uab backend not init"); return {}; } if (m_packageList.isEmpty()) { return {}; } auto itr = std::upper_bound(m_packageList.begin(), m_packageList.end(), packageId, [](const QString &findPkg, const UabPkgInfo::Ptr &uabPtr) { return findPkg <= uabPtr->id; }); // versions with the same ID are listed in descending order while ((m_packageList.end() != itr) && ((*itr)->id == packageId)) { if (version.isEmpty() || ((*itr)->version == version)) { return *itr; } itr++; } return {}; } /** @brief Read Linglong's package information, arch, etc. When the package needs to be installed, the Uab backend will be initialized. If 'async' is true (default), will be initialized on the child thread. */ void UabBackend::initBackend(bool async) { static std::once_flag kUabBackendFlag; std::call_once(kUabBackendFlag, [async, this]() { if (async) { QtConcurrent::run(UabBackend::backendProcess, this); } else { UabBackend::backendProcess(this); } }); } bool UabBackend::backendInited() const { return m_init; } bool UabBackend::linglongExists() const { return m_linglongExists; } bool UabBackend::recheckLinglongExists() { // find ll-cli in $PATH const QString execPath = QStandardPaths::findExecutable(kUabCliBin); m_linglongExists = !execPath.isEmpty(); return m_linglongExists; } QString UabBackend::lastError() const { return m_lastError; } void UabBackend::dumpPackageList() const { qInfo() << QString("Uab package list(count %1) support archs:").arg(m_packageList.size()) << m_supportArchSet; for (const auto &uabPtr : m_packageList) { qInfo() << " " << uabPtr; } } void UabBackend::backendInitData(const QList &packageList, const QSet &archs) { m_packageList = packageList; m_supportArchSet = archs; m_init = true; Q_EMIT backendInitFinsihed(); } bool UabBackend::parsePackagesFromRawJson(const QByteArray &jsonData, QList &packageList) { QJsonParseError jsonError; QJsonDocument doc = QJsonDocument::fromJson(jsonData, &jsonError); if (QJsonParseError::NoError != jsonError.error) { qWarning() << qPrintable("Parse ll-cli list json data failed:") << jsonError.errorString(); return false; } packageList.clear(); QJsonArray rootArray = doc.array(); for (const auto &value : rootArray) { if (!value.isObject()) { continue; } QJsonObject item = value.toObject(); auto uabPtr = UabPkgInfo::Ptr::create(); uabPtr->id = item.value(kUabId).toString(); uabPtr->appName = item.value(kUabName).toString(); uabPtr->version = item.value(kUabVersion).toString(); uabPtr->channel = item.value(kUabChannel).toString(); uabPtr->module = item.value(kUabModule).toString(); uabPtr->description = item.value(kUabDescription).toString(); QJsonArray archArray = item.value(kUabArch).toArray(); for (const auto &archItem : archArray) { uabPtr->architecture.append(archItem.toString()); } packageList.append(uabPtr); } return true; } bool UabBackend::parsePackagesFromRawOutput(const QByteArray &output, QList &packageList) { QTextStream stream(output, QIODevice::ReadOnly); // remove title stream.readLine(); QString arch; while (!stream.atEnd()) { auto uabPtr = UabPkgInfo::Ptr::create(); // title field format: id name version arch channel module description stream >> uabPtr->id; stream >> uabPtr->appName; stream >> uabPtr->version; stream >> arch; stream >> uabPtr->channel; stream >> uabPtr->module; uabPtr->architecture.append(arch); // to the end of the line uabPtr->description = stream.readLine().simplified(); packageList.append(uabPtr); } return true; } /** @brief Get Linglong package list from `ll-cli list` The packages are sorted by package id and package version. @note This function will be run in QtConcurrent::run() */ void UabBackend::backendProcess(const QPointer ¬ifyPtr) { QProcess process; process.start(kUabCliBin, {kUabJson, kUabCliList}); process.waitForFinished(); const QByteArray output = process.readAllStandardOutput(); QList packageList; parsePackagesFromRawJson(output, packageList); sortPackages(packageList); // detect deb package init QSet archs; if (PackageAnalyzer::instance().isBackendReady()) { QStringList archList = PackageAnalyzer::instance().supportArchList(); #if QT_VERSION_CHECK(5, 14, 0) <= QT_VERSION archs = QSet(archList.begin(), archList.end()); #else archs = archList.toSet(); #endif // adapt arch name for uab if (archs.contains("amd64")) { archs.insert("x86_64"); } // TODO(renbin): loongarch64 and loong64 diff arch } if (!qApp->closingDown() && !notifyPtr.isNull()) { QMetaObject::invokeMethod( notifyPtr, "backendInitData", Q_ARG(QList, packageList), Q_ARG(QSet, archs)); } } /** @brief Sort \a packageList by package id and version. Package id in ascending order, version in descending order. Make sure the latest version of a package is listed first. */ void UabBackend::sortPackages(QList &packageList) { if (packageList.isEmpty()) { return; } std::sort(packageList.begin(), packageList.end(), [](const UabPkgInfo::Ptr &left, const UabPkgInfo::Ptr &right) { const int ret = QString::compare(left->id, right->id); if (!!ret) { return ret < 0; } return Utils::compareVersion(left->version, right->version) > 0; }); } void UabBackend::packageInstalled(const UabPkgInfo::Ptr &appendPtr) { m_packageList.append(appendPtr); sortPackages(m_packageList); qInfo() << QString("Uab package: %1/%2 installed.").arg(appendPtr->id).arg(appendPtr->version); } void UabBackend::packageRemoved(const UabPkgInfo::Ptr &removePtr) { auto findItr = std::find_if(m_packageList.begin(), m_packageList.end(), [&](const UabPkgInfo::Ptr &package) { return (removePtr->id == package->id) && (removePtr->version == package->version) && (removePtr->architecture == package->architecture); }); if (findItr != m_packageList.end()) { m_packageList.erase(findItr); qInfo() << QString("Uab package: %1/%2 removed.").arg(removePtr->id).arg(removePtr->version); } // remove package dose not require sort. } UabPkgInfo::Ptr UabBackend::packageFromMetaJson(const QByteArray &json, QString *errorString) { QJsonParseError error; const QJsonDocument doc = QJsonDocument::fromJson(json, &error); if (QJsonParseError::NoError != error.error) { if (errorString) { *errorString = QString("uab json parse erorr: %1, offset: %2").arg(error.errorString()).arg(error.offset); } return {}; } const QJsonArray layers = doc.object().value(kUabLayers).toArray(); if (layers.isEmpty()) { if (errorString) { *errorString = QString("uab json not contains 'layers'"); } return {}; } for (const QJsonValue &layerItem : layers) { if (!layerItem.isObject()) { continue; } QJsonObject info = layerItem.toObject().value(kUabInfo).toObject(); if (info.isEmpty()) { continue; } if (kUabKindAppTag != info.value(kUabKind).toString()) { continue; } auto uabPtr = UabPkgInfo::Ptr::create(); uabPtr->id = info[kUabId].toString(); uabPtr->appName = info[kUabName].toString(); uabPtr->version = info[kUabVersion].toString(); uabPtr->description = info[kUabDescription].toString(); uabPtr->channel = info[kUabChannel].toString(); uabPtr->module = info[kUabModule].toString(); const QJsonArray archArray = info[kUabArch].toArray(); for (const QJsonValue &archValue : archArray) { const QString curArch = archValue.toString(); uabPtr->architecture.append(curArch); } return uabPtr; } if (errorString) { *errorString = QString("uab json not contains app info node"); } return {}; } QByteArray UabBackend::uabExecuteOutput(const QString &uabPath, QString *errorString) { QFile uabFile(uabPath); if (!uabFile.exists()) { return {}; } // temporarily set uab file executable to get meta info. static const QFile::Permissions kExecutable = QFile::ExeOwner | QFile::ExeUser | QFile::ExeGroup; QFile::Permissions savePermission = uabFile.permissions(); bool needExecutable = !(savePermission & kExecutable); if (needExecutable && (!uabFile.setPermissions(savePermission | kExecutable))) { if (errorString) { *errorString = QString("set uab file executable failed: %1").arg(uabFile.errorString()); } return {}; } QProcess proc; proc.setProgram(uabPath); proc.setArguments({kUabPkgCmdPrintMeta}); proc.start(); proc.waitForFinished(); if (needExecutable) { uabFile.setPermissions(savePermission); } if (0 != proc.exitCode() || QProcess::NormalExit != proc.exitStatus()) { if (errorString) { *errorString = QString("exec uab package failed: %1").arg(proc.errorString()); } return {}; } return proc.readAllStandardOutput(); } } // namespace Uab QT_BEGIN_NAMESPACE #ifndef QT_NO_DEBUG_STREAM Q_CORE_EXPORT QDebug operator<<(QDebug out, const Uab::UabPkgInfo &uabPkg) { out << "UabPackageInfo(" << QString("0x%0").arg(reinterpret_cast(&uabPkg), 0, 16) << "){"; out << Uab::kUabId << ":" << uabPkg.id << ";"; out << Uab::kUabName << ":" << uabPkg.appName << ";"; out << Uab::kUabVersion << ":" << uabPkg.version << ";"; out << Uab::kUabArch << ":" << uabPkg.architecture << ";"; out << Uab::kUabChannel << ":" << uabPkg.channel << ";"; out << Uab::kUabModule << ":" << uabPkg.module << ";"; out << Uab::kUabDescription << ":" << uabPkg.description << ";"; out << "filePath:" << uabPkg.filePath << ";"; return out; } Q_CORE_EXPORT QDebug operator<<(QDebug out, const Uab::UabPkgInfo::Ptr &uabPkgPtr) { if (uabPkgPtr) { out << *uabPkgPtr; } else { out << QString("UabPackageInfo:Ptr(nullptr)"); } return out; } #endif // QT_NO_DEBUG_STREAM QT_END_NAMESPACE deepin-deb-installer-6.5.5/src/deb-installer/uab/uab_backend.h000066400000000000000000000041471474340456100242060ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef UABBACKEND_H #define UABBACKEND_H #include #include #include #include "uab_defines.h" namespace Uab { class UabBackend : public QObject { Q_OBJECT public: static UabBackend *instance(); [[nodiscard]] UabPkgInfo::Ptr findPackage(const QString &packageId, const QString &version = {}); void initBackend(bool async = true); [[nodiscard]] bool backendInited() const; Q_SIGNAL void backendInitFinsihed(); [[nodiscard]] bool linglongExists() const; bool recheckLinglongExists(); [[nodiscard]] QString lastError() const; void dumpPackageList() const; [[nodiscard]] static UabPkgInfo::Ptr packageFromMetaData(const QString &uabPath, QString *errorString = nullptr); [[nodiscard]] static UabPkgInfo::Ptr packageFromMetaJson(const QByteArray &json, QString *errorString = nullptr); [[nodiscard]] static QByteArray uabExecuteOutput(const QString &uabPath, QString *errorString = nullptr); // internal Q_SLOT void backendInitData(const QList &packageList, const QSet &archs); static void backendProcess(const QPointer ¬ifyPtr); static bool parsePackagesFromRawJson(const QByteArray &jsonData, QList &packageList); static bool parsePackagesFromRawOutput(const QByteArray &output, QList &packageList); static void sortPackages(QList &packageList); // update backend database after controller process finished. void packageInstalled(const UabPkgInfo::Ptr &appendPtr); void packageRemoved(const UabPkgInfo::Ptr &removePtr); private: explicit UabBackend(QObject *parent = nullptr); ~UabBackend() override; private: bool m_init{false}; bool m_linglongExists{false}; // check Linglong executable (ll-cli) exists. QList m_packageList; QSet m_supportArchSet; QString m_lastError; Q_DISABLE_COPY(UabBackend) }; } // namespace Uab #endif // UABBACKEND_H deepin-deb-installer-6.5.5/src/deb-installer/uab/uab_defines.h000066400000000000000000000017541474340456100242350ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef UAB_DEFINES_H #define UAB_DEFINES_H #include #include #include namespace Uab { // return code from CLI or DBus interface enum UabCode { UabError = -1, UabSuccess = 0, }; struct UabPkgInfo { using Ptr = QSharedPointer; QString filePath; // absolute file path QString id; // package id, e.g.: com.deepin.package QString appName; // display name QString version; QStringList architecture; // uab package may support multiple arch QString description; QString channel; QString module; }; } // namespace Uab QT_BEGIN_NAMESPACE #ifndef QT_NO_DEBUG_STREAM Q_CORE_EXPORT QDebug operator<<(QDebug, const Uab::UabPkgInfo &); Q_CORE_EXPORT QDebug operator<<(QDebug, const Uab::UabPkgInfo::Ptr &); #endif // QT_NO_DEBUG_STREAM QT_END_NAMESPACE #endif // UAB_DEFINES_H deepin-deb-installer-6.5.5/src/deb-installer/uab/uab_package.cpp000066400000000000000000000067441474340456100245520ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "uab_package.h" #include "uab_backend.h" #include "utils/utils.h" namespace Uab { /** * @class UabPackage * @brief Uab package, contains package information and runtime status. * Store version, install status, operation status, error code, and error message. */ UabPackage::UabPackage(const UabPkgInfo::Ptr &metaPtr) : m_metaPtr(metaPtr) { reset(); } const UabPkgInfo::Ptr &UabPackage::info() const { return m_metaPtr; } bool UabPackage::isValid() const { if (!m_metaPtr || !fileExists()) { return false; } if (m_metaPtr->id.isEmpty() || m_metaPtr->appName.isEmpty()) { return false; } return true; } void UabPackage::setDependsStatus(Pkg::DependsStatus status) { m_dependsStatus = status; switch (m_dependsStatus) { case Pkg::DependsBreak: m_failReason = QObject::tr("The system has not installed Linglong environment, please install it first"); break; default: break; } } void UabPackage::setProcessError(Pkg::ErrorCode err, const QString &errorString) { m_errorCode = err; m_processError = errorString; } bool UabPackage::fileExists() const { return m_exists; } void UabPackage::markNotExists() { m_exists = false; } Pkg::DependsStatus UabPackage::dependsStatus() const { return m_dependsStatus; } Pkg::PackageInstallStatus UabPackage::installStatus() const { return m_installStatus; } Pkg::PackageOperationStatus UabPackage::operationStatus() const { return m_operationStatus; } Pkg::ErrorCode UabPackage::errorCode() const { return m_errorCode; } QString UabPackage::installedVersion() const { return m_installedVersion; } QString UabPackage::failedReason() const { if (m_failReason.isEmpty()) { return m_processError; } return m_failReason; } QString UabPackage::processError() const { return m_processError; } UabPackage::Ptr UabPackage::fromInfo(const UabPkgInfo::Ptr &infoPtr) { return Uab::UabPackage::Ptr::create(infoPtr); } UabPackage::Ptr UabPackage::fromFilePath(const QString &filePath) { QString error; auto infoPtr = Uab::UabBackend::packageFromMetaData(filePath, &error); auto uabPtr = Uab::UabPackage::Ptr::create(infoPtr); if (!error.isEmpty()) { qWarning() << qPrintable("Uab from path:") << error; } return uabPtr; } void UabPackage::reset() { if (!m_metaPtr) { return; } m_operationStatus = Pkg::Prepare; m_installedVersion.clear(); m_installStatus = Pkg::NotInstalled; m_errorCode = Pkg::NoError; m_processError.clear(); if (!Uab::UabBackend::instance()->linglongExists()) { setDependsStatus(Pkg::DependsBreak); } else { setDependsStatus(Pkg::DependsOk); } if (Uab::UabBackend::instance()->backendInited()) { auto uabInfoPtr = Uab::UabBackend::instance()->findPackage(m_metaPtr->id); if (uabInfoPtr) { m_installedVersion = uabInfoPtr->version; const int ret = Utils::compareVersion(m_metaPtr->version, uabInfoPtr->version); if (ret == 0) { m_installStatus = Pkg::InstalledSameVersion; } else if (ret < 0) { m_installStatus = Pkg::InstalledLaterVersion; } else { m_installStatus = Pkg::InstalledEarlierVersion; } } } } } // namespace Uab deepin-deb-installer-6.5.5/src/deb-installer/uab/uab_package.h000066400000000000000000000035751474340456100242160ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef UABPACKAGE_H #define UABPACKAGE_H #include "utils/package_defines.h" #include "uab_defines.h" namespace Uab { class UabPackage { public: using Ptr = QSharedPointer; explicit UabPackage(const Uab::UabPkgInfo::Ptr &metaPtr); [[nodiscard]] const Uab::UabPkgInfo::Ptr &info() const; [[nodiscard]] bool isValid() const; void setDependsStatus(Pkg::DependsStatus status); void setProcessError(Pkg::ErrorCode err, const QString &errorString); [[nodiscard]] bool fileExists() const; void markNotExists(); [[nodiscard]] Pkg::DependsStatus dependsStatus() const; [[nodiscard]] Pkg::PackageInstallStatus installStatus() const; [[nodiscard]] Pkg::PackageOperationStatus operationStatus() const; [[nodiscard]] Pkg::ErrorCode errorCode() const; [[nodiscard]] QString installedVersion() const; [[nodiscard]] QString failedReason() const; [[nodiscard]] QString processError() const; [[nodiscard]] static UabPackage::Ptr fromInfo(const Uab::UabPkgInfo::Ptr &infoPtr); [[nodiscard]] static UabPackage::Ptr fromFilePath(const QString &filePath); private: void reset(); private: Uab::UabPkgInfo::Ptr m_metaPtr; bool m_exists{true}; Pkg::DependsStatus m_dependsStatus{Pkg::DependsOk}; // package's depends info Pkg::PackageInstallStatus m_installStatus{Pkg::NotInstalled}; // version check Pkg::PackageOperationStatus m_operationStatus{Pkg::Prepare}; // status for operation flow Pkg::ErrorCode m_errorCode{Pkg::NoError}; QString m_installedVersion; QString m_failReason; QString m_processError; // runtime install/uninstall error raw output friend class UabPackageListModel; Q_DISABLE_COPY(UabPackage) }; } // namespace Uab #endif // UABPACKAGE_H deepin-deb-installer-6.5.5/src/deb-installer/uab/uab_package_list_model.cpp000066400000000000000000000366171474340456100267670ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "uab_package_list_model.h" #include #include #include #include #include "uab_backend.h" #include "utils/utils.h" namespace Uab { static const float kCompleteProgress = 100.0; static const int kPkgInitedIndex = -1; /** * @class UabPackageListModel * @brief Manage the list model of UAB packages, and handle the install and uninstall of multiple UAB packages. * Emit execution status and error messages. */ UabPackageListModel::UabPackageListModel(QObject *parent) : AbstractPackageListModel{parent} , m_processor(new UabProcessController(this)) , m_fileWatcher(new QFileSystemWatcher(this)) { m_supportPackageType = Pkg::Uab; connect(m_processor, &UabProcessController::processOutput, this, &UabPackageListModel::signalAppendOutputInfo); connect(m_processor, &UabProcessController::progressChanged, this, &UabPackageListModel::slotBackendProgressChanged); connect(m_processor, &UabProcessController::processFinished, this, &UabPackageListModel::slotBackendProcessFinished); connect(m_fileWatcher, &QFileSystemWatcher::fileChanged, this, &UabPackageListModel::slotFileChanged); // call init uab backend while uab package list model create connect(Uab::UabBackend::instance(), &Uab::UabBackend::backendInitFinsihed, this, [this]() { if (!m_delayAppendPackages.isEmpty()) { slotAppendPackage(m_delayAppendPackages); } m_delayAppendPackages.clear(); }); Uab::UabBackend::instance()->initBackend(); } QVariant UabPackageListModel::data(const QModelIndex &index, int role) const { if (!QAbstractListModel::checkIndex(index, CheckIndexOption::IndexIsValid)) { return {}; } const UabPackage::Ptr &uabPtr = m_uabPkgList.at(index.row()); if (!uabPtr || !uabPtr->isValid()) { return {}; } switch (role) { case PackageNameRole: return uabPtr->info()->appName; case PackagePathRole: return uabPtr->info()->filePath; case PackageVersionRole: return uabPtr->info()->version; case PackageInstalledVersionRole: return uabPtr->installedVersion(); case PackageShortDescriptionRole: Q_FALLTHROUGH(); case PackageLongDescriptionRole: return uabPtr->info()->description; case PackageVersionStatusRole: return uabPtr->installStatus(); case PackageDependsStatusRole: return uabPtr->dependsStatus(); case PackageFailReasonRole: return uabPtr->failedReason(); case PackageOperateStatusRole: return uabPtr->operationStatus(); case PackageTypeRole: return Pkg::Uab; case Qt::SizeHintRole: return QSize(0, 48); default: break; } return {}; } int UabPackageListModel::rowCount(const QModelIndex &parent) const { Q_UNUSED(parent) return m_uabPkgList.size(); } void UabPackageListModel::slotAppendPackage(const QStringList &packageList) { if (!isWorkerPrepare()) { return; } // delay append when uab backend not ready. sa backendInitFinsihed() if (!Uab::UabBackend::instance()->backendInited()) { m_delayAppendPackages.append(packageList); return; } const int oldRowCount = rowCount(); for (const QString &path : packageList) { auto uabPtr = preCheckPackage(path); if (uabPtr && uabPtr->isValid()) { m_uabPkgList.append(uabPtr); m_fileWatcher->addPath(path); } } if (oldRowCount != rowCount()) { Q_EMIT signalPackageCountChanged(rowCount()); } } void UabPackageListModel::removePackage(int index) { if (!isWorkerPrepare()) { return; } if (0 <= index && index < rowCount()) { auto uabPtr = m_uabPkgList.takeAt(index); if (uabPtr && uabPtr->info()) { m_fileWatcher->removePath(uabPtr->info()->filePath); } Q_EMIT signalPackageCountChanged(rowCount()); } } QString UabPackageListModel::checkPackageValid(const QString &packagePath) { if (Pkg::PkgReadable != Utils::checkPackageReadable(packagePath)) { return "You can only install local ueb packages"; } auto uabPtr = Uab::UabPackage::fromFilePath(packagePath); if (!uabPtr->isValid()) { return "The uab package may be broken"; } if (packageExists(uabPtr)) { return "The uab package already added"; } return ""; } Pkg::PackageInstallStatus UabPackageListModel::checkInstallStatus(const QString &packagePath) { auto uabPtr = Uab::UabPackage::fromFilePath(packagePath); if (!uabPtr || !uabPtr->isValid()) { return Pkg::NotInstalled; } return uabPtr->installStatus(); } Pkg::DependsStatus UabPackageListModel::checkDependsStatus(const QString &packagePath) { if (!Uab::UabBackend::instance()->linglongExists()) { return Pkg::DependsBreak; } auto uabPtr = Uab::UabPackage::fromFilePath(packagePath); if (!uabPtr || !uabPtr->isValid()) { return Pkg::DependsBreak; } return Pkg::DependsOk; } QStringList UabPackageListModel::getPackageInfo(const QString &packagePath) { auto uabPtr = Uab::UabPackage::fromFilePath(packagePath); if (!uabPtr || !uabPtr->isValid()) { return {}; } // adapt deb package info interface auto infoPtr = uabPtr->info(); QStringList infoList; infoList << infoPtr->appName; infoList << infoPtr->filePath; infoList << infoPtr->version; infoList << infoPtr->architecture; infoList << infoPtr->description; infoList << infoPtr->description; return infoList; } QString UabPackageListModel::lastProcessError() { auto findItr = std::find_if(m_uabPkgList.rbegin(), m_uabPkgList.rend(), [](const UabPackage::Ptr &uabPtr) { return Pkg::Failed == uabPtr->operationStatus(); }); if (findItr != m_uabPkgList.rend()) { return (*findItr)->processError(); } return {}; } bool UabPackageListModel::containsSignatureFailed() const { // check if a pacakge signature verify failed. auto findItr = std::find_if(m_uabPkgList.begin(), m_uabPkgList.end(), [](const UabPackage::Ptr &uabPtr) { return Pkg::DigitalSignatureError == uabPtr->m_errorCode; }); return findItr != m_uabPkgList.end(); } bool UabPackageListModel::slotInstallPackages() { if (!isWorkerPrepare() || rowCount() <= 0) { return false; } if (!linglongExists()) { return false; } // reset, mark package waiting install resetInstallStatus(); for (auto uabPtr : m_uabPkgList) { uabPtr->m_operationStatus = Pkg::Waiting; Q_EMIT dataChanged(index(0), index(m_uabPkgList.size() - 1), {PackageOperateStatusRole}); } setWorkerStatus(WorkerProcessing); return installNextUab(); } bool UabPackageListModel::slotUninstallPackage(const int i) { bool callRet = false; do { if (!isWorkerPrepare() || rowCount() <= 0) { break; } if (!linglongExists()) { break; } if (!checkIndex(index(i))) { break; } // only single page show uninstall flow m_operatingIndex = i; setWorkerStatus(WorkerUnInstall); auto uabPtr = m_uabPkgList.value(m_operatingIndex); if (!uabPtr || !uabPtr->isValid()) { break; } auto removeInfoPtr = Uab::UabBackend::instance()->findPackage(uabPtr->info()->id); if (!removeInfoPtr) { break; } setCurrentOperation(Pkg::Waiting); m_processor->reset(); m_processor->markUninstall(Uab::UabPackage::fromInfo(removeInfoPtr)); callRet = m_processor->commitChanges(); } while (false); if (!callRet) { setCurrentOperation(Pkg::Failed); setWorkerStatus(WorkerFinished); return false; } return true; } void UabPackageListModel::reset() { setWorkerStatus(WorkerPrepare); m_operatingIndex = kPkgInitedIndex; QStringList files = m_fileWatcher->files(); if (!files.isEmpty()) { m_fileWatcher->removePaths(files); } m_uabPkgList.clear(); } void UabPackageListModel::resetInstallStatus() { setWorkerStatus(WorkerPrepare); m_operatingIndex = kPkgInitedIndex; // reset deb file for (auto &ptr : m_uabPkgList) { ptr->reset(); } Q_EMIT dataChanged(index(0), index(m_uabPkgList.size() - 1), {PackageOperateStatusRole}); } bool UabPackageListModel::installNextUab() { m_operatingIndex++; Q_ASSERT_X(m_operatingIndex >= 0, "install uab", "operating index invalid"); if (m_operatingIndex < 0) { setWorkerStatus(WorkerFinished); return false; } // check install finish if (m_operatingIndex >= rowCount()) { Q_EMIT signalCurrentPacakgeProgressChanged(static_cast(kCompleteProgress)); Q_EMIT signalWholeProgressChanged(static_cast(kCompleteProgress)); setWorkerStatus(WorkerFinished); return true; } // notify list view scroll to current package Q_EMIT signalCurrentProcessPackageIndex(m_operatingIndex); auto uabPtr = m_uabPkgList.value(m_operatingIndex); if (!uabPtr || Pkg::DependsOk != uabPtr->m_dependsStatus) { setCurrentOperation(Pkg::Failed); installNextUab(); return false; } setCurrentOperation(Pkg::Operating); m_processor->reset(); // Note: Current Linglong environment supports multi version package same time, // check if install same version package. Pkg::PackageInstallStatus installStatus = uabPtr->installStatus(); if (Pkg::InstalledLaterVersion == installStatus) { if (auto sameInfoPtr = Uab::UabBackend::instance()->findPackage(uabPtr->info()->id, uabPtr->info()->version)) { const int ret = Utils::compareVersion(uabPtr->info()->version, sameInfoPtr->version); if (ret == 0) { installStatus = Pkg::InstalledSameVersion; } else if (ret < 0) { installStatus = Pkg::InstalledLaterVersion; } else { installStatus = Pkg::InstalledEarlierVersion; } } } switch (installStatus) { case Pkg::NotInstalled: m_processor->markInstall(uabPtr); break; case Pkg::InstalledSameVersion: { auto oldInfoPtr = Uab::UabBackend::instance()->findPackage(uabPtr->info()->id, uabPtr->info()->version); m_processor->markUninstall(Uab::UabPackage::fromInfo(oldInfoPtr)); m_processor->markInstall(uabPtr); } break; default: { auto oldInfoPtr = Uab::UabBackend::instance()->findPackage(uabPtr->info()->id); m_processor->markInstall(uabPtr); m_processor->markUninstall(Uab::UabPackage::fromInfo(oldInfoPtr)); } break; } if (!m_processor->commitChanges()) { setCurrentOperation(Pkg::Failed); installNextUab(); return false; } return true; } void UabPackageListModel::slotBackendProgressChanged(float progress) { Q_ASSERT_X(rowCount() > 0, "check count", "row count invalid"); const float base = kCompleteProgress / rowCount(); const float wholeProgress = (m_operatingIndex + (progress / kCompleteProgress)) * base; Q_EMIT signalCurrentPacakgeProgressChanged(static_cast(progress)); Q_EMIT signalWholeProgressChanged(static_cast(wholeProgress)); } void UabPackageListModel::slotBackendProcessFinished(bool success) { Q_ASSERT_X(rowCount() > 0, "check count", "row count invalid"); // update installed status setCurrentOperation(success ? Pkg::Success : Pkg::Failed); // update all data Q_EMIT dataChanged(index(m_operatingIndex), index(m_operatingIndex)); // update progress const float base = kCompleteProgress / rowCount(); Q_EMIT signalCurrentPacakgeProgressChanged(static_cast(kCompleteProgress)); Q_EMIT signalWholeProgressChanged(static_cast(base * (m_operatingIndex + 1))); switch (m_workerStatus) { case WorkerProcessing: installNextUab(); break; case WorkerUnInstall: setWorkerStatus(WorkerFinished); break; default: break; } } void UabPackageListModel::setCurrentOperation(Pkg::PackageOperationStatus s) { if (!checkIndexValid(m_operatingIndex)) { return; } auto &uabPtr = m_uabPkgList[m_operatingIndex]; uabPtr->m_operationStatus = s; // mark error info if (Pkg::Failed == s) { uabPtr->setProcessError(Pkg::UnknownError, tr("Installation Failed")); } Q_EMIT dataChanged(index(m_operatingIndex), index(m_operatingIndex), {PackageOperateStatusRole}); } bool UabPackageListModel::checkIndexValid(int index) const { return 0 <= index && index < rowCount(); } UabPackage::Ptr UabPackageListModel::preCheckPackage(const QString &packagePath) { auto readablilty = Utils::checkPackageReadable(packagePath); switch (readablilty) { case Pkg::PkgNotInLocal: Q_EMIT signalAppendFailMessage(Pkg::PackageNotLocal, Pkg::Uab); return {}; case Pkg::PkgNoPermission: Q_EMIT signalAppendFailMessage(Pkg::PackageNotInstallable, Pkg::Uab); return {}; default: break; } auto uabPtr = Uab::UabPackage::fromFilePath(packagePath); if (!uabPtr || !uabPtr->isValid()) { Q_EMIT signalAppendFailMessage(Pkg::PackageInvalid, Pkg::Uab); return {}; } if (packageExists(uabPtr)) { Q_EMIT signalAppendFailMessage(Pkg::PackageAlreadyExists, Pkg::Uab); return {}; } return uabPtr; } bool UabPackageListModel::packageExists(const UabPackage::Ptr &uabPtr) const { if (!uabPtr) { return false; } // check already added auto findItr = std::find_if(m_uabPkgList.begin(), m_uabPkgList.end(), [&uabPtr](const UabPackage::Ptr &cmpUabPtr) { if (uabPtr->info()->filePath == cmpUabPtr->info()->filePath) { return true; } if (uabPtr->info()->appName == cmpUabPtr->info()->appName) { return true; } return false; }); return findItr != m_uabPkgList.end(); } bool UabPackageListModel::linglongExists() { // check if linglong execuatable exits if (!Uab::UabBackend::instance()->recheckLinglongExists()) { for (const auto &uabPtr : m_uabPkgList) { uabPtr->setDependsStatus(Pkg::DependsBreak); } Q_EMIT dataChanged(index(0), index(m_uabPkgList.size() - 1), {PackageDependsStatusRole}); return false; } return true; } void UabPackageListModel::slotFileChanged(const QString &filePath) { auto findItr = std::find_if(m_uabPkgList.begin(), m_uabPkgList.end(), [&](const UabPackage::Ptr &uabPtr) { if (uabPtr && uabPtr->isValid()) { return uabPtr->info()->filePath == filePath; } return false; }); if (findItr != m_uabPkgList.end()) { const QFileInfo info((*findItr)->info()->filePath); if (!info.exists()) { (*findItr)->markNotExists(); removePackage(static_cast(std::distance(findItr, m_uabPkgList.begin()))); m_fileWatcher->removePath(filePath); Q_EMIT signalPackageCannotFind(info.fileName()); } } } } // namespace Uab deepin-deb-installer-6.5.5/src/deb-installer/uab/uab_package_list_model.h000066400000000000000000000042651474340456100264260ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef UABPACKAGELISTMODEL_H #define UABPACKAGELISTMODEL_H #include #include "uab_package.h" #include "uab_process_controller.h" #include "model/abstract_package_list_model.h" class QFileSystemWatcher; namespace Uab { class UabPackageListModel : public AbstractPackageListModel { Q_OBJECT public: explicit UabPackageListModel(QObject *parent = nullptr); [[nodiscard]] QVariant data(const QModelIndex &index, int role) const override; [[nodiscard]] int rowCount(const QModelIndex &parent = QModelIndex()) const override; Q_SLOT void slotAppendPackage(const QStringList &packageList) override; void removePackage(int index) override; [[nodiscard]] QString checkPackageValid(const QString &packagePath) override; [[nodiscard]] Pkg::PackageInstallStatus checkInstallStatus(const QString &packagePath) override; [[nodiscard]] Pkg::DependsStatus checkDependsStatus(const QString &packagePath) override; [[nodiscard]] QStringList getPackageInfo(const QString &packagePath) override; [[nodiscard]] QString lastProcessError() override; [[nodiscard]] bool containsSignatureFailed() const override; Q_SLOT bool slotInstallPackages() override; Q_SLOT bool slotUninstallPackage(int index) override; void reset() override; void resetInstallStatus() override; private: bool installNextUab(); Q_SLOT void slotBackendProgressChanged(float progress); Q_SLOT void slotBackendProcessFinished(bool success); void setCurrentOperation(Pkg::PackageOperationStatus s); bool checkIndexValid(int index) const; UabPackage::Ptr preCheckPackage(const QString &packagePath); bool packageExists(const UabPackage::Ptr &uabPtr) const; bool linglongExists(); Q_SLOT void slotFileChanged(const QString &filePath); private: int m_operatingIndex{-1}; QList m_uabPkgList; UabProcessController *m_processor{nullptr}; QStringList m_delayAppendPackages; // wait for backend inited. QFileSystemWatcher *m_fileWatcher{nullptr}; }; } // namespace Uab #endif // UABPACKAGELISTMODEL_H deepin-deb-installer-6.5.5/src/deb-installer/uab/uab_process_controller.cpp000066400000000000000000000317061474340456100270740ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "uab_process_controller.h" #include #include #include #include #include #include #include "uab_backend.h" #include "process/Pty.h" namespace Uab { // linglong cli command const QString kLinglongBin = "ll-cli"; const QString kLinglongJson = "--json"; const QString kLinglongInstall = "install"; const QString kLinglongUninstall = "uninstall"; // ll-cli output json tag const QString kJsonPercentage = "percentage"; const QString kJsonState = "state"; const QString kJsonCode = "code"; const QString kJsonMessage = "messsage"; // transport install/uninstall task to higher level permission process. static const QString kPkexecBin = "pkexec"; static const QString kInstallProcessorBin = "deepin-deb-installer-dependsInstall"; static const QString kParamUab = "--uab"; static const QString kParamInstall = "--install"; static const QString kParamRemove = "--remove"; const int kInitedIndex = -1; /** * @class UabProcessController * @brief Uab process controller. It manages the process of installing/uninstalling uab packages. * Its uses `deepin-deb-installer-dependsInstall` command to install/uninstall uab packages * with higher level permission. */ UabProcessController::UabProcessController(QObject *parent) : QObject{parent} { setProcessType(BackendCli); } void UabProcessController::setProcessType(ProcessType type) { if (type == m_type) { return; } m_type = type; } UabProcessController::ProcessType UabProcessController::processType() const { return m_type; } UabProcessController::ProcFlags UabProcessController::procFlag() const { return m_procFlag; } bool UabProcessController::isRunning() const { if (m_procFlag & (Uninstalling | Installing | Processing)) { return true; } if (m_process && QProcess::NotRunning != m_process->state()) { return true; } return false; } bool UabProcessController::reset() { if (isRunning() || !ensureProcess()) { return false; } m_currentIndex = kInitedIndex; m_procList.clear(); return true; } bool Uab::UabProcessController::markInstall(const UabPackage::Ptr &installPtr) { if (isRunning() || !ensureProcess() || !installPtr || !installPtr->isValid()) { return false; } m_procList.append(qMakePair(Installing, installPtr)); return true; } bool Uab::UabProcessController::markUninstall(const UabPackage::Ptr &uninstallPtr) { if (isRunning() || !ensureProcess() || !uninstallPtr || !uninstallPtr->isValid()) { return false; } m_procList.append(qMakePair(Uninstalling, uninstallPtr)); return true; } bool UabProcessController::commitChanges() { if (isRunning() || !ensureProcess() || m_procList.isEmpty()) { return false; } m_procFlag = Processing; m_currentIndex = kInitedIndex; if (!nextProcess()) { m_procFlag = Error; return false; } Q_EMIT processStart(); return true; } bool Uab::UabProcessController::ensureProcess() { if (!m_process) { m_process = new Konsole::Pty(this); connect(m_process, &Konsole::Pty::receivedData, this, &UabProcessController::onReadOutput); connect( m_process, QOverload::of(&QProcess::finished), this, &UabProcessController::onFinished); } else if (QProcess::NotRunning != m_process->state()) { qWarning() << "Unable to restart uab process is still running"; return false; } return true; } /** @brief Parse json data from `ll-cli --json install/uninstall [path]` output. Here are output example (linglong-bin 1.6.2). @code // progress [ { "message": "prepare for installing uab", "percentage": "0", "state": "preInstall" } ] // successed { "message": "install uab successfully", "percentage": "100", "state": "Success" } // failed {"code":-1,"message":"./libs/linglong/src/linglong/cli/cli.cpp:125 download status: \n./libs/linglong/src/linglong/repo/ostree_repo.cpp:915 import layer dir: main:org.deepin.editor/6.5.2.1/x86_64 exists."} @endcode */ void UabProcessController::parseProgressFromJson(const QByteArray &jsonData) { const QJsonDocument doc = QJsonDocument::fromJson(jsonData); if (doc.isArray()) { // maybe percentage info const QJsonObject obj = doc.array().first().toObject(); if (obj.contains(kJsonPercentage)) { float progress = obj.value(kJsonPercentage).toDouble(); updateWholeProgress(progress); } } else if (doc.isObject()) { // maybe percentage / code info const QJsonObject obj = doc.object(); if (obj.contains(kJsonPercentage)) { float progress = obj.value(kJsonPercentage).toDouble(); updateWholeProgress(progress); } else if (UabError == obj.value(kJsonCode).toInt()) { const QString errorString = obj.value(kJsonMessage).toString(); auto currUabPtr = currentPackagePtr(); if (currUabPtr) { currUabPtr->setProcessError(Pkg::UnknownError, errorString); } qWarning() << qPrintable("Uab process error:") << errorString; } // TODO(renbin): signature verify error, etc. } } void UabProcessController::parseProgressFromRawOutput(const QByteArray &output) { // Detect progress change, filter ANSI code, receive data such as: // "\r\x1B[K\x1B[?25l0% prepare for installing uab\x1B[?25h" // "\r\x1B[K\x1B[?25l100% install uab successfully\x1B[?25h\n" // // pattern: ^\r?(\x1B\[\W?\d*\w)+(\d+)% static const QRegularExpression kRegExp("^\\r?(\\x1B\\[\\W?\\d*\\w)+(\\d+)%"); QRegularExpressionMatch match = kRegExp.match(QString(output), 0, QRegularExpression::PartialPreferFirstMatch); if (match.hasMatch()) { // get (\\d+) capture float progress = match.captured(match.lastCapturedIndex()).toFloat(); updateWholeProgress(progress); } } void UabProcessController::updateWholeProgress(float currentTaskProgress) { const int count = m_procList.size(); if (count > 1) { currentTaskProgress = (m_currentIndex * 100.0f + currentTaskProgress) / static_cast(count); } Q_EMIT progressChanged(currentTaskProgress); } void UabProcessController::onReadOutput(const char *buffer, int length, bool isCommandExec) { Q_UNUSED(isCommandExec) QByteArray output = QByteArray::fromRawData(buffer, length); Q_EMIT processOutput(output); // e.g: ll-cli --json install /path/to/file parseProgressFromJson(output); } void UabProcessController::onFinished(int exitCode, int exitStatus) { Q_UNUSED(exitStatus) const bool exitSuccess = UabSuccess == exitCode; // continue next process if (exitSuccess) { // update uab backend commitCurrentChangeToBackend(); // continue next process, if error occurred, terminate current install/uninstall. if (nextProcess()) { return; } } m_procFlag = Error; Q_EMIT processFinished(false); } void UabProcessController::onDBusProgressChanged(int progress, const QString &message) { updateWholeProgress(static_cast(progress)); Q_EMIT processOutput(message); } bool UabProcessController::nextProcess() { m_procFlag.setFlag(Installing, false); m_procFlag.setFlag(Uninstalling, false); // check process finish m_currentIndex++; if (m_currentIndex >= m_procList.size()) { m_procFlag = Finish; Q_EMIT processFinished(true); return true; } if (!checkIndexValid()) { qWarning() << qPrintable("Invalid process index") << m_currentIndex; return false; } const auto ¤tProc = m_procList.at(m_currentIndex); switch (currentProc.first) { case Installing: return (BackendCli == m_type) ? installBackendCliImpl(currentProc.second) : installCliImpl(currentProc.second); case Uninstalling: return (BackendCli == m_type) ? uninstallBackendCliImpl(currentProc.second) : uninstallCliImpl(currentProc.second); default: break; } qWarning() << qPrintable("Invalid process type") << currentProc.first; return false; } bool UabProcessController::installBackendCliImpl(const UabPackage::Ptr &installPtr) { if (!installPtr || !installPtr->isValid() || installPtr->info()->filePath.isEmpty()) { return false; } m_procFlag.setFlag(Installing); // e.g.: pkexec deepin-deb-installer-dependsInstall --uab --install [file to package].uab m_process->start( kPkexecBin, {kPkexecBin, kInstallProcessorBin, kParamUab, kParamInstall, installPtr->info()->filePath}, {}, 0, false); const QString recordCommand = QString("command: %1 %2 %3 %4/%5[uab package]") .arg(kInstallProcessorBin) .arg(kParamUab) .arg(kParamInstall) .arg(installPtr->info()->id) .arg(installPtr->info()->version); qInfo() << recordCommand; return true; } bool UabProcessController::uninstallBackendCliImpl(const UabPackage::Ptr &uninstallPtr) { if (!uninstallPtr || !uninstallPtr->isValid()) { return false; } m_procFlag.setFlag(Uninstalling); // e.g.: pkexec deepin-deb-installer-dependsInstall --uab --remove [id/version] const QString mergeInfo = QString("%1/%2").arg(uninstallPtr->info()->id).arg(uninstallPtr->info()->version); m_process->start(kPkexecBin, {kPkexecBin, kInstallProcessorBin, kParamUab, kParamRemove, mergeInfo}, {}, 0, false); const QString recordCommand = QString("command: %1 %2 %3 %4").arg(kInstallProcessorBin).arg(kParamUab).arg(kParamRemove).arg(mergeInfo); Q_EMIT processOutput(recordCommand); qInfo() << recordCommand; return true; } bool Uab::UabProcessController::installCliImpl(const Uab::UabPackage::Ptr &installPtr) { if (!installPtr || !installPtr->isValid() || installPtr->info()->filePath.isEmpty()) { return false; } m_procFlag.setFlag(Installing); // e.g.: ll-cli --json install ./path/to/file/uab_package.uab m_process->start(kLinglongBin, {kLinglongBin, kLinglongJson, kLinglongInstall, installPtr->info()->filePath}, {}, 0, false); const QString recordCommand = QString("command: %1 %2 %3 %4/%5[uab package]") .arg(kLinglongBin) .arg(kLinglongJson) .arg(kLinglongInstall) .arg(installPtr->info()->id) .arg(installPtr->info()->version); Q_EMIT processOutput(recordCommand); qInfo() << recordCommand; return true; } bool Uab::UabProcessController::uninstallCliImpl(const Uab::UabPackage::Ptr &uninstallPtr) { if (!uninstallPtr || !uninstallPtr->isValid()) { return false; } m_procFlag.setFlag(Uninstalling); // e.g.: ll-cli --json uninstall org.deepin.package/1.0.0 m_process->start(kLinglongBin, {kLinglongBin, kLinglongJson, kLinglongUninstall, QString("%1/%2").arg(uninstallPtr->info()->id).arg(uninstallPtr->info()->version)}, {}, 0, false); const QString recordCommand = QString("command: %1 %2 %3 %4/%5") .arg(kLinglongBin) .arg(kLinglongJson) .arg(kLinglongUninstall) .arg(uninstallPtr->info()->id) .arg(uninstallPtr->info()->version); Q_EMIT processOutput(recordCommand); qInfo() << recordCommand; return true; } bool UabProcessController::checkIndexValid() { return 0 <= m_currentIndex && m_currentIndex < m_procList.size(); } UabPackage::Ptr UabProcessController::currentPackagePtr() { if (!checkIndexValid()) { return {}; } return m_procList[m_currentIndex].second; } void UabProcessController::commitCurrentChangeToBackend() { if (!checkIndexValid()) { return; } const auto ¤tProc = m_procList.at(m_currentIndex); UabPkgInfo::Ptr infoPtr; if (!currentProc.second || !currentProc.second->isValid()) { return; } infoPtr = currentProc.second->info(); switch (currentProc.first) { case Installing: Uab::UabBackend::instance()->packageInstalled(infoPtr); break; case Uninstalling: Uab::UabBackend::instance()->packageRemoved(infoPtr); break; default: break; } } } // namespace Uab deepin-deb-installer-6.5.5/src/deb-installer/uab/uab_process_controller.h000066400000000000000000000052371474340456100265410ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef UABPROCESSCONTROLLER_H #define UABPROCESSCONTROLLER_H #include #include "uab_package.h" namespace Konsole { class Pty; } // namespace Konsole namespace Uab { class UabProcessController : public QObject { Q_OBJECT public: explicit UabProcessController(QObject *parent = nullptr); ~UabProcessController() override = default; enum ProcessType { Unknown, BackendCli, // transport to deepin-deb-installer-dependsInstall, use ll-cli interface DirectCli, // means direct qprocess execute, command line interface }; void setProcessType(ProcessType type); [[nodiscard]] ProcessType processType() const; enum ProcFlag { Prepare = 1 << 0, Uninstalling = 1 << 1, Installing = 1 << 2, Processing = 1 << 3, Finish = 1 << 4, Error = 1 << 5, }; Q_DECLARE_FLAGS(ProcFlags, ProcFlag) Q_FLAG(ProcFlags) [[nodiscard]] ProcFlags procFlag() const; [[nodiscard]] bool isRunning() const; bool reset(); bool markInstall(const UabPackage::Ptr &installPtr); bool markUninstall(const UabPackage::Ptr &unisntallPtr); [[nodiscard]] bool commitChanges(); Q_SIGNAL void processStart(); Q_SIGNAL void processFinished(bool success); Q_SIGNAL void processOutput(const QString &output); Q_SIGNAL void progressChanged(float progress); private: [[nodiscard]] bool ensureProcess(); void parseProgressFromJson(const QByteArray &jsonData); void parseProgressFromRawOutput(const QByteArray &output); void updateWholeProgress(float currentTaskProgress); Q_SLOT void onReadOutput(const char *buffer, int length, bool isCommandExec); Q_SLOT void onFinished(int exitCode, int exitStatus); Q_SLOT void onDBusProgressChanged(int progress, const QString &message); bool nextProcess(); bool installBackendCliImpl(const UabPackage::Ptr &installPtr); bool uninstallBackendCliImpl(const UabPackage::Ptr &uninstallPtr); bool installCliImpl(const UabPackage::Ptr &installPtr); bool uninstallCliImpl(const UabPackage::Ptr &uninstallPtr); [[nodiscard]] bool checkIndexValid(); [[nodiscard]] UabPackage::Ptr currentPackagePtr(); void commitCurrentChangeToBackend(); private: Konsole::Pty *m_process{nullptr}; ProcessType m_type{Unknown}; ProcFlags m_procFlag{Prepare}; int m_currentIndex{-1}; QList> m_procList; // install/uninstall package list Q_DISABLE_COPY(UabProcessController) }; } // namespace Uab #endif // UABPROCESSCONTROLLER_H deepin-deb-installer-6.5.5/src/deb-installer/utils/000077500000000000000000000000001474340456100222025ustar00rootroot00000000000000deepin-deb-installer-6.5.5/src/deb-installer/utils/accessible.h000066400000000000000000000146751474340456100244650ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef ACCESSIBLE_H #define ACCESSIBLE_H #include "utils/accessibledefine.h" #include "view/pages/singleinstallpage.h" #include "view/pages/uninstallconfirmpage.h" #include "view/pages/multipleinstallpage.h" #include "view/pages/AptConfigMessage.h" #include "view/widgets/choosefilebutton.h" #include "view/widgets/debinfolabel.h" #include "view/pages/debinstaller.h" #include "view/widgets/workerprogress.h" #include "view/widgets/droundbgframe.h" #include "view/widgets/filechoosewidget.h" #include "view/widgets/InfoCommandLinkButton.h" #include "view/widgets/infocontrolbutton.h" #include "view/widgets/installprocessinfoview.h" #include "model/packagelistview.h" #include "model/deblistmodel.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include DWIDGET_USE_NAMESPACE // using namespace DCC_NAMESPACE; SET_FORM_ACCESSIBLE(SingleInstallPage, "SingleInstallPage") SET_FORM_ACCESSIBLE(UninstallConfirmPage, "UninstallConfirmPage") SET_FORM_ACCESSIBLE(MultipleInstallPage, "MultipleInstallPage") SET_FORM_ACCESSIBLE(AptConfigMessage, "AptConfigMessage") SET_FORM_ACCESSIBLE(ChooseFileButton, "ChooseFileButton") SET_FORM_ACCESSIBLE(DebInfoLabel, "DebInfoLabel") SET_FORM_ACCESSIBLE(DebInstaller, "DebInstaller") SET_FORM_ACCESSIBLE(WorkerProgress, "WorkerProgress") SET_FORM_ACCESSIBLE(DRoundBgFrame, "DRoundBgFrame") SET_FORM_ACCESSIBLE(FileChooseWidget, "FileChooseWidget") SET_FORM_ACCESSIBLE(InfoCommandLinkButton, "InfoCommandLinkButton") SET_FORM_ACCESSIBLE(InfoControlButton, "InfoControlButton") SET_FORM_ACCESSIBLE(InstallProcessInfoView, "InstallProcessInfoView") // Qt控件 SET_FORM_ACCESSIBLE(QFrame, m_w->objectName().isEmpty() ? "frame" : m_w->objectName()) SET_FORM_ACCESSIBLE(QWidget, m_w->objectName().isEmpty() ? "widget" : m_w->objectName()) SET_BUTTON_ACCESSIBLE(QPushButton, m_w->text().isEmpty() ? "qpushbutton" : m_w->text()) SET_SLIDER_ACCESSIBLE(QSlider, "qslider") SET_FORM_ACCESSIBLE(QMenu, "qmenu") // SET_LABEL_ACCESSIBLE(QLabel, m_w->text().isEmpty() ? "qlabel" : m_w->text()) // Dtk控件 SET_FORM_ACCESSIBLE(DWidget, m_w->objectName().isEmpty() ? "widget" : m_w->objectName()) SET_FORM_ACCESSIBLE(DBackgroundGroup, m_w->objectName().isEmpty() ? "dbackgroundgroup" : m_w->objectName()) SET_BUTTON_ACCESSIBLE(DSwitchButton, m_w->text().isEmpty() ? "switchbutton" : m_w->text()) SET_BUTTON_ACCESSIBLE(DFloatingButton, m_w->toolTip().isEmpty() ? "DFloatingButton" : m_w->toolTip()) SET_FORM_ACCESSIBLE(DSearchEdit, m_w->objectName().isEmpty() ? "DSearchEdit" : m_w->objectName()) SET_BUTTON_ACCESSIBLE(DPushButton, m_w->objectName().isEmpty() ? "DPushButton" : m_w->objectName()) SET_BUTTON_ACCESSIBLE(DIconButton, m_w->objectName().isEmpty() ? "DIconButton" : m_w->objectName()) SET_BUTTON_ACCESSIBLE(DCheckBox, m_w->objectName().isEmpty() ? "DCheckBox" : m_w->objectName()) SET_BUTTON_ACCESSIBLE(DCommandLinkButton, "DCommandLinkButton") SET_FORM_ACCESSIBLE(DTitlebar, m_w->objectName().isEmpty() ? "DTitlebar" : m_w->objectName()) // SET_LABEL_ACCESSIBLE(DLabel, m_w->text().isEmpty() ? "DLabel" : m_w->text()) SET_BUTTON_ACCESSIBLE(DToolButton, m_w->objectName().isEmpty() ? "DToolButton" : m_w->objectName()) SET_FORM_ACCESSIBLE(DDialog, m_w->objectName().isEmpty() ? "DDialog" : m_w->objectName()) SET_FORM_ACCESSIBLE(DFileDialog, m_w->objectName().isEmpty() ? "DFileDialog" : m_w->objectName()) QAccessibleInterface *accessibleFactory(const QString &classname, QObject *object) { QAccessibleInterface *interface = nullptr; // 应用主窗口 USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), AptConfigMessage); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), ChooseFileButton); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), DebInfoLabel); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), DebInstaller); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), DRoundBgFrame); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), FileChooseWidget); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), InfoCommandLinkButton); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), InfoControlButton); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), InstallProcessInfoView); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), MultipleInstallPage); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), SingleInstallPage); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), UninstallConfirmPage); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), WorkerProgress); // Qt 控件 USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), QFrame); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), QWidget); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), QPushButton); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), QSlider); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), QMenu); // USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), QLabel); // dtk 控件 USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), DWidget); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), DBackgroundGroup); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), DSwitchButton); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), DFloatingButton); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), DSearchEdit); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), DPushButton); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), DIconButton); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), DCheckBox); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), DCommandLinkButton); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), DTitlebar); // USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), DLabel); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), DDialog); USE_ACCESSIBLE(QString(classname).replace("dccV20::", ""), DFileDialog); return interface; } #endif // ACCESSIBLE_H deepin-deb-installer-6.5.5/src/deb-installer/utils/accessibledefine.h000066400000000000000000001136461474340456100256360ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef ACCESSIBLEDEFINE_H #define ACCESSIBLEDEFINE_H #include #include #include #include #include #include #include #include #include #include #define SEPARATOR "_" inline QString getAccessibleName(QWidget *w, QAccessible::Role r, const QString &fallback) { const QString lowerFallback = fallback.toLower(); // 避免重复生成 static QMap objnameMap; if (!objnameMap[w].isEmpty()) return objnameMap[w]; static QMap> accessibleMap; QString oldAccessName = w->accessibleName().toLower(); oldAccessName.replace(SEPARATOR, ""); // 按照类型添加固定前缀 QMetaEnum metaEnum = QMetaEnum::fromType(); QByteArray prefix = metaEnum.valueToKeys(r); switch (r) { case QAccessible::Form: prefix = "Form"; break; case QAccessible::Button: prefix = "Btn"; break; case QAccessible::StaticText: prefix = "Label"; break; case QAccessible::EditableText: prefix = "Editable"; break; case QAccessible::Slider: prefix = "Slider"; break; default: break; } // 再加上标识 QString accessibleName = QString::fromLatin1(prefix) + SEPARATOR; accessibleName += oldAccessName.isEmpty() ? lowerFallback : oldAccessName; // 检查名称是否唯一 if (accessibleMap[r].contains(accessibleName)) { // 获取编号,然后+1 int pos = accessibleName.indexOf(SEPARATOR); int id = accessibleName.mid(pos + 1).toInt(); QString newAccessibleName; do { // 一直找到一个不重复的名字 newAccessibleName = accessibleName + SEPARATOR + QString::number(++id); } while (accessibleMap[r].contains(newAccessibleName)); accessibleMap[r].append(newAccessibleName); objnameMap.insert(w, newAccessibleName); QObject::connect(w, &QWidget::destroyed, [=](QObject *obj) { // 对象销毁后移除占用名称 objnameMap.remove(obj); accessibleMap[r].removeOne(newAccessibleName); }); return newAccessibleName; } else { accessibleMap[r].append(accessibleName); objnameMap.insert(w, accessibleName); QObject::connect(w, &QWidget::destroyed, [=](QObject *obj) { // 对象销毁后移除占用名称 objnameMap.remove(obj); accessibleMap[r].removeOne(accessibleName); }); return accessibleName; } } // 公共的功能 #define FUNC_CREATE(classname, accessibletype, accessdescription) \ Accessible##classname(classname *w) \ : QAccessibleWidget(w, accessibletype, #classname) \ , m_w(w) \ , m_description(accessdescription) \ { \ } #define FUNC_TEXT(classname, accessiblename) \ QString Accessible##classname::text(QAccessible::Text t) const \ { \ switch (t) { \ case QAccessible::Name: \ return getAccessibleName(m_w, this->role(), accessiblename); \ case QAccessible::Description: \ return m_description; \ default: \ return QString(); \ } \ } // button控件特有功能 #define FUNC_ACTIONNAMES(classname) \ QStringList Accessible##classname::actionNames() const \ { \ if (!m_w->isEnabled()) \ return QStringList(); \ return QStringList() << pressAction() << showMenuAction(); \ } #define FUNC_DOACTION(classname) \ void Accessible##classname::doAction(const QString &actionName) \ { \ if (actionName == pressAction()) { \ QPointF localPos = m_w->geometry().center(); \ QMouseEvent event(QEvent::MouseButtonPress, localPos, Qt::LeftButton, Qt::LeftButton, Qt::NoModifier); \ qApp->sendEvent(m_w, &event); \ } else if (actionName == showMenuAction()) { \ QPointF localPos = m_w->geometry().center(); \ QMouseEvent event(QEvent::MouseButtonPress, localPos, Qt::RightButton, Qt::RightButton, Qt::NoModifier); \ qApp->sendEvent(m_w, &event); \ } \ } // Label控件特有功能 #define FUNC_TEXT_(classname) \ QString Accessible##classname::text(int startOffset, int endOffset) const \ { \ Q_UNUSED(startOffset) \ Q_UNUSED(endOffset) \ return m_w->text(); \ } // Slider控件特有功能 #define FUNC_CURRENTVALUE(classname) \ QVariant Accessible##classname::currentValue() const \ { \ return m_w->value(); \ } #define FUNC_SETCURRENTVALUE(classname) \ void Accessible##classname::setCurrentValue(const QVariant &value) \ { \ return m_w->setValue(value.toInt()); \ } #define FUNC_MAXMUMVALUE(classname) \ QVariant Accessible##classname::maximumValue() const \ { \ return QVariant(m_w->maximum()); \ } #define FUNC_FUNC_MINIMUMVALUE(classname) \ QVariant Accessible##classname::minimumValue() const \ { \ return QVariant(m_w->minimum()); \ } #define FUNC_FUNC_MINIMUMSTEPSIZE(classname) \ QVariant Accessible##classname::minimumStepSize() const \ { \ return QVariant(m_w->singleStep()); \ } #define SET_FORM_ACCESSIBLE_WITH_DESCRIPTION(classname, accessiblename, accessdescription) \ class Accessible##classname : public QAccessibleWidget \ { \ public: \ FUNC_CREATE(classname, QAccessible::Form, accessdescription) \ QString text(QAccessible::Text t) const override; \ void *interface_cast(QAccessible::InterfaceType t) override \ { \ switch (t) { \ case QAccessible::ActionInterface: \ return static_cast(this); \ default: \ return nullptr; \ } \ } \ \ private: \ classname *m_w; \ QString m_description; \ }; \ FUNC_TEXT(classname, accessiblename) #define SET_BUTTON_ACCESSIBLE_WITH_DESCRIPTION(classname, accessiblename, accessdescription) \ class Accessible##classname : public QAccessibleWidget \ { \ public: \ FUNC_CREATE(classname, QAccessible::Button, accessdescription) \ QString text(QAccessible::Text t) const override; \ void *interface_cast(QAccessible::InterfaceType t) override \ { \ switch (t) { \ case QAccessible::ActionInterface: \ return static_cast(this); \ default: \ return nullptr; \ } \ } \ QStringList actionNames() const override; \ void doAction(const QString &actionName) override; \ \ private: \ classname *m_w; \ QString m_description; \ }; \ FUNC_TEXT(classname, accessiblename) \ FUNC_ACTIONNAMES(classname) \ FUNC_DOACTION(classname) #define SET_LABEL_ACCESSIBLE_WITH_DESCRIPTION(classname, accessiblename, accessdescription) \ class Accessible##classname : public QAccessibleWidget, public QAccessibleTextInterface \ { \ public: \ FUNC_CREATE(classname, QAccessible::StaticText, accessdescription) \ QString text(QAccessible::Text t) const override; \ void *interface_cast(QAccessible::InterfaceType t) override \ { \ switch (t) { \ case QAccessible::ActionInterface: \ return static_cast(this); \ case QAccessible::TextInterface: \ return static_cast(this); \ default: \ return nullptr; \ } \ } \ QString text(int startOffset, int endOffset) const override; \ void selection(int selectionIndex, int *startOffset, int *endOffset) const override {} \ int selectionCount() const override \ { \ return 0; \ } \ void addSelection(int startOffset, int endOffset) override {} \ void removeSelection(int selectionIndex) override {} \ void setSelection(int selectionIndex, int startOffset, int endOffset) override {} \ int cursorPosition() const override \ { \ return 0; \ } \ void setCursorPosition(int position) override {} \ int characterCount() const override \ { \ return 0; \ } \ QRect characterRect(int offset) const override \ { \ return QRect(); \ } \ int offsetAtPoint(const QPoint &point) const override \ { \ return 0; \ } \ void scrollToSubstring(int startIndex, int endIndex) override {} \ QString attributes(int offset, int *startOffset, int *endOffset) const override \ { \ return QString(); \ } \ \ private: \ classname *m_w; \ QString m_description; \ }; \ FUNC_TEXT(classname, accessiblename) \ FUNC_TEXT_(classname) #define SET_SLIDER_ACCESSIBLE_WITH_DESCRIPTION(classname, accessiblename, accessdescription) \ class Accessible##classname : public QAccessibleWidget, public QAccessibleValueInterface \ { \ public: \ FUNC_CREATE(classname, QAccessible::Slider, accessdescription) \ QString text(QAccessible::Text t) const override; \ void *interface_cast(QAccessible::InterfaceType t) override \ { \ switch (t) { \ case QAccessible::ActionInterface: \ return static_cast(this); \ case QAccessible::ValueInterface: \ return static_cast(this); \ default: \ return nullptr; \ } \ } \ QVariant currentValue() const override; \ void setCurrentValue(const QVariant &value) override; \ QVariant maximumValue() const override; \ QVariant minimumValue() const override; \ QVariant minimumStepSize() const override; \ \ private: \ classname *m_w; \ QString m_description; \ }; \ FUNC_TEXT(classname, accessiblename) \ FUNC_CURRENTVALUE(classname) \ FUNC_SETCURRENTVALUE(classname) \ FUNC_MAXMUMVALUE(classname) \ FUNC_FUNC_MINIMUMVALUE(classname) \ FUNC_FUNC_MINIMUMSTEPSIZE(classname) #define SET_EDITABLE_ACCESSIBLE_WITH_DESCRIPTION(classname, accessiblename, accessdescription) \ class Accessible##classname : public QAccessibleWidget, \ public QAccessibleEditableTextInterface, \ public QAccessibleTextInterface \ { \ public: \ FUNC_CREATE(classname, QAccessible::EditableText, accessdescription) \ QString text(QAccessible::Text t) const override; \ QAccessibleInterface *child(int index) const override \ { \ return nullptr; \ } \ void *interface_cast(QAccessible::InterfaceType t) override \ { \ switch (t) { \ case QAccessible::ActionInterface: \ return static_cast(this); \ case QAccessible::TextInterface: \ return static_cast(this); \ case QAccessible::EditableTextInterface: \ return static_cast(this); \ default: \ return nullptr; \ } \ } \ QString text(int startOffset, int endOffset) const override; \ void selection(int selectionIndex, int *startOffset, int *endOffset) const override {} \ int selectionCount() const override \ { \ return 0; \ } \ void addSelection(int startOffset, int endOffset) override {} \ void removeSelection(int selectionIndex) override {} \ void setSelection(int selectionIndex, int startOffset, int endOffset) override {} \ int cursorPosition() const override \ { \ return 0; \ } \ void setCursorPosition(int position) override {} \ int characterCount() const override \ { \ return 0; \ } \ QRect characterRect(int offset) const override \ { \ return QRect(); \ } \ int offsetAtPoint(const QPoint &point) const override \ { \ return 0; \ } \ void scrollToSubstring(int startIndex, int endIndex) override {} \ QString attributes(int offset, int *startOffset, int *endOffset) const override \ { \ return QString(); \ } \ void insertText(int offset, const QString &text) override {} \ void deleteText(int startOffset, int endOffset) override{}; \ void replaceText(int startOffset, int endOffset, const QString &text) override {} \ \ private: \ classname *m_w; \ QString m_description; \ }; \ FUNC_TEXT(classname, accessiblename) \ FUNC_TEXT_(classname) #define USE_ACCESSIBLE(classnamestring, classname) \ if (classnamestring == QLatin1String(#classname) && object && object->isWidgetType()) { \ interface = new Accessible##classname(static_cast(object)); \ } // [指定objectname]---适用同一个类,但objectname不同的情况 #define USE_ACCESSIBLE_BY_OBJECTNAME(classnamestring, classname, objectname) \ if (classnamestring == QLatin1String(#classname) && object && (object->objectName() == objectname) && \ object->isWidgetType()) { \ interface = new Accessible##classname(static_cast(object)); \ } /*******************************************简化使用*******************************************/ #define SET_FORM_ACCESSIBLE(classname, accessiblename) SET_FORM_ACCESSIBLE_WITH_DESCRIPTION(classname, accessiblename, "") #define SET_BUTTON_ACCESSIBLE(classname, accessiblename) SET_BUTTON_ACCESSIBLE_WITH_DESCRIPTION(classname, accessiblename, "") #define SET_LABEL_ACCESSIBLE(classname, accessiblename) SET_LABEL_ACCESSIBLE_WITH_DESCRIPTION(classname, accessiblename, "") #define SET_SLIDER_ACCESSIBLE(classname, accessiblename) SET_SLIDER_ACCESSIBLE_WITH_DESCRIPTION(classname, accessiblename, "") #define SET_EDITABLE_ACCESSIBLE(classname, accessiblename) SET_EDITABLE_ACCESSIBLE_WITH_DESCRIPTION(classname, accessiblename, "") #define SET_PROGRESSBAR_ACCESSIBLE(classname, accessiblename) \ SET_PROGRESSBAR_ACCESSIBLE_WITH_DESCRIPTION(classname, accessiblename, "") /************************************************************************************************/ #endif // ACCESSIBLEDEFINE_H deepin-deb-installer-6.5.5/src/deb-installer/utils/deb_package.cpp000066400000000000000000000103551474340456100251170ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "deb_package.h" #include #include #include "model/packageanalyzer.h" #include "compatible/compatible_backend.h" #include "compatible/compatible_defines.h" #include "utils/utils.h" namespace Deb { DebPackage::DebPackage(const QString &debFilePath) : m_debFilePtr(QSharedPointer::create(debFilePath)) { } bool DebPackage::isValid() const { return m_debFilePtr->isValid(); } bool DebPackage::fileExists() const { return m_exists; } void DebPackage::markNotExists() { m_exists = false; } QString DebPackage::filePath() const { return m_debFilePtr->filePath(); } QByteArray DebPackage::md5() { if (m_md5.isEmpty() && m_debFilePtr->isValid()) { m_md5 = m_debFilePtr->md5Sum(); } return m_md5; } const QSharedPointer &DebPackage::debInfo() const { return m_debFilePtr; } void DebPackage::setOperationStatus(Pkg::PackageOperationStatus s) { m_operationStatus = s; } Pkg::PackageOperationStatus DebPackage::operationStatus() const { return m_operationStatus; } Pkg::PackageInstallStatus DebPackage::installStatus() const { return m_installStatus; } PackageDependsStatus &DebPackage::dependsStatus() { return m_dependsStatus; } bool DebPackage::containsTemplates() { if (UnknownTemplates == m_templatesState) { m_templatesState = Utils::checkPackageContainsDebConf(m_debFilePtr->filePath()) ? ContainTemplates : NoTemplates; } return m_templatesState == ContainTemplates; } bool DebPackage::containRemovePackages() const { return !m_removePackages.isEmpty(); } void DebPackage::setMarkedPackages(const QStringList &installDepends) { m_removePackages.clear(); if (!m_debFilePtr->isValid()) { return; } QApt::Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { return; } backend->saveCacheState(); for (const QString &depends : installDepends) { // annother error if (depends.contains(" not found")) { backend->undo(); return; } backend->markPackageForInstall(depends); } QApt::PackageList markedPackages = backend->markedPackages(); for (const QApt::Package *package : markedPackages) { if (package->state() & QApt::Package::ToRemove) { m_removePackages << package->name(); } } // must restore changes, not install now backend->undo(); /* In the dependency check of the PacakgesManager, the dependency satisfaction of the breaks/conflicts package has been detected, but only the packages that will be installed have been marked. Mark the breaks/conflicts package for uninstalling. */ const QList selfRemovePackages = m_debFilePtr->breaks() + m_debFilePtr->conflicts(); for (const QApt::DependencyItem &item : selfRemovePackages) { for (const QApt::DependencyInfo &info : item) { QApt::Package *package = backend->package(info.packageName()); if (package && package->isInstalled()) { m_removePackages << package->name(); } } } } QStringList DebPackage::removePackages() const { return m_removePackages; } void DebPackage::setError(int code, const QString &string) { m_errorCode = code; m_errorString = string; } int DebPackage::errorCode() const { return m_errorCode; } QString DebPackage::errorString() const { return m_errorString; } const QSharedPointer &DebPackage::compatible() { if (!m_compInfoPtr && isValid()) { // might installed in compatbile mode. m_compInfoPtr = CompBackend::instance()->containsPackage(m_debFilePtr->packageName()); if (!m_compInfoPtr) { m_compInfoPtr = Compatible::CompPkgInfo::Ptr::create(); m_compInfoPtr->name = m_debFilePtr->packageName(); m_compInfoPtr->version = m_debFilePtr->version(); m_compInfoPtr->arch = m_debFilePtr->architecture(); } m_compInfoPtr->filePath = m_debFilePtr->filePath(); } return m_compInfoPtr; } }; // namespace Deb deepin-deb-installer-6.5.5/src/deb-installer/utils/deb_package.h000066400000000000000000000045151474340456100245650ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef DEBPACKAGE_H #define DEBPACKAGE_H #include #include #include "manager/PackageDependsStatus.h" #include "package_defines.h" namespace Compatible { class CompPkgInfo; }; // namespace Compatible namespace Deb { // TODO: Use DebPackage::Ptr to replace the scattered package data in the DebListModel / PackageAnalyzer class DebPackage { public: using Ptr = QSharedPointer; explicit DebPackage(const QString &debFilePath); ~DebPackage() = default; [[nodiscard]] bool isValid() const; [[nodiscard]] bool fileExists() const; void markNotExists(); [[nodiscard]] QString filePath() const; [[nodiscard]] QByteArray md5(); [[nodiscard]] const QSharedPointer &debInfo() const; void setOperationStatus(Pkg::PackageOperationStatus s); [[nodiscard]] Pkg::PackageOperationStatus operationStatus() const; [[nodiscard]] Pkg::PackageInstallStatus installStatus() const; // direct access [[nodiscard]] PackageDependsStatus &dependsStatus(); bool containsTemplates(); // depends info bool containRemovePackages() const; void setMarkedPackages(const QStringList &installDepends); QStringList removePackages() const; // error void setError(int code, const QString &string); [[nodiscard]] int errorCode() const; [[nodiscard]] QString errorString() const; // for compatible mode const QSharedPointer &compatible(); private: bool m_exists{true}; // file exists QByteArray m_md5; // package's md5 sum QSharedPointer m_debFilePtr; Pkg::PackageOperationStatus m_operationStatus{Pkg::Prepare}; Pkg::PackageInstallStatus m_installStatus{Pkg::NotInstalled}; PackageDependsStatus m_dependsStatus; QStringList m_removePackages; int m_errorCode{Pkg::NoError}; // sa Pkg::ErrorCode and QApt::ErrorCode QString m_errorString; QSharedPointer m_compInfoPtr; enum TemplatesState { UnknownTemplates, ContainTemplates, NoTemplates, }; TemplatesState m_templatesState{UnknownTemplates}; Q_DISABLE_COPY(DebPackage) }; }; // namespace Deb #endif // DEBPACKAGE_H deepin-deb-installer-6.5.5/src/deb-installer/utils/eventlogutils.cpp000066400000000000000000000017531474340456100256200ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "eventlogutils.h" #include #include #include #include Eventlogutils *Eventlogutils::m_pInstance = nullptr; Eventlogutils *Eventlogutils::GetInstance() { if (m_pInstance == nullptr) { m_pInstance = new Eventlogutils(); } return m_pInstance; } void Eventlogutils::writeLogs(QJsonObject &data) { if (!writeEventLogFunc) return; writeEventLogFunc(QJsonDocument(data).toJson(QJsonDocument::Compact).toStdString()); } Eventlogutils::Eventlogutils() { QLibrary library("libdeepin-event-log.so"); initFunc = reinterpret_cast(library.resolve("Initialize")); writeEventLogFunc = reinterpret_cast(library.resolve("WriteEventLog")); if (!initFunc) return; initFunc("deepin-deb-installer", true); } deepin-deb-installer-6.5.5/src/deb-installer/utils/eventlogutils.h000066400000000000000000000013231474340456100252560ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef EVENTLOGUTILS_H #define EVENTLOGUTILS_H #include #include class Eventlogutils { public: enum EventTID { OpenTime = 1000000000, CloseTime = 1000000001, StartUp = 1000000003, Quit = 1000000004, }; static Eventlogutils *GetInstance(); void writeLogs(QJsonObject &data); private: static Eventlogutils *m_pInstance; Eventlogutils(); bool (*initFunc)(const std::string &packagename, bool enable_sig) = nullptr; void (*writeEventLogFunc)(const std::string &eventdata) = nullptr; }; #endif // EVENTLOGUTILS_H deepin-deb-installer-6.5.5/src/deb-installer/utils/hierarchicalverify.cpp000066400000000000000000000156231474340456100265600ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "hierarchicalverify.h" #include "utils/qtcompat.h" #include #include #include #include #include // 分级管控DBus接口信息 const char DBUS_HIERARCHICAL_BUS[] = "com.deepin.daemon.ACL"; const char DBUS_HIERARCHICAL_PATH[] = "/org/deepin/security/hierarchical/Control"; const char DBUS_HIERARCHICAL_INTERFACE[] = "org.deepin.security.hierarchical.Control"; const char DBUS_HIERARCHICAL_METHOD[] = "Availabled"; // 分级管控安全中心界面跳转接口 const char DBUS_DEFENDER_BUS[] = "com.deepin.defender.hmiscreen"; const char DBUS_DEFENDER_PATH[] = "/com/deepin/defender/hmiscreen"; const char DBUS_DEFENDER_INTERFACE[] = "com.deepin.defender.hmiscreen"; const char DBUS_DEFENDER_METHOD[] = "ShowPage"; const char DBUS_DEFENDER_SECURITYTOOLS[] = "securitytools"; const char DBUS_DEFENDER_APP_SAFETY[] = "application-safety"; // 匹配正则,%1为错误码 const char VERIFY_ERROR_REGEXP[] = "(deepin)+[^\\n]*(hook)+[^\\n]*(%1|%2)\\b"; /** @brief dpkg校验错误码,当前仅验签错误 */ enum HierarchicalError { VerifyError = 65280, ///< dpkg hook 签名校验错误码 VerffyErrorVer2 = 256, ///< dpkg hook 签名校验错误码 1071 及之后更新使用 }; /** @class HierarchicalVerify @brief 分级管控签名校验辅助类 @details 配合【安全中心】分级管控,实现不同的安装包管理策略,进行签名验证 1. 当分级管控接口不可用时,使用安装器校验,@sa `Utils::Digital_Verify` 2. 当分级管控控件可用时,采用dpkg hook方式调用验签工具,错误码信息通过命令行输出, 安装器接收输出信息并判断是否为验签错误。 */ HierarchicalVerify::HierarchicalVerify() {} HierarchicalVerify::~HierarchicalVerify() {} /** @return 返回分级管控签名校验辅助类实例 */ HierarchicalVerify *HierarchicalVerify::instance() { static HierarchicalVerify ins; return &ins; } /** @return 返回当前分级管控签名验证是否可用,此信息通过查询DBus接口属性值取得。 */ bool HierarchicalVerify::isValid() { if (interfaceInvalid) { return false; } static std::once_flag checkFlag; std::call_once(checkFlag, [this]() { checkValidImpl(); }); return valid; } /** @brief 检测软件包 \a pkgName 安装失败时的错误信息 \a errorString 中是否包含验签不通过的错误信息。 @warning 通过正则表达式匹配输出,当前通过 hook 标志和错误码 65280 匹配,需注意命令行输出信息更新未正常匹配的情况 * 1071 更新错误码为 256 ,进行兼容处理 */ bool HierarchicalVerify::checkTransactionError(const QString &pkgName, const QString &errorString) { static REG_EXP s_ErrorReg(QString(VERIFY_ERROR_REGEXP).arg(VerifyError).arg(VerffyErrorVer2)); if (errorString.contains(s_ErrorReg)) { invalidPackages.insert(pkgName); qWarning() << QString("[Hierarchical] Package %1 detected hierarchical error!").arg(pkgName); return true; } return false; } /** @return 返回软件包 \a pkgName 是否通过校验,这个信息从校验缓存中获取, 通过 `clearVerifyResult` 移除 */ bool HierarchicalVerify::pkgVerifyPassed(const QString &pkgName) { return !invalidPackages.contains(pkgName); } /** @brief 移除缓存中的校验结果 */ void HierarchicalVerify::clearVerifyResult() { invalidPackages.clear(); } /** @brief 请求弹出分级管控安全等级设置引导提示窗口,调用DBus接口,调出"安全中心-安全工具-应用安全"界面 */ void HierarchicalVerify::proceedDefenderSafetyPage() { QDBusInterface interface(DBUS_DEFENDER_BUS, DBUS_DEFENDER_PATH, DBUS_DEFENDER_INTERFACE, QDBusConnection::sessionBus()); QDBusError error = interface.lastError(); if (interface.isValid()) { QDBusMessage message = interface.call(DBUS_DEFENDER_METHOD, DBUS_DEFENDER_SECURITYTOOLS, DBUS_DEFENDER_APP_SAFETY); QDBusError error = interface.lastError(); } if (QDBusError::NoError != error.type()) { qWarning() << QString("[Hierarchical] Show defender app-safety page error [%2] %3") .arg(DBUS_DEFENDER_BUS) .arg(error.name()) .arg(error.message()); } } /** @brief 检测当前系统环境下是否包含分级管控接口,并取值判断接口是否可用。 */ bool HierarchicalVerify::checkHierarchicalInterface() { bool availabled = false; QDBusInterface interface( DBUS_HIERARCHICAL_BUS, DBUS_HIERARCHICAL_PATH, DBUS_HIERARCHICAL_INTERFACE, QDBusConnection::systemBus()); if (interface.isValid()) { QDBusMessage message = interface.call(DBUS_HIERARCHICAL_METHOD); QDBusError error = interface.lastError(); if (QDBusError::NoError != error.type()) { // The log not need warning level. qInfo() << QString("[Hierarchical] DBus %1 read property %2 error: type(%2) [%3] %4") .arg(DBUS_HIERARCHICAL_BUS) .arg(DBUS_HIERARCHICAL_METHOD) .arg(error.type()) .arg(error.name()) .arg(error.message()); // QDBusInterface 在构造时不一定能判断接口是否有效,调用后二次判断 if (!interface.isValid() || QDBusError::UnknownInterface == error.type() || QDBusError::InvalidInterface == error.type()) { interfaceInvalid = true; qInfo() << QString("[Hierarchical] Interface %1 is not valid! Disable check hierarchical control interface.") .arg(DBUS_HIERARCHICAL_INTERFACE); } } else { QDBusReply reply(message); availabled = reply.value(); qInfo() << QString("[Hierarchical] Get %1 property %2 value: %3") .arg(DBUS_HIERARCHICAL_BUS) .arg(DBUS_HIERARCHICAL_METHOD) .arg(availabled); } } else { interfaceInvalid = true; qInfo() << QString("[Hierarchical] DBus interface %1 invalid! error: [%2] %3") .arg(DBUS_HIERARCHICAL_INTERFACE) .arg(interface.lastError().name()) .arg(interface.lastError().message()); } return availabled; } bool HierarchicalVerify::checkValidImpl() { const bool availabled = checkHierarchicalInterface(); if (valid != availabled) { valid = availabled; // if the hierarchical signature verification is not available, clear cache. if (!valid) { clearVerifyResult(); } Q_EMIT validChanged(valid); } return availabled; } deepin-deb-installer-6.5.5/src/deb-installer/utils/hierarchicalverify.h000066400000000000000000000020051474340456100262130ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef HIERARCHICALVERIFY_H #define HIERARCHICALVERIFY_H #include #include class HierarchicalVerify : public QObject { Q_OBJECT explicit HierarchicalVerify(); ~HierarchicalVerify() override; public: static HierarchicalVerify *instance(); bool isValid(); bool checkTransactionError(const QString &pkgName, const QString &errorString); bool pkgVerifyPassed(const QString &pkgName); void clearVerifyResult(); Q_SLOT void proceedDefenderSafetyPage(); Q_SIGNAL void validChanged(bool valid); private: bool checkHierarchicalInterface(); bool checkValidImpl(); private: bool valid = false; ///< 分级管控是否开启 bool interfaceInvalid = false; ///< DBus接口是否有效 QSet invalidPackages; ///< 验签失败的包集合 Q_DISABLE_COPY(HierarchicalVerify) }; #endif // HIERARCHICALVERIFY_H deepin-deb-installer-6.5.5/src/deb-installer/utils/package_defines.h000066400000000000000000000054771474340456100254600ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef PACKAGE_DEFINES_H #define PACKAGE_DEFINES_H #include #include #include #include /** @brief define package common struct / enum , both deb and uab package. */ namespace Pkg { struct DependInfo { QString packageName; // depends package name QString version; // depends pacakge version }; using DependsPair = QPair, QList>; enum PackageType { UnknownPackage, Deb, // ensure deb priority Uab, Ddim, Proxy, // both deb and uab }; enum PackageReadability { PkgReadable, PkgNotInLocal, PkgNoPermission, }; enum AppendFailReason { PackageInvalid, PackageNotLocal, PackageNotInstallable, // can not install, wrong arch or no permission etc. PackageAlreadyExists, // same name and version package intalled PackageNotDdim, }; enum PackageInstallStatus { NotInstalled, InstalledSameVersion, // current version installed InstalledEarlierVersion, // earlier version installed InstalledLaterVersion, // later version installed }; enum DependsStatus { DependsOk, // ready to install DependsAvailable, // alailable but need download depends DependsBreak, // depends are unavaliable, confilcit, or no depends packge etc. DependsVerifyFailed, // signature verify failed DependsAuthCancel, // pre depends (wine, linglong) auth check failed ArchBreak, // arch check failed, e.g.: amd64 package cannot install in arm system Prohibit, // The application is restricted by the domain management and cannot be installed CompatibleNotInstalled, // Package depends break, but can install to compatible rootfs CompatibleIntalled, // Package depends ok, but installed in (compatible mode / current system) }; enum PackageOperationStatus { Prepare, // prepare install/uninstall Operating, // installing/uninstalling Success, Failed, Waiting, // waitng for next intall/uninstall VerifyFailed, // runtime signature verfiy failed (hierarchical verify) }; // Signature fail error code enum ErrorCode { NoError, UnknownError, NoDigitalSignature = 101, DigitalSignatureError, ConfigAuthCancel = 127, // Authentication failed ApplocationProhibit = 404, // the current package is in the blacklist and is prohibited from installation }; // Install / Uninstall process return code enum ExitCode { ExitNoError = 0, // success ExitAuthError = 126, // authentication check cancel or failed ExitUnknownError = -1, }; } // namespace Pkg Q_DECLARE_METATYPE(Pkg::DependsPair) Q_DECLARE_METATYPE(Pkg::PackageType) #endif // PACKAGE_DEFINES_H deepin-deb-installer-6.5.5/src/deb-installer/utils/qtcompat.h000066400000000000000000000021531474340456100242040ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef QTCOMPAT_H #define QTCOMPAT_H #include #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) #include #include class QEnterEvent; #define SKIP_EMPTY_PARTS Qt::SkipEmptyParts #define SPLIT_BH Qt::SplitBehavior #define ENDL Qt::endl #define REG_EXP QRegularExpression #define REG_EXPV QRegularExpressionValidator #define DATE_FOTIME QDateTime::fromSecsSinceEpoch #define DATE_TOTIME QDateTime::toSecsSinceEpoch using EnterEvent = QEnterEvent; #else // QT_VERSION < 6.0.0 #include class QEvent; #define SKIP_EMPTY_PARTS QString::SkipEmptyParts #define SPLIT_BH QString::SplitBehavior #define ENDL endl #define REG_EXP QRegExp #define REG_EXPV QRegExpValidator #define DATE_FOTIME QDateTime::fromTime_t #define DATE_TOTIME QDateTime::toTime_t using EnterEvent = QEvent; #endif #endif // QTCOMPAT_H deepin-deb-installer-6.5.5/src/deb-installer/utils/result.h000066400000000000000000000014141474340456100236710ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef RESULT_H #define RESULT_H template class Result { public: static Result ok(const T &value); static Result err(const T &value); Result(const bool stat, const T &value); bool is_ok() const { return m_ok; } T unwrap() const { return m_value; } private: bool m_ok; T m_value; }; template Result Result::ok(const T &value) { return {true, value}; } template Result Result::err(const T &value) { return {false, value}; } template Result::Result(const bool stat, const T &value) : m_ok(stat) , m_value(value) { } #endif // RESULT_H deepin-deb-installer-6.5.5/src/deb-installer/utils/utils.cpp000066400000000000000000000556031474340456100240570ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "utils.h" #include "qtcompat.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include DWIDGET_USE_NAMESPACE QHash Utils::m_imgCacheHash; QHash Utils::m_fontNameCache; Utils::Utils(QObject *parent) : QObject(parent) { } QString Utils::loadFontFamilyByType(FontType fontType) { Q_UNUSED(fontType); QFont font; return font.family(); } QFont Utils::loadFontBySizeAndWeight(const QString &fontFamily, int fontSize, int fontWeight) { Q_UNUSED(fontSize) QFont font(fontFamily); font.setWeight((QFont::Weight)fontWeight); return font; } void Utils::bindFontBySizeAndWeight(QWidget *widget, const QString &fontFamily, int fontSize, int fontWeight) { if (nullptr == widget) return; QFont font = loadFontBySizeAndWeight(fontFamily, fontSize, fontWeight); widget->setFont(font); DFontSizeManager::SizeType sizeType = DFontSizeManager::T6; switch (fontSize) { case 10: { sizeType = DFontSizeManager::T10; } break; case 11: { sizeType = DFontSizeManager::T9; } break; case 12: { sizeType = DFontSizeManager::T8; } break; case 13: { sizeType = DFontSizeManager::T7; } break; case 14: { sizeType = DFontSizeManager::T6; } break; case 17: { sizeType = DFontSizeManager::T5; } break; case 20: { sizeType = DFontSizeManager::T4; } break; case 24: { sizeType = DFontSizeManager::T3; } break; case 30: { sizeType = DFontSizeManager::T2; } break; case 40: { sizeType = DFontSizeManager::T1; } break; } DFontSizeManager *fontManager = DFontSizeManager::instance(); fontManager->bind(widget, sizeType, fontWeight); } QString Utils::fromSpecialEncoding(const QString &inputStr) { bool bFlag = inputStr.contains(REG_EXP("[\\x4e00-\\x9fa5]+")); if (bFlag) { return inputStr; } QTextCodec *codec = QTextCodec::codecForName("utf-8"); if (codec) { QString unicodeStr = codec->toUnicode(inputStr.toLatin1()); return unicodeStr; } else { return inputStr; } } bool Utils::Return_Digital_Verify(const QString &strfilepath, const QString &strfilename) { QDir dir(strfilepath); if (!dir.exists()) { qDebug() << "文件夹不存在"; return false; } dir.setFilter(QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot); QFileInfoList list = dir.entryInfoList(); int file_count = list.count(); qDebug() << "file_count " << file_count; if (file_count <= 0) { qDebug() << "当前文件夹为空"; return false; } for (int i = 0; i < list.count(); i++) { QFileInfo file_info = list.at(i); if (file_info.fileName() == strfilename) { qDebug() << "文件路径: " << file_info.path() << " " << "文件名: " << file_info.fileName(); return true; } } return false; } Utils::VerifyResultCode Utils::Digital_Verify(const QString &filepath_name) { QString verifyfilepath = "/usr/bin/"; QString verifyfilename = "deepin-deb-verify"; bool result_verify_file = Return_Digital_Verify(verifyfilepath, verifyfilename); qDebug() << "result_verify_file" << result_verify_file; if (result_verify_file) { QProcess proc; QString program = "/usr/bin/deepin-deb-verify"; proc.start(program, {filepath_name}); proc.waitForFinished(-1); const QString output1 = proc.readAllStandardError(); qInfo() << "签名校验结果:" << output1; for (const auto &item : output1.split('\n')) { if (item.toLatin1() == "[INFO] signature verified!") { return VerifySuccess; } if (item.toLatin1() == "cannot find signinfo in deb file") { return DebfileInexistence; } if (item.toLatin1() == "extract deb_file failed!") { return ExtractDebFail; } if (item.toLatin1() == "verify deb file failed!") { return DebVerifyFail; } } } return OtherError; } QString Utils::holdTextInRect(const QFont &font, const QString &srcText, const QSize &size) { bool bContainsChinese = srcText.contains(REG_EXP("[\\x4e00-\\x9fa5]+")); QString text; QString tempText; int totalHeight = size.height(); int lineWidth = size.width() - font.pixelSize(); int offset = bContainsChinese ? font.pixelSize() : 0; QFontMetrics fm(font); int calcHeight = 0; int lineHeight = fm.height(); int lineSpace = 0; int lineCount = (totalHeight - lineSpace) / lineHeight; int prevLineCharIndex = 0; for (int charIndex = 0; charIndex < srcText.size() && lineCount >= 0; ++charIndex) { int fmWidth = fm.horizontalAdvance(tempText); if (fmWidth > lineWidth - offset || tempText.contains("\n")) { calcHeight += lineHeight + 3; if (calcHeight + lineHeight > totalHeight) { QString endString = srcText.mid(prevLineCharIndex); const QString &endText = fm.elidedText(endString, Qt::ElideRight, size.width()); text += endText; lineCount = 0; break; } if (!bContainsChinese) { QChar currChar = tempText.at(tempText.length() - 1); QChar nextChar = srcText.at(srcText.indexOf(tempText) + tempText.length()); if (currChar.isLetter() && nextChar.isLetter()) { tempText += '-'; } fmWidth = fm.horizontalAdvance(tempText); if (fmWidth > size.width()) { --charIndex; --prevLineCharIndex; tempText = tempText.remove(tempText.length() - 2, 1); } } text += tempText; --lineCount; if (lineCount > 0) { if (!tempText.contains("\n")) text += "\n"; } tempText = srcText.at(charIndex); prevLineCharIndex = charIndex; } else { tempText += srcText.at(charIndex); } } if (lineCount > 0) { text += tempText; } return text; } QString Utils::holdTextInRect(const QFont &font, const QString &srcText, const int &width) { bool bContainsChinese = srcText.contains(REG_EXP("[\\x4e00-\\x9fa5]+")); QString text; QString tempText; int lineWidth = width - 12; int offset = bContainsChinese ? font.pixelSize() : 0; QFontMetrics fm(font); int prevLineCharIndex = 0; for (int charIndex = 0; charIndex < srcText.size(); ++charIndex) { int fmWidth = fm.horizontalAdvance(tempText); if (fmWidth > lineWidth - offset || tempText.contains("\n")) { if (!bContainsChinese) { QChar currChar = tempText.at(tempText.length() - 1); QChar nextChar = srcText.at(srcText.indexOf(tempText) + tempText.length()); if (currChar.isLetter() && nextChar.isLetter()) { tempText += '-'; } fmWidth = fm.horizontalAdvance(tempText); if (fmWidth > lineWidth) { --charIndex; --prevLineCharIndex; tempText = tempText.remove(tempText.length() - 2, 1); if (currChar != '\n' && nextChar != '\n') { text += tempText; text += "\n"; } } } else { text += tempText; text += "\n"; } tempText = srcText.at(charIndex); prevLineCharIndex = charIndex; } else { tempText += srcText.at(charIndex); } } if (text.size() >= 1 && text[text.size() - 1] != '\n') text += "\n"; text += tempText; return text; } /*! @brief check `packagePath` is readable, firstly check the mount device information, if it is a gvfs or cifs file system(the remote mount system after V6), throw false. At the same time, check if the file has permission to install, if not, throw an exception. @param[in] packagePath pacakge's path. @note only local package can be installed, remote package (samba/ftp) can not be installed. @todo Add the check for removable devices. */ Pkg::PackageReadability Utils::checkPackageReadable(const QString &packagePath) { // Determine whether the route information is a local path QStorageInfo info(packagePath); QString device = info.device(); // Blacklist identifies, gvfs/cifs as the file system // that currently manages the remote directory if (device.startsWith("gvfs") || device.startsWith("cifs")) { qWarning() << "Disable open remote file, the devices is" << device; return Pkg::PkgNotInLocal; } QFileInfo debFileIfo(packagePath); // check package file readable QFile outfile(packagePath.toUtf8()); outfile.open(QFile::ReadOnly); // error occurs if (!outfile.isOpen()) { QFile::FileError error = outfile.error(); if (error == QFile::FileError::NoError) { qWarning() << "Package has permission but cannot open!"; return Pkg::PkgNotInLocal; } qWarning() << "Package has no read permission!"; return Pkg::PkgNoPermission; } // file can open, has permission, in local outfile.close(); return Pkg::PkgReadable; } int Utils::compareVersion(const QString &v1, const QString &v2) { return QApt::Package::compareVersion(v1, v2); } Pkg::PackageType Utils::detectPackage(const QString &filePath) { QMimeDatabase db; const QMimeType mime = db.mimeTypeForFile(filePath); const QFileInfo info(filePath); if (info.suffix().toLower() == "deb" || mime.name().startsWith("application/vnd.debian.binary-package")) { return Pkg::Deb; } if (info.suffix().toLower() == "uab" || mime.name().startsWith("application/vnd.linyaps.uab")) { return Pkg::Uab; } return Pkg::UnknownPackage; } /** * @brief Get the icon based on the package \a type . * not threadsafe. */ QIcon Utils::packageIcon(Pkg::PackageType type) { if (Pkg::Uab == type) { // linglong uab package static QIcon kUabIcon = QIcon::fromTheme("application-x-uab"); if (kUabIcon.isNull()) { // using DDciIcon to support new svg version (dsvg use librsvg backend) Dtk::Gui::DDciIcon dciIcon(QString(":/icons/deepin/uab/uos-application-bundle.dci")); QList availibleSizes = dciIcon.availableSizes(DDciIcon::Light); if (!availibleSizes.isEmpty()) { kUabIcon = QIcon(dciIcon.pixmap(qApp->devicePixelRatio(), availibleSizes.first(), DDciIcon::Light)); } } return kUabIcon; } else { // default, deb package static const QIcon kDebIcon = QIcon::fromTheme("application-x-deb"); return kDebIcon; } } /** @brief Check if debian package contains DebConf templates config file */ bool Utils::checkPackageContainsDebConf(const QString &filePath) { // create template dir QTemporaryDir templateDir; if (!templateDir.isValid()) { qWarning() << "check error mkdir failed, error:" << templateDir.errorString(); return false; } QProcess dpkgProcess; dpkgProcess.start("dpkg", {"-e", filePath, templateDir.path()}); dpkgProcess.waitForFinished(); const QByteArray errorOutput = dpkgProcess.readAllStandardError(); if (!errorOutput.isEmpty()) { qWarning() << "DebListModel:" << "Failed to decompress the main control file" << errorOutput; } return QFile::exists(templateDir.filePath("templates")); } /** @return Check if the current mode is development mode, the status will be called once and stored. */ bool Utils::isDevelopMode() { static bool kIsDevelopMode = false; static std::once_flag kDevelopOnceFlag; std::call_once(kDevelopOnceFlag, [&]() { // Add for judge OS Version #if (DTK_VERSION >= DTK_VERSION_CHECK(5, 2, 2, 2)) qInfo() << "system code(UOS): " << Dtk::Core::DSysInfo::uosEditionType(); switch (Dtk::Core::DSysInfo::uosEditionType()) { #if (DTK_VERSION > DTK_VERSION_CHECK(5, 4, 10, 0)) case Dtk::Core::DSysInfo::UosEducation: case Dtk::Core::DSysInfo::UosDeviceEdition: #endif case Dtk::Core::DSysInfo::UosProfessional: case Dtk::Core::DSysInfo::UosHome: { // Check if current is develop mode QDBusInterface *dbusInterFace = new QDBusInterface( "com.deepin.sync.Helper", "/com/deepin/sync/Helper", "com.deepin.sync.Helper", QDBusConnection::systemBus()); bool deviceMode = dbusInterFace->property("DeveloperMode").toBool(); qInfo() << "DebListModel:" << "system editon:" << Dtk::Core::DSysInfo::uosEditionName() << "develop mode:" << deviceMode; kIsDevelopMode = deviceMode; delete dbusInterFace; break; } case Dtk::Core::DSysInfo::UosCommunity: // The community edition does not need signature verification case Dtk::Core::DSysInfo::UosEnterprise: // Server Version kIsDevelopMode = true; break; default: kIsDevelopMode = true; break; } #else qInfo() << "system code(Deepin): " << Dtk::Core::DSysInfo::deepinType(); switch (Dtk::Core::DSysInfo::deepinType()) { case Dtk::Core::DSysInfo::DeepinDesktop: kIsDevelopMode = true; break; case Dtk::Core::DSysInfo::DeepinPersonal: case Dtk::Core::DSysInfo::DeepinProfessional: // Check if develop mode QDBusInterface *dbusInterFace = new QDBusInterface("com.deepin.deepinid", "/com/deepin/deepinid", "com.deepin.deepinid"); bool deviceMode = dbusInterFace->property("DeviceUnlocked").toBool(); qInfo() << "DebListModel:" << "system editon:" << Dtk::Core::DSysInfo::uosEditionName() << "develop mode:" << deviceMode; kIsDevelopMode = deviceMode; delete dbusInterFace; break; case Dtk::Core::DSysInfo::isCommunityEdition(): case Dtk::Core::DSysInfo::DeepinServer: kIsDevelopMode = true; break; default: kIsDevelopMode = true; break; } #endif }); return kIsDevelopMode; } /** * @return word wrap \a text acording to \a textWidth, this function not threadsafe */ QString Utils::formatWrapText(const QString &text, int textWidth) { // GUI thread only if (QThread::currentThread() != qApp->thread()) { return text; } if (text.isEmpty() || !textWidth) { return text; } QString tipsText; static QTextDocument kFormatDoc; kFormatDoc.setTextWidth(textWidth); kFormatDoc.setPlainText(text); // call size trigger internal layout kFormatDoc.size(); QTextBlock block = kFormatDoc.firstBlock(); while (block.isValid()) { if (QTextLayout *textLay = block.layout()) { for (int i = 0; i < textLay->lineCount(); ++i) { QTextLine line = textLay->lineAt(i); line.textStart(); if (!tipsText.isEmpty()) { tipsText.append('\n'); } tipsText.append(text.mid(line.textStart(), line.textLength())); } } block = block.next(); } return tipsText; } /** * @brief Mark whether the wine pre-dependency is being installed. * Not thread-safe. */ static bool kWinePreDependsStatus = false; bool GlobalStatus::winePreDependsInstalling() { return kWinePreDependsStatus; } void GlobalStatus::setWinePreDependsInstalling(bool b) { kWinePreDependsStatus = b; } DebApplicationHelper *DebApplicationHelper::instance() { static DebApplicationHelper *phelper = new DebApplicationHelper; return phelper; } #define CAST_INT static_cast static QColor light_qpalette[QPalette::NColorRoles]{ QColor("#414d68"), // WindowText QColor("#e5e5e5"), // Button QColor("#e6e6e6"), // Light QColor("#e5e5e5"), // Midlight QColor("#001A2E"), // Dark -- changed origin is #e3e3e3 QColor("#e4e4e4"), // Mid QColor("#414d68"), // Text Qt::black, // BrightText QColor("#414d68"), // ButtonText Qt::white, // Base QColor("#f8f8f8"), // Window QColor(0, 0, 0, CAST_INT(0.05 * 255)), // Shadow QColor("#0081ff"), // Highlight QColor(0, 45, 255, CAST_INT(0.5 * 255)), // HighlightedText //old Qt::white QColor("#0082fa"), // Link QColor("#ad4579"), // LinkVisited QColor(0, 0, 0, CAST_INT(0.03 * 255)), // AlternateBase Qt::white, // NoRole QColor(255, 255, 255, CAST_INT(0.8 * 255)), // ToolTipBase QColor("#526A7F") // ToolTipText -- changed origin is Qt::black }; static QColor dark_qpalette[QPalette::NColorRoles]{ QColor("#c0c6d4"), // WindowText QColor("#444444"), // Button QColor("#484848"), // Light QColor("#474747"), // Midlight QColor("#C0C6D4"), // Dark -- changed origin is #414141 QColor("#434343"), // Mid QColor("#c0c6d4"), // Text Qt::white, // BrightText QColor("#c0c6d4"), // ButtonText QColor(255, 255, 255, CAST_INT(0.05 * 255)), // Base --- changed origin is #282828 QColor("#252525"), // Window QColor(0, 0, 0, CAST_INT(0.05 * 255)), // Shadow QColor("#095EFF"), // Highlight //old : #0081ff QColor("#0059D2"), // HighlightedText //old: b8d3ff QColor("#0082fa"), // Link QColor("#ad4579"), // LinkVisited QColor(0, 0, 0, CAST_INT(0.05 * 255)), // AlternateBase Qt::black, // NoRole QColor(45, 45, 45, CAST_INT(0.8 * 255)), // ToolTipBase QColor("#6D7C88") // ToolTipText -- changed origin is #c0c6d4 }; static QColor light_dpalette[DPalette::NColorTypes]{ QColor(), // NoType QColor(0, 0, 0, CAST_INT(255 * 0.03)), // ItemBackground QColor("#414d68"), // TextTitle QColor("#609DC8"), // TextTips --- changed origin is #526A7F QColor("#FF5A5A"), // TextWarning -- changed origin is #FF5736 QColor("#7C7C7C"), // TextLively -- changed origin is #0082FA QColor("#417505"), // LightLively -- changed origin is #25b7ff QColor("#47790C"), // DarkLively -- changed origin is #0098ff QColor(0, 0, 0, CAST_INT(0.03 * 255)) // FrameBorder }; static QColor dark_dpalette[DPalette::NColorTypes]{ QColor(), // NoType QColor(255, 255, 255, CAST_INT(255 * 0.05)), // ItemBackground QColor("#c0c6d4"), // TextTitle QColor("#6D7C88"), // TextTips QColor("#9A2F2F"), // TextWarning -- changed origin is #FF5736 QColor("#7C7C7C"), // TextLively -- changed origin is #0082FA QColor("#417505"), // LightLively -- changed origin is #0056c1 QColor("#47790C"), // DarkLively -- changed origin is #004c9c QColor(0, 0, 0, CAST_INT(0.08 * 255)) // FrameBorder }; DPalette DebApplicationHelper::standardPalette(DGuiApplicationHelper::ColorType type) const { DPalette pa; const QColor *qcolor_list, *dcolor_list; if (type == DarkType) { qcolor_list = dark_qpalette; dcolor_list = dark_dpalette; } else { qcolor_list = light_qpalette; dcolor_list = light_dpalette; } for (int i = 0; i < DPalette::NColorRoles; ++i) { QPalette::ColorRole role = static_cast(i); QColor color = qcolor_list[i]; pa.setColor(DPalette::Active, role, color); generatePaletteColor(pa, role, type); } for (int i = 0; i < DPalette::NColorTypes; ++i) { DPalette::ColorType role = static_cast(i); QColor color = dcolor_list[i]; pa.setColor(DPalette::Active, role, color); generatePaletteColor(pa, role, type); } return *const_cast(&pa); } DPalette DebApplicationHelper::palette(const QWidget *widget, const QPalette &base) const { Q_UNUSED(base) DPalette palette; do { // 存在自定义palette时应该根据其自定义的palette获取对应色调的DPalette const QPalette &wp = widget->palette(); palette = standardPalette(toColorType(wp)); // 关注控件palette改变的事件 const_cast(widget)->installEventFilter(const_cast(this)); } while (false); return palette; } void DebApplicationHelper::setPalette(QWidget *widget, const DPalette &palette) { // 记录此控件被设置过palette if (nullptr == widget) return; widget->setProperty("_d_set_palette", true); widget->setPalette(palette); } void DebApplicationHelper::resetPalette(QWidget *widget) { if (nullptr == widget) return; widget->setProperty("_d_set_palette", QVariant()); widget->setAttribute(Qt::WA_SetPalette, false); } deepin-deb-installer-6.5.5/src/deb-installer/utils/utils.h000066400000000000000000000065521474340456100235230ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef UTILS_H #define UTILS_H #include #include #include #include #include #include #include #include #include #include #include "package_defines.h" #define dApp (static_cast(QCoreApplication::instance())) class QTextDocumnet; DGUI_USE_NAMESPACE class DebApplicationHelper : public DGuiApplicationHelper { Q_OBJECT public: static DebApplicationHelper *instance(); DPalette standardPalette(DGuiApplicationHelper::ColorType type) const; DPalette palette(const QWidget *widget, const QPalette &base = QPalette()) const; void setPalette(QWidget *widget, const DPalette &palette); void resetPalette(QWidget *widget); }; class Utils : public QObject { Q_OBJECT public: Utils(QObject *parent = nullptr); enum FontType { SourceHanSansMedium, SourceHanSansNormal, DefautFont }; enum VerifyResultCode { OtherError = -1, // 其他错误 VerifySuccess, // 验证成功 DebfileInexistence, // 解压deb文件用的临时目录不存在 ExtractDebFail, // 提取deb包内容时出错 DebVerifyFail // deb包验证失败 }; static QHash m_imgCacheHash; static QHash m_fontNameCache; static QString loadFontFamilyByType(FontType fontType); // 加载字体类型 static QFont loadFontBySizeAndWeight(const QString &fontFamily, int fontSize, int fontWeight); // 设置字体大小等 static void bindFontBySizeAndWeight(QWidget *widget, const QString &fontFamily, int fontSize, int fontWeight); // 绑定字体大小等 static QString fromSpecialEncoding(const QString &inputStr); // 字体编码处理 static QString holdTextInRect(const QFont &font, const QString &srcText, const QSize &size); // 针对字体截断处理函数 static QString holdTextInRect(const QFont &font, const QString &srcText, const int &width); // 针对配置界面字体截断处理函数 static int returnfileIsempty(QString strfilepath, QString strfilename); // 返回文件是否存在 static VerifyResultCode Digital_Verify(const QString &filepath_name); // 验证deb数字签名 static bool Return_Digital_Verify(const QString &strfilepath, const QString &strfilename); // 返回验证工具是否存在 // return enable read package or not static Pkg::PackageReadability checkPackageReadable(const QString &packagePath); static int compareVersion(const QString &v1, const QString &v2); static Pkg::PackageType detectPackage(const QString &filePath); static QIcon packageIcon(Pkg::PackageType type); // check package contains DebConf templates config file static bool checkPackageContainsDebConf(const QString &filePath); static bool isDevelopMode(); // Check if develop mode (root) static QString formatWrapText(const QString &text, int textWidth); }; class GlobalStatus { public: // wine depends installing flag static bool winePreDependsInstalling(); static void setWinePreDependsInstalling(bool b); }; #endif deepin-deb-installer-6.5.5/src/deb-installer/view/000077500000000000000000000000001474340456100220145ustar00rootroot00000000000000deepin-deb-installer-6.5.5/src/deb-installer/view/pages/000077500000000000000000000000001474340456100231135ustar00rootroot00000000000000deepin-deb-installer-6.5.5/src/deb-installer/view/pages/AptConfigMessage.cpp000066400000000000000000000243251474340456100270040ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "AptConfigMessage.h" #include "utils/utils.h" #include #include #include #include #include #include #include AptConfigMessage *AptConfigMessage::aptConfig = nullptr; DCORE_USE_NAMESPACE DWIDGET_USE_NAMESPACE AptConfigMessage::AptConfigMessage(QWidget *parent) : DMainWindow(parent) { initControl(); // 初始化控件 initAccessibleName(); // 自动化测试,为控件添加AccessibleName initUI(); // 初始化UI界面 initTitlebar(); // 初始化标题栏,隐藏标题栏的各种按钮 initTabOrder(); // 初始化按钮的焦点切换顺序 connect(m_pushbutton, &QPushButton::clicked, this, &AptConfigMessage::dealInput); // 按钮按下,处理输入的内容并发送到安装程序 } /** * @brief AptConfigMessage::initTabOrder 初始化tab切换焦点的顺序。 * 设置焦点在输入框和按钮之间循环 */ void AptConfigMessage::initTabOrder() { QWidget::setTabOrder(m_pushbutton, m_inputEdit->lineEdit()); // 设置焦点的切换顺序从按钮到输入框 QWidget::setTabOrder(m_inputEdit->lineEdit(), m_pushbutton); // 设置焦点的切换顺序从输入框到按钮 } /** * @brief AptConfigMessage::initTitlebar 初始化标题栏 */ void AptConfigMessage::initTitlebar() { DTitlebar *tb = titlebar(); if (tb) { tb->setIcon(QIcon::fromTheme("deepin-deb-installer")); // 设置图标 tb->setTitle(""); tb->setVisible(false); tb->setMenuVisible(false); // 设置标题栏菜单按钮不可见 tb->setAutoFillBackground(false); // 填充标题栏背景 } } /** * @brief AptConfigMessage::initControl 初始化各个控件 */ void AptConfigMessage::initControl() { this->setFocusPolicy(Qt::NoFocus); // 设置自身无焦点 // 初始化 配置信息展示框的样式 m_textEdit = new InstallProcessInfoView(360, 196); m_textEdit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); m_textEdit->setTextFontSize(12, QFont::Medium); m_textEdit->setMinimumSize(360, 196); m_textEdit->setFocusPolicy(Qt::NoFocus); // 初始化输入框 m_inputEdit = new DLineEdit(); m_inputEdit->setMinimumWidth(220); m_pQuestionLabel = new DLabel(tr("Enter the number to configure: ")); m_pQuestionLabel->setMaximumWidth(360); m_pQuestionLabel->setFocusPolicy(Qt::NoFocus); // 初始化提交信息按钮 m_pushbutton = new DSuggestButton(tr("OK", "button")); m_pushbutton->setDefault(true); m_pushbutton->setMinimumWidth(130); // 焦点在信息输入框时,按回车触发提交信息。 connect(m_inputEdit, &DLineEdit::returnPressed, m_pushbutton, &DPushButton::click); } /** * @brief AptConfigMessage::initUI 整体布局的初始化 * */ void AptConfigMessage::initUI() { setFixedSize(380, 332); // 固定配置框的大小 setTitlebarShadowEnabled(false); // 设置标题栏无阴影 // 建立最大的整体布局 QVBoxLayout *centralLayout = new QVBoxLayout(); centralLayout->addStretch(10); // 设置最小间距为10px centralLayout->addWidget(m_textEdit); // 添加配置信息展示框 centralLayout->addWidget(m_pQuestionLabel); // 添加提示信息label centralLayout->addStretch(10); // 添加弹簧最小间距为10px // 输入框和按钮小布局 QHBoxLayout *pInputLayout = new QHBoxLayout(); pInputLayout->addWidget(m_inputEdit); // 添加输入框 m_inputEdit->setFocus(); // 输入框默认启动时带有焦点。 pInputLayout->addStretch(10); // 添加间距 pInputLayout->addWidget(m_pushbutton); // 添加按钮 centralLayout->addLayout(pInputLayout); // 把输入框和按钮的布局放到整体布局中 centralLayout->addStretch(10); // 增加下边距 centralLayout->setContentsMargins(10, 0, 10, 10); // 设置整体的上下左右的边距 // 增加一个widget 放置上述布局,并将此widget设置为中心窗口 QWidget *wrapWidget = new QWidget(); wrapWidget->setLayout(centralLayout); wrapWidget->setFocusPolicy(Qt::NoFocus); // 此widget无焦点 setCentralWidget(wrapWidget); setWindowIcon(QIcon::fromTheme("deepin-deb-installer")); // 给程序添加图标文件 move(qApp->primaryScreen()->geometry().center() - geometry().center()); // 移动此窗口到屏幕中间。 } /** * @brief AptConfigMessage::appendTextEdit 向配置信息展示窗口添加配置信息的数据 * @param processInfo 配置信息数据 */ void AptConfigMessage::appendTextEdit(QString processInfo) { // 保证焦点在输入框上 m_inputEdit->lineEdit()->setFocus(); // 如果添加的数据是空的或者只有换行,则不添加 if (processInfo.isEmpty() || processInfo == "\\r\\n") return; QString configMessage; configMessage = processInfo.replace(" ", " "); // 移除多余的“"” configMessage.remove(QChar('\"'), Qt::CaseInsensitive); configMessage.remove("\\r"); // 获取配置的第一行的最后一个字符的下标,用于判断当前是否还有信息需要展示 int num = configMessage.indexOf("\\n"); // 下标为-1 表明此时只有一行数据需要展示,则直接添加 if (num == -1) { m_textEdit->appendText(processInfo); // m_textEdit->appendText("\n"); return; } int messageSize = configMessage.size(); while (num != -1) { num = configMessage.indexOf("\\n"); // 获取第一行的下标 QString strFilter; // 存放第一行的数据 strFilter = configMessage.mid(0, num); // 截取第一行 // 从原始数据中删除第一行 // num +2 是为了去掉换行,size-num-3是保证 数据的长度不超过原本text的长度 // size-1 是本身的长度 num+2 是第一行的长度 size-1-(num +2) = size-num-3 configMessage = configMessage.mid(num + 2, messageSize - num - 3); if (strFilter[0] == '\t') strFilter.remove(0, 1); // 如果第一行的第一个数据是tab,去掉 m_textEdit->appendText(strFilter); // 添加数据 qDebug() << "strFilter" << strFilter; // 如果当前已经是最后一行。此时text的数据长度大于0且text已经不包含任何的换行则退出,说明信息获取完成。 if (num == -1 && configMessage.size() > 0 && !configMessage.contains("\n")) { break; } } } /** * @brief AptConfigMessage::dealInput * 向工作线程传递输入的数据 */ void AptConfigMessage::dealInput() { // 如果当前输入框中的信息是空的 或者输入了00 则不提交,并清除信息 // PS:dpkg 规定如果输入00 配置会结束 if (m_inputEdit->text().isEmpty() || m_inputEdit->text() == "" || m_inputEdit->text() == "00") { m_inputEdit->clear(); // 每次提交输入信息后,输入框清除。 return; } QString str = m_inputEdit->text(); // 获取输入框的输入信息 str.remove(QChar('"'), Qt::CaseInsensitive); // 去除输入框中多余的“"” emit AptConfigInputStr(str); // 提交信息到配置安装程序 m_inputEdit->clear(); // 清除输入框的内容 } /** * @brief AptConfigMessage::paintEvent * @param event * * 去除界面上的 最小化 最大化 关闭 菜单 按钮 */ void AptConfigMessage::paintEvent(QPaintEvent *event) { DMainWindow::paintEvent(event); QLayout *layout = titlebar()->layout(); for (int i = 0; i < layout->count(); ++i) { QWidget *widget = layout->itemAt(i)->widget(); if (widget != nullptr && QString(widget->metaObject()->className()) == "QWidget") { QLayout *widgetLayout = widget->layout(); for (int j = 0; j < widgetLayout->count(); ++j) { QWidget *topwidget = widgetLayout->itemAt(j)->widget(); if (topwidget != nullptr && QString(topwidget->metaObject()->className()) == "QWidget") { QLayout *wLayout = topwidget->layout(); for (int k = 0; k < wLayout->count(); ++k) { QWidget *bottomWidget = wLayout->itemAt(k)->widget(); if (bottomWidget != nullptr && QString(bottomWidget->metaObject()->className()).contains("Button")) { bottomWidget->setFocusPolicy(Qt::NoFocus); // 设置标题栏所有的控件无焦点 bottomWidget->setVisible(false); // 隐藏标题栏所有的控件。 } } } } } } } void AptConfigMessage::closeEvent(QCloseEvent *event) { // bug121131 右键dock栏软件包安装器,选择“关闭所有”,关闭配置项弹窗 // bug121123 禁用Alt+f4组合键关闭 配置包窗口 // Alt+F4按键是由系统驱动实现的,根本无法捕获这个事件 // Alt+F4 触发关闭事件,则忽略关闭事件即可 event->ignore(); } /** * @brief AptConfigMessage::clearTexts 清除输入框和信息框的内容 */ void AptConfigMessage::clearTexts() { m_textEdit->clearText(); // 清除信息框的内容 m_inputEdit->clear(); // 清除输入框的内容 } /** * @brief AptConfigMessage::initAccessibleName 初始化AccessibleName */ void AptConfigMessage::initAccessibleName() { this->setObjectName("AptConfigMessage"); this->setAccessibleName("AptConfigMessage"); m_textEdit->setObjectName("InstallInfoEdit"); m_textEdit->setAccessibleName("InstallInfoEdit"); m_inputEdit->setObjectName("ConfigInputEdit"); m_inputEdit->setAccessibleName("ConfigInputEdit"); m_pushbutton->setObjectName("ConfigConfirmButton"); m_pushbutton->setAccessibleName("ConfigConfirmButton"); } AptConfigMessage::~AptConfigMessage() { delete m_textEdit; delete m_inputEdit; delete m_pushbutton; delete m_pQuestionLabel; delete aptConfig; } deepin-deb-installer-6.5.5/src/deb-installer/view/pages/AptConfigMessage.h000066400000000000000000000043701474340456100264470ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef APTCONFIGMESSAGE_H #define APTCONFIGMESSAGE_H #include "view/widgets/installprocessinfoview.h" #include #include #include #include #include #include #include DWIDGET_USE_NAMESPACE /** * @brief The AptConfigMessage class * 配置包安装界面 */ class AptConfigMessage : public DMainWindow { Q_OBJECT public: explicit AptConfigMessage(QWidget *parent = nullptr); ~AptConfigMessage() override; public: InstallProcessInfoView *m_textEdit = nullptr; public: static AptConfigMessage *getInstance() { if (aptConfig == nullptr) { aptConfig = new AptConfigMessage; } return aptConfig; } public: /** * @brief appendTextEdit 获取安装进程返回的信息 * @param str 安装进程的详细信息 */ void appendTextEdit(QString processInfo); /** * @brief clearTexts 清除输入框和信息框中的内容 */ void clearTexts(); public slots: /** * @brief dealInput 处理筛选输入的内容 */ void dealInput(); signals: /** * @brief AptConfigInputStr 将输入的序号或者选项传输给命令 */ void AptConfigInputStr(QString); protected: void paintEvent(QPaintEvent *event) override; void closeEvent(QCloseEvent *event) override; private: DLineEdit *m_inputEdit = nullptr; // 输入框 DSuggestButton *m_pushbutton = nullptr; // 确定输入按钮 DLabel *m_pQuestionLabel = nullptr; // 提示信息 static AptConfigMessage *aptConfig; private: /** * @brief initUI 初始化UI界面的格局 */ void initUI(); /** * @brief initTitlebar 修改标题栏,去除标题栏的各种按钮 */ void initTitlebar(); /** * @brief initControl 初始化各种控件 */ void initControl(); /** * @brief initTabOrder 初始化tab切换焦点的顺序 */ void initTabOrder(); /** * @brief initAccessibleName 初始化AccessibleName */ void initAccessibleName(); }; #endif // APTCONFIGMESSAGE_H deepin-deb-installer-6.5.5/src/deb-installer/view/pages/backendprocesspage.cpp000066400000000000000000000024441474340456100274460ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "backendprocesspage.h" #include "view/widgets/processwidget.h" #include "view/widgets/noprocesswidget.h" #include BackendProcessPage::BackendProcessPage(QWidget *parent) : QWidget(parent) { processWidget = new ProcessWidget; processWidget->setIcon(QIcon::fromTheme("application-x-deb")); processWidget->setMainText(tr("Loading packages...")); processWidget->setProcessText(tr("%1/%2 loaded")); noProcessWidget = new NoProcessWidget; noProcessWidget->setActionText(tr("Initializing...")); allLayout = new QStackedLayout; allLayout->addWidget(processWidget); allLayout->addWidget(noProcessWidget); setLayout(allLayout); } void BackendProcessPage::setDisplayPage(DisplayMode mode) { if (mode == APT_INIT) { allLayout->setCurrentWidget(noProcessWidget); noProcessWidget->start(); } else if (mode == READ_PKG) { allLayout->setCurrentWidget(processWidget); noProcessWidget->stop(); } else { // PROCESS_FIN noProcessWidget->stop(); } } void BackendProcessPage::setPkgProcessRate(int currentRate, int pkgCount) { processWidget->setProgress(currentRate, pkgCount); } deepin-deb-installer-6.5.5/src/deb-installer/view/pages/backendprocesspage.h000066400000000000000000000014561474340456100271150ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef BACKENDPROCESSPAGE_H #define BACKENDPROCESSPAGE_H #include class ProcessWidget; class NoProcessWidget; class QStackedLayout; class BackendProcessPage : public QWidget { Q_OBJECT public: enum DisplayMode { APT_INIT, // apt初始化 READ_PKG, // 读取包数据 PROCESS_FIN // 处理结束 }; explicit BackendProcessPage(QWidget *parent = nullptr); void setDisplayPage(DisplayMode mode); void setPkgProcessRate(int currentRate, int pkgCount); signals: public slots: private: ProcessWidget *processWidget; NoProcessWidget *noProcessWidget; QStackedLayout *allLayout; }; #endif // BACKENDPROCESSPAGE_H deepin-deb-installer-6.5.5/src/deb-installer/view/pages/ddimerrorpage.cpp000066400000000000000000000041711474340456100264460ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "ddimerrorpage.h" #include #include #include #include #include DdimErrorPage::DdimErrorPage(QWidget *parent) : QWidget(parent) , errorMessageLabel(new Dtk::Widget::DLabel) , errorPicLabel(new Dtk::Widget::DLabel) , confimButton(new QPushButton(tr("OK"))) { setFocusPolicy(Qt::NoFocus); auto allLayout = new QVBoxLayout; allLayout->addWidget(errorPicLabel, 0, Qt::AlignCenter | Qt::AlignBottom); allLayout->addWidget(errorMessageLabel, 0, Qt::AlignCenter | Qt::AlignBottom); allLayout->addWidget(confimButton, 0, Qt::AlignCenter | Qt::AlignBottom); setLayout(allLayout); errorPicLabel->setScaledContents(true); // 消除屏幕缩放锯齿 errorPicLabel->setPixmap(QPixmap(":/icons/deepin/builtin/light/icons/di_fail_96px.png")); auto picContentsMargins = errorPicLabel->contentsMargins(); picContentsMargins.setBottom(10); auto labelContentsMargins = errorMessageLabel->contentsMargins(); labelContentsMargins.setBottom(50); errorMessageLabel->setContentsMargins(labelContentsMargins); Dtk::Widget::DFontSizeManager::instance()->bind(errorMessageLabel, Dtk::Widget::DFontSizeManager::T6, QFont::Medium); errorMessageLabel->setForegroundRole(Dtk::Gui::DPalette::TextTitle); auto allContentsMargins = allLayout->contentsMargins(); allContentsMargins.setBottom(20); allContentsMargins.setTop(55); allLayout->setContentsMargins(allContentsMargins); allLayout->setSpacing(0); confimButton->setFocusPolicy(Qt::StrongFocus); confimButton->setFixedWidth(120); confimButton->setDefault(true); connect(confimButton, &QPushButton::clicked, this, &DdimErrorPage::comfimPressed); } void DdimErrorPage::setErrorMessage(const QString &message) { errorMessageLabel->setText(message); } void DdimErrorPage::showEvent(QShowEvent *event) { // 每次展示时固定默认焦点,缩放后弹出也是 confimButton->setFocus(); QWidget::showEvent(event); } deepin-deb-installer-6.5.5/src/deb-installer/view/pages/ddimerrorpage.h000066400000000000000000000012771474340456100261170ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef DDIMERRORPAGE_H #define DDIMERRORPAGE_H #include namespace Dtk { namespace Widget { class DLabel; } } // namespace Dtk class QPushButton; class DdimErrorPage : public QWidget { Q_OBJECT public: explicit DdimErrorPage(QWidget *parent = nullptr); void setErrorMessage(const QString &message); signals: void comfimPressed(); protected: void showEvent(QShowEvent *event) override; private: Dtk::Widget::DLabel *errorMessageLabel; Dtk::Widget::DLabel *errorPicLabel; QPushButton *confimButton; }; #endif // DDIMERRORPAGE_H deepin-deb-installer-6.5.5/src/deb-installer/view/pages/debinstaller.cpp000066400000000000000000001153161474340456100262760ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "debinstaller.h" #include "model/deblistmodel.h" #include "model/packageanalyzer.h" #include "model/proxy_package_list_model.h" #include "view/widgets/filechoosewidget.h" #include "view/widgets/error_notify_dialog_helper.h" #include "view/pages/multipleinstallpage.h" #include "view/pages/singleinstallpage.h" #include "view/pages/uninstallconfirmpage.h" #include "view/pages/AptConfigMessage.h" #include "view/pages/packageselectview.h" #include "view/pages/ddimerrorpage.h" #include "singleInstallerApplication.h" #include "model/packageselectmodel.h" #include "settingdialog.h" #include "utils/utils.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using QApt::DebFile; DCORE_USE_NAMESPACE DWIDGET_USE_NAMESPACE // Avoid magic number enum PackageCountType { NoPackage = 0, OnePackage = 1, TwoPackages = 2, }; DebInstaller::DebInstaller(QWidget *parent) : DMainWindow(parent) , m_fileListModel(new ProxyPackageListModel(this)) , m_fileChooseWidget(new FileChooseWidget(this)) , m_centralLayout(new QStackedLayout()) , m_settingDialog(new SettingDialog(this)) , m_ddimModel(new PackageSelectModel(this)) { initUI(); initConnections(); QtConcurrent::run([]() { PackageAnalyzer::instance().initBackend(); }); } DebInstaller::~DebInstaller() {} void DebInstaller::initUI() { // Hide the shadow under the title bar setTitlebarShadowEnabled(false); setWindowFlag(Qt::WindowMaximizeButtonHint, false); this->setObjectName("DebInstaller"); this->setAccessibleName("DebInstaller"); // file choose widget settings m_fileChooseWidget->setObjectName("FileChooseWidget"); m_fileChooseWidget->setAccessibleName("FileChooseWidget"); // 初始化 加载文件选择widget m_centralLayout->addWidget(m_fileChooseWidget); m_lastPage = m_fileChooseWidget; m_centralLayout->setContentsMargins(0, 0, 0, 0); m_centralLayout->setSpacing(0); // 设置当前主窗口 QWidget *wrapWidget = new QWidget(this); wrapWidget->setLayout(m_centralLayout); // #define SHOWBORDER #ifdef SHOWBORDER wrapWidget->setStyleSheet("QWidget{border:1px solid black;}"); #endif initTitleBar(); setCentralWidget(wrapWidget); // 将给定的小部件设置为主窗口的中心小部件。 setAcceptDrops(true); // 启用了drop事件 setFixedSize(480, 380); setWindowTitle(tr("Package Installer")); setWindowIcon(QIcon::fromTheme("deepin-deb-installer")); // 仅仅适用于windows系统 move(qApp->primaryScreen()->geometry().center() - geometry().center()); } void DebInstaller::initTitleBar() { // title bar settings QAction *settingAction(new QAction(tr("Settings"), this)); DMenu *menu = new DMenu; menu->addAction(settingAction); DTitlebar *tb = titlebar(); if (tb != nullptr) { tb->setMenu(menu); tb->setIcon(QIcon::fromTheme("deepin-deb-installer")); tb->setTitle(""); tb->setAutoFillBackground(true); tb->setDisableFlags(Qt::CustomizeWindowHint); } connect(settingAction, &QAction::triggered, this, &DebInstaller::slotSettingDialogVisiable); } void DebInstaller::initConnections() { connect(m_fileListModel, &DebListModel::signalAppendFailMessage, this, &DebInstaller::slotReceiveAppendFailed); connect(m_fileListModel, &DebListModel::signalPackageCountChanged, this, [this](int count) { switch (count) { case NoPackage: slotReset(); break; case OnePackage: refreshSingle(); break; default: // If current not multi page, change. if (MultiPage != m_Filterflag) { single2Multi(); } else { // will reset view/model data every count change refreshMulti(); } break; } }); // 正在添加的信号 connect(m_fileListModel, &DebListModel::signalAppendStart, this, &DebInstaller::appendPackageStart); // 此次添加完成的信号 connect(m_fileListModel, &DebListModel::signalAppendFinished, this, &DebInstaller::appendFinished); // Append packages via file-choose-widget's file-choose-button connect(m_fileChooseWidget, &FileChooseWidget::packagesSelected, this, &DebInstaller::slotPackagesSelected); // Select the focus of the page // Determine the status of the current application based on the status of the authorization box. connect(m_fileListModel, &DebListModel::signalLockForAuth, this, &DebInstaller::slotSetAuthingStatus); connect(m_fileListModel, &DebListModel::signalAuthCancel, this, &DebInstaller::slotShowHiddenButton); connect(m_fileListModel, &DebListModel::signalEnableReCancelBtn, this, &DebInstaller::slotSetEnableButton); connect(m_fileListModel, &DebListModel::signalDependResult, this, &DebInstaller::slotDealDependResult); connect(m_fileListModel, &DebListModel::signalEnableCloseButton, this, &DebInstaller::slotEnableCloseButton); // During installing/uninstalling, drag is not allowed connect(m_fileListModel, &DebListModel::signalWorkerStart, this, &DebInstaller::disableCloseAndExit); connect(m_fileListModel, &DebListModel::signalWorkerFinished, this, &DebInstaller::slotWorkerFinished); connect(m_fileListModel, &DebListModel::signalPackageCannotFind, this, &DebInstaller::slotShowPkgRemovedMessage); // 选择安装页面 connect(m_ddimModel, &PackageSelectModel::selectInfosChanged, this, &DebInstaller::slotShowSelectPage); connect(m_ddimModel, &PackageSelectModel::selectInfosDoNotHaveChange, this, &DebInstaller::slotShowPkgExistMessage); // 阻塞界面 connect(&PackageAnalyzer::instance(), &PackageAnalyzer::runBackend, this, [this](bool inProcess) { if (inProcess) { slotShowPkgProcessBlockPage(BackendProcessPage::APT_INIT, 0, 0); } else { slotShowPkgProcessBlockPage(BackendProcessPage::PROCESS_FIN, 0, 0); } }); connect(&PackageAnalyzer::instance(), &PackageAnalyzer::runAnalyzeDeb, this, [this](bool inProcess, int currentRote, int pkgCount) { if (inProcess) { slotShowPkgProcessBlockPage(BackendProcessPage::READ_PKG, currentRote, pkgCount); } else { slotShowPkgProcessBlockPage(BackendProcessPage::PROCESS_FIN, 0, 0); } }); connect(this, &DebInstaller::runOldProcess, this, &DebInstaller::slotPackagesSelected, Qt::ConnectionType::QueuedConnection); } void DebInstaller::slotEnableCloseButton(bool enable) { if (enable) { enableCloseAndExit(); // 启用关闭按钮 } else { disableCloseAndExit(); // 禁用关闭按钮 } } void DebInstaller::slotSettingDialogVisiable() { m_settingDialog->setModal(true); m_settingDialog->show(); } void DebInstaller::PackagesSelected(const QStringList &debPathList) { // 如果此时 软件包安装器不是处于准备状态且还未初始化完成或此时正处于正在安装或者卸载状态,则不添加 // 依赖配置过程中,不添加其他包 if ((!m_lastPage.isNull() && m_fileListModel->getWorkerStatus() != DebListModel::WorkerPrepare) || DebListModel::WorkerProcessing == m_fileListModel->getWorkerStatus() || DebListModel::WorkerUnInstall == m_fileListModel->getWorkerStatus() || DebListModel::AuthPop == m_wineAuthStatus || DebListModel::AuthConfirm == m_wineAuthStatus || DebListModel::AuthDependsErr == m_wineAuthStatus) { } else { // 开始添加包,将要添加的包传递到后端,添加包由后端处理 m_fileListModel->slotAppendPackage(debPathList); } } QString DebInstaller::startInstallPackge(const QString &debPath) { QString message; message = m_fileListModel->checkPackageValid(debPath); if (!message.isEmpty()) return message; if (!m_fileListModel->isWorkerPrepare()) { return "installer is busy"; } // add single pacakge and install m_fileListModel->reset(); PackagesSelected(QStringList(debPath)); bool ret = m_fileListModel->slotInstallPackages(); if (!ret || AbstractPackageListModel::WorkerProcessing != m_fileListModel->getWorkerStatus()) { // failed or finished. message = m_fileListModel->lastProcessError(); if (message.isEmpty()) message = "unknown error"; } else { // wait install finished; QEventLoop loop; connect(m_fileListModel, &AbstractPackageListModel::signalWorkerFinished, &loop, &QEventLoop::quit); loop.exec(); message = m_fileListModel->lastProcessError(); if (message.isEmpty()) message = "install succeeded"; } return message; } QString DebInstaller::startUnInstallPackge(const QString &debPath) { // check duplicate install if (Pkg::PackageInstallStatus::NotInstalled == checkInstallStatus(debPath)) return "currentdeb not install, uninstall package faild"; if (!m_fileListModel->isWorkerPrepare()) { return "uninstaller is busy"; } // add single pacakge and uninstall m_fileListModel->reset(); PackagesSelected(QStringList(debPath)); bool ret = m_fileListModel->slotUninstallPackage(0); QString message; if (!ret || AbstractPackageListModel::WorkerProcessing != m_fileListModel->getWorkerStatus()) { // failed or finished. message = m_fileListModel->lastProcessError(); if (message.isEmpty()) message = "unknown error"; } else { // wait install finished; QEventLoop loop; connect(m_fileListModel, &AbstractPackageListModel::signalWorkerFinished, &loop, &QEventLoop::quit); loop.exec(); message = m_fileListModel->lastProcessError(); if (message.isEmpty()) message = "uninstall succeeded"; } return message; } int DebInstaller::checkInstallStatus(const QString &debPath) { if (debPath.isEmpty()) return -1; return m_fileListModel->checkInstallStatus(debPath); } int DebInstaller::checkDependsStatus(const QString &debPath) { if (debPath.isEmpty()) return -1; return m_fileListModel->checkDependsStatus(debPath); } int DebInstaller::checkDigitalSignature(const QString &debPath) { if (debPath.isEmpty()) return -1; // only deb package support. if (auto *proxyModel = qobject_cast(m_fileListModel)) { auto *model = qobject_cast(proxyModel->modelFromType(Pkg::Deb)); if (model) { return model->checkDigitalSignature(debPath); } } return -1; } QString DebInstaller::getPackageInfo(const QString &debPath) { if (debPath.isEmpty()) return ""; return m_fileListModel->getPackageInfo(debPath).join(";"); } void DebInstaller::slotShowSelectInstallPage(const QList &selectIndexes) { QtConcurrent::run([this, selectIndexes]() { // 1.交给model分析需要装哪些包 auto needInstallIrs = m_ddimModel->analyzePackageInstallNeeded(selectIndexes); // 2.汇集安装路径 QStringList paths; for (auto &ir : needInstallIrs) { paths.push_back(ir.filePath); } // 3.按老流程进行安装 emit runOldProcess(paths); }); } void DebInstaller::slotShowSelectPage(const QList &selectedInfos) { if (selectedInfos.isEmpty() && m_ddimView == nullptr) { // 不应该能够跳转至此 qWarning() << "ddim error process"; return; } if (selectedInfos.isEmpty() && m_centralLayout->currentWidget() == m_ddimView) { // 此时已经判定m_ddimView界面是存在的,属于界面刷新操作 slotShowSelectInstallPage({}); return; } bool haveMustInstallDeb = !m_ddimModel->mustInstallData().isEmpty(); if (m_ddimView != nullptr) { if (m_centralLayout->currentWidget() == m_ddimView) { // 正处于此页面时直接刷新 m_ddimView->flushDebList(selectedInfos); m_ddimView->setHaveMustInstallDeb(haveMustInstallDeb); } else { return; } } else { // 初次进入 titlebar()->setTitle(tr("Bulk Install")); m_ddimView = new PackageSelectView; m_ddimView->flushDebList(selectedInfos); m_ddimView->setHaveMustInstallDeb(haveMustInstallDeb); m_lastPage = m_ddimView; m_dragflag = 0; m_Filterflag = NonePage; m_centralLayout->addWidget(m_ddimView); // m_centralLayout->setCurrentIndex(1); m_centralLayout->setCurrentWidget(m_ddimView); connect(m_ddimView, &PackageSelectView::packageInstallConfim, this, &DebInstaller::slotShowSelectInstallPage); // 选择完毕信号 } } void DebInstaller::slotShowPkgProcessBlockPage(BackendProcessPage::DisplayMode mode, int currentRate, int pkgCount) { if (m_backendProcessPage == nullptr) { m_backendProcessPage = new BackendProcessPage; m_centralLayout->addWidget(m_backendProcessPage); } m_backendProcessPage->setDisplayPage(mode); if (mode == BackendProcessPage::PROCESS_FIN) { if (m_lastPage != nullptr) { if (m_centralLayout->currentWidget() == m_backendProcessPage) { m_centralLayout->setCurrentWidget(m_lastPage); } } } else { if (mode == BackendProcessPage::READ_PKG) { m_backendProcessPage->setPkgProcessRate(currentRate, pkgCount); } if (m_centralLayout->currentWidget() != m_backendProcessPage) { m_centralLayout->setCurrentWidget(m_backendProcessPage); } } } void DebInstaller::slotWorkerFinished() { if (m_fileListModel->containsSignatureFailed()) { ErrorNotifyDialogHelper::showHierarchicalVerifyWindow(); } slotChangeDragFlag(); } void DebInstaller::disableCloseAndExit() { titlebar()->setDisableFlags(Qt::WindowCloseButtonHint); // 设置标题栏中的关闭按钮不可用 DTitlebar *tbar = this->titlebar(); if (tbar) { tbar->setQuitMenuDisabled(true); } } void DebInstaller::enableCloseAndExit() { titlebar()->setDisableFlags(titlebar()->windowFlags() & ~Qt::WindowMinimizeButtonHint & ~Qt::WindowCloseButtonHint); DTitlebar *tbar = this->titlebar(); if (tbar) { tbar->setQuitMenuDisabled(false); } } void DebInstaller::dragEnterEvent(QDragEnterEvent *dragEnterEvent) { this->activateWindow(); // 拖入时,激活窗口 if (m_fileListModel->getWorkerStatus() == AbstractPackageListModel::WorkerProcessing || m_fileListModel->getWorkerStatus() == AbstractPackageListModel::WorkerUnInstall) { // 如果当前正在安装,不允许拖入包 this->setAcceptDrops(false); // 不允许拖入 } else { m_fileChooseWidget->setAcceptDrops(true); // 允许包被拖入 if (m_dragflag == 0) // 如果当前不允许拖入,则直接返回 return; auto *const mime = dragEnterEvent->mimeData(); if (!mime->hasUrls()) return dragEnterEvent->ignore(); // 如果当前的数据不是一个路径,直接忽略 for (const auto &item : mime->urls()) { // 循环 获取拖入的路径数据 const QFileInfo info(item.path()); if (info.isDir()) return dragEnterEvent->accept(); if (Pkg::UnknownPackage != Utils::detectPackage(item.path())) return dragEnterEvent->accept(); // 检查拖入包的后缀 } dragEnterEvent->ignore(); } } void DebInstaller::dropEvent(QDropEvent *dropEvent) { auto *const mime = dropEvent->mimeData(); if (!mime->hasUrls()) return dropEvent->ignore(); // 如果数据不是一个路径,忽略 dropEvent->accept(); // find .deb files QStringList file_list; // 存放文件列表 for (const auto &url : mime->urls()) { if (!url.isLocalFile()) continue; // 如果不是本地的文件 忽略 const QString local_path = url.toLocalFile(); const QFileInfo info(local_path); if (Pkg::UnknownPackage != Utils::detectPackage(local_path)) // 检查拖入包的后缀 file_list << local_path; else if (info.isDir()) { for (auto deb : QDir(local_path).entryInfoList({"*.deb", "*.uab"}, QDir::Files)) file_list << deb.absoluteFilePath(); // 获取文件的绝对路径 } } this->activateWindow(); // 激活窗口 if (!file_list.isEmpty()) { // 处理拖入文件夹的情况 slotPackagesSelected(file_list); // 放到安装列表中 } } void DebInstaller::dragMoveEvent(QDragMoveEvent *dragMoveEvent) { dragMoveEvent->accept(); } void DebInstaller::slotPackagesSelected(const QStringList &packagesPathList) { this->showNormal(); // 非特效模式下激活窗口 this->activateWindow(); // 特效模式下激活窗口 // 如果此时 软件包安装器不是处于准备状态且还未初始化完成或此时正处于正在安装或者卸载状态,则不添加 // 依赖配置过程中,不添加其他包 if ((!m_lastPage.isNull() && m_fileListModel->getWorkerStatus() != DebListModel::WorkerPrepare) || DebListModel::WorkerProcessing == m_fileListModel->getWorkerStatus() || DebListModel::WorkerUnInstall == m_fileListModel->getWorkerStatus() || DebListModel::AuthPop == m_wineAuthStatus || DebListModel::AuthConfirm == m_wineAuthStatus || DebListModel::AuthDependsErr == m_wineAuthStatus) { } else { // 下一指令第1个包大小较大时,解析操作会阻塞当前线程,导致界面设置的逻辑顺序出现混乱,优先处理界面交互,然后再执行加载 qApp->processEvents(); // 开始添加包,将要添加的包传递到后端,添加包由后端处理 m_fileListModel->slotAppendPackage(packagesPathList); } } void DebInstaller::slotDdimSelected(const QStringList &ddimFiles) { this->activateWindow(); if (ddimFiles.isEmpty()) { return; } QList ddimResults; bool jsonError = false; bool versionError = false; bool haveDeb = false; for (auto eachFile : ddimFiles) { // 0.打开文件 if (eachFile.endsWith(".deb")) { // 直接排除掉deb包 haveDeb = true; continue; } QFile ddimFile(eachFile); ddimFile.open(QIODevice::ReadOnly); auto jsonData = ddimFile.readAll(); auto jsonDoc = QJsonDocument::fromJson(jsonData); if (jsonDoc.isNull()) { jsonError = true; continue; } auto jsonObj = jsonDoc.object(); // 1.校验版本号 auto version = jsonObj["version"].toString(); if (version.isNull()) { versionError = true; continue; } // 2.根据版本号信息读取JSON文件内容 // 后续版本号多了以后,需要建立跳转表以进行速度优化,版本号少的时候使用跳转表不划算 QFileInfo info(ddimFile); DdimSt ddimResult; auto dirPath = info.absoluteDir().path(); if (version == "1.0") { for (auto &st : ddimResults) { if (st.version == "1.0" && st.dirPath == dirPath) { // ddim文件去重 continue; } } ddimResult = analyzeV10(jsonObj, info.absoluteDir().path()); } else { versionError = true; continue; // 无法处理的版本号 } if (!ddimResult.isAvailable) { continue; } ddimResult.dirPath = dirPath; ddimResult.version = version; // 3.建立列表 ddimResults.push_back(ddimResult); } // 4.转入包数据分析模块处理 if (!ddimResults.isEmpty()) { QtConcurrent::run([this, ddimResults]() { m_ddimModel->appendDdimPackages(ddimResults); }); } else { if (SingleInstallerApplication::mode == SingleInstallerApplication::DdimChannel && haveDeb) { // 处于流程中的报错 slotShowDdimFloatingMessage(tr("Installing other packages... Please open it later.")); } else { // 初次进入时的报错,未定义二次进入时的报错提示 QString errorString; if (jsonError) { errorString = tr("Parsing failed: An illegal file structure was found in the manifest file!"); } else if (versionError) { errorString = tr("Parsing failed: An illegal version number was found in the manifest file!"); } else { // ddim error errorString = tr("No deb packages found. Please check the folder."); } QMetaObject::invokeMethod(this, "slotShowDdimErrorMessage", Qt::QueuedConnection, Q_ARG(QString, errorString)); } } } // 获取文件夹下的文件 void getAllDebFileInDir(const QDir &dir, QFileInfoList &result) { QDir root(dir); auto list = root.entryInfoList(QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot); for (auto &eachInfo : list) { if (eachInfo.isDir()) { getAllDebFileInDir(eachInfo.absoluteFilePath(), result); } else { if (eachInfo.absoluteFilePath().endsWith(".deb")) { // 只抓deb包 result.push_back(eachInfo); } } } } DdimSt DebInstaller::analyzeV10(const QJsonObject &ddimobj, const QString &ddimDir) { // 1.0版ddim解析策略 Q_UNUSED(ddimobj) DdimSt result; // 0.搜索三个主要路径 QDir selectDir(ddimDir + "/Softwares"); QDir dependDir(ddimDir + "/Depends"); QDir mustInstallDir(ddimDir + "/Updates"); // 1.抓取软件包路径 if (selectDir.exists()) { getAllDebFileInDir(selectDir, result.selectList); } if (dependDir.exists()) { getAllDebFileInDir(dependDir, result.dependList); } if (mustInstallDir.exists()) { getAllDebFileInDir(mustInstallDir, result.mustInstallList); } // 1.1.抓取可选包的应用名 for (auto &info : result.selectList) { auto fileName = info.fileName(); if (fileName.size() > 4) { result.selectAppNameList.push_back(fileName.left(fileName.size() - 4)); } } if (!result.selectList.isEmpty() || !result.mustInstallList.isEmpty()) { result.token = ddimDir; result.isAvailable = true; } // 2.返回数据 return result; } void DebInstaller::refreshMulti() { // 部分场景下,由于获取后端指针 BackendPtr 等待,使用 Enter 打开多个软件包可能导致状态异常(标识为多个包状态) // 场景无法从单包安装正常切换到多包安装,因此在更新界面时判断是否切换当前安装界面。 MultipleInstallPage *multiplePage = qobject_cast(m_lastPage); if (!multiplePage) { qWarning() << "Refresh multi install page but not create!"; single2Multi(); } qInfo() << "[DebInstaller]" << "[refreshMulti]" << "add a package to multiple page"; if (SingleInstallerApplication::mode == SingleInstallerApplication::DdimChannel) { // 之前有多个包,之后又添加了包,则直接刷新listview m_dragflag = 0; } else { m_dragflag = 1; } MulRefreshPage(); } void DebInstaller::slotReceiveAppendFailed(Pkg::AppendFailReason reason, Pkg::PackageType type) { switch (reason) { case Pkg::PackageInvalid: slotShowInvalidePackageMessage(type); break; case Pkg::PackageNotDdim: slotShowDdimFloatingMessage(tr("Installing other packages... Please open it later.")); break; case Pkg::PackageNotLocal: slotShowNotLocalPackageMessage(type); break; case Pkg::PackageNotInstallable: slotShowNotInstallablePackageMessage(); break; case Pkg::PackageAlreadyExists: slotShowPkgExistMessage(); break; default: break; } } void DebInstaller::slotShowInvalidePackageMessage(Pkg::PackageType type) { DFloatingMessage *floatingMsg = new DFloatingMessage; floatingMsg->setMessage(tr("The %1 package may be broken").arg(Pkg::Uab == type ? "uab" : "deb")); floatingMsg->setIcon(QIcon::fromTheme("di_warning")); DMessageManager::instance()->sendMessage(this, floatingMsg); } void DebInstaller::slotShowNotLocalPackageMessage(Pkg::PackageType type) { DFloatingMessage *floatingMsg = new DFloatingMessage; floatingMsg->setMessage(tr("You can only install local %1 packages").arg(Pkg::Uab == type ? "uab" : "deb")); floatingMsg->setIcon(QIcon::fromTheme("di_warning")); DMessageManager::instance()->sendMessage(this, floatingMsg); } void DebInstaller::slotShowNotInstallablePackageMessage() { DFloatingMessage *floatingMsg = new DFloatingMessage; floatingMsg->setMessage(tr("No permission to access this folder")); floatingMsg->setIcon(QIcon::fromTheme("di_warning")); DMessageManager::instance()->sendMessage(this, floatingMsg); } void DebInstaller::slotShowPkgExistMessage() { if (SingleInstallerApplication::mode == SingleInstallerApplication::DdimChannel && m_ddimView == nullptr) { // 如果选择界面未创建,则表示是第一次进入且只有必装包和依赖包 slotShowSelectInstallPage({}); return; } qWarning() << "DebInstaller:" << "package is Exist! "; DFloatingMessage *floatingMsg = new DFloatingMessage; floatingMsg->setMessage(tr("Already Added")); floatingMsg->setIcon(QIcon::fromTheme("di_ok")); DMessageManager::instance()->sendMessage(this, floatingMsg); // 已经添加的包会提示 } void DebInstaller::slotShowPkgRemovedMessage(QString packageName) { qWarning() << "DebInstaller:" << packageName << "File is not accessible"; DFloatingMessage *floatingMsg = new DFloatingMessage; floatingMsg->setMessage(tr("%1 does not exist, please reselect").arg(packageName)); floatingMsg->setIcon(QIcon::fromTheme("di_ok")); DMessageManager::instance()->sendMessage(this, floatingMsg); // 已经添加的包会提示 } void DebInstaller::slotShowDdimErrorMessage(const QString &message) { titlebar()->setTitle(tr("Bulk Install")); m_ddimErrorPage = new DdimErrorPage; m_ddimErrorPage->setErrorMessage(message); m_dragflag = 0; m_Filterflag = NonePage; m_centralLayout->addWidget(m_ddimErrorPage); // m_centralLayout->setCurrentIndex(1); m_centralLayout->setCurrentWidget(m_ddimErrorPage); connect(m_ddimErrorPage, &DdimErrorPage::comfimPressed, this, &QMainWindow::close); } void DebInstaller::slotShowDdimFloatingMessage(const QString &message) { DFloatingMessage *floatingMsg = new DFloatingMessage; floatingMsg->setMessage(message); floatingMsg->setIcon(QIcon::fromTheme("di_warning")); DMessageManager::instance()->sendMessage(this, floatingMsg); } void DebInstaller::slotShowUninstallConfirmPage() { this->setAcceptDrops(false); // 卸载页面不允许添加/拖入包 const QModelIndex index = m_fileListModel->index(0); // 只有单包才有卸载界面 m_uninstallPage = new UninstallConfirmPage(this); // 初始化卸载页面 m_uninstallPage->setPackageType(index.data(AbstractPackageListModel::PackageTypeRole).value()); m_uninstallPage->setRequiredList( index.data(DebListModel::PackageReverseDependsListRole).toStringList()); // 查看是否有包依赖于当前要卸载的包,病获取列表 m_uninstallPage->setPackage(index.data().toString()); // 添加卸载提示语 // compatible mode, if rootfs is empty, fallback normal debian package uninstall flow QString rootfs = index.data(AbstractPackageListModel::CompatibleRootfsRole).toString(); if (!rootfs.isEmpty()) { m_uninstallPage->setCompatibleInfo(rootfs); } m_Filterflag = UninstallPage; m_centralLayout->addWidget(m_uninstallPage); // 添加卸载页面到主界面中 // m_centralLayout->setCurrentIndex(2); //显示卸载页面 m_centralLayout->setCurrentWidget(m_uninstallPage); m_uninstallPage->setAcceptDrops(false); // 卸载页面不允许拖入包 connect(m_uninstallPage, &UninstallConfirmPage::signalUninstallAccepted, this, &DebInstaller::slotUninstallAccepted); // 卸载页面确认卸载 connect(m_uninstallPage, &UninstallConfirmPage::signalUninstallCanceled, this, &DebInstaller::slotUninstallCancel); // 卸载页面取消卸载 } void DebInstaller::slotUninstallAccepted() { // uninstall begin SingleInstallPage *singlePage = backToSinglePage(); // 获取单包安装界面(卸载页面其实也是单包安装页面的一种) if (nullptr == singlePage) return; m_fileChooseWidget->setAcceptDrops(true); // 设置文件选择界面可以拖入包 singlePage->slotUninstallCurrentPackage(); // 显示正在卸载页面 // set close button disabled while uninstalling disableCloseAndExit(); // 卸载时不允许关闭或退出 m_Filterflag = static_cast(m_dragflag); } void DebInstaller::slotUninstallCancel() { // Cancel uninstall this->setAcceptDrops(true); // 取消卸载,允许包被拖入 m_fileListModel->setWorkerStatus(DebListModel::WorkerPrepare); // 重置工作状态为准备状态 backToSinglePage(); // 返回单包安装页面 m_Filterflag = static_cast(m_dragflag); } void DebInstaller::slotSetAuthingStatus(const bool authing) { // The authorization box pops up, the setting button is not available setEnabled(!authing); // 授权框弹出时,按钮不可用 授权框被关闭后,按钮可用 } void DebInstaller::slotReset() { // reset page status m_dragflag = -1; // 是否被允许拖入或添加 m_Filterflag = ChoosePage; // 当前显示的页面 titlebar()->setTitle(QString()); // 重置标题栏 m_fileListModel->reset(); // 重置model // 删除所有的页面 if (!m_lastPage.isNull() && m_lastPage != m_fileChooseWidget) { m_lastPage->deleteLater(); } m_centralLayout->setCurrentWidget(m_fileChooseWidget); this->setAcceptDrops(true); m_fileChooseWidget->setAcceptDrops(true); m_wineAuthStatus = DebListModel::AuthBefore; } void DebInstaller::appendPackageStart() { m_packageAppending = true; MultipleInstallPage *multiplePage = qobject_cast(m_lastPage); if (multiplePage) multiplePage->setEnableButton(false); } void DebInstaller::appendFinished() { qDebug() << "[DebInstaller]" << "[appendFinished]" << "append package finished"; MultipleInstallPage *multiplePage = qobject_cast(m_lastPage); if (multiplePage) { multiplePage->setEnableButton(true); } m_packageAppending = false; } void DebInstaller::MulRefreshPage() { if (m_dragflag == 1) { MultipleInstallPage *multiplePage = qobject_cast(m_lastPage); // 获取批量安装类的指针 if (multiplePage) multiplePage->refreshModel(); } } void DebInstaller::single2Multi() { // 刷新文件的状态,初始化包的状态为准备状态 m_fileListModel->resetInstallStatus(); if (!m_lastPage.isNull() && m_lastPage != m_fileChooseWidget) { m_lastPage->deleteLater(); // 清除widgets缓存 } // multiple packages install titlebar()->setTitle(tr("Bulk Install")); MultipleInstallPage *multiplePage = new MultipleInstallPage(m_fileListModel); multiplePage->setObjectName("MultipleInstallPage"); connect(multiplePage, &MultipleInstallPage::signalBackToFileChooseWidget, this, &DebInstaller::slotReset); multiplePage->refreshModel(); m_lastPage = multiplePage; m_centralLayout->addWidget(multiplePage); if (SingleInstallerApplication::mode == SingleInstallerApplication::DdimChannel) { m_dragflag = 0; } else { m_dragflag = 1; } m_Filterflag = MultiPage; // m_centralLayout->setCurrentIndex(1); m_centralLayout->setCurrentWidget(multiplePage); } void DebInstaller::refreshSingle() { // 刷新文件的状态,初始化包的状态为准备状态 m_fileListModel->resetInstallStatus(); // clear widgets if needed if (!m_lastPage.isNull() && m_lastPage != m_fileChooseWidget) { m_lastPage->deleteLater(); // 清除widgets缓存 } // 安装器中只有一个包,刷新单包安装页面 // 刷新成单包安装界面时,删除标题 titlebar()->setTitle(QString()); SingleInstallPage *singlePage = new SingleInstallPage(m_fileListModel); singlePage->setObjectName("SingleInstallPage"); connect(singlePage, &SingleInstallPage::signalBacktoFileChooseWidget, this, &DebInstaller::slotReset); connect(singlePage, &SingleInstallPage::signalRequestUninstallConfirm, this, &DebInstaller::slotShowUninstallConfirmPage); m_lastPage = singlePage; m_centralLayout->addWidget(singlePage); // 重置安装器拖入的状态与工作的状态 if (SingleInstallerApplication::mode == SingleInstallerApplication::DdimChannel) { m_dragflag = 0; m_Filterflag = NonePage; } else { m_dragflag = 2; m_Filterflag = SinglePage; } // switch to new page. // m_centralLayout->setCurrentIndex(1); m_centralLayout->setCurrentWidget(singlePage); } SingleInstallPage *DebInstaller::backToSinglePage() { // 获取当前的页面并删除 QWidget *confirmPage = m_centralLayout->widget(3); if (nullptr == confirmPage) return nullptr; m_centralLayout->removeWidget(confirmPage); confirmPage->deleteLater(); SingleInstallPage *singleInstallPage = qobject_cast(m_centralLayout->widget(2)); // 获取单包安装widget if (!singleInstallPage) { return nullptr; } // 返回单包安装页面时,允许添加包 singleInstallPage->setAcceptDrops(true); m_fileChooseWidget->setAcceptDrops(true); this->setAcceptDrops(true); return singleInstallPage; } void DebInstaller::slotChangeDragFlag() { repaint(); m_dragflag = 0; // 允许包被拖入且此时程序中没有包 enableCloseAndExit(); } void DebInstaller::slotSetEnableButton(bool bButtonEnabled) { // 如果正在添加包,则启用按钮 if (m_packageAppending) return; // Set button enabled after installation canceled if (2 == m_dragflag) { // 单包安装按钮的启用与禁用 SingleInstallPage *singlePage = qobject_cast(m_lastPage); if (singlePage) singlePage->setEnableButton(bButtonEnabled); } else if (1 == m_dragflag) { // 批量安装按钮的启用与禁用 MultipleInstallPage *multiplePage = qobject_cast(m_lastPage); if (multiplePage) multiplePage->setEnableButton(bButtonEnabled); } } void DebInstaller::slotShowHiddenButton() { enableCloseAndExit(); m_fileListModel->resetInstallStatus(); // 授权取消,重置所有的状态,包括安装状态,依赖状态等 SingleInstallPage *singlePage = qobject_cast(m_lastPage); if (singlePage) { // 单包安装显示按钮 singlePage->afterGetAutherFalse(); } else { MultipleInstallPage *multiplePage = qobject_cast(m_lastPage); if (multiplePage) { // 批量安装显示按钮 multiplePage->afterGetAutherFalse(); } } } void DebInstaller::closeEvent(QCloseEvent *event) { DTitlebar *tbar = this->titlebar(); if (tbar && tbar->quitMenuIsDisabled()) { event->ignore(); return; } PackageAnalyzer::instance().setUiExit(); DMainWindow::closeEvent(event); } void DebInstaller::slotDealDependResult(int authDependsStatus, QString dependName) { Q_UNUSED(dependName); // Set the display effect according to the status of deepin-wine installation authorization. // Before authorization, authorization confirmation, and when the authorization box pops up, it is not allowed to add // packages. 依赖下载时、授权时不允许拖入 m_wineAuthStatus = authDependsStatus; if (authDependsStatus == DebListModel::AuthBefore || authDependsStatus == DebListModel::AuthConfirm || authDependsStatus == DebListModel::AuthPop) { this->setAcceptDrops(false); } else { this->setAcceptDrops(true); } if (authDependsStatus == DebListModel::AuthDependsSuccess) { // 依赖下载成功 m_fileListModel->resetInstallStatus(); // 清除包的状态和包的错误原因 重置包的prepare状态 } if (authDependsStatus == DebListModel::AuthBefore) { // 授权框弹出时 this->setEnabled(false); // 设置界面不可用 } else { // 授权成功或失败后 this->setEnabled(true); // 根据授权的结果刷新单包或者批量安装界面 if (m_fileListModel->rowCount() == OnePackage) { // 刷新单包安装界面 SingleInstallPage *singlePage = qobject_cast(m_lastPage); if (singlePage) singlePage->DealDependResult(authDependsStatus, dependName); } else if (m_fileListModel->rowCount() >= TwoPackages) { // 刷新批量安装界面 MultipleInstallPage *multiplePage = qobject_cast(m_lastPage); if (multiplePage) { multiplePage->DealDependResult(authDependsStatus, dependName); multiplePage->refreshModel(); // 滚动到最后一行。 } } } } bool DebInstaller::checkSuffix(QString filePath) { const QFileInfo info(filePath); if (info.isFile() && info.suffix().toLower() == "deb") { // 大小写不敏感的判断是否为deb后缀 return true; } return false; } deepin-deb-installer-6.5.5/src/deb-installer/view/pages/debinstaller.h000066400000000000000000000245041474340456100257410ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef DEBINSTALLER_H #define DEBINSTALLER_H #include "utils/package_defines.h" #include "model/packageselectmodel.h" #include "view/pages/backendprocesspage.h" #include #include #include #include #include #include #include class FileChooseWidget; class AbstractPackageListModel; class DebListModel; class SingleInstallPage; class UninstallConfirmPage; class SettingDialog; class PackageSelectModel; class PackageSelectView; class DdimErrorPage; class SelectInstallPage; using QApt::DebFile; /** * @brief The DebInstaller class * * 软件包安装器的主窗口 * 承担各安装界面的切换,包的添加,删除等功能 * M-V-C 中的 View */ class DebInstaller : public Dtk::Widget::DMainWindow { Q_OBJECT public: DebInstaller(QWidget *parent = nullptr); virtual ~DebInstaller() Q_DECL_OVERRIDE; signals: void runOldProcess(const QStringList &paths); protected: void dragEnterEvent(QDragEnterEvent *e) Q_DECL_OVERRIDE; // 拖入事件 void dropEvent(QDropEvent *e) Q_DECL_OVERRIDE; // 拖入放下事件 void dragMoveEvent(QDragMoveEvent *e) Q_DECL_OVERRIDE; // 拖进事件 void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE; // 关闭事件 private slots: /** * @brief slotPackagesSelected * @param packages 安装的包的全路径的列表 * 添加包时,对包进行处理,去除无效的包,提示已经添加过的包,并根据添加包的数量刷新界面 */ void slotPackagesSelected(const QStringList &packages); /** * @brief slotDdimSelected * @param ddimFiles 清单文件 * 根据清单文件进行解析操作 */ void slotDdimSelected(const QStringList &ddimFiles); // Append package failed, show floating message based on diff error. void slotReceiveAppendFailed(Pkg::AppendFailReason reason, Pkg::PackageType type); /** * @brief slotShowInvalidePackageMessage 弹出无效包的消息通知 */ void slotShowInvalidePackageMessage(Pkg::PackageType type); /** * @brief slotShowNotLocalPackageMessage 弹出不是本地包的消息通知 */ void slotShowNotLocalPackageMessage(Pkg::PackageType type); /** * @brief slotShowNotInstallablePackageMessage 弹出无安装权限的消息通知 */ void slotShowNotInstallablePackageMessage(); /** * @brief slotShowPkgExistMessage 弹出包已存在的消息通知 */ void slotShowPkgExistMessage(); /** * @brief slotShowPkgRemovedMessage 弹出包被移动的消息通知 */ void slotShowPkgRemovedMessage(QString packageName); /** * @brief slotShowDdimErrorMessage 处理DDIM相关的错误信息,并跳转至对应界面 */ void slotShowDdimErrorMessage(const QString &message); /** * @brief slotShowDdimFloatingMessage 处理DDIM相关的错误信息,并弹出浮动提示框 */ void slotShowDdimFloatingMessage(const QString &message); /** * @brief slotShowUninstallConfirmPage * 卸载按钮的槽函数 * 显示卸载界面 */ void slotShowUninstallConfirmPage(); /** * @brief slotUninstallAccepted * 卸载界面确认卸载按钮的槽函数 * 卸载开始时,返回singleInstallPage 并显示卸载进程。 */ void slotUninstallAccepted(); /** * @brief slotUninstallCancel * 卸载界面取消卸载按钮的槽函数 * 取消卸载后返回 singleInstallPage */ void slotUninstallCancel(); /** * @brief slotSetEnableButton * @param bEnable 按钮是否可用标志 * 根据当前的安装/卸载进程来控制singleInstallPage/multiInstallPage按钮的可用性 */ void slotSetEnableButton(bool bEnable); /** * @brief slotShowHiddenButton * 授权取消后显示被隐藏的按钮 */ void slotShowHiddenButton(); /** * @brief slotSetAuthingStatus * @param authing 按钮是否可用的标志 * 授权框弹出后,设置当前界面为不可用状态 */ void slotSetAuthingStatus(const bool authing); /** * @brief slotDealDependResult * @param iAuthRes * 根据deepin-wine依赖安装的结果处理界面显示效果 */ void slotDealDependResult(int iAuthRes, QString dependName); /** * @brief slotChangeDragFlag * 安装卸载结束后,允许包被拖入程序,并设置关闭按钮可用 */ void slotChangeDragFlag(); /** * @brief slotReset * 重置当前工作状态、拖入状态、标题栏、页面暂存区,删除卸载页面 * */ void slotReset(); /** * @brief slotEnableCloseButton * @param enable 是否禁用关闭按钮 * 下载依赖时,关闭按钮不可用,下载依赖成功后,依赖按钮可用 */ void slotEnableCloseButton(bool enable); /** * @brief slotSettingDialogVisiable * 显示设置框 */ void slotSettingDialogVisiable(); /** * @brief PackagesSelected * 添加包,但是不显示主窗口 */ void PackagesSelected(const QStringList &debPathList); /** * @brief startInstallPackge * 开始安装,包并返回安装信息 */ QString startInstallPackge(const QString &debPath); /** * @brief startUnInstallPackge * 卸载包,包并返回卸载信息 */ QString startUnInstallPackge(const QString &debPath); /** * @brief checkInstallStatus * 查找包的安装状态 */ int checkInstallStatus(const QString &debPath); /** * @brief checkDependsStatus * 查找包的依赖状态 */ int checkDependsStatus(const QString &debPath); /** * @brief checkDigitalSignature * 查找包的数字签名 */ int checkDigitalSignature(const QString &debPath); /** * @brief getPackageInfo * 查找包信息,返回(包名,包的路径,包的版本,包可用的架构,包的短描述,包的长描述) */ QString getPackageInfo(const QString &debPath); /** * @brief slotShowSelectPage * @param selectedInfos 用于显示的数据 * 显示选择页面 */ void slotShowSelectPage(const QList &selectedInfos); /** * @brief slotShowSelectInstallPage * @param selectIndexes 对应模型上的索引编号 * 显示选择页面 */ void slotShowSelectInstallPage(const QList &selectIndexes); /** * @brief slotShowPkgProcessBlockPage * @param mode 阻塞模式,当为PROCESS_FIN的时候退出 * @param currentRate 当前进度值(某些mode下不会生效) * @param pkgCount 总进度值(某些mode下不会生效) * 显示包处理阻塞界面 */ void slotShowPkgProcessBlockPage(BackendProcessPage::DisplayMode mode, int currentRate, int pkgCount); // install / unisntall finished void slotWorkerFinished(); private: /** * @brief initUI * 初始化界面 */ void initUI(); /** * @brief initTitleBar * 初始化标题栏 */ void initTitleBar(); /** * @brief initConnections * 初始化链接信号和槽 */ void initConnections(); /** * @brief refreshSingle 刷新单包安装界面 */ void refreshSingle(); /** * @brief single2Multi 刷新批量安装界面 */ void single2Multi(); /** * @brief refreshMulti 刷新批量安装model */ void refreshMulti(); /** * @brief appendPackageStart 正在添加多个包的界面处理函数 */ void appendPackageStart(); /** * @brief appendFinished 批量添加结束界面处理函数 */ void appendFinished(); /** * @brief MulRefreshPage 刷新批量安装model */ void MulRefreshPage(); // Disable/enable close button and exit in menu /** * @brief disableCloseAndExit * 设置退出和关闭按钮为不可用 */ void disableCloseAndExit(); /** * @brief enableCloseAndExit * 设置退出和关闭按钮可用 */ void enableCloseAndExit(); /** * @brief backToSinglePage 返回单包安装界面 * @return SingleInstallPage* SingleInstallPage的指针 */ SingleInstallPage *backToSinglePage(); /** * @brief checkSuffix 检查文件后缀 * @param filePath 文件路径 * @return 文件后缀是否是.deb */ bool checkSuffix(QString filePath); /** * @brief analyzeV10 * @param ddimobj 清单文件内部的JSON内容 * 根据JSON进行解析操作,仅处理1.0版本 */ DdimSt analyzeV10(const QJsonObject &ddimobj, const QString &ddimDir); private: AbstractPackageListModel *m_fileListModel = nullptr; // model 类 FileChooseWidget *m_fileChooseWidget = nullptr; // 文件选择的widget UninstallConfirmPage *m_uninstallPage = nullptr; QPointer m_lastPage; // 存放上一个页面的指针 QStackedLayout *m_centralLayout = nullptr; // 单包、批量、卸载的widget SettingDialog *m_settingDialog = nullptr; PackageSelectModel *m_ddimModel = nullptr; // ddim处理model PackageSelectView *m_ddimView = nullptr; // ddim处理view DdimErrorPage *m_ddimErrorPage = nullptr; // ddim错误提示界面 SelectInstallPage *m_ddimInstallPage = nullptr; // ddim安装界面 BackendProcessPage *m_backendProcessPage = nullptr; // 后台处理阻塞界面 QString lastTitle; int m_dragflag = -1; // 当前是否允许拖入的标志位 int m_iOptionWindowFlag = 0; // 判断菜单栏是否手动弹出 bool bTabFlag = false; // Control focus is re-identified from titlebar bool bActiveWindowFlag = true; // Window activation id enum CurrentPage { ChoosePage = -1, NonePage = 0, MultiPage = 1, SinglePage = 2, UninstallPage = 3, }; CurrentPage m_Filterflag{ChoosePage}; // Determine the current page choose:-1;multiple:1;single:2;uninstall:3 bool m_packageAppending = false; int m_wineAuthStatus = -1; // 记录依赖配置授权状态 }; #endif // DEBINSTALLER_H deepin-deb-installer-6.5.5/src/deb-installer/view/pages/multipleinstallpage.cpp000066400000000000000000000624751474340456100277140ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "multipleinstallpage.h" #include "model/deblistmodel.h" #include "model/packagelistview.h" #include "model/packageslistdelegate.h" #include "view/widgets/workerprogress.h" #include "utils/utils.h" #include #include #include #include #include MultipleInstallPage::MultipleInstallPage(AbstractPackageListModel *model, QWidget *parent) : QWidget(parent) , m_appsListViewBgFrame(new DRoundBgFrame(this, 10, 0)) , m_debListModel(model) , m_contentFrame(new QWidget(this)) , m_processFrame(new QWidget(this)) , m_contentLayout(new QVBoxLayout()) , m_centralLayout(new QVBoxLayout()) , m_appsListView(new PackagesListView(this)) , m_installProcessInfoView(new InstallProcessInfoView(440, 186, this)) , m_showDependsView(new InstallProcessInfoView(440, 170, this)) , m_showDependsButton(new InfoControlButton( QApplication::translate("SingleInstallPage_Install", "Show dependencies"), tr("Collapse", "button"), this)) , m_installProgress(nullptr) , m_progressAnimation(nullptr) , m_infoControlButton(new InfoControlButton(tr("Show details"), tr("Collapse", "button"), this)) , m_installButton(new DPushButton(this)) , m_backButton(new DPushButton(this)) , m_acceptButton(new DPushButton(this)) // fix bug:33999 change DButton to DCommandLinkButton for Activity color , m_tipsLabel(new DCommandLinkButton("", this)) , m_dSpinner(new DSpinner(this)) { initControlAccessibleName(); // 自动化测试 initContentLayout(); // 初始化主布局 initUI(); // 初始化控件 initConnections(); // 初始化链接 initTabOrder(); // 初始化焦点切换顺序 // 添加后默认可以调用右键删除菜单。 m_appsListView->setRightMenuShowStatus(true); // 设置批量安装右键删除菜单可用 } void MultipleInstallPage::initControlAccessibleName() { // 添加contentFrame AccessibleName m_contentFrame->setObjectName("contentFrame"); m_contentFrame->setAccessibleName("contentFrame"); // 添加processFrame AccessibleName m_processFrame->setObjectName("processFrame"); m_processFrame->setAccessibleName("processFrame"); // 添加 m_installProcessInfoView AccessibleName m_installProcessInfoView->setObjectName("InstallProcessInfoView"); m_installProcessInfoView->setAccessibleName("InstallProcessInfoView"); // 添加 infoControlButton AccessibleName m_infoControlButton->setObjectName("InfoControlButton"); m_infoControlButton->setAccessibleName("InfoControlButton"); // 添加 installButton AccessibleName m_installButton->setObjectName("MultipageInstallButton"); m_installButton->setAccessibleName("MultipageInstallButton"); // 添加 backButton AccessibleName m_backButton->setObjectName("MultipageBackButton"); m_backButton->setAccessibleName("MultipageBackButton"); // 添加 acceptButton AccessibleName m_acceptButton->setObjectName("MultipageAcceptButton"); m_acceptButton->setAccessibleName("MultipageAcceptButton"); // 添加 m_infoControlButton AccessibleName m_infoControlButton->setObjectName("MultipageInfoControlButton"); m_infoControlButton->setAccessibleName("MultipageInfoControlButton"); // 添加 appListViewFrame AccessibleName m_appsListViewBgFrame->setObjectName("AppListViewBgFrame"); m_appsListViewBgFrame->setAccessibleName("AppListViewBgFrame"); // 添加 tipsLabel AccessibleName m_tipsLabel->setObjectName("TipsCommandLinkButton"); m_tipsLabel->setAccessibleName("TipsCommandLinkButton"); } void MultipleInstallPage::initContentLayout() { // 子布局设置控件间的间距为0 m_contentLayout->setSpacing(0); // 子布局设定上下左右的边距 m_contentLayout->setContentsMargins(10, 0, 10, 0); // 添加子布局到主布局中 m_contentFrame->setLayout(m_contentLayout); m_centralLayout->addWidget(m_contentFrame); // 主布局添加间距 m_centralLayout->setSpacing(0); // 主布局设置边距 m_centralLayout->setContentsMargins(0, 0, 0, 20); this->setLayout(m_centralLayout); // #define SHOWBGCOLOR #ifdef SHOWBGCOLOR m_contentFrame->setStyleSheet("QFrame{background: cyan}"); #endif } void MultipleInstallPage::initPkgDependsInfoView() { m_showDependsView->setVisible(false); m_showDependsButton->setVisible(false); m_showDependsView->setAcceptDrops(false); // 不接受拖入的数据 m_showDependsView->setMinimumHeight(200); // 设置高度 m_showDependsView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); m_contentLayout->addWidget(m_showDependsButton); m_contentLayout->addWidget(m_showDependsView); } void MultipleInstallPage::initUI() { this->setFocusPolicy(Qt::NoFocus); // 直接传入debListModel 修复多次创建packageManager导致崩溃的问题 PackagesListDelegate *delegate = new PackagesListDelegate(m_debListModel, m_appsListView); // 获取currentIndex的坐标位置,用于键盘触发右键菜单 connect(delegate, &PackagesListDelegate::sigIndexAndRect, m_appsListView, &PackagesListView::slotGetPos); // fix bug:33730 m_appsListViewBgFrame->setFixedSize(460, 186 /* + 10*/ + 5); // listview的布局 QVBoxLayout *appsViewLayout = new QVBoxLayout(); appsViewLayout->setSpacing(0); // 设置边距 appsViewLayout->setContentsMargins(0, 0, 0, 0); m_appsListViewBgFrame->setLayout(appsViewLayout); // applistview 绑定model m_appsListView->setModel(m_debListModel); m_appsListView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); // 监听字体大小变化,设置高度 connect(m_appsListView, &PackagesListView::signalChangeItemHeight, delegate, &PackagesListDelegate::getItemHeight); // 使用代理重绘listView m_appsListView->setItemDelegate(delegate); // 设置焦点策略 m_appsListView->setFocusPolicy(Qt::TabFocus); appsViewLayout->addSpacing(15); appsViewLayout->addWidget(m_appsListView); appsViewLayout->addSpacing(10); m_installButton->setMinimumWidth(120); // 设置安装按钮的大小 m_acceptButton->setMinimumWidth(120); // 设置确认按钮的大小 m_backButton->setMinimumWidth(120); // 设置返回按钮的大小 m_installButton->setText(tr("Install", "button")); // 设置安装按钮的提示语 m_acceptButton->setText(tr("Done", "button")); // 设置完成按钮的提示 m_acceptButton->setVisible(false); // 默认隐藏完成按钮 m_backButton->setText(tr("Back", "button")); // 设置返回按钮的提示 m_backButton->setVisible(false); // 隐藏返回按钮 QString mediumFontFamily = Utils::loadFontFamilyByType(Utils::SourceHanSansMedium); Utils::bindFontBySizeAndWeight(m_installButton, mediumFontFamily, 14, QFont::Medium); // 调整安装按钮的字体 Utils::bindFontBySizeAndWeight(m_acceptButton, mediumFontFamily, 14, QFont::Medium); // 调整完成按钮的字体 Utils::bindFontBySizeAndWeight(m_backButton, mediumFontFamily, 14, QFont::Medium); // 调整返回按钮的字体 // 把按钮的焦点策略整合到一起,便于解决焦点闪现的问题 setButtonFocusPolicy(); // 设置按钮可以被回车触发 setButtonAutoDefault(); // 修复依赖安装提示语会有焦点的问题。 m_tipsLabel->setFocusPolicy(Qt::NoFocus); m_tipsLabel->setMinimumHeight(24); QString fontFamily = Utils::loadFontFamilyByType(Utils::SourceHanSansNormal); Utils::bindFontBySizeAndWeight(m_tipsLabel, fontFamily, 12, QFont::ExtraLight); // 调整wine依赖安装提示的字体 m_dSpinner->setMinimumSize(20, 20); // 设置wine安装依赖的安装动画的大小 m_dSpinner->hide(); // 隐藏安装动画 // 设置安装信息的信息展示框 m_installProcessInfoView->setVisible(false); m_installProcessInfoView->setAcceptDrops(false); m_installProcessInfoView->setFixedHeight(200); // 设置固定高度 m_installProcessInfoView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); m_infoControlButton->setVisible(false); // 详细按钮展开收缩默认不可见 // 进度布局 QVBoxLayout *progressFrameLayout = new QVBoxLayout(); progressFrameLayout->setSpacing(0); progressFrameLayout->setContentsMargins(0, 0, 0, 0); // 设置边距 m_processFrame->setLayout(progressFrameLayout); m_installProgress = new WorkerProgress(this); // 进度条初始化 m_progressAnimation = new QPropertyAnimation(m_installProgress, "value", this); // 进度条动画 progressFrameLayout->addStretch(); progressFrameLayout->addWidget(m_installProgress); progressFrameLayout->addSpacing(28); progressFrameLayout->setAlignment(m_installProgress, Qt::AlignHCenter); // 进度条居中 m_processFrame->setVisible(false); // 进度条默认隐藏 m_processFrame->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); m_processFrame->setMinimumHeight(53); // 设置固定高度 // 按钮布局 QVBoxLayout *btnsFrameLayout = new QVBoxLayout(); btnsFrameLayout->setSpacing(0); btnsFrameLayout->setContentsMargins(0, 0, 0, 0); // 设置边距 // 按钮布局为水平布局 QHBoxLayout *btnsLayout = new QHBoxLayout(); btnsLayout->addStretch(); // 前后增加弹簧 btnsLayout->addWidget(m_installButton); // 添加安装按钮 btnsLayout->addWidget(m_backButton); // 添加返回按钮 btnsLayout->addWidget(m_acceptButton); // 添加完成按钮 btnsLayout->setSpacing(20); // 设置按钮间的间距为20px btnsLayout->addStretch(); #ifdef DTKWIDGET_CLASS_DSizeMode // adapt compact mode auto setBtnSizeMode = [btnsLayout]() { if (DGuiApplicationHelper::instance()->isCompactMode()) { btnsLayout->setContentsMargins(0, 0, 0, 4); } else { btnsLayout->setContentsMargins(0, 0, 0, 0); } }; setBtnSizeMode(); // setBtnSizeMode moved connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::sizeModeChanged, this, setBtnSizeMode); #else btnsLayout->setContentsMargins(0, 0, 0, 0); #endif // DTKWIDGET_CLASS_DSizeMode QWidget *btnsFrame = new QWidget(this); btnsFrameLayout->addWidget(m_processFrame); // 进度布局添加到btn布局中(二者互斥,一定不能同时出现) btnsFrameLayout->addStretch(); btnsFrameLayout->addLayout(btnsLayout); // 添加按钮布局 btnsFrame->setLayout(btnsFrameLayout); m_contentLayout->addWidget(m_appsListViewBgFrame, Qt::AlignHCenter); // 主布局添加listView frame并居中 m_contentLayout->addSpacing(5); initPkgDependsInfoView(); m_contentLayout->addSpacing(5); m_contentLayout->addWidget(m_infoControlButton); // 主布局添加infoControlButton m_contentLayout->setAlignment(m_infoControlButton, Qt::AlignHCenter); // 居中显示infoControlButton m_contentLayout->addWidget(m_installProcessInfoView); // 添加详细信息框 m_contentLayout->addStretch(); m_contentLayout->addWidget(m_dSpinner); // 添加依赖安装加载动画 m_contentLayout->addWidget(m_tipsLabel); // 添加依赖安装提示 m_contentLayout->addSpacing(10); // fix bug:33999 keep tips in the middle m_contentLayout->setAlignment(m_tipsLabel, Qt::AlignCenter); // 设置提示居中 m_tipsLabel->setVisible(false); // 依赖安装提示默认不可见 m_contentLayout->addWidget(btnsFrame); } void MultipleInstallPage::initTabOrder() { // 修改焦点切换的顺序 QWidget::setTabOrder(m_appsListView, m_infoControlButton); // 焦点从infoCommandLinkButton直接切换到安装或返回按钮 QWidget::setTabOrder(m_infoControlButton->controlButton(), m_installButton); QWidget::setTabOrder(m_infoControlButton->controlButton(), m_backButton); // 焦点从返回按钮可以直接切换到确认按钮 QWidget::setTabOrder(m_backButton, m_acceptButton); } void MultipleInstallPage::setButtonFocusPolicy() { // 修改焦点控制 启用焦点设置为TabFouce auto focus = Qt::TabFocus; // 设置安装、返回、确认按钮的焦点策略 m_installButton->setFocusPolicy(focus); m_acceptButton->setFocusPolicy(focus); m_backButton->setFocusPolicy(focus); // 设置ControlButton的焦点策略 m_infoControlButton->controlButton()->setFocusPolicy(focus); } void MultipleInstallPage::setButtonAutoDefault() { // 增加键盘enter控制按钮 m_installButton->setAutoDefault(true); m_acceptButton->setAutoDefault(true); m_backButton->setAutoDefault(true); } void MultipleInstallPage::initConnections() { // 详细信息展开 connect(m_infoControlButton, &InfoControlButton::expand, this, &MultipleInstallPage::slotShowInfo); // 详细信息收缩 connect(m_infoControlButton, &InfoControlButton::shrink, this, &MultipleInstallPage::slotHideInfo); // showDependsButton的展开与收缩 connect(m_showDependsButton, &InfoControlButton::expand, this, &MultipleInstallPage::slotShowDependsInfo); connect(m_showDependsButton, &InfoControlButton::shrink, this, &MultipleInstallPage::slotHideDependsInfo); // 开始安装 connect(m_installButton, &DPushButton::clicked, m_debListModel, &AbstractPackageListModel::slotInstallPackages); // 开始安装后隐藏安装按钮等 connect(m_installButton, &DPushButton::clicked, this, &MultipleInstallPage::slotHiddenCancelButton); // 返回到文件选择窗口 connect(m_backButton, &DPushButton::clicked, this, &MultipleInstallPage::signalBackToFileChooseWidget); // 退出应用程序 connect(m_acceptButton, &DPushButton::clicked, qApp, &QApplication::quit); // 在listView中删除了某一个包,需要在PackageManager中同步删除 connect(m_appsListView, &PackagesListView::signalRemoveItemClicked, this, &MultipleInstallPage::slotRequestRemoveItemClicked); // 安装过程中进度发生变化 connect(m_debListModel, &DebListModel::signalWholeProgressChanged, this, &MultipleInstallPage::slotProgressChanged); // 安装过程中安装信息变化 connect(m_debListModel, &DebListModel::signalAppendOutputInfo, this, &MultipleInstallPage::slotOutputAvailable); // 开始安装时,显示安装进度条 connect(m_debListModel, &DebListModel::signalWorkerStart, this, [=] { m_processFrame->setVisible(true); }); // 一个包安装结束后 listView滚动到其在listview中的位置 connect( m_debListModel, &DebListModel::signalCurrentProcessPackageIndex, this, &MultipleInstallPage::slotAutoScrollInstallList); // 点击安装包列表时,向后端传递当前选中行 connect(m_appsListView, &PackagesListView::signalCurrentIndexRow, this, [this](int row) { QModelIndex index = m_debListModel->index(row); QVariant data = m_debListModel->data(index, AbstractPackageListModel::PackageDependsDetailRole); auto depends = data.value(); slotDependPackages(depends, GlobalStatus::winePreDependsInstalling()); }); } void MultipleInstallPage::slotWorkerFinshed() { // 安装结束显示返回和确认按钮 m_acceptButton->setVisible(true); m_backButton->setVisible(true); m_acceptButton->setFocus(); m_processFrame->setVisible(false); // 隐藏进度条 // 当前安装结束后,不允许调出右键菜单 m_appsListView->setRightMenuShowStatus(false); // 安装结束不允许删除包 } void MultipleInstallPage::slotOutputAvailable(const QString &output) { m_installProcessInfoView->appendText(output.trimmed()); // 添加信息到窗口 // change to install if (!m_installButton->isVisible()) { m_infoControlButton->setVisible(true); // 如果有信息添加说明此时正在安装,进度条要显示出来 } } void MultipleInstallPage::slotProgressChanged(const int progress) { m_progressAnimation->setStartValue(m_installProgress->value()); // 设置动画开始的进度 m_progressAnimation->setEndValue(progress); // 设置进度条动画结束的进度 m_progressAnimation->start(); // 开始动画 // finished if (progress == 100) { slotOutputAvailable(QString()); QTimer::singleShot(m_progressAnimation->duration(), this, &MultipleInstallPage::slotWorkerFinshed); // 当前安装完成 } } void MultipleInstallPage::slotAutoScrollInstallList(int opIndex) { // 当前安装包的下标是合法的 if (opIndex > 1 && opIndex < m_debListModel->rowCount()) { QModelIndex currIndex = m_debListModel->index(opIndex - 1); m_appsListView->scrollTo(currIndex, QAbstractItemView::PositionAtTop); // 跳动到下标的位置 } else if (opIndex == -1) { // to top //下标不合法 QModelIndex currIndex = m_debListModel->index(0); m_appsListView->scrollTo(currIndex); // 跳动到顶部 } } void MultipleInstallPage::slotRequestRemoveItemClicked(const QModelIndex &index) { if (!m_debListModel->isWorkerPrepare()) return; // 当前未处于准备阶段,不允许删除 const int row = index.row(); // 要删除的包的下标转换 m_showDependsButton->setVisible(false); m_debListModel->removePackage(row); // 删除指定包 } void MultipleInstallPage::slotShowInfo() { m_appsListView->setFocusPolicy(Qt::NoFocus); // 详细信息出现后 设置appListView不接受焦点 m_upDown = false; // 未使用 m_contentLayout->setContentsMargins(20, 0, 20, 0); // 设置上下左右边距 m_appsListViewBgFrame->setVisible(false); // 隐藏applistView m_appsListView->setVisible(false); m_installProcessInfoView->setVisible(true); // 显示相关安装进度信息 auto contentsMargins = m_infoControlButton->contentsMargins(); contentsMargins.setBottom(5); m_infoControlButton->setContentsMargins(contentsMargins); } void MultipleInstallPage::slotHideInfo() { m_appsListView->setFocusPolicy(Qt::TabFocus); // 隐藏详细信息后,设置appListView的焦点策略 m_upDown = true; m_contentLayout->setContentsMargins(10, 0, 10, 0); // 设置边距 m_appsListViewBgFrame->setVisible(true); // 显示appListView m_appsListView->setVisible(true); m_installProcessInfoView->setVisible(false); // 隐藏安装过程信息 } void MultipleInstallPage::slotHiddenCancelButton() { // 安装开始后不允许调出右键菜单。 // 安装按钮点击后清除其焦点。解决授权框消失后标题栏菜单键被focus的问题 m_installButton->clearFocus(); m_appsListView->setRightMenuShowStatus(false); // 安装开始时,不允许调用右键菜单 m_backButton->setVisible(false); // 隐藏返回按钮 m_installButton->setVisible(false); // 隐藏安装按钮 m_showDependsButton->shrinkContent(); m_showDependsButton->setVisible(false); } void MultipleInstallPage::slotShowDependsInfo() { m_showDependsView->setVisible(true); m_appsListView->setFocusPolicy(Qt::NoFocus); // 详细信息出现后 设置appListView不接受焦点 m_contentLayout->setContentsMargins(20, 0, 20, 0); // 设置上下左右边距 m_appsListViewBgFrame->setVisible(false); // 隐藏applistView m_appsListView->setVisible(false); auto contentsMargins = m_showDependsButton->contentsMargins(); contentsMargins.setBottom(5); m_showDependsButton->setContentsMargins(contentsMargins); } void MultipleInstallPage::slotHideDependsInfo() { m_showDependsView->setVisible(false); m_appsListView->setFocusPolicy(Qt::TabFocus); // 隐藏详细信息后,设置appListView的焦点策略 m_contentLayout->setContentsMargins(10, 0, 10, 0); // 设置边距 m_appsListViewBgFrame->setVisible(true); // 显示appListView m_appsListView->setVisible(true); auto contentsMargins = m_showDependsButton->contentsMargins(); contentsMargins.setBottom(0); m_showDependsButton->setContentsMargins(contentsMargins); } void MultipleInstallPage::slotDependPackages(Pkg::DependsPair dependPackages, bool installWineDepends) { if (m_debListModel->rowCount() <= 1) { return; } // 依赖关系满足或者正在下载wine依赖,则不显示依赖关系 m_showDependsView->clearText(); m_showDependsButton->setVisible(false); if (installWineDepends) { return; } if (dependPackages.second.isEmpty()) { // depends ok or available, show package that will be remove after install QModelIndex index = m_appsListView->currentIndex(); const QStringList removePackages = index.data(DebListModel::PackageRemoveDependsRole).toStringList(); if (!removePackages.isEmpty()) { QString removeInfo = tr("Install %1 will remove: ").arg(index.data(DebListModel::PackageNameRole).toString()); removeInfo.append('\n'); removeInfo.append(removePackages.join('\n')); removeInfo.append('\n'); m_showDependsView->appendText(removeInfo); m_showDependsButton->setVisible(true); m_tipsLabel->setText(removeInfo.simplified()); } return; } m_showDependsButton->setVisible(true); if (dependPackages.first.size() > 0) { m_showDependsView->appendText(tr("Dependencies in the repository")); for (int i = 0; i < dependPackages.first.size(); i++) m_showDependsView->appendText(dependPackages.first.at(i).packageName + " " + dependPackages.first.at(i).version); m_showDependsView->appendText(tr("")); } if (dependPackages.second.size() > 0) { m_showDependsView->appendText(tr("Missing dependencies")); for (int i = 0; i < dependPackages.second.size(); i++) m_showDependsView->appendText(dependPackages.second.at(i).packageName + " " + dependPackages.second.at(i).version); } m_showDependsView->setTextCursor(QTextCursor::Start); } void MultipleInstallPage::setEnableButton(bool bEnable) { m_installButton->setEnabled(bEnable); // 设置按钮是否可用 m_installButton->setFocus(); if (bEnable) { // 按钮可用时刷新一次model 保证所有的包都能显示出来 m_appsListView->reset(); } } void MultipleInstallPage::afterGetAutherFalse() { m_processFrame->setVisible(false); // 隐藏进度条 m_infoControlButton->setVisible(false); // 隐藏infoControlButton m_installButton->setVisible(true); // 显示安装按钮 m_installButton->setFocus(); m_infoControlButton->shrink(); // 收缩安装信息,下次出现时是收缩的 // 授权取消或授权失败后,允许右键菜单弹出 m_appsListView->setRightMenuShowStatus(true); } void MultipleInstallPage::refreshModel() { m_appsListView->reset(); } void MultipleInstallPage::DealDependResult(int authStatus, QString dependName) { switch (authStatus) { case DebListModel::AuthBefore: // 授权之前 m_appsListView->setEnabled(false); // listView不可用 m_installButton->setVisible(true); // 显示安装按钮但是不可用 m_installButton->setEnabled(false); m_dSpinner->stop(); // 安装动画不可见 m_dSpinner->hide(); m_tipsLabel->setVisible(false); // 隐藏提示 break; case DebListModel::CancelAuth: // 授权被取消 m_appsListView->setEnabled(true); // appListView可用 m_installButton->setVisible(true); // 安装按钮可见并可用 m_installButton->setEnabled(true); m_installButton->setFocus(); break; case DebListModel::AuthConfirm: // 确认授权 m_appsListView->setEnabled(false); // listView不可用 m_tipsLabel->setText(tr("Installing dependencies: %1").arg(dependName)); // 设置提示语 m_tipsLabel->setVisible(true); // 提示可见 m_dSpinner->show(); // 显示动画并开始动画 m_dSpinner->start(); m_installButton->setVisible(false); // 隐藏安装按钮 break; case DebListModel::AuthDependsSuccess: // 依赖安装成功 case DebListModel::AuthDependsErr: // 依赖安装错误 case DebListModel::AnalysisErr: // 解析错误 case DebListModel::VerifyDependsErr: // 依赖验签失败 m_appsListView->setEnabled(true); // listView可以操作 m_installButton->setVisible(true); // 显示安装按钮 m_installButton->setEnabled(true); // 安装按钮可用 m_installButton->setFocus(); m_dSpinner->stop(); // 隐藏并停止安装动画 m_dSpinner->hide(); m_tipsLabel->setVisible(false); // 隐藏依赖安装提示 break; default: break; } } deepin-deb-installer-6.5.5/src/deb-installer/view/pages/multipleinstallpage.h000066400000000000000000000136071474340456100273520ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef MULTIPLEINSTALLPAGE_H #define MULTIPLEINSTALLPAGE_H #include "view/widgets/infocontrolbutton.h" #include "view/widgets/droundbgframe.h" #include "view/widgets/installprocessinfoview.h" #include "manager/packagesmanager.h" #include #include #include #include #include #include class AbstractPackageListModel; class PackagesListView; class DebListModel; class WorkerProgress; class MultipleInstallPage : public QWidget { Q_OBJECT public: explicit MultipleInstallPage(AbstractPackageListModel *model, QWidget *parent = nullptr); /** * @brief setEnableButton 根据授权框的弹出/取消,设置安装按钮禁用/请 * @param bEnable 按钮启用与禁用的标识 */ void setEnableButton(bool bEnable); /** * @brief afterGetAutherFalse 授权结束或取消后处理界面情况 */ void afterGetAutherFalse(); /** * @brief refreshModel 刷新model */ void refreshModel(); /** * @brief DealDependResult 处理依赖处理授权的结果 * @param iAuthRes 依赖处理的结果 * @param dependName 依赖的名称 */ void DealDependResult(int iAuthRes, QString dependName); signals: /** * @brief back 返回到fileChooseWidget界面的信号 */ void signalBackToFileChooseWidget() const; /** * @brief requestRemovePackage 删除包的信号 * @param index 要删除的包的下标 */ void signalRequestRemovePackage(const int index) const; private slots: /** * @brief onWorkerFinshed 批量安装结束,调整页面展示效果 */ void slotWorkerFinshed(); /** * @brief onOutputAvailable 批量安装过程中添加安装信息 * @param output 安装过程信息 */ void slotOutputAvailable(const QString &output); /** * @brief onProgressChanged 批量安装进度变化 * @param progress 已经增加的进度 */ void slotProgressChanged(const int progress); /** * @brief onRequestRemoveItemClicked 在批量安装的包的时候删除某个包 * @param index 要删除的包的下标 */ void slotRequestRemoveItemClicked(const QModelIndex &index); /** * @brief showInfo 处理展示详细信息的界面展示 */ void slotShowInfo(); /** * @brief hideInfo 处理隐藏详细信息的界面展示 */ void slotHideInfo(); /** * @brief onAutoScrollInstallList 自动滚动到当前正在安装的包 * @param opIndex 当前正在安装的包的位置 */ void slotAutoScrollInstallList(int opIndex); /** * @brief hiddenCancelButton 安装开始后处理界面展示情况 */ void slotHiddenCancelButton(); /** * @brief slotShowDependsInfo 显示依赖关系的视图 */ void slotShowDependsInfo(); /** * @brief slotHideDependsInfo 隐藏依赖关系的视图 */ void slotHideDependsInfo(); /** * @brief slotDependPackages 缺失依赖显示 * @param dependPackages 依赖包存储 * @param installWineDepends 是否进入wine依赖配置 */ void slotDependPackages(Pkg::DependsPair dependPackages, bool installWineDepends); private: /** * @brief initUI 初始化界面布局 */ void initUI(); /** * @brief initConnections 初始化链接 */ void initConnections(); /** * @brief initContentLayout 初始化中心layout */ void initContentLayout(); /** * @brief initPkgDependsInfoView 初始化依赖信息显示布局 */ void initPkgDependsInfoView(); /** * @brief initTabOrder 初始化切换顺序 */ void initTabOrder(); /** * @brief setButtonFocusPolicy 设置按钮的焦点策略 */ void setButtonFocusPolicy(); /** * @brief setButtonAutoDefault 设置按钮可以被enter和Return键触发 */ void setButtonAutoDefault(); /** * @brief initControlAccessibleName 给控件添加AccessibleName */ void initControlAccessibleName(); private: DRoundBgFrame *m_appsListViewBgFrame = nullptr; // listView的背景frame 修改listView的背景样式 AbstractPackageListModel *m_debListModel = nullptr; // listModel类 QWidget *m_contentFrame = nullptr; // applistview infoControlButton的frame QWidget *m_processFrame = nullptr; // process 的frame QVBoxLayout *m_contentLayout = nullptr; // applistview infoControlButton的布局 QVBoxLayout *m_centralLayout = nullptr; // 主布局 PackagesListView *m_appsListView = nullptr; // listView InstallProcessInfoView *m_installProcessInfoView = nullptr; // 安装进程信息显示窗口 InstallProcessInfoView *m_showDependsView = nullptr; // 依赖关系显示 InfoControlButton *m_showDependsButton = nullptr; // 显示依赖关系按钮 WorkerProgress *m_installProgress = nullptr; // 进度显示 QPropertyAnimation *m_progressAnimation = nullptr; // 进度动画 InfoControlButton *m_infoControlButton = nullptr; // 展开收缩控制按钮 DPushButton *m_installButton = nullptr; // 安装按钮 DPushButton *m_backButton = nullptr; // 返回文件选择窗口的按钮 DPushButton *m_acceptButton = nullptr; // 确认按钮 // fix bug:33999 change DebInfoLabel to DCommandLinkButton for Activity color DCommandLinkButton *m_tipsLabel = nullptr; // 依赖安装提示按钮 DSpinner *m_dSpinner = nullptr; // 依赖安装动画 int m_index = -1; // 当前添加的index bool m_upDown = true; // 展开收缩的标识 }; #endif // MULTIPLEINSTALLPAGE_H deepin-deb-installer-6.5.5/src/deb-installer/view/pages/packageselectview.cpp000066400000000000000000000074341474340456100273150ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "packageselectview.h" #include "view/widgets/packageselectitem.h" #include #include #include #include #include #include // 选中框最低高度(低字号下可能使得选中框显示不全) static const int s_MinimumBoxHeight = 32; PackageSelectView::PackageSelectView(QWidget *parent) : QWidget(parent) , packageListWidget(new QListWidget) , selectAllBox(new QCheckBox(tr("Select all"))) , installButton(new QPushButton(tr("Install", "button"))) { this->setFocusPolicy(Qt::NoFocus); selectAllBox->setFocusPolicy(Qt::StrongFocus); installButton->setFocusPolicy(Qt::StrongFocus); installButton->setDefault(true); selectAllBox->setMinimumHeight(s_MinimumBoxHeight); // 全选+安装 auto bottomLayout = new QHBoxLayout; bottomLayout->addWidget(selectAllBox); bottomLayout->addWidget(installButton); bottomLayout->addWidget(new QWidget); // 占位用 bottomLayout->setContentsMargins(8, 0, 0, 20); bottomLayout->setSpacing(0); installButton->setFixedWidth(120); // 设置列表控件 packageListWidget->setFrameStyle(QFrame::NoFrame); packageListWidget->setFixedSize(460, 186); // 最终组装 auto allLayout = new QVBoxLayout; allLayout->addWidget(packageListWidget, 0, Qt::AlignTop); allLayout->addStretch(); allLayout->addLayout(bottomLayout); setLayout(allLayout); packageListWidget->setSelectionMode(QAbstractItemView::NoSelection); connect(selectAllBox, &QCheckBox::clicked, this, &PackageSelectView::selectAll); connect(installButton, &QPushButton::clicked, this, &PackageSelectView::onInstallClicked); } void PackageSelectView::onInstallClicked() { QList selectIndexes; for (int i = 0; i != items.size(); ++i) { if (items[i]->isEnabled() && items[i]->isChecked()) { selectIndexes.push_back(i); } } emit packageInstallConfim(selectIndexes); } void PackageSelectView::showEvent(QShowEvent *e) { QWidget::showEvent(e); // 首次展示焦点在全选(默认安装是被禁用的) selectAllBox->setFocus(); } void PackageSelectView::selectAll(bool select) { for (auto &item : items) { if (item->isEnabled()) { item->setChecked(select); } } } void PackageSelectView::checkSelect() { bool isAllChecked = true; bool haveChecked = false; for (auto &item : items) { if (item->isEnabled() && !item->isChecked()) { isAllChecked = false; } if (item->isEnabled() && item->isChecked()) { haveChecked = true; } } selectAllBox->setChecked(isAllChecked); installButton->setEnabled(haveChecked || haveMustInstallDeb); } void PackageSelectView::clearDebList() { packageListWidget->clear(); items.clear(); } void PackageSelectView::setHaveMustInstallDeb(bool have) { haveMustInstallDeb = have; if (haveMustInstallDeb) { installButton->setEnabled(true); } else { checkSelect(); } } void PackageSelectView::flushDebList(const QList &selectInfos) { clearDebList(); // 刷新之前做一下清理 for (auto &eachInfo : selectInfos) { auto selectItem = new PackageSelectItem; selectItem->setDebIR(eachInfo); auto item = new QListWidgetItem(packageListWidget); item->setSizeHint(QSize(48, 48)); packageListWidget->addItem(item); packageListWidget->setItemWidget(item, selectItem); items.push_back(selectItem); connect(selectItem, &PackageSelectItem::checkStatusChanged, this, &PackageSelectView::checkSelect); } checkSelect(); } deepin-deb-installer-6.5.5/src/deb-installer/view/pages/packageselectview.h000066400000000000000000000017771474340456100267660ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef PACKAGESELECTVIEW_H #define PACKAGESELECTVIEW_H #include "model/packageselectmodel.h" #include class QListWidget; class QCheckBox; class QPushButton; class PackageSelectItem; class PackageSelectView : public QWidget { Q_OBJECT public: explicit PackageSelectView(QWidget *parent = nullptr); void flushDebList(const QList &selectInfos); void checkSelect(); void selectAll(bool select); void setHaveMustInstallDeb(bool have); signals: void packageInstallConfim(const QList &selectIndexes); public slots: void onInstallClicked(); protected: void showEvent(QShowEvent *e) override; private: void clearDebList(); QListWidget *packageListWidget; QCheckBox *selectAllBox; QPushButton *installButton; QList items; bool haveMustInstallDeb = false; }; #endif // PACKAGESELECTVIEW_H deepin-deb-installer-6.5.5/src/deb-installer/view/pages/setting_translation.cpp000066400000000000000000000006111474340456100277100ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include void GenerateSettingTranslate() { auto basic = QObject::tr("Basic"); // 基础设置 auto text = QObject::tr("Check digital signatures if the developer mode is enabled"); // 弹窗提示 } deepin-deb-installer-6.5.5/src/deb-installer/view/pages/settingdialog.cpp000066400000000000000000000120351474340456100264550ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022-2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "settingdialog.h" #include "utils/hierarchicalverify.h" #include #include #include #include #include #include #include #include #include #include #include // 富文本链接模板 color: #0082FA const char WEBSITE_LINK_TEMPLATE[] = "%4"; /** @class ProceedLabel @brief 分级管控安全等级设置引导提示控件 */ class ProceedLabel : public DLabel { public: explicit ProceedLabel(); ~ProceedLabel() override = default; protected: bool event(QEvent *e) override; void updateText(); }; ProceedLabel::ProceedLabel() { setObjectName("OptionProceedLabel"); setAccessibleName("OptionProceedLabel"); setWordWrap(true); setContextMenuPolicy(Qt::NoContextMenu); setOpenExternalLinks(false); updateText(); // 点击链接跳转安全中 > 应用安全 QObject::connect( this, &DLabel::linkActivated, [](const QString &) { HierarchicalVerify::instance()->proceedDefenderSafetyPage(); }); } /** @reimp */ bool ProceedLabel::event(QEvent *e) { switch (e->type()) { case QEvent::PaletteChange: updateText(); break; default: break; } return DLabel::event(e); } /** @brief 更新提示的文件的颜色,Dark模式下,显示文字可能偏暗,如有必要,可通过如下代码调整亮度凸显效果。 @code if (DGuiApplicationHelper::DarkType == DGuiApplicationHelper::instance()->themeType()) { color = color.lighter(150 / color.lightness() * 100); } @endcode */ void ProceedLabel::updateText() { QString proceedNotify = QObject::tr("To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can " "be installed."); QString tmp = QObject::tr("Security Center > Tools > App Security"); QColor color = palette().color(QPalette::Highlight); int pxSize = font().pixelSize(); proceedNotify = proceedNotify.replace(tmp, QString(WEBSITE_LINK_TEMPLATE).arg("localtest.com").arg(pxSize).arg(color.name()).arg(tmp)); setText(proceedNotify); } SettingDialog::SettingDialog(QWidget *parent) : DSettingsDialog(parent) { init(); } SettingDialog::~SettingDialog() { delete m_setting; } void SettingDialog::init() { if (widgetFactory()) { widgetFactory()->registerWidget("proceedLabel", &SettingDialog::createProceedDefenderSafetyLabel); } m_setting = DSettings::fromJsonFile(":/data/deepin-deb-installer.json"); setFocus(Qt::PopupFocusReason); const QString confDir = DStandardPaths::writableLocation(QStandardPaths::AppConfigLocation); // 换了枚举值,待验证 const QString confPath = confDir + QDir::separator() + "deepin-deb-installer.conf"; QDir dir; bool isexist = dir.exists(confDir); if (!isexist) dir.mkpath(confDir); // 创建设置项存储后端 auto backend = new QSettingBackend(confPath, this); m_setting->setBackend(backend); updateSettings(m_setting); QString key = "basic.develop_digital_verify."; QString bValue = m_setting->option(key)->value().toString(); QSettings setting(confPath, QSettings::IniFormat); setting.setValue(key + "/" + "value", bValue); setting.sync(); connect(m_setting, &DSettings::valueChanged, this, [=] { m_isDigital = m_setting->value("basic.develop_digital_verify.").toBool(); }); m_isDigital = m_setting->value("basic.develop_digital_verify.").toBool(); // 分级管控不同状态下切换显示信息,初始化后绑定信号 switchHierarchicalNotify(HierarchicalVerify::instance()->isValid()); connect(HierarchicalVerify::instance(), &HierarchicalVerify::validChanged, this, &SettingDialog::switchHierarchicalNotify); } bool SettingDialog::isDigitalVerified() { return m_setting->value("basic.develop_digital_verify.").toBool(); } /** @brief 创建前往安全中心的跳转链接,弹出分级管控安全等级设置引导提示窗口 @return 创建的跳转提示控件 */ QWidget *SettingDialog::createProceedDefenderSafetyLabel(QObject *obj) { Q_UNUSED(obj) ProceedLabel *label = new ProceedLabel; return label; } /** @brief 处理显示事件,此处用于展示前刷新分级管控接口状态 */ void SettingDialog::showEvent(QShowEvent *e) { // 刷新分级管控接口状态 (void)HierarchicalVerify::instance()->isValid(); DSettingsDialog::showEvent(e); } /** @brief 跟进 @a valid 当前是否处于分级管控状态切换显示界面 */ void SettingDialog::switchHierarchicalNotify(bool valid) { setGroupVisible("basic.develop_digital_verify", !valid); setResetVisible(!valid); setGroupVisible("basic.hierarachical_verify", valid); } deepin-deb-installer-6.5.5/src/deb-installer/view/pages/settingdialog.h000066400000000000000000000014651474340456100261270ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef SETTINGDIALOG_H #define SETTINGDIALOG_H #include #include #include #include DCORE_USE_NAMESPACE DWIDGET_USE_NAMESPACE class SettingDialog : public DSettingsDialog { Q_OBJECT public: explicit SettingDialog(QWidget *parent = nullptr); ~SettingDialog() override; void init(); bool isDigitalVerified(); static QWidget *createProceedDefenderSafetyLabel(QObject *obj); protected: void showEvent(QShowEvent *e) override; Q_SIGNAL void paletteChanged(); Q_SLOT void switchHierarchicalNotify(bool valid); private: DSettings *m_setting; bool m_isDigital = false; }; #endif // SETTINGDIALOG_H deepin-deb-installer-6.5.5/src/deb-installer/view/pages/singleinstallpage.cpp000066400000000000000000001506301474340456100273310ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "singleinstallpage.h" #include "model/deblistmodel.h" #include "view/widgets/workerprogress.h" #include "utils/utils.h" #include "compatible/compatible_backend.h" #include #include #include #include #include #include #include #include #include #include #include #include using QApt::DebFile; using QApt::Transaction; DWIDGET_USE_NAMESPACE SingleInstallPage::SingleInstallPage(AbstractPackageListModel *model, QWidget *parent) : QWidget(parent) , m_operate(Install) , m_workerStarted(false) , m_packagesModel(model) , m_contentFrame(new QWidget(this)) , m_itemInfoFrame(new QWidget(this)) , m_progressFrame(new QWidget(this)) , m_packageIcon(new DLabel(this)) , m_packageName(new DebInfoLabel(this)) , m_packageVersion(new DebInfoLabel(this)) , m_packageDescription(new DLabel(this)) , m_tipsLabel(new DebInfoLabel(this)) , m_progress(new WorkerProgress(this)) , m_installProcessView(new InstallProcessInfoView(440, 186, this)) , m_showDependsView(new InstallProcessInfoView(440, 170, this)) , m_infoControlButton( new InfoControlButton(QApplication::translate("SingleInstallPage_Install", "Show details"), tr("Collapse", "button"))) , m_showDependsButton(new InfoControlButton(QApplication::translate("SingleInstallPage_Install", "Show dependencies"), tr("Collapse", "button"))) , m_installButton(new DPushButton(this)) , m_uninstallButton(new DPushButton(this)) , m_reinstallButton(new DPushButton(this)) , m_confirmButton(new DPushButton(this)) , m_backButton(new DPushButton(this)) , m_doneButton(new DPushButton(this)) , m_contentLayout(new QVBoxLayout(m_contentFrame)) , m_centralLayout(new QVBoxLayout()) , m_pDSpinner(new DSpinner(this)) , m_pLoadingLabel(new DCommandLinkButton("", this)) { // check if compatible mode before init const QModelIndex index = m_packagesModel->index(0); const int dependsStat = index.data(DebListModel::PackageDependsStatusRole).toInt(); if (Pkg::CompatibleNotInstalled == dependsStat || Pkg::CompatibleIntalled == dependsStat) { m_inCompatibleMode = true; const QString rootfsName = index.data(AbstractPackageListModel::CompatibleRootfsRole).toString(); m_rootfsOsName = CompBackend::instance()->osName(rootfsName); } initUI(); // 初始化界面 initControlAccessibleName(); // 自动化测试 } void SingleInstallPage::initUI() { QFontInfo fontinfo = this->fontInfo(); // 获取字体信息 int fontsize = fontinfo.pixelSize(); // 获得字体大小 initContentLayout(); // 初始化主布局 initPkgInfoView(fontsize); // 初始化包信息布局 initPkgDependsInfoView(); // 初始化依赖显示布局 initPkgInstallProcessView(fontsize); // 初始化包安装过程进度显示布局 initConnections(); // 链接信号和槽 const QModelIndex index = m_packagesModel->index(0); Pkg::PackageType type = index.data(AbstractPackageListModel::PackageTypeRole).value(); QIcon icon = Utils::packageIcon(type); m_packageIcon->setPixmap(icon.pixmap(m_packageIcon->size())); m_itemInfoFrame->setVisible(true); m_upDown = true; // 当前是收缩的 // update show info, must call before refresh depends showPackageInfo(); connect(m_packagesModel, &AbstractPackageListModel::dataChanged, this, [this]() { showPackageInfo(); }); } void SingleInstallPage::initControlAccessibleName() { // 获取的包名 m_packageName->setObjectName("SinglePagePackageName"); m_packageName->setAccessibleName("SinglePagePackageName"); // 包的图标 m_packageIcon->setObjectName("SinglePagePackageIcon"); m_packageIcon->setAccessibleName("SinglePagePackageIcon"); // 获取的包的版本 m_packageVersion->setObjectName("SinglePagePackageVersion"); m_packageVersion->setAccessibleName("SinglePagePackageVersion"); // 获取的包的描述 m_packageDescription->setObjectName("SinglePagePackageDescription"); m_packageDescription->setAccessibleName("SinglePagePackageDescription"); // 获取的包的提示信息 m_tipsLabel->setObjectName("SinglePagePackageStatusTips"); m_tipsLabel->setAccessibleName("SinglePagePackageStatusTips"); // 依赖安装的提示信息 m_pLoadingLabel->setObjectName("SinglePagePackageLoadingTips"); m_pLoadingLabel->setAccessibleName("SinglePagePackageLoadingTips"); } void SingleInstallPage::initContentLayout() { m_contentLayout->setSpacing(0); // 设置控件边距 m_contentLayout->setContentsMargins(20, 10, 20, 20); // 设置四周边距 m_contentFrame->setLayout(m_contentLayout); // 设置布局 m_centralLayout->addWidget(m_contentFrame); m_centralLayout->setSpacing(0); m_centralLayout->setContentsMargins(0, 0, 0, 0); // 设置中心布局 this->setLayout(m_centralLayout); // #define SHOWBGCOLOR #ifdef SHOWBGCOLOR m_contentFrame->setStyleSheet("QFrame{background: cyan}"); #endif } void SingleInstallPage::initInstallWineLoadingLayout() { QVBoxLayout *m_pLoadingLayout = new QVBoxLayout(); // 依赖安装的布局 m_pDSpinner->setFixedSize(24, 24); // 设置动画的大小 m_pDSpinner->setVisible(false); // 隐藏等待动画 m_pDSpinner->start(); m_pLoadingLayout->addWidget(m_pDSpinner); // 添加到布局中 m_pLoadingLayout->setAlignment(m_pDSpinner, Qt::AlignHCenter); // 居中显示 // fix bug:33999 The spinner and The Label are too close together add a distence of 4px // 使用 margin 而不是 addSpacing ,在设置setVisible(false)时不再占位 auto spinnerMargin = m_pDSpinner->contentsMargins(); spinnerMargin.setBottom(5); m_pDSpinner->setContentsMargins(spinnerMargin); m_pLoadingLabel->setVisible(false); // 隐藏依赖安装提示信息 m_pLoadingLabel->setFocusPolicy(Qt::NoFocus); // 修复会有焦点在依赖加载提示上的问题 m_pLoadingLayout->setEnabled(true); // fix bug:33999 Make the DCommandLinkbutton looks like a Lable O_o m_pLoadingLayout->addWidget(m_pLoadingLabel); // 添加提示信息到布局中 m_pLoadingLayout->setAlignment(m_pLoadingLabel, Qt::AlignHCenter); // fix bug:33999 keep the label in the middle m_pLoadingLabel->setMinimumHeight(24); // 设置高度 QString fontFamily = Utils::loadFontFamilyByType(Utils::SourceHanSansNormal); Utils::bindFontBySizeAndWeight(m_pLoadingLabel, fontFamily, 12, QFont::ExtraLight); m_contentLayout->addLayout(m_pLoadingLayout); // 添加到主布局中 } void SingleInstallPage::initCompatibleSelectLayout() { if (!m_inCompatibleMode) { return; } m_compatibleLabel = new DLabel(this); m_compatibleLabel->setObjectName("SinglePageCompatibleLabel"); m_compatibleLabel->setText(tr("Select a compatibility mode:")); m_compatibleBox = new DComboBox(this); m_compatibleBox->setObjectName("SinglePageCompatibleBox"); m_compatibleBox->setFixedWidth(226); auto rootfsList = CompBackend::instance()->rootfsList(); for (const auto &rootfs : rootfsList) { m_compatibleBox->addItem(rootfs->osName, rootfs->name); } if (!rootfsList.isEmpty()) { m_compatibleBox->setCurrentIndex(0); } QString normalFontFamily = Utils::loadFontFamilyByType(Utils::SourceHanSansNormal); Utils::bindFontBySizeAndWeight(m_compatibleLabel, normalFontFamily, 12, QFont::Normal); Utils::bindFontBySizeAndWeight(m_compatibleBox, normalFontFamily, 14, QFont::Normal); m_compatibleLayout = new QHBoxLayout; m_compatibleLayout->setContentsMargins(0, 0, 0, 0); m_compatibleLayout->setSpacing(10); m_compatibleLayout->addWidget(m_compatibleLabel); m_compatibleLayout->addWidget(m_compatibleBox); m_compatibleLayout->setAlignment(Qt::AlignHCenter); m_contentLayout->addLayout(m_compatibleLayout); } void SingleInstallPage::initPkgInfoView(int fontinfosize) { // 根据系统字体的大小设置显示字体的大小 int fontinfosizetemp = 0; int fontinfosizetemp_version = 0; if (fontinfosize > 18) { // 字体大于18说明是大字体,使用较大的字体显示 fontinfosizetemp = 23; fontinfosizetemp_version = 25; } else { fontinfosizetemp = 20; // 使用小字体显示 fontinfosizetemp_version = 20; } m_packageIcon->setText("icon"); // 图标 m_packageIcon->setFixedSize(64, 64); // 设置图标的大小 DebInfoLabel *packageName = new DebInfoLabel(this); // 包名的描述性文字 packageName->setCustomQPalette(QPalette::WindowText); // 设置包名的字体颜色 packageName->setMinimumHeight(fontinfosizetemp); // 根据字体大小设置高度 packageName->setText(tr("Name: ")); // 设置具体的提示 packageName->setAlignment(Qt::AlignVCenter | Qt::AlignLeft); // 垂直居中,水平靠左显示 packageName->setObjectName("PackageNameTitle"); // 添加ObjectName // 设置包名的样式,但是后续再设置显示的内容 m_packageName->setCustomQPalette(QPalette::WindowText); // 设置字体样式 m_packageName->setMinimumHeight(fontinfosizetemp); // 根据字体大小设置高度 m_packageName->setAlignment(Qt::AlignVCenter | Qt::AlignLeft); // 垂直靠上,水平靠左 DebInfoLabel *packageVersion = new DebInfoLabel(this); // 包版本的描述性文字 packageVersion->setCustomQPalette(QPalette::WindowText); // 设置字体颜色 packageVersion->setMinimumHeight(fontinfosizetemp_version); // 根据字体大小设置高度 packageVersion->setText(tr("Version: ")); // 添加具体的提示文字 packageVersion->setAlignment(Qt::AlignVCenter | Qt::AlignLeft); // 垂直居中,水平靠左 packageVersion->setObjectName("PackageVersionTitle"); // 添加ObjectName m_packageVersion->setCustomQPalette(QPalette::WindowText); // 设置字体样式 m_packageVersion->setMinimumHeight(fontinfosizetemp_version); // 根据字体大小设置高度 m_packageVersion->setAlignment(Qt::AlignVCenter | Qt::AlignLeft); // 垂直居中,水平靠左 // 此处可优化 QVBoxLayout *packageNameVLayout = new QVBoxLayout(); // 包名提示的布局 packageNameVLayout->setSpacing(0); // 设置控件间距 packageNameVLayout->setContentsMargins(0, 0, 0, 0); // 设置四周边距 packageNameVLayout->addSpacing(4); packageNameVLayout->addWidget(packageName); // 添加控件 QVBoxLayout *pkgNameValueLayout = new QVBoxLayout(); // 实际获取到包名 pkgNameValueLayout->setSpacing(0); // 设置控件间距 pkgNameValueLayout->setContentsMargins(0, 0, 0, 0); pkgNameValueLayout->addSpacing(4); // 增加空间 pkgNameValueLayout->addWidget(m_packageName); // 添加控件 QHBoxLayout *pkgNameLayout = new QHBoxLayout(); // 包名的控件布局 pkgNameLayout->setSpacing(0); pkgNameLayout->setContentsMargins(0, 0, 0, 0); // 设置边距 pkgNameLayout->addSpacing(2); pkgNameLayout->addLayout(packageNameVLayout); // 添加包名提示的label pkgNameLayout->addLayout(pkgNameValueLayout); // 添加实际获取到的包名的label pkgNameLayout->addStretch(); // 添加弹簧 QHBoxLayout *pkgVersionLayout = new QHBoxLayout(); // 包版本的控件布局 pkgVersionLayout->setSpacing(0); pkgVersionLayout->setContentsMargins(0, 0, 0, 0); // 设置四周边距 pkgVersionLayout->addSpacing(2); pkgVersionLayout->addWidget(packageVersion); // 添加包版本提示的label pkgVersionLayout->addWidget(m_packageVersion); // 添加包实际版本的label pkgVersionLayout->addStretch(); QVBoxLayout *itemInfoLayout = new QVBoxLayout(); // 包名和包版本的布局 itemInfoLayout->setSpacing(0); itemInfoLayout->setContentsMargins(0, 0, 0, 0); // 设置四周边距 itemInfoLayout->addStretch(); itemInfoLayout->addLayout(pkgNameLayout); // 添加包名布局 itemInfoLayout->addSpacing(6); // 调整UI效果,上下文本框间距6px itemInfoLayout->addLayout(pkgVersionLayout); // 添加包版本布局 itemInfoLayout->addStretch(); QHBoxLayout *itemBlockLayout = new QHBoxLayout(); // 单包安装上半部分布局(包名,包版本和图标) itemBlockLayout->setSpacing(0); itemBlockLayout->setContentsMargins(0, 0, 0, 0); itemBlockLayout->addSpacing(112 - 20 - 10); // 与标题栏保持一定的间距 itemBlockLayout->addWidget(m_packageIcon); // 添加图标 itemBlockLayout->addLayout(itemInfoLayout); // 添加包名和版本 QWidget *itemInfoWidget = new QWidget(this); itemInfoWidget->setLayout(itemBlockLayout); // 保存成一个widget QHBoxLayout *packageDescLayout = new QHBoxLayout(); // 包描述的 布局 packageDescLayout->addStretch(); packageDescLayout->addWidget(m_packageDescription); // 添加包描述的Label packageDescLayout->addStretch(); packageDescLayout->setSpacing(0); packageDescLayout->setContentsMargins(0, 0, 0, 0); QVBoxLayout *itemLayout = new QVBoxLayout(); // 整合包信息的布局 itemLayout->addSpacing(30); itemLayout->addWidget(itemInfoWidget); // 添加包的信息 itemLayout->addSpacing(20); itemLayout->addLayout(packageDescLayout); // 添加包的描述 itemLayout->setContentsMargins(0, 0, 0, 18); // 设置和下方的边距 itemLayout->setSpacing(0); QString normalFontFamily = Utils::loadFontFamilyByType(Utils::SourceHanSansNormal); QString mediumFontFamily = Utils::loadFontFamilyByType(Utils::SourceHanSansMedium); Utils::bindFontBySizeAndWeight(packageVersion, mediumFontFamily, 14, QFont::DemiBold); // 设置版本提示label的字体大小和样式 Utils::bindFontBySizeAndWeight(packageName, mediumFontFamily, 14, QFont::DemiBold); // 设置包名提示Label的字体大小和样式 Utils::bindFontBySizeAndWeight(m_packageName, normalFontFamily, 14, QFont::ExtraLight); // 设置实际包名label的字体大小和样式 Utils::bindFontBySizeAndWeight( m_packageVersion, normalFontFamily, 14, QFont::ExtraLight); // 设置实际版本Label的字体大小和样式 m_itemInfoFrame->setLayout(itemLayout); m_itemInfoFrame->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); m_itemInfoFrame->setVisible(false); m_contentLayout->addWidget(m_itemInfoFrame); } void SingleInstallPage::initTabOrder() { // 调整tab切换焦点的顺序,第一个焦点是infoControlButton中的DCommandLinkButton QWidget::setTabOrder(m_infoControlButton->controlButton(), m_installButton); // 当前包首次安装 QWidget::setTabOrder(m_infoControlButton->controlButton(), m_backButton); // 安装完成或安装失败 QWidget::setTabOrder(m_backButton, m_doneButton); // 安装完成场景 QWidget::setTabOrder(m_backButton, m_confirmButton); // 不能安装场景 QWidget::setTabOrder(m_infoControlButton->controlButton(), m_uninstallButton); // 当前场景为重新安装 QWidget::setTabOrder(m_uninstallButton, m_reinstallButton); // 重新安装场景 } void SingleInstallPage::initButtonFocusPolicy() { this->setFocusPolicy(Qt::NoFocus); // 主界面不接受焦点 auto focus = Qt::TabFocus; // 其余控件焦点为tabFocus m_installButton->setFocusPolicy(focus); m_uninstallButton->setFocusPolicy(focus); m_reinstallButton->setFocusPolicy(focus); m_confirmButton->setFocusPolicy(focus); m_backButton->setFocusPolicy(focus); m_doneButton->setFocusPolicy(focus); m_infoControlButton->controlButton()->setFocusPolicy(focus); } void SingleInstallPage::initButtonAutoDefault() { m_installButton->setAutoDefault(true); m_uninstallButton->setAutoDefault(true); m_reinstallButton->setAutoDefault(true); m_confirmButton->setAutoDefault(true); m_backButton->setAutoDefault(true); m_doneButton->setAutoDefault(true); } void SingleInstallPage::initPkgInstallProcessView(int fontinfosize) { int fontinfosizetemp = 0; // 根据当前字体的大小设置按钮的字体大小 if (fontinfosize > 16) { fontinfosizetemp = 21; } else { fontinfosizetemp = 18; } // 添加Accessible Name m_infoControlButton->setObjectName("InfoControlButton"); m_infoControlButton->setAccessibleName("InfoControlButton"); m_installProcessView->setObjectName("WorkerInformation"); m_installProcessView->setAccessibleName("WorkerInformation"); m_packageDescription->setObjectName("PackageDescription"); m_packageDescription->setAccessibleName("PackageDescription"); m_tipsLabel->setMinimumHeight(fontinfosizetemp); // 设置提示label的高度 m_tipsLabel->setAlignment(Qt::AlignHCenter | Qt::AlignTop); // 提示居中显示 m_tipsLabel->setElideMode(Qt::ElideRight); m_progressFrame->setObjectName("progressFrame"); m_progressFrame->setAccessibleName("progressFrame"); m_progressFrame->setVisible(false); // 默认隐藏进度条view m_infoControlButton->setVisible(false); // infoControlButton 默认隐藏 m_installProcessView->setVisible(false); // 默认隐藏安装进程信息 m_installProcessView->setAcceptDrops(false); // 不接受拖入的数据 m_installProcessView->setMinimumHeight(200); // 设置高度 m_installProcessView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); // 安装按钮 m_installButton->setText(tr("Install", "button")); m_installButton->setVisible(false); // 卸载按钮 m_uninstallButton->setText(tr("Remove", "button")); m_uninstallButton->setVisible(false); // 重新安装按钮 m_reinstallButton->setText(tr("Reinstall")); m_reinstallButton->setVisible(false); // 确定按钮 m_confirmButton->setText(tr("OK", "button")); m_confirmButton->setVisible(false); // 返回按钮 m_backButton->setText(tr("Back", "button")); m_backButton->setVisible(false); // 完成按钮 m_doneButton->setText(tr("Done", "button")); m_doneButton->setVisible(false); m_packageDescription->setWordWrap(true); // 允许内容自动换行 // 设置各个按钮的大小 m_installButton->setMinimumWidth(120); m_uninstallButton->setMinimumWidth(120); m_reinstallButton->setMinimumWidth(120); m_confirmButton->setMinimumWidth(120); m_backButton->setMinimumWidth(120); m_doneButton->setMinimumWidth(120); // 启用焦点切换。 initButtonFocusPolicy(); // 设置按钮回车触发 initButtonAutoDefault(); // 设置描述信息的size 与位置 m_packageDescription->setMinimumHeight(60); m_packageDescription->setMinimumWidth(270); m_packageDescription->setAlignment(Qt::AlignLeft | Qt::AlignTop); // 各个按钮的布局 QVBoxLayout *btnsFrameLayout = new QVBoxLayout(); btnsFrameLayout->setSpacing(0); btnsFrameLayout->setContentsMargins(0, 0, 0, 0); btnsFrameLayout->addSpacing(5); // 安装 卸载 重新安装 返回 完成 确认按钮的布局 QHBoxLayout *btnsLayout = new QHBoxLayout(); btnsLayout->addStretch(); btnsLayout->addWidget(m_installButton, 0, Qt::AlignBottom); btnsLayout->addWidget(m_uninstallButton, 0, Qt::AlignBottom); btnsLayout->addWidget(m_reinstallButton, 0, Qt::AlignBottom); btnsLayout->addWidget(m_backButton, 0, Qt::AlignBottom); btnsLayout->addWidget(m_confirmButton, 0, Qt::AlignBottom); btnsLayout->addWidget(m_doneButton, 0, Qt::AlignBottom); btnsLayout->addStretch(); btnsLayout->setSpacing(20); #ifdef DTKWIDGET_CLASS_DSizeMode // adapt compact mode auto setBtnSizeMode = [btnsLayout]() { if (DGuiApplicationHelper::instance()->isCompactMode()) { btnsLayout->setContentsMargins(0, 0, 0, 4); } else { btnsLayout->setContentsMargins(0, 0, 0, 0); } }; setBtnSizeMode(); // setBtnSizeMode moved connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::sizeModeChanged, this, setBtnSizeMode); #else btnsLayout->setContentsMargins(0, 0, 0, 0); #endif // DTKWIDGET_CLASS_DSizeMode // 进度条 布局 QVBoxLayout *progressLayout = new QVBoxLayout(); progressLayout->setSpacing(0); // TODO:通过计算调整的高度,和UI图匹配,应当将界面修改为类 QWizardPage 方式布局 if (m_inCompatibleMode) { // compatible mode will show tips label progressLayout->setContentsMargins(0, 10, 0, 28); } else { // Bottom margin: 48 = Content margin: 20 + Control margin: 28 progressLayout->setContentsMargins(0, 0, 0, 28); } progressLayout->addStretch(); progressLayout->addWidget(m_progress); progressLayout->setAlignment(m_progress, Qt::AlignHCenter); // 进度条水平居中 m_progressFrame->setLayout(progressLayout); m_progressFrame->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); // 把所有的按钮合并成一个widget m_btnsFrame = new QWidget(this); m_btnsFrame->setObjectName("btnsFrame"); m_btnsFrame->setAccessibleName("btnsFrame"); m_btnsFrame->setMinimumHeight(m_installButton->maximumHeight()); btnsFrameLayout->addLayout(btnsLayout); m_btnsFrame->setLayout(btnsFrameLayout); m_btnsFrame->setFixedHeight(45); QString normalFontFamily = Utils::loadFontFamilyByType(Utils::SourceHanSansNormal); QString mediumFontFamily = Utils::loadFontFamilyByType(Utils::SourceHanSansMedium); // 设置各个按钮的字体大小与样式 Utils::bindFontBySizeAndWeight(m_tipsLabel, normalFontFamily, 12, QFont::Normal); Utils::bindFontBySizeAndWeight(m_installButton, mediumFontFamily, 14, QFont::Medium); Utils::bindFontBySizeAndWeight(m_uninstallButton, mediumFontFamily, 14, QFont::Medium); Utils::bindFontBySizeAndWeight(m_reinstallButton, mediumFontFamily, 14, QFont::Medium); Utils::bindFontBySizeAndWeight(m_confirmButton, mediumFontFamily, 14, QFont::Medium); Utils::bindFontBySizeAndWeight(m_backButton, mediumFontFamily, 14, QFont::Medium); Utils::bindFontBySizeAndWeight(m_doneButton, mediumFontFamily, 14, QFont::Medium); Utils::bindFontBySizeAndWeight(m_packageDescription, normalFontFamily, 12, QFont::ExtraLight); // 将进度条布局。提示布局。按钮布局添加到主布局中 m_contentLayout->addWidget(m_infoControlButton); m_contentLayout->addWidget(m_installProcessView); m_contentLayout->addStretch(); m_contentLayout->addWidget(m_tipsLabel); // for compatible mode initCompatibleSelectLayout(); m_contentLayout->addWidget(m_progressFrame); // 添加 wine下载等待提示布局 initInstallWineLoadingLayout(); m_tipsLabel->setMinimumHeight(20); m_tipsLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); m_contentLayout->addWidget(m_btnsFrame); // bug 139875 Tab Order要在布局之后设置才能生效 initTabOrder(); } void SingleInstallPage::initPkgDependsInfoView() { m_showDependsView->setVisible(false); m_showDependsButton->setVisible(false); m_showDependsView->setAcceptDrops(false); // 不接受拖入的数据 m_showDependsView->setMinimumHeight(200); // 设置高度 m_showDependsView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); m_contentLayout->addWidget(m_showDependsButton); m_contentLayout->addWidget(m_showDependsView); } void SingleInstallPage::initConnections() { // infoControlButton的展开与收缩 connect(m_infoControlButton, &InfoControlButton::expand, this, &SingleInstallPage::slotShowInfomation); connect(m_infoControlButton, &InfoControlButton::shrink, this, &SingleInstallPage::slotHideInfomation); // showDependsButton的展开与收缩 connect(m_showDependsButton, &InfoControlButton::expand, this, &SingleInstallPage::slotShowDependsInfo); connect(m_showDependsButton, &InfoControlButton::shrink, this, &SingleInstallPage::slotHideDependsInfo); // 各个按钮的触发事件 connect(m_installButton, &DPushButton::clicked, this, &SingleInstallPage::slotInstall); connect(m_reinstallButton, &DPushButton::clicked, this, &SingleInstallPage::slotReinstall); connect(m_uninstallButton, &DPushButton::clicked, this, &SingleInstallPage::signalRequestUninstallConfirm); connect(m_backButton, &DPushButton::clicked, this, &SingleInstallPage::signalBacktoFileChooseWidget); connect(m_confirmButton, &DPushButton::clicked, this, [this]() { QModelIndex index = m_packagesModel->index(0); const int dependsStat = index.data(DebListModel::PackageDependsStatusRole).toInt(); if (Finished != m_operate && Pkg::CompatibleNotInstalled == dependsStat) { // requset install package to compatible. m_targetRootfsOsName = m_compatibleBox->currentText(); const QString targetRootfs = m_compatibleBox->currentData().toString(); m_packagesModel->setData(index, targetRootfs, AbstractPackageListModel::CompatibleTargetRootfsRole); slotInstall(); } else { qApp->quit(); } }); connect(m_doneButton, &DPushButton::clicked, qApp, &QApplication::quit); // model 安装进程信息的展示 connect(m_packagesModel, &DebListModel::signalAppendOutputInfo, this, &SingleInstallPage::slotOutputAvailable); // transaction 进度改变 进度条进度改变 connect( m_packagesModel, &DebListModel::signalCurrentPacakgeProgressChanged, this, &SingleInstallPage::slotWorkerProgressChanged); // 安装结束 connect(m_packagesModel, &DebListModel::signalWorkerFinished, this, &SingleInstallPage::slotWorkerFinished); } int SingleInstallPage::initLabelWidth(int fontinfo) { int fontlabelwidth = 0; switch (fontinfo) { case 11: fontlabelwidth = 260; break; case 12: fontlabelwidth = 255; break; case 13: fontlabelwidth = 250; break; case 14: fontlabelwidth = 250; break; case 15: fontlabelwidth = 240; break; case 16: fontlabelwidth = 240; break; case 18: fontlabelwidth = 230; break; case 20: fontlabelwidth = 220; break; default: fontlabelwidth = 220; break; } return fontlabelwidth; } void SingleInstallPage::slotReinstall() { // 重装按钮点击后清除焦点 m_reinstallButton->clearFocus(); // 隐藏不需要的按钮 m_backButton->setVisible(false); m_installButton->setVisible(false); m_reinstallButton->setVisible(false); m_uninstallButton->setVisible(false); // 安装开始 隐藏包信息提示 m_tipsLabel->setVisible(false); // 安装开始 显示安装进度 m_infoControlButton->setExpandTips(QApplication::translate("SingleInstallPage_Install", "Show details")); m_infoControlButton->setVisible(true); m_showDependsButton->shrinkContent(); m_showDependsButton->setVisible(false); m_progress->setValue(0); m_progressFrame->setVisible(true); m_btnsFrame->setVisible(false); // for compatible mode if (m_inCompatibleMode) { m_compatibleLabel->setVisible(false); m_compatibleBox->setVisible(false); m_tipsLabel->setTextAndTips( tr("Trying to install %2 in %1 compatibility mode").arg(m_targetRootfsOsName).arg(m_pkgNameDescription)); m_tipsLabel->setCustomDPalette(DPalette::TextLively); m_tipsLabel->setVisible(true); } // 重置包的工作状态 m_operate = Reinstall; // 开始安装 m_packagesModel->slotInstallPackages(); } void SingleInstallPage::slotInstall() { // 安装按钮点击后清除焦点 m_installButton->clearFocus(); // 隐藏按钮 m_backButton->setVisible(false); m_installButton->setVisible(false); // 隐藏提示 m_tipsLabel->setVisible(false); // 安装开始 显示安装进度 m_infoControlButton->setExpandTips(QApplication::translate("SingleInstallPage_Install", "Show details")); m_infoControlButton->setVisible(true); m_showDependsButton->shrinkContent(); m_showDependsButton->setVisible(false); m_progress->setValue(0); m_progressFrame->setVisible(true); m_btnsFrame->setVisible(false); // for compatible mode if (m_inCompatibleMode) { m_compatibleLabel->setVisible(false); m_compatibleBox->setVisible(false); m_tipsLabel->setTextAndTips( tr("Trying to install %2 in %1 compatibility mode").arg(m_targetRootfsOsName).arg(m_pkgNameDescription)); m_tipsLabel->setCustomDPalette(DPalette::TextLively); m_tipsLabel->setVisible(true); } // 重置工作状态 m_operate = Install; // 开始安装 m_packagesModel->slotInstallPackages(); } void SingleInstallPage::slotUninstallCurrentPackage() { // 卸载按钮点击后清除焦点 m_uninstallButton->clearFocus(); // 隐藏不需要的按钮 m_tipsLabel->setVisible(false); m_backButton->setVisible(false); m_reinstallButton->setVisible(false); m_uninstallButton->setVisible(false); // 卸载开始 显示进度 m_infoControlButton->setExpandTips(QApplication::translate("SingleInstallPage_Uninstall", "Show details")); m_infoControlButton->setVisible(true); m_progress->setValue(0); m_progressFrame->setVisible(true); m_showDependsButton->shrinkContent(); m_showDependsButton->setVisible(false); m_btnsFrame->setVisible(false); // for compatible mode if (m_inCompatibleMode) { m_compatibleLabel->setVisible(false); m_compatibleBox->setVisible(false); m_tipsLabel->setTextAndTips( tr("Uninstalling %2 from %1 compatibility mode").arg(m_targetRootfsOsName).arg(m_pkgNameDescription)); m_tipsLabel->setCustomDPalette(DPalette::TextLively); m_tipsLabel->setVisible(true); } // 重置工作状态 m_operate = Uninstall; // 开始卸载 m_packagesModel->slotUninstallPackage(0); } void SingleInstallPage::slotShowInfomation() { m_upDown = false; m_installProcessView->setVisible(true); m_itemInfoFrame->setVisible(false); m_infoControlButton->setContentsMargins(0, 0, 0, 4); } void SingleInstallPage::slotHideInfomation() { m_upDown = true; m_installProcessView->setVisible(false); m_itemInfoFrame->setVisible(true); m_infoControlButton->setContentsMargins(0, 0, 0, 0); } void SingleInstallPage::slotShowDependsInfo() { m_showDependsView->setVisible(true); m_itemInfoFrame->setVisible(false); m_showDependsButton->setContentsMargins(0, 0, 0, 4); } void SingleInstallPage::slotHideDependsInfo() { m_showDependsView->setVisible(false); m_itemInfoFrame->setVisible(true); m_showDependsButton->setContentsMargins(0, 0, 0, 0); } void SingleInstallPage::slotShowInfo() { // 显示进度信息 m_infoControlButton->setVisible(true); m_showDependsButton->setVisible(false); m_progressFrame->setVisible(true); m_btnsFrame->setVisible(false); /* Clear tips in normal mode, but not in compatible mode, * keep layout with visible on. */ if (!m_inCompatibleMode) { m_tipsLabel->clear(); } // 隐藏按钮 m_installButton->setVisible(false); m_reinstallButton->setVisible(false); m_uninstallButton->setVisible(false); m_confirmButton->setVisible(false); m_doneButton->setVisible(false); m_backButton->setVisible(false); } void SingleInstallPage::slotOutputAvailable(const QString &output) { // 信息展示窗口添加进程数据 m_installProcessView->appendText(output.trimmed()); // 如果infoControlButton 未显示,则显示 if (!m_infoControlButton->isVisible()) m_infoControlButton->setVisible(true); // 切换状态为已经开始安装 if (!m_workerStarted) { m_workerStarted = true; slotShowInfo(); } } void SingleInstallPage::slotWorkerFinished() { // 显示infoControlButton m_infoControlButton->setVisible(true); // 显示安装结果提示信息 m_tipsLabel->setVisible(true); // 隐藏进度条 m_progressFrame->setVisible(false); m_progress->setValue(0); // 显示需要显示的按钮 m_btnsFrame->setVisible(true); m_uninstallButton->setVisible(false); m_reinstallButton->setVisible(false); m_backButton->setVisible(true); if (m_inCompatibleMode) { m_confirmButton->setVisible(false); } // 获取当前包的安装结果 QModelIndex index = m_packagesModel->index(0); const int stat = index.data(DebListModel::PackageOperateStatusRole).toInt(); if (stat == Pkg::PackageOperationStatus::Success) { // 操作成功 m_doneButton->setVisible(true); m_doneButton->setFocus(); if (m_operate == Install || m_operate == Reinstall) { // 安装成功 qDebug() << "SingleInstallPage: Installed successfully"; m_infoControlButton->setExpandTips(QApplication::translate("SingleInstallPage_Install", "Show details")); if (m_inCompatibleMode) { m_tipsLabel->setTextAndTips(tr("%2 was successfully installed to %1 compatibility mode") .arg(m_targetRootfsOsName) .arg(m_pkgNameDescription)); } else { m_tipsLabel->setTextAndTips(tr("Installed successfully")); } m_tipsLabel->setCustomDPalette(DPalette::DarkLively); } else { // 卸载成功 qDebug() << "SingleInstallPage: Uninstalled successfully"; m_infoControlButton->setExpandTips(QApplication::translate("SingleInstallPage_Uninstall", "Show details")); if (m_inCompatibleMode) { m_tipsLabel->setTextAndTips(tr("%2 has been successfully uninstalled from %1 compatibility mode") .arg(m_rootfsOsName) .arg(m_pkgNameDescription)); } else { m_tipsLabel->setTextAndTips(tr("Uninstalled successfully")); } m_tipsLabel->setCustomDPalette(DPalette::TextWarning); } } else if (stat == Pkg::PackageOperationStatus::Failed) { // 安装/卸载失败 m_confirmButton->setVisible(true); m_confirmButton->setFocus(); m_tipsLabel->setCustomDPalette(DPalette::TextWarning); if (m_operate == Install || m_operate == Reinstall) { // 添加安装失败原因的提示 QFont font; QFontMetrics elideFont(font); m_tipsLabel->setTextAndTips(elideFont.elidedText(index.data(DebListModel::PackageFailReasonRole).toString(), Qt::ElideRight, m_tipsLabel->width() - 100)); // 修复授权取消后无提示的问题 m_tipsLabel->setToolTip(index.data(DebListModel::PackageFailReasonRole).toString()); } else { m_tipsLabel->setTextAndTips(tr("Uninstall Failed")); // 卸载只显示卸载失败 } } else { // 正常情况不会进入此分支,如果进入此分支表明状态错误。 m_confirmButton->setVisible(true); m_confirmButton->setFocus(); qDebug() << "Operate Status Error. current" << "index=" << index.row() << "stat=" << stat; } if (!m_upDown) m_infoControlButton->setShrinkTips(tr("Collapse")); // mark down m_operate = Finished; } void SingleInstallPage::slotWorkerProgressChanged(const int progress) { if (progress < m_progress->value()) { // 进度不后退 return; } m_progress->setValue(progress); // 进度增加 } void SingleInstallPage::slotDependPackages(Pkg::DependsPair dependPackages, bool installWineDepends) { // 依赖关系满足或者正在下载wine依赖,则不显示依赖关系 m_showDependsView->clearText(); m_showRemovePackages = false; // if compatible valid, disable extend info if (installWineDepends || m_inCompatibleMode) { return; } if (dependPackages.second.isEmpty()) { // depends ok or available, show package that will be remove after install const QStringList removePackages = m_packagesModel->index(0).data(DebListModel::PackageRemoveDependsRole).toStringList(); if (!removePackages.isEmpty()) { QString removeInfo = tr("Install %1 will remove: ").arg(m_pkgNameDescription); removeInfo.append('\n'); removeInfo.append(removePackages.join('\n')); removeInfo.append('\n'); m_showDependsView->appendText(removeInfo); m_showDependsButton->setVisible(true); m_tipsLabel->setTextAndTips(removeInfo.simplified()); m_tipsLabel->setCustomDPalette(DPalette::TextWarning); m_showRemovePackages = true; } return; } m_showDependsButton->setVisible(true); if (dependPackages.first.size() > 0) { m_showDependsView->appendText(tr("Dependencies in the repository")); for (int i = 0; i < dependPackages.first.size(); i++) m_showDependsView->appendText(dependPackages.first.at(i).packageName + " " + dependPackages.first.at(i).version); m_showDependsView->appendText(tr("")); } if (dependPackages.second.size() > 0) { m_showDependsView->appendText(tr("Missing dependencies")); for (int i = 0; i < dependPackages.second.size(); i++) m_showDependsView->appendText(dependPackages.second.at(i).packageName + " " + dependPackages.second.at(i).version); } m_showDependsView->setTextCursor(QTextCursor::Start); } /** @brief Refresh package error depends info, do nothing if no errors occur. Will call at init. */ void SingleInstallPage::slotRefreshSinglePackageDepends() { if (1 == m_packagesModel->rowCount()) { QModelIndex index = m_packagesModel->index(0); QVariant data = m_packagesModel->data(index, AbstractPackageListModel::PackageDependsDetailRole); auto depends = data.value(); slotDependPackages(depends, GlobalStatus::winePreDependsInstalling()); } } /** * @brief showPackageInfo 获取并显示deb包的信息 */ void SingleInstallPage::showPackageInfo() { const QSize boundingSize = QSize(m_packageDescription->width(), m_packageDescription->height()); QFontInfo fontinfosize = this->fontInfo(); // 获取系统字体 int fontlabelsize = fontinfosize.pixelSize(); const QModelIndex index = m_packagesModel->index(0); if (m_packagesModel->isWorkerPrepare() && index.isValid()) { m_description = index.data(DebListModel::PackageLongDescriptionRole).toString(); m_pkgNameDescription = index.data(DebListModel::PackageNameRole).toString(); const int dependsStat = index.data(DebListModel::PackageDependsStatusRole).toInt(); const int installStat = index.data(DebListModel::PackageVersionStatusRole).toInt(); m_versionDescription = index.data(DebListModel::PackageVersionRole).toString(); m_packageDescription->setText(Utils::holdTextInRect(m_packageDescription->font(), m_description, boundingSize)); m_packageName->setText( m_packageName->fontMetrics().elidedText(m_pkgNameDescription, Qt::ElideRight, initLabelWidth(fontlabelsize))); m_packageVersion->setText( m_packageVersion->fontMetrics().elidedText(m_versionDescription, Qt::ElideRight, initLabelWidth(fontlabelsize))); // package install status // 否则会导致安装不同版本的包(依赖不同)时安装依赖出现问题(包括界面混乱、无法下载依赖等) // 根据依赖状态调整显示效果 // 添加依赖授权确认处理 if (dependsError(dependsStat) && dependAuthStatu != DebListModel::AuthConfirm) { // 添加架构不匹配的处理 m_tipsLabel->setTextAndTips(index.data(DebListModel::PackageFailReasonRole).toString()); m_tipsLabel->setCustomDPalette(DPalette::TextWarning); m_installButton->setVisible(false); m_reinstallButton->setVisible(false); m_infoControlButton->setVisible(false); m_confirmButton->setVisible(true); if (m_inCompatibleMode) { switch (dependsStat) { case Pkg::CompatibleNotInstalled: // no back button, select 'compatible rootfs' and install m_compatibleLabel->setVisible(true); m_compatibleBox->setVisible(true); break; case Pkg::CompatibleIntalled: // uninstall or quit m_compatibleLabel->setVisible(false); m_compatibleBox->setVisible(false); m_uninstallButton->setVisible(true); break; default: break; } } else { m_backButton->setVisible(true); } if (resetButtonFocus) { resetButtonFocus = false; m_confirmButton->setFocus(); } return; } // 根据安装状态调整显示效果 const bool installed = installStat != Pkg::PackageInstallStatus::NotInstalled; if (dependAuthStatu == DebListModel::AuthConfirm) { // 安装wine依赖时,所有的按钮都不显示 m_installButton->setVisible(false); m_uninstallButton->setVisible(false); m_reinstallButton->setVisible(false); m_infoControlButton->setVisible(false); } else { // 安装wine前或者安装完成后,根据安装状态显示对应的按钮 m_installButton->setVisible(!installed); m_uninstallButton->setVisible(installed); m_reinstallButton->setVisible(installed); if (resetButtonFocus) { resetButtonFocus = false; if (installed) { m_reinstallButton->setFocus(); } else { m_installButton->setFocus(); } } } m_confirmButton->setVisible(false); m_doneButton->setVisible(false); // 根据安装状态设置提示文字 if (installed) { if (installStat == Pkg::PackageInstallStatus::InstalledSameVersion) { m_tipsLabel->setCustomDPalette(DPalette::TextWarning); m_tipsLabel->setTextAndTips(tr("Same version installed")); m_reinstallButton->setText(tr("Reinstall")); } else if (installStat == Pkg::PackageInstallStatus::InstalledLaterVersion) { m_tipsLabel->setCustomDPalette(DPalette::TextWarning); m_tipsLabel->setTextAndTips( tr("Later version installed: %1").arg(index.data(DebListModel::PackageInstalledVersionRole).toString())); m_reinstallButton->setText(tr("Downgrade")); } else { m_tipsLabel->setCustomDPalette(DPalette::TextWarning); m_tipsLabel->setTextAndTips( tr("Earlier version installed: %1").arg(index.data(DebListModel::PackageInstalledVersionRole).toString())); m_reinstallButton->setText(tr("Update", "button")); } } // refresh depends at init. slotRefreshSinglePackageDepends(); } } void SingleInstallPage::setEnableButton(bool bEnable) { // After the uninstall authorization is canceled, hide the uninstall details and display the version status m_tipsLabel->setVisible(true); m_tipsLabel->setVisible(true); // 设置各个按钮的可用性 m_installButton->setEnabled(bEnable); m_reinstallButton->setEnabled(bEnable); m_uninstallButton->setEnabled(bEnable); } void SingleInstallPage::afterGetAutherFalse() { // 取消授权/授权失败后,界面重绘,复位焦点 resetButtonFocus = true; // 等待dpkg启动但是授权取消后,如果详细信息是expend状态,则shrink m_infoControlButton->shrink(); m_infoControlButton->setVisible(false); m_progressFrame->setVisible(false); m_btnsFrame->setVisible(true); // 根据安装场景显示按钮 if (m_operate == Install) { m_installButton->setVisible(true); m_installButton->setFocus(); } else if (m_operate == Uninstall) { m_reinstallButton->setVisible(true); m_uninstallButton->setVisible(true); m_reinstallButton->setFocus(); } else if (m_operate == Reinstall) { m_reinstallButton->setVisible(true); m_uninstallButton->setVisible(true); m_reinstallButton->setFocus(); } if (m_showRemovePackages) { m_showDependsButton->setVisible(true); } } void SingleInstallPage::showEvent(QShowEvent *e) { showPackageInfo(); // 每次切换展示当前页面,复位焦点状态 resetButtonFocus = true; QWidget::showEvent(e); } void SingleInstallPage::paintEvent(QPaintEvent *event) { QWidget::paintEvent(event); DPalette palette = DPaletteHelper::instance()->palette(m_packageDescription); palette.setBrush(DPalette::WindowText, palette.color(DPalette::TextTips)); m_packageDescription->setPalette(palette); } void SingleInstallPage::setAuthConfirm(QString dependName) { // 调整按钮的显示效果 m_installButton->setVisible(false); m_reinstallButton->setVisible(false); m_uninstallButton->setVisible(false); m_confirmButton->setVisible(false); m_backButton->setVisible(false); // 显示等待动画 m_pDSpinner->setVisible(true); m_pDSpinner->start(); // 显示下载提示 m_pLoadingLabel->setText(tr("Installing dependencies: %1").arg(dependName)); m_pLoadingLabel->setVisible(true); // 隐藏包的提示 m_tipsLabel->setVisible(false); m_infoControlButton->setVisible(false); } void SingleInstallPage::setAuthBefore() { // 显示包信息提示 m_tipsLabel->setVisible(true); // 隐藏进度条 m_progressFrame->setVisible(false); m_btnsFrame->setVisible(true); // 获取依赖状态 QModelIndex index = m_packagesModel->index(0); const int dependsStat = index.data(DebListModel::PackageDependsStatusRole).toInt(); // 依赖不满足或依赖授权被取消 if (dependsError(dependsStat)) { m_tipsLabel->setCustomDPalette(DPalette::TextWarning); m_confirmButton->setVisible(true); m_backButton->setVisible(true); m_confirmButton->setFocus(); } else { // 依赖正常 if (m_operate == Install) { m_installButton->setVisible(true); m_installButton->setFocus(); } else if (m_operate == Uninstall) { m_reinstallButton->setVisible(true); m_uninstallButton->setVisible(true); m_reinstallButton->setFocus(); } else if (m_operate == Reinstall) { m_reinstallButton->setVisible(true); m_uninstallButton->setVisible(true); m_reinstallButton->setFocus(); } m_installButton->setEnabled(false); m_reinstallButton->setEnabled(false); m_uninstallButton->setEnabled(false); } // 依赖下载 进度显示 m_pLoadingLabel->setVisible(false); m_pDSpinner->stop(); m_pDSpinner->setVisible(false); } void SingleInstallPage::setCancelAuthOrAuthDependsErr() { m_tipsLabel->setVisible(true); m_progressFrame->setVisible(false); m_btnsFrame->setVisible(true); // 获取依赖状态 QModelIndex index = m_packagesModel->index(0); const int dependsStatus = index.data(DebListModel::PackageDependsStatusRole).toInt(); // 根据依赖状态 调整界面显示 if (dependsError(dependsStatus)) { // 依赖不满足或依赖授权取消 m_tipsLabel->setTextAndTips(index.data(DebListModel::PackageFailReasonRole).toString()); // 修复授权取消后无提示的问题 m_tipsLabel->setCustomDPalette(DPalette::TextWarning); qWarning() << "SingleInstallPage:" << "depends Break or Revoke installation authorization"; m_confirmButton->setVisible(true); m_backButton->setVisible(true); m_confirmButton->setEnabled(true); m_backButton->setEnabled(true); m_installButton->setVisible(false); m_reinstallButton->setVisible(false); m_uninstallButton->setVisible(false); m_confirmButton->setFocus(); } else { // 依赖安装成功 m_tipsLabel->clear(); // 依赖安装成功后,去除依赖错误的提示信息。 m_confirmButton->setVisible(false); m_backButton->setVisible(false); const int installStat = index.data(DebListModel::PackageVersionStatusRole).toInt(); if (installStat == Pkg::PackageInstallStatus::NotInstalled) { // 没有安装过其他版本 m_installButton->setVisible(true); m_installButton->setEnabled(true); m_tipsLabel->setVisible(false); m_installButton->setFocus(); } else { // 已经安装过其他版本 // 增加提示 依赖安装完成后的提示 if (installStat == Pkg::PackageInstallStatus::InstalledSameVersion) { m_tipsLabel->setCustomDPalette(DPalette::TextWarning); m_tipsLabel->setTextAndTips(tr("Same version installed")); m_reinstallButton->setText(tr("Reinstall")); } else if (installStat == Pkg::PackageInstallStatus::InstalledLaterVersion) { m_tipsLabel->setCustomDPalette(DPalette::TextWarning); m_tipsLabel->setTextAndTips( tr("Later version installed: %1").arg(index.data(DebListModel::PackageInstalledVersionRole).toString())); m_reinstallButton->setText(tr("Downgrade")); } else { m_tipsLabel->setCustomDPalette(DPalette::TextWarning); m_tipsLabel->setTextAndTips( tr("Earlier version installed: %1").arg(index.data(DebListModel::PackageInstalledVersionRole).toString())); m_reinstallButton->setText(tr("Update", "button")); } m_reinstallButton->setVisible(true); m_uninstallButton->setVisible(true); m_reinstallButton->setEnabled(true); m_uninstallButton->setEnabled(true); m_reinstallButton->setFocus(); } } // 隐藏wine下载进度 m_pLoadingLabel->setVisible(false); m_pDSpinner->stop(); m_pDSpinner->setVisible(false); } bool SingleInstallPage::dependsError(int status) const { return status != Pkg::DependsOk && status != Pkg::DependsAvailable; } void SingleInstallPage::DealDependResult(int authStatus, QString dependName) { dependAuthStatu = authStatus; switch (authStatus) { case DebListModel::AuthConfirm: // 授权成功 setAuthConfirm(dependName); break; case DebListModel::AuthBefore: // 授权之前 setAuthBefore(); break; case DebListModel::AnalysisErr: // 解析错误 setCancelAuthOrAuthDependsErr(); break; case DebListModel::AuthDependsSuccess: // 下载成功 setCancelAuthOrAuthDependsErr(); break; case DebListModel::CancelAuth: // 授权取消和授权失败的提示语公用,修复授权取消后无提示的问题 case DebListModel::AuthDependsErr: setCancelAuthOrAuthDependsErr(); m_tipsLabel->setTextAndTips(tr("Failed to install %1").arg(dependName)); m_tipsLabel->setCustomDPalette(DPalette::TextWarning); break; case DebListModel::VerifyDependsErr: setCancelAuthOrAuthDependsErr(); m_tipsLabel->setTextAndTips(dependName + tr("Invalid digital signature")); m_tipsLabel->setCustomDPalette(DPalette::TextWarning); break; default: break; } } deepin-deb-installer-6.5.5/src/deb-installer/view/pages/singleinstallpage.h000066400000000000000000000217411474340456100267760ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef SINGLEINSTALLPAGE_H #define SINGLEINSTALLPAGE_H #include "view/widgets/infocontrolbutton.h" #include "view/widgets/installprocessinfoview.h" #include "view/widgets/debinfolabel.h" #include "manager/packagesmanager.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include class AbstractPackageListModel; class WorkerProgress; class SingleInstallPage : public QWidget { Q_OBJECT public: explicit SingleInstallPage(AbstractPackageListModel *model, QWidget *parent = nullptr); public: /** * @brief afterGetAutherFalse 授权失败或者取消后的界面处理函数 */ void afterGetAutherFalse(); /** * @brief setEnableButton 授权框弹出/取消后 ,设置按钮禁用/可用 * @param bEnable */ void setEnableButton(bool bEnable); /** * @brief DealDependResult 根据依赖安装的进程标识,处理依赖安装的流程显示 * @param authStatus 依赖安装的集成标识 * @param dependName 安装的依赖名称 */ void DealDependResult(int authStatus, QString dependName); public slots: /** * @brief uninstallCurrentPackage 显示卸载页面 */ void slotUninstallCurrentPackage(); protected: /** @brief 每次切换展示当前页面,复位焦点状态 */ void showEvent(QShowEvent *e) override; void paintEvent(QPaintEvent *event) override; signals: /** * @brief back 返回fileChooseWidget界面 */ void signalBacktoFileChooseWidget() const; /** * @brief requestUninstallConfirm 卸载按钮信号,显示卸载页面 */ void signalRequestUninstallConfirm() const; private: /** * @brief The current operate */ enum Operate { Unknown, Install, Uninstall, Reinstall, Finished, // install/uninstall finished }; private: /** * @brief initUI 初始化UI */ void initUI(); /** * @brief initContentLayout 初始化主布局 */ void initContentLayout(); /** * @brief initInstallWineLoadingLayout 初始化wine依赖安装加载动画布局 */ void initInstallWineLoadingLayout(); void initCompatibleSelectLayout(); /** * @brief initPkgInfoView 初始化 包信息视图布局 * @param fontinfosize 字体大小 */ void initPkgInfoView(int fontinfosize); /** * @brief initPkgInstallProcessView 初始化安装进程信息布局 * @param fontinfosize 字体大小 */ void initPkgInstallProcessView(int fontinfosize); /** * @brief initPkgDependsInfoView 初始化依赖信息显示布局 */ void initPkgDependsInfoView(); /** * @brief initConnections 初始化链接信号与槽 */ void initConnections(); /** * @brief initLabelWidth 根据字体的大小调整标签的宽度 * @param fontinfo 字体大小 * @return label的宽度 */ int initLabelWidth(int fontinfo); /** * @brief initControlAccessibleName 初始化控件的AccessibleName */ void initControlAccessibleName(); private: /** * @brief initTabOrder 设置tab切换焦点的顺序 */ void initTabOrder(); /** * @brief initButtonFocusPolicy 设置按钮的焦点策略 */ void initButtonFocusPolicy(); /** * @brief initButtonAutoDefault 设置按钮的回车触发 */ void initButtonAutoDefault(); private: /** * @brief showPackageInfo 获取并显示deb包的信息 */ void showPackageInfo(); /** * @brief setAuthConfirm 依赖下载授权确认后的界面处理函数 * @param dependName */ void setAuthConfirm(QString dependName); /** * @brief setAuthBefore 依赖下载授权前的界面处理函数 */ void setAuthBefore(); /** * @brief setCancelAuthOrAuthDependsErr 授权取消或依赖安装结果显示的界面处理函数 */ void setCancelAuthOrAuthDependsErr(); /** * @brief setAuthDependsSuccess 暂未使用 */ void setAuthDependsSuccess(); bool dependsError(int status) const; private slots: /** * @brief install 点击安装按钮后的界面处理,并触发安装进程 */ void slotInstall(); /** * @brief reinstall 点击重新安装按钮后的界面处理,并触发安装进程 */ void slotReinstall(); /** * @brief showInfomation 显示安装详细信息的视图 */ void slotShowInfomation(); /** * @brief hideInfomation 隐藏安装过程详细信息的视图 */ void slotHideInfomation(); /** * @brief slotShowDependsInfo 显示依赖关系的视图 */ void slotShowDependsInfo(); /** * @brief slotHideDependsInfo 隐藏依赖关系的视图 */ void slotHideDependsInfo(); /** * @brief showInfo 显示信息的界面调整 */ void slotShowInfo(); /** * @brief onOutputAvailable 向安装详细信息展示窗口添加安装进度信息 * @param output 安装过程信息 */ void slotOutputAvailable(const QString &output); /** * @brief onWorkerFinished 安装或卸载结束后的界面调整 */ void slotWorkerFinished(); /** * @brief onWorkerProgressChanged 安装进度变化槽函数 * @param progress 实际的安装进度 */ void slotWorkerProgressChanged(const int progress); /** * @brief slotDependPackages 缺失依赖显示 * @param dependPackages 依赖包存储 * @param installWineDepends 是否进入wine依赖配置 */ void slotDependPackages(Pkg::DependsPair dependPackages, bool installWineDepends); // refresh the single package depend info. void slotRefreshSinglePackageDepends(); private: Operate m_operate = Unknown; // 当前的操作 bool m_workerStarted = false; // 安装是否开始 bool m_upDown = false; // 当前是详细信息是展开还是收缩 AbstractPackageListModel *m_packagesModel = nullptr; // model类 QWidget *m_contentFrame = nullptr; // 主布局 QWidget *m_itemInfoFrame = nullptr; // 包信息框架 QWidget *m_progressFrame = nullptr; // 安装进度框架 QWidget *m_btnsFrame = nullptr; // 按键框架 DLabel *m_packageIcon = nullptr; // 包的图标 DebInfoLabel *m_packageName = nullptr; // 包名 DebInfoLabel *m_packageVersion = nullptr; // 包的版本 DLabel *m_packageDescription = nullptr; // 包的描述 DebInfoLabel *m_tipsLabel = nullptr; // 包的状态提示label WorkerProgress *m_progress = nullptr; // 安装进度条 InstallProcessInfoView *m_installProcessView = nullptr; // 安装进度的详细信息 InstallProcessInfoView *m_showDependsView = nullptr; // 依赖关系显示 InfoControlButton *m_infoControlButton = nullptr; // 安装信息显示/隐藏控制按钮 InfoControlButton *m_showDependsButton = nullptr; // 显示依赖关系按钮 DPushButton *m_installButton = nullptr; // 安装按钮 DPushButton *m_uninstallButton = nullptr; // 卸载按钮 DPushButton *m_reinstallButton = nullptr; // 重新安装按钮 DPushButton *m_confirmButton = nullptr; // 确认按钮 DPushButton *m_backButton = nullptr; // 返回按钮 DPushButton *m_doneButton = nullptr; // 完成按钮 private: QVBoxLayout *m_contentLayout = nullptr; QVBoxLayout *m_centralLayout = nullptr; // 主布局 QString m_description = ""; // 包的描述文本 QString m_pkgNameDescription = ""; // 包名的文本 QString m_versionDescription = ""; // 包版本的文本 DSpinner *m_pDSpinner = nullptr; // 依赖安装加载动画 // fix bug:33999 change DebInfoLabel to DCommandLinkButton for Activity color DCommandLinkButton *m_pLoadingLabel = nullptr; // 依赖安装提示信息 int dependAuthStatu = -1; // 存储依赖授权状态 bool resetButtonFocus = true; // 展示包信息前,复位焦点状态,切换后第一次显示有效 bool m_showRemovePackages = false; // current package need show remove packages // for comaptible mode bool m_inCompatibleMode = false; // current pacakge in comaptbile mode; QString m_rootfsOsName; // current package rootfs (empty if not installed) QString m_targetRootfsOsName; DLabel *m_compatibleLabel = nullptr; DComboBox *m_compatibleBox = nullptr; // compatible rootfs selector QHBoxLayout *m_compatibleLayout = nullptr; }; #endif // SINGLEINSTALLPAGE_H deepin-deb-installer-6.5.5/src/deb-installer/view/pages/uninstallconfirmpage.cpp000066400000000000000000000156401474340456100300510ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "uninstallconfirmpage.h" #include "utils/utils.h" #include #include UninstallConfirmPage::UninstallConfirmPage(QWidget *parent) : QWidget(parent) , m_icon(new DLabel(this)) , m_tips(new DLabel(this)) , m_infoWrapperWidget(new QWidget(this)) , m_infoControl(new InfoControlButton(tr("Show related packages"), tr("Collapse", "button"), this)) , m_dependsInfomation(new InstallProcessInfoView(440, 190, this)) , m_cancelBtn(new DPushButton(this)) , m_confirmBtn(new DPushButton(this)) { this->setAcceptDrops(false); const QIcon icon = QIcon::fromTheme("application-x-deb"); // set Icon size and location m_icon->setFixedSize(64, 64); m_icon->setPixmap(icon.pixmap(64, 64)); // 自动化测试 m_icon->setObjectName("UninstallPageIcon"); m_icon->setAccessibleName("UninstallPageIcon"); m_tips->setMinimumHeight(120); m_tips->setMinimumWidth(440); m_tips->setAlignment(Qt::AlignCenter); // cancel button settings m_cancelBtn->setText(tr("Cancel", "button")); m_cancelBtn->setMinimumWidth(120); m_confirmBtn->setText(tr("Confirm")); m_confirmBtn->setMinimumWidth(120); // 添加确认和返回按钮的焦点策略 m_confirmBtn->setFocusPolicy(Qt::TabFocus); m_cancelBtn->setFocusPolicy(Qt::TabFocus); // 添加确认和返回按钮的enter触发 m_confirmBtn->setAutoDefault(true); m_cancelBtn->setAutoDefault(true); // When uninstalling dependent packages, if there are prompts for dependent packages. m_dependsInfomation->setVisible(false); m_dependsInfomation->setAcceptDrops(false); m_dependsInfomation->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); // layout of buttons QHBoxLayout *btnsLayout = new QHBoxLayout(); btnsLayout->setSpacing(0); btnsLayout->addStretch(); btnsLayout->addWidget(m_cancelBtn); btnsLayout->addSpacing(20); btnsLayout->addWidget(m_confirmBtn); btnsLayout->addStretch(); #ifdef DTKWIDGET_CLASS_DSizeMode // adapt compact mode auto setBtnSizeMode = [btnsLayout]() { if (DGuiApplicationHelper::instance()->isCompactMode()) { btnsLayout->setContentsMargins(0, 0, 0, 4); } else { btnsLayout->setContentsMargins(0, 0, 0, 0); } }; setBtnSizeMode(); // setBtnSizeMode moved connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::sizeModeChanged, this, setBtnSizeMode); #else btnsLayout->setContentsMargins(0, 0, 0, 0); #endif // DTKWIDGET_CLASS_DSizeMode // Layout of icons and tips QVBoxLayout *contentLayout = new QVBoxLayout(this); contentLayout->setSpacing(0); contentLayout->setContentsMargins(0, 0, 0, 0); contentLayout->addStretch(); contentLayout->addWidget(m_icon); contentLayout->addStretch(0); contentLayout->setAlignment(m_icon, Qt::AlignHCenter); contentLayout->addWidget(m_tips); contentLayout->addStretch(); m_infoWrapperWidget->setLayout(contentLayout); // The details of the uninstall process and the layout of the dependent information. QVBoxLayout *centralLayout = new QVBoxLayout(this); centralLayout->addWidget(m_infoWrapperWidget); centralLayout->addWidget(m_infoControl); centralLayout->setAlignment(m_infoControl, Qt::AlignHCenter); centralLayout->addSpacing(15); centralLayout->addWidget(m_dependsInfomation); centralLayout->addLayout(btnsLayout); centralLayout->setSpacing(0); // 卸载页面上边距增加15px 底边距变为20,适应大字体 centralLayout->setContentsMargins(20, 15, 20, 20); // Set font and size QString normalFontFamily = Utils::loadFontFamilyByType(Utils::SourceHanSansNormal); Utils::bindFontBySizeAndWeight(m_tips, normalFontFamily, 14, QFont::Normal); Utils::bindFontBySizeAndWeight(m_cancelBtn, normalFontFamily, 14, QFont::Medium); Utils::bindFontBySizeAndWeight(m_confirmBtn, normalFontFamily, 14, QFont::Medium); m_dependsInfomation->setTextFontSize(14, QFont::Normal); Utils::bindFontBySizeAndWeight(m_cancelBtn, normalFontFamily, 14, QFont::Medium); Utils::bindFontBySizeAndWeight(m_confirmBtn, normalFontFamily, 14, QFont::Medium); setLayout(centralLayout); connect(m_cancelBtn, &DPushButton::clicked, this, &UninstallConfirmPage::signalUninstallCanceled); connect(m_confirmBtn, &DPushButton::clicked, this, &UninstallConfirmPage::signalUninstallAccepted); connect(m_infoControl, &InfoControlButton::expand, this, &UninstallConfirmPage::slotShowDetail); connect(m_infoControl, &InfoControlButton::shrink, this, &UninstallConfirmPage::slotHideDetail); } void UninstallConfirmPage::setPackage(const QString &name) { m_packageName = name; // add tips QString tips = tr("Are you sure you want to uninstall %1?\nAll dependencies will also be removed"); if (!m_requiredList.isEmpty()) { tips = tr("Are you sure you want to uninstall %1?\nThe system or other applications may not work properly"); } const QSize boundingSize = QSize(m_tips->width(), 340); m_tips->setText( Utils::holdTextInRect(m_tips->font(), tips.arg(name), boundingSize)); // 2020.0210修改中英文状态下描述输出自动换行 } void UninstallConfirmPage::setRequiredList(const QStringList &requiredList) { // According to the dependency status, it is determined whether there is a package that depends on the current package, and if // so, it is prompted. m_requiredList = requiredList; if (!requiredList.isEmpty()) { m_infoControl->setVisible(true); } else { m_infoControl->setVisible(false); } m_dependsInfomation->setTextColor(DPalette::TextTitle); m_dependsInfomation->appendText(requiredList.join(", ")); } void UninstallConfirmPage::setPackageType(Pkg::PackageType type) { const QIcon icon = Utils::packageIcon(type); m_icon->setPixmap(icon.pixmap(m_icon->size())); } void UninstallConfirmPage::setCompatibleInfo(const QString &rootfs) { m_rootfs = rootfs; if (rootfs.isEmpty()) { return; } m_infoWrapperWidget->layout()->setContentsMargins(0, 60, 0, 60); m_icon->setFixedSize(85, 85); m_icon->setPixmap(QIcon::fromTheme("dialog-warning").pixmap(m_icon->size())); m_tips->setText(tr("Are you sure you want to uninstall %2 \nfrom %1 compatibility mode?").arg(m_rootfs).arg(m_packageName)); } void UninstallConfirmPage::showEvent(QShowEvent *e) { // 每次展示时设置默认焦点 m_confirmBtn->setFocus(); QWidget::showEvent(e); } void UninstallConfirmPage::slotShowDetail() { // Show dependency information m_infoWrapperWidget->setVisible(false); m_dependsInfomation->setVisible(true); } void UninstallConfirmPage::slotHideDetail() { // Hide dependency information m_infoWrapperWidget->setVisible(true); m_dependsInfomation->setVisible(false); } deepin-deb-installer-6.5.5/src/deb-installer/view/pages/uninstallconfirmpage.h000066400000000000000000000036401474340456100275130ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef UNINSTALLCONFIRMPAGE_H #define UNINSTALLCONFIRMPAGE_H #include "view/widgets/infocontrolbutton.h" #include "view/widgets/installprocessinfoview.h" #include "utils/package_defines.h" #include #include #include class UninstallConfirmPage : public QWidget { Q_OBJECT public: explicit UninstallConfirmPage(QWidget *parent = nullptr); /** * @brief setPackage 设置要卸载的包的名称 * @param packageName 包的名称 */ void setPackage(const QString &packageName); /** * @brief setRequiredList 设置依赖当前包的依赖列表 * @param requiredList 依赖列表 */ void setRequiredList(const QStringList &requiredList); void setPackageType(Pkg::PackageType type); void setCompatibleInfo(const QString &rootfs); signals: /** * @brief signalUninstallAccepted 卸载确认 */ void signalUninstallAccepted() const; /** * @brief signalUninstallCanceled 卸载取消 */ void signalUninstallCanceled() const; protected: /** @brief 展示时设置默认焦点 */ void showEvent(QShowEvent *e) override; private slots: /** * @brief slotShowDetail 显示卸载信息 */ void slotShowDetail(); /** * @brief slotHideDetail 隐藏卸载信息 */ void slotHideDetail(); private: DLabel *m_icon = nullptr; DLabel *m_tips = nullptr; QWidget *m_infoWrapperWidget = nullptr; InfoControlButton *m_infoControl = nullptr; InstallProcessInfoView *m_dependsInfomation = nullptr; DPushButton *m_cancelBtn = nullptr; DPushButton *m_confirmBtn = nullptr; QStringList m_requiredList = {}; QString m_description = ""; QString m_packageName; QString m_rootfs; }; #endif // UNINSTALLCONFIRMPAGE_H deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/000077500000000000000000000000001474340456100234625ustar00rootroot00000000000000deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/InfoCommandLinkButton.cpp000066400000000000000000000016171474340456100303770ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "InfoCommandLinkButton.h" #include "utils/utils.h" #include InfoCommandLinkButton::InfoCommandLinkButton(QString text, QWidget *parent) : DCommandLinkButton(text, parent) { QString fontFamily = Utils::loadFontFamilyByType(Utils::SourceHanSansNormal); Utils::bindFontBySizeAndWeight(this, fontFamily, 12, QFont::ExtraLight); // 设置字体大小 this->setFocusPolicy(Qt::TabFocus); // 获取焦点 } void InfoCommandLinkButton::keyPressEvent(QKeyEvent *event) { // 添加回车,换行,空格键盘事件的响应 if (event->key() == Qt::Key_Return || event->key() == Qt::Key_Space || event->key() == Qt::Key_Enter) { if (this->hasFocus()) { // 只有有焦点时才响应 this->clicked(); } } } deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/InfoCommandLinkButton.h000066400000000000000000000007771474340456100300520ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef INFOCOMMANDLINKBUTTON_H #define INFOCOMMANDLINKBUTTON_H #include #include DWIDGET_USE_NAMESPACE class InfoCommandLinkButton : public DCommandLinkButton { public: explicit InfoCommandLinkButton(QString text, QWidget *parent = nullptr); protected: void keyPressEvent(QKeyEvent *event) override; }; #endif // INFOCOMMANDLINKBUTTON_H deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/ShowInstallInfoTextEdit.cpp000066400000000000000000000150131474340456100307240ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "ShowInstallInfoTextEdit.h" #include #include #include #include #include ShowInstallInfoTextEdit::ShowInstallInfoTextEdit(QWidget *parent) : QTextEdit(parent) { setAttribute(Qt::WA_AcceptTouchEvents); // 接受触控事件 grabGesture(Qt::TapGesture); // 获取触控点击事件 grabGesture(Qt::TapAndHoldGesture); // 获取触控点击长按事件 // 滑动鼠标时选中的效果 connect(this, &ShowInstallInfoTextEdit::selectionChanged, this, &ShowInstallInfoTextEdit::onSelectionArea); } void ShowInstallInfoTextEdit::onSelectionArea() { if (m_gestureAction != GA_null) { QTextCursor cursor = textCursor(); if (cursor.selectedText() != "") { cursor.clearSelection(); setTextCursor(cursor); } } } bool ShowInstallInfoTextEdit::event(QEvent *event) { if (event->type() == QEvent::Gesture) gestureEvent(static_cast(event)); return QTextEdit::event(event); } bool ShowInstallInfoTextEdit::gestureEvent(QGestureEvent *event) { if (QGesture *tap = event->gesture(Qt::TapGesture)) tapGestureTriggered(static_cast(tap)); if (QGesture *tapAndHold = event->gesture(Qt::TapAndHoldGesture)) tapAndHoldGestureTriggered(static_cast(tapAndHold)); return true; } void ShowInstallInfoTextEdit::tapGestureTriggered(QTapGesture *tap) { if (nullptr == tap) return; this->clearFocus(); // 单指点击函数 switch (tap->state()) { // 根据点击的状态进行不同的操作 case Qt::GestureStarted: { // 开始点击,记录时间。时间不同 进行不同的操作 m_gestureAction = GA_tap; m_tapBeginTime = QDateTime::currentDateTime().toMSecsSinceEpoch(); break; } case Qt::GestureUpdated: { m_gestureAction = GA_slide; // 触控滑动 break; } case Qt::GestureCanceled: { // 根据时间长短区分轻触滑动 qint64 timeSpace = QDateTime::currentDateTime().toMSecsSinceEpoch() - m_tapBeginTime; if (timeSpace < TAP_MOVE_DELAY || m_slideContinue) { // 普通滑动 m_slideContinue = false; m_gestureAction = GA_slide; } else { // 选中滑动 m_gestureAction = GA_null; } break; } case Qt::GestureFinished: { m_gestureAction = GA_null; break; } default: { Q_ASSERT(false); break; } } } void ShowInstallInfoTextEdit::tapAndHoldGestureTriggered(QTapAndHoldGesture *tapAndHold) { if (nullptr == tapAndHold) return; // 单指长按 switch (tapAndHold->state()) { case Qt::GestureStarted: m_gestureAction = GA_hold; break; case Qt::GestureUpdated: Q_ASSERT(false); break; case Qt::GestureCanceled: Q_ASSERT(false); break; case Qt::GestureFinished: m_gestureAction = GA_null; break; default: Q_ASSERT(false); break; } } void ShowInstallInfoTextEdit::slideGesture(qreal diff) { static qreal delta = 0.0; int step = static_cast(diff + delta); delta = diff + delta - step; verticalScrollBar()->setValue(verticalScrollBar()->value() + step); // 移动滚动条 } void ShowInstallInfoTextEdit::mouseReleaseEvent(QMouseEvent *e) { change = 0.0; duration = 0.0; // add for single refers to the sliding if (e->type() == QEvent::MouseButtonRelease && e->source() == Qt::MouseEventSynthesizedByQt) { if (m_gestureAction == GA_slide) { // 滑动结束,开始惯性滑动 tween.start(0, 0, change, duration, std::bind(&ShowInstallInfoTextEdit::slideGesture, this, std::placeholders::_1)); } m_gestureAction = GA_null; } int i = m_end - m_start; if (Qt::MouseEventSynthesizedByQt == e->source() && (i > 10 && this->verticalScrollBar()->value() != 0)) { e->accept(); return; } return QTextEdit::mouseReleaseEvent(e); } void ShowInstallInfoTextEdit::mouseMoveEvent(QMouseEvent *e) { if (Qt::MouseEventSynthesizedByQt == e->source()) { m_end = e->y(); } // 单指滑动 if (e->type() == QEvent::MouseMove && e->source() == Qt::MouseEventSynthesizedByQt) { const ulong diffTime = e->timestamp() - m_lastMouseTime; const int diffpos = e->pos().y() - m_lastMousepos; m_lastMouseTime = e->timestamp(); m_lastMousepos = e->pos().y(); if (m_gestureAction == GA_slide) { QFont font = this->font(); /*开根号时数值越大衰减比例越大*/ qreal direction = diffpos < 0 ? 1.0 : -1.0; // 确定滑动方向 slideGesture(-direction * sqrt(abs(diffpos)) / font.pointSize()); /*预算惯性滑动时间*/ m_stepSpeed = static_cast(diffpos) / static_cast(diffTime + 0.000001); duration = sqrt(abs(m_stepSpeed)) * 1000; /*预算惯性滑动距离,4.0为调优数值*/ m_stepSpeed /= sqrt(font.pointSize() * 4.0); change = m_stepSpeed * sqrt(abs(m_stepSpeed)) * 100; // 如果放到外面会屏蔽掉选中 return; // 此时屏蔽其他触控效果 } } QTextEdit::mouseMoveEvent(e); } FlashTween::FlashTween() { m_timer = new QTimer(this); connect(m_timer, &QTimer::timeout, this, &FlashTween::__run); } void FlashTween::start(qreal t, qreal b, qreal c, qreal d, FunSlideInertial f) { if (c == 0.0 || d == 0.0) return; m_currentTime = t; m_beginValue = b; m_changeValue = c; m_durationTime = d; m_lastValue = 0; m_fSlideGesture = f; m_direction = m_changeValue > 0 ? 1 : -1; // 确定滑动方向 m_timer->stop(); m_timer->start(CELL_TIME); } void FlashTween::__run() { qreal tempValue = m_lastValue; m_lastValue = FlashTween::sinusoidalEaseOut(m_currentTime, m_beginValue, abs(m_changeValue), m_durationTime); m_fSlideGesture(m_direction * (m_lastValue - tempValue)); if (m_currentTime < m_durationTime) { m_currentTime += CELL_TIME; } else { m_timer->stop(); } } deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/ShowInstallInfoTextEdit.h000066400000000000000000000133331474340456100303740ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef SHOWINSTALLINFOTEXTEDIT_H #define SHOWINSTALLINFOTEXTEDIT_H #include #include #include #include #include #define CELL_TIME 15 #define TAP_MOVE_DELAY 300 // Tween算法(模拟惯性) typedef std::function FunSlideInertial; class FlashTween : public QObject { Q_OBJECT public: FlashTween(); ~FlashTween() {} public: void start(qreal t, qreal b, qreal c, qreal d, FunSlideInertial fSlideGesture); void stop() { m_timer->stop(); } bool active() { return m_timer->isActive(); } private slots: void __run(); private: QTimer *m_timer = nullptr; FunSlideInertial m_fSlideGesture = nullptr; // 纵向单指惯性滑动 qreal m_currentTime = 0; qreal m_beginValue = 0; qreal m_changeValue = 0; qreal m_durationTime = 0; qreal m_direction = 1; qreal m_lastValue = 0; private: /** 链接:https://www.cnblogs.com/cloudgamer/archive/2009/01/06/Tween.html 效果说明 Linear:无缓动效果; Quadratic:二次方的缓动(t^2); Cubic:三次方的缓动(t^3); Quartic:四次方的缓动(t^4); Quintic:五次方的缓动(t^5); Sinusoidal:正弦曲线的缓动(sin(t)); Exponential:指数曲线的缓动(2^t); Circular:圆形曲线的缓动(sqrt(1-t^2)); Elastic:指数衰减的正弦曲线缓动; Back:超过范围的三次方缓动((s+1)*t^3 - s*t^2); Bounce:指数衰减的反弹缓动。 每个效果都分三个缓动方式(方法),分别是: easeIn:从0开始加速的缓动; easeOut:减速到0的缓动; easeInOut:前半段从0开始加速,后半段减速到0的缓动。 其中Linear是无缓动效果,没有以上效果。 四个参数分别是: t: current time(当前时间); b: beginning value(初始值); c: change in value(变化量); d: duration(持续时间)。 */ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wsequence-point" static qreal quadraticEaseOut(qreal t, qreal b, qreal c, qreal d) { return -c * (t /= d) * (t - 2) + b; } static qreal cubicEaseOut(qreal t, qreal b, qreal c, qreal d) { return c * ((t = t / d - 1) * t * t + 1) + b; } static qreal quarticEaseOut(qreal t, qreal b, qreal c, qreal d) { return -c * ((t = t / d - 1) * t * t * t - 1) + b; } static qreal quinticEaseOut(qreal t, qreal b, qreal c, qreal d) { return c * ((t = t / d - 1) * t * t * t * t + 1) + b; } static qreal sinusoidalEaseOut(qreal t, qreal b, qreal c, qreal d) { return c * sin(t / d * (3.14 / 2)) + b; } static qreal circularEaseOut(qreal t, qreal b, qreal c, qreal d) { return c * sqrt(1 - (t = t / d - 1) * t) + b; } static qreal bounceEaseOut(qreal t, qreal b, qreal c, qreal d) { if ((t /= d) < (1 / 2.75)) { return c * (7.5625 * t * t) + b; } else if (t < (2 / 2.75)) { return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b; } else if (t < (2.5 / 2.75)) { return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b; } else { return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b; } } #pragma GCC diagnostic pop }; /** * @brief The ShowInstallInfoTextEdit class * QTextEdit控件 修改部分触控事件 */ class ShowInstallInfoTextEdit : public QTextEdit { Q_OBJECT public: explicit ShowInstallInfoTextEdit(QWidget *parent = nullptr); // QObject interface public: bool event(QEvent *event) override; // QWidget interface protected: void mouseReleaseEvent(QMouseEvent *event) override; // QWidget interface protected: void mouseMoveEvent(QMouseEvent *event) override; private: /** * @brief gestureEvent 手势事件 * @param event * @return */ bool gestureEvent(QGestureEvent *event); /** * @brief tapGestureTriggered 单击手势事件 */ void tapGestureTriggered(QTapGesture *); /** * @brief tapAndHoldGestureTriggered 单指长按事件 */ void tapAndHoldGestureTriggered(QTapAndHoldGesture *); /** * @brief slideGesture 单指滑动手势(通过原生触摸屏事件进行抽象模拟) * @param diff * add for single refers to the sliding */ void slideGesture(qreal diff); /** * @brief onSelectionArea 滑动选中事件 */ void onSelectionArea(); private: // 触摸屏手势动作 enum GestureAction { GA_null, // 无动作 GA_tap, // 点击 GA_slide, // 滑动 GA_hold, // 长按 }; GestureAction m_gestureAction = GA_null; // 手势动作 默认误动作 qint64 m_tapBeginTime = 0; // 开始点击的时间 bool m_slideContinue = false; // 是否持续滑动 // add for single refers to the sliding FlashTween tween; // 滑动惯性 qreal change = {0.0}; // 滑动变化量 qreal duration = {0.0}; // 滑动方向 // 鼠标事件的位置 int m_start = 0; // 开始时鼠标的位置 int m_end = 0; // 结束时鼠标的位置 qreal m_stepSpeed = 0; // 移动的速度 int m_lastMousepos = 0; // 上次移动后鼠标的位置 ulong m_lastMouseTime = 0; // 上次移动鼠标的时间 int m_nSelectEndLine = 0; //< 选择结束时后鼠标所在行 int m_nSelectStart = 0; //< 选择开始时的鼠标位置 int m_nSelectEnd = 0; //< 选择结束时的鼠标位置 }; #endif // SHOWINSTALLINFOTEXTEDIT_H deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/choosefilebutton.cpp000066400000000000000000000021331474340456100275410ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "choosefilebutton.h" #include "utils/utils.h" #include #include ChooseFileButton::ChooseFileButton(QString text, QWidget *parent) : DCommandLinkButton(text, parent) { QString fontFamily = Utils::loadFontFamilyByType(Utils::SourceHanSansNormal); // 设置字体 Utils::bindFontBySizeAndWeight(this, fontFamily, 12, QFont::ExtraLight); // 设置字体样式与字体大小 this->setFocusPolicy(Qt::TabFocus); // 设置本身可以被焦点选中 // 添加AccessibleName this->setObjectName("ChooseFileButton"); this->setAccessibleName("ChooseFileButton"); } void ChooseFileButton::keyPressEvent(QKeyEvent *event) { // 当按下回车、换行、或空格时,如果当前按钮存在焦点则触发click事件 if (event->key() == Qt::Key_Return || event->key() == Qt::Key_Space || event->key() == Qt::Key_Enter) { if (this->hasFocus()) { this->clicked(); } } } deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/choosefilebutton.h000066400000000000000000000013541474340456100272120ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef CHOOSEFILEBUTTON_H #define CHOOSEFILEBUTTON_H #include #include DWIDGET_USE_NAMESPACE /** * @brief The ChooseFileButton class * 文件选择对话框中的文件选择按钮 * 一开始使用的控件为DPushButton ,后UI与测试提出按钮需要跟随活动色变化。后修改为DCommandLinkButton. */ class ChooseFileButton : public DCommandLinkButton { Q_OBJECT public: explicit ChooseFileButton(QString text, QWidget *parent = nullptr); // QWidget interface protected: void keyPressEvent(QKeyEvent *event) override; }; #endif // CHOOSEFILEBUTTON_H deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/coloredprogressbar.cpp000066400000000000000000000054641474340456100301000ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "coloredprogressbar.h" #include #include #include #include #include #include ColoredProgressBar::ColoredProgressBar(QWidget *parent) : QProgressBar(parent) { themeChanged(); QObject::connect( DGuiApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, &ColoredProgressBar::themeChanged); } void ColoredProgressBar::themeChanged() { DGuiApplicationHelper::ColorType themeType = DGuiApplicationHelper::instance()->themeType(); m_themeType = themeType; if (themeType == DGuiApplicationHelper::LightType) { threshmap.clear(); } else if (themeType == DGuiApplicationHelper::DarkType) { DPalette pa = DebApplicationHelper::instance()->palette(this); QColor colorStart = pa.color(QPalette::Highlight); QColor colorEnd = pa.color(QPalette::HighlightedText); threshmap.insert(0, QBrush(colorStart)); threshmap.insert(1, QBrush(colorEnd)); } else { threshmap.clear(); } } void ColoredProgressBar::addThreshold(int threshold, QBrush brush) { threshmap[threshold] = brush; } void ColoredProgressBar::removeThreshold(int threshold) { if (threshmap.contains(threshold)) { threshmap.remove(threshold); } } QList ColoredProgressBar::thresholds() const { return threshmap.keys(); } void ColoredProgressBar::paintEvent(QPaintEvent *event) { DGuiApplicationHelper::ColorType themeType = DGuiApplicationHelper::instance()->themeType(); if (themeType == DGuiApplicationHelper::LightType) { QProgressBar::paintEvent(event); } else if (themeType == DGuiApplicationHelper::DarkType) { QStylePainter painter(this); QStyleOptionProgressBar styopt; initStyleOption(&styopt); if (threshmap.upperBound(value()) != threshmap.begin()) { styopt.palette.setBrush(QPalette::ColorRole::Highlight, (--threshmap.upperBound(value())).value()); } painter.setRenderHint(QPainter::Antialiasing); painter.setPen(Qt::NoPen); painter.drawRect(styopt.rect); painter.drawControl(QStyle::ControlElement::CE_ProgressBarGroove, styopt); painter.drawControl(QStyle::ControlElement::CE_ProgressBarContents, styopt); #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) if (styopt.textVisible && styopt.orientation == Qt::Horizontal) { #else if (styopt.textVisible && (styopt.direction == Qt::LeftToRight || styopt.direction == Qt::RightToLeft)) { #endif painter.drawControl(QStyle::ControlElement::CE_ProgressBarLabel, styopt); } } else { QProgressBar::paintEvent(event); } } deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/coloredprogressbar.h000066400000000000000000000031141474340456100275330ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #pragma once #include "dtkwidget_global.h" #include "utils/utils.h" #include #include DCORE_USE_NAMESPACE DWIDGET_USE_NAMESPACE /*! * \class ColoredProgressBar * \brief ColoredProgressBar is the same as QProgressBar, except it can change its appearance depending on the value displayed. */ class ColoredProgressBar : public QProgressBar { Q_OBJECT public: explicit ColoredProgressBar(QWidget *parent = nullptr); /*! * \brief ColoredProgressBar::addThreshold adds a new threshold value and specifies the brush to use once that value is * reached. If a threshold of the same value already exists, it will be overwritten. \param threshold Minimum value for this * brush to be used. \param brush The brush to use when the currently displayed value is no less than \threshold and less than * the next threshold value. */ void addThreshold(int threshold, QBrush brush); /*! * \brief ColoredProgressBar::removeThreshold removes a threshold. * \param threshold The threshold value to remove. */ void removeThreshold(int threshold); QList thresholds() const; protected: /*! * \brief ColoredProgressBar::threadsholds gets all threshold values. * \return A list of threshold values. */ void paintEvent(QPaintEvent *) override; private: DGuiApplicationHelper::ColorType m_themeType; QMap threshmap; private slots: void themeChanged(); }; deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/debinfolabel.cpp000066400000000000000000000107501474340456100265770ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "debinfolabel.h" #include "utils/utils.h" #include #include #include DebInfoLabel::DebInfoLabel(QWidget *parent, Qt::WindowFlags windowFlags) : DLabel(parent, windowFlags) , m_colorRole(QPalette::NoRole) , m_colorType(DPalette::NoType) , m_bUserColorType(false) { // 设置AccessibleName this->setAccessibleName("DebInfoLabel"); this->setObjectName("DebInfoLabel"); } void DebInfoLabel::setCustomQPalette(QPalette::ColorRole colorRole) { m_colorRole = colorRole; // 获取当前使用QPalette的字体颜色角色 m_bUserColorType = false; // 当前使用的不是DPalette // 判断传入的QPalette是否是WindowText 如果是则设置当前Label的Palette的画刷为DGuiApplicationHelper画刷,颜色为WindowText // 否则设置当前的Label的Palette的画刷为DebApplicationHelperr画刷,颜色为传入的颜色 if (m_colorRole == QPalette::WindowText) { DPalette palette = DPaletteHelper::instance()->palette(this); palette.setBrush(QPalette::Text, palette.color(QPalette::WindowText)); this->setPalette(palette); } else { DPalette palette = DebApplicationHelper::instance()->palette(this); palette.setBrush(DPalette::Text, palette.color(m_colorRole)); this->setPalette(palette); } } void DebInfoLabel::setCustomDPalette(DPalette::ColorType colorType) { m_colorType = colorType; // 获取当前使用DPalette的字体颜色类型 m_bUserColorType = true; // 当前使用的是DPalette m_bMultiIns = false; // 当前使用的不是默认颜色 // 设置当前的Label的Palette的画刷为DebApplicationHelperr画刷,颜色为传入的颜色 DPalette palette = DebApplicationHelper::instance()->palette(this); palette.setBrush(DPalette::WindowText, palette.color(m_colorType)); this->setPalette(palette); } void DebInfoLabel::setCustomDPalette() { m_bMultiIns = true; // 当前使用的是默认的颜色 m_bUserColorType = true; // 当前是用的是DPalette // 设置当前的Label的Palette的画刷为DGuiApplicationHelper画刷,颜色为默认的颜色 DPalette palette = DPaletteHelper::instance()->palette(this); palette.setBrush(DPalette::WindowText, QColor(00, 130, 252)); this->setPalette(palette); } void DebInfoLabel::setTextAndTips(const QString &text) { setText(text); m_toolTip = text; updateTipText(); } void DebInfoLabel::paintEvent(QPaintEvent *event) { QWidget tmpWidget; if (m_bUserColorType) { // 当前使用的是DPalette if (m_bMultiIns) { // 当前使用的是默认颜色 DPalette palette = DebApplicationHelper::instance()->palette(&tmpWidget); QPainter painter(this); painter.setPen(QColor(00, 130, 252)); painter.drawText(contentsRect(), static_cast(alignment()), paintText()); QWidget::paintEvent(event); } else { // 当前使用的是自定义颜色 DPalette palette = DebApplicationHelper::instance()->palette(&tmpWidget); QPainter painter(this); painter.setPen(QColor(palette.color(m_colorType))); painter.drawText(contentsRect(), static_cast(alignment()), paintText()); QWidget::paintEvent(event); } } else { // 当前使用的是QPalette if (m_colorRole == QPalette::WindowText) { DLabel::paintEvent(event); } else { DPalette palette = DebApplicationHelper::instance()->palette(&tmpWidget); QPainter painter(this); painter.setPen(QColor(palette.color(m_colorRole))); painter.drawText(contentsRect(), static_cast(alignment()), paintText()); QWidget::paintEvent(event); } } } QString DebInfoLabel::paintText() { // update tips while repaint updateTipText(); QString paintString = text(); if (Qt::ElideNone != elideMode()) { return fontMetrics().elidedText(paintString, elideMode(), width()); } return paintString; } /** * @brief Default tooltip not provides wordwrap, use QTextDocument layout instead. */ void DebInfoLabel::updateTipText() { if (m_toolTip.isEmpty()) { setToolTip(m_toolTip); return; } QString tipsText = Utils::formatWrapText(m_toolTip, width()); setToolTip(tipsText); } deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/debinfolabel.h000066400000000000000000000036701474340456100262470ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef DEBINFOLABEL_H #define DEBINFOLABEL_H #include #include DWIDGET_USE_NAMESPACE class QTextDocument; /** * @brief The DebInfoLabel class * singleInstallPage 中 package name、 package version 与 tipsLabel 的控件 * 基于DLabel 对不同情况下的Dlabel进行界面上的风格样式修改,保证界面上风格的统一 * */ class DebInfoLabel : public DLabel { Q_OBJECT public: explicit DebInfoLabel(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags()); /** * @brief setCustomQPalette 设置自适应的QPalette * @param colorRole 字体颜色角色 * 目前使用到此类型的有 singleInstallPage的packgeName packageVersion 以及他们提示的label */ void setCustomQPalette(QPalette::ColorRole colorRole); /** * @brief setCustomDPalette 设置自适应的DPalette * @param colorType 字体颜色的类型 * 目前使用到此类型的有 singleInstallPage的m_tipsLabel(单包安装时状态[依赖状态][安装状态][版本状态]提示) */ void setCustomDPalette(DPalette::ColorType colorType); /** * @brief setCustomDPalette 设置默认的DPalette * 目前没有函数使用到此类型 */ void setCustomDPalette(); void setTextAndTips(const QString &text); void paintEvent(QPaintEvent *event) override; private: [[nodiscard]] QString paintText(); void updateTipText(); private: QPalette::ColorRole m_colorRole; // 当前label的字体颜色角色(QPalette) DPalette::ColorType m_colorType; // 当前Label的字体颜色类型(DPalette) bool m_bUserColorType = false; // 是否是使用的DPalette bool m_bMultiIns = false; // 是否是使用的自定义DPalette风格 QString m_toolTip; }; #endif // DEBINFOLABEL_H deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/droundbgframe.cpp000066400000000000000000000024701474340456100270100ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "droundbgframe.h" #include "utils/utils.h" #include #include #include #include #include #include DRoundBgFrame::DRoundBgFrame(QWidget *parent, int bgOffsetTop, int bgOffsetBottom) : QWidget(parent) , m_bgOffsetTop(bgOffsetTop) , m_bgOffsetBottom(bgOffsetBottom) { // 添加accessibleName this->setObjectName("DRoundBgFrame"); this->setAccessibleName("DRoundBgFrame"); } void DRoundBgFrame::paintEvent(QPaintEvent *event) { Q_UNUSED(event) QPainter painter(this); painter.setRenderHint(QPainter::Antialiasing, true); // 设置边缘抗锯齿 DPalette pa = DebApplicationHelper::instance()->palette(this); QPainterPath path; QRectF rect = this->rect(); rect.setX(0); // 设置x位置 rect.setY(m_bgOffsetTop); // 设置y位置 rect.setWidth(rect.width()); // 设置宽度 rect.setHeight(rect.height() - m_bgOffsetBottom); // 设置高度 path.addRoundedRect(rect, 8, 8); painter.fillPath(path, QBrush(pa.color(DPalette::Base))); // 填充颜色 } deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/droundbgframe.h000066400000000000000000000011271474340456100264530ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef DROUNDBGFRAME_H #define DROUNDBGFRAME_H #include DWIDGET_USE_NAMESPACE class DRoundBgFrame : public QWidget { public: DRoundBgFrame(QWidget *parent = nullptr, int bgOffsetTop = 0, int bgOffsetBottom = 0); void paintEvent(QPaintEvent *) override; public slots: void slotShowHideTopBg(bool bShow); void slotShowHideBottomBg(bool bShow); private: int m_bgOffsetTop = 0; int m_bgOffsetBottom = 0; }; #endif // DROUNDBGFRAME_H deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/error_notify_dialog_helper.cpp000066400000000000000000000047701474340456100315750ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "error_notify_dialog_helper.h" #include #include #include #include #include "utils/hierarchicalverify.h" DWIDGET_USE_NAMESPACE static const int kDefaultDialogWidth = 380; /** * @class ErrorNotifyDialogHelper * @brief A helper class to show the error notify dialog. */ ErrorNotifyDialogHelper::ErrorNotifyDialogHelper(QObject *parent) : QObject{parent} { } void ErrorNotifyDialogHelper::showHierarchicalVerifyWindow() { if (!HierarchicalVerify::instance()->isValid()) { return; } DDialog *dialog = new DDialog(); // limit the display width dialog->setFixedWidth(kDefaultDialogWidth); dialog->setFocusPolicy(Qt::TabFocus); dialog->setModal(true); dialog->setWindowFlag(Qt::WindowStaysOnTopHint); // set the information displayed by the pop-up window dialog->setTitle(QObject::tr("Unable to install")); dialog->setMessage( QObject::tr("This package does not have a valid digital signature and has been blocked from installing/running. " "Go to Security Center > Tools > App Security to change the settings.")); dialog->setIcon(QIcon::fromTheme("di_popwarning")); dialog->addButton(QObject::tr("Cancel", "button"), false, DDialog::ButtonNormal); dialog->addButton(QObject::tr("Proceed", "button"), true, DDialog::ButtonRecommend); dialog->show(); // Copy from ddialog.cpp, used to set the default dialog height. // Avoid incomplete display at large font size/high zoom ratio, called after show(). auto *msgLabel = dialog->findChild("MessageLabel"); if (msgLabel) { auto *dialogStyle = dialog->style(); if (dialogStyle) { const QSize sz = dialogStyle->itemTextRect(msgLabel->fontMetrics(), msgLabel->rect(), Qt::TextWordWrap, false, msgLabel->text()) .size(); msgLabel->setMinimumHeight(qMax(sz.height(), msgLabel->sizeHint().height())); } } auto *btnPorceed = qobject_cast(dialog->getButton(1)); if (btnPorceed) { btnPorceed->setFocusPolicy(Qt::TabFocus); btnPorceed->setFocus(); } connect(dialog, &DDialog::finished, [dialog](int result) { if (QDialog::Accepted == result) { HierarchicalVerify::instance()->proceedDefenderSafetyPage(); } dialog->deleteLater(); }); } deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/error_notify_dialog_helper.h000066400000000000000000000011301474340456100312250ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef ERROR_NOTIFY_DIALOG_HELPER_H #define ERROR_NOTIFY_DIALOG_HELPER_H #include // popup error dialogs, support deb / uab packages class ErrorNotifyDialogHelper : public QObject { Q_OBJECT public: explicit ErrorNotifyDialogHelper(QObject *parent = nullptr); ~ErrorNotifyDialogHelper() override = default; static void showHierarchicalVerifyWindow(); private: Q_DISABLE_COPY(ErrorNotifyDialogHelper) }; #endif // ERROR_NOTIFY_DIALOG_HELPER_H deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/filechoosewidget.cpp000066400000000000000000000137261474340456100275230ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "filechoosewidget.h" #include "view/widgets/choosefilebutton.h" #include "utils/utils.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include FileChooseWidget::FileChooseWidget(QWidget *parent) : QWidget(parent) , m_settings("deepin", "deepin-deb-install") { setFocusPolicy(Qt::NoFocus); setAcceptDrops(true); DPalette palette; // fileChooseWidget的图标 m_iconImage = new DLabel(this); // 添加AccessibleName m_iconImage->setObjectName("iconImage"); m_iconImage->setAccessibleName("iconImage"); m_iconImage->setFixedSize(160, 160); #ifdef SHOWBORDER iconImage->setStyleSheet("QLabel{border:1px solid black;}"); #endif // 拖入提示语 m_dndTips = new DLabel(this); m_dndTips->setMinimumHeight(30); m_dndTips->setAlignment(Qt::AlignTop); m_dndTips->setText(tr("Drag deb packages here")); // 添加AccessibleName m_dndTips->setObjectName("DNDTips"); // 修改字体颜色 palette = DPaletteHelper::instance()->palette(m_dndTips); palette.setBrush(DPalette::WindowText, palette.color(DPalette::TextTips)); m_dndTips->setPalette(palette); // 修改字体大小与字体类型 QString fontFamily = Utils::loadFontFamilyByType(Utils::SourceHanSansNormal); Utils::bindFontBySizeAndWeight(m_dndTips, fontFamily, 12, QFont::ExtraLight); #ifdef SHOWBORDER dndTips->setStyleSheet("QLabel{border:1px solid black;}"); #endif // 分割线 split_line = new DLabel(this); // 添加AccessibleName split_line->setObjectName("SplitLine"); split_line->setAccessibleName("SplitLine"); // 显示的大图标 QIcon icon_install = QIcon::fromTheme("di_icon_install"); m_iconImage->setPixmap(icon_install.pixmap(QSize(160, 160))); // 显示的分割线 QIcon icon_split_line = QIcon::fromTheme("di_split_line"); split_line->setPixmap(icon_split_line.pixmap(QSize(220, 3))); split_line->setFixedHeight(3); // fix bug:33999 change DButton to DCommandLinkButton for Activity color // m_chooseFileBtn = new ChooseFileButton(this); m_chooseFileBtn = new ChooseFileButton("", this); m_chooseFileBtn->setMinimumHeight(28); // 添加AccessibleName m_chooseFileBtn->setObjectName("FileChooseButton"); m_chooseFileBtn->setAccessibleName("FileChooseButton"); m_chooseFileBtn->setText(tr("Select File")); #ifdef SHOWBORDER m_chooseFileBtn->setStyleSheet("QPushButton{border:1px solid black;}"); #endif // 大图标的布局 QVBoxLayout *centralLayout = new QVBoxLayout(this); centralLayout->addSpacing(32); centralLayout->addWidget(m_iconImage); // 设置图标居中 centralLayout->setAlignment(m_iconImage, Qt::AlignHCenter); // 图标下是提示 centralLayout->addSpacing(8); centralLayout->addWidget(m_dndTips); // 提示居中显示 centralLayout->setAlignment(m_dndTips, Qt::AlignHCenter); // 分割线 centralLayout->addWidget(split_line); centralLayout->setAlignment(split_line, Qt::AlignHCenter); centralLayout->addSpacing(11); // 文件选择按钮 centralLayout->addWidget(m_chooseFileBtn); // 文件选择按钮居中显示 centralLayout->setAlignment(m_chooseFileBtn, Qt::AlignHCenter); centralLayout->addStretch(); centralLayout->setSpacing(0); centralLayout->setContentsMargins(0, 0, 0, 0); setLayout(centralLayout); // 文件选择后,将数据传到chooseFiles信号中 connect(m_chooseFileBtn, &ChooseFileButton::clicked, this, &FileChooseWidget::chooseFiles); // 主题变换时,修改图标的颜色 QObject::connect( DGuiApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, &FileChooseWidget::themeChanged); } void FileChooseWidget::showEvent(QShowEvent *e) { QWidget::showEvent(e); m_chooseFileBtn->setFocus(); } void FileChooseWidget::chooseFiles() { QString historyDir = m_settings.value("history_dir").toString(); // 获取保存的文件路径 if (historyDir.isEmpty()) { historyDir = QDir::homePath(); } // 为DFileDialog指定父对象 DFileDialog dialog(this); // 获取文件 dialog.setFileMode(QFileDialog::ExistingFiles); dialog.setNameFilter("Debian / Linglong Package Files (*.deb *.uab)"); dialog.setDirectory(historyDir); // 设置打开的路径为保存的路径 auto mode = dialog.exec(); // 打开文件选择窗口 QString currentPackageDir = dialog.directoryUrl().toLocalFile(); // 获取当前打开的文件夹路径 if (mode != QDialog::Accepted) { m_chooseFileBtn->setFocus(); return; } const QStringList selected_files = dialog.selectedFiles(); // 获取选中的文件 emit packagesSelected(selected_files); // 发送信号 // 判断路径信息是否为本地路径 if (!selected_files.isEmpty() && Pkg::PkgReadable == Utils::checkPackageReadable(selected_files.first())) { // 本地路径,保存当前文件路径 m_settings.setValue("history_dir", currentPackageDir); } } void FileChooseWidget::themeChanged() { // 更新icon QIcon icon_install = QIcon::fromTheme("di_icon_install"); m_iconImage->setPixmap(icon_install.pixmap(QSize(160, 160))); // 更新 分割线 QIcon icon_split_line = QIcon::fromTheme("di_split_line"); split_line->setPixmap(icon_split_line.pixmap(QSize(220, 3))); // change tips color when theme changed auto palette = DPaletteHelper::instance()->palette(m_dndTips); palette.setBrush(DPalette::WindowText, palette.color(DPalette::TextTips)); m_dndTips->setPalette(palette); } deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/filechoosewidget.h000066400000000000000000000024351474340456100271630ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef FILECHOOSEWIDGET_H #define FILECHOOSEWIDGET_H #include #include #include #include class ChooseFileButton; DWIDGET_USE_NAMESPACE class FileChooseWidget : public QWidget { Q_OBJECT public: explicit FileChooseWidget(QWidget *parent = nullptr); signals: /** * @brief packagesSelected 选择文件信号 * @param files 通过文件选择窗口选择的文件 */ void packagesSelected(const QStringList &files) const; protected: /** @brief 展示控件时设置默认焦点 */ void showEvent(QShowEvent *e); private slots: /** * @brief chooseFiles 打开文件选择窗口,选择文件后将文件保存 */ void chooseFiles(); /** * @brief themeChanged 更换主题时,修改UI */ void themeChanged(); private: ChooseFileButton *m_chooseFileBtn = nullptr; // 文件选择按钮 DLabel *split_line = nullptr; // 分割线 DLabel *m_dndTips = nullptr; // 拖入提示语 DLabel *m_iconImage = nullptr; // 图标 QSettings m_settings; // 保存上次打开的文件路径 }; #endif // FILECHOOSEWIDGET_H deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/infocontrolbutton.cpp000066400000000000000000000127371474340456100277700ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "infocontrolbutton.h" #include "InfoCommandLinkButton.h" #include "utils/utils.h" #include #include #include #include #include #include #include InfoControlButton::InfoControlButton(const QString &expandTips, const QString &shrinkTips, QWidget *parent) : QWidget(parent) , m_expand(false) , m_expandTips(expandTips) , m_shrinkTips(shrinkTips) , m_arrowIcon(new DLabel(this)) , m_tipsText(new InfoCommandLinkButton("", this)) { // 添加AccessibleName m_arrowIcon->setObjectName("arrowIcon"); m_arrowIcon->setAccessibleName("arrowIcon"); // 只有DCommandLinkButton 需要焦点。 this->setFocusPolicy(Qt::NoFocus); this->m_tipsText->setFocusPolicy(Qt::TabFocus); // 设置自身自适应大小 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); m_arrowIcon->setAlignment(Qt::AlignCenter); // 设置展开收缩的图标 QIcon arrow_up = QIcon::fromTheme("di_arrow_up"); m_arrowIcon->setPixmap(arrow_up.pixmap(QSize(25, 8))); // 设置图标的高度 m_arrowIcon->setFixedHeight(8); // 默认设置展开。所以设置展开的提示语 m_tipsText->setText(expandTips); QFontInfo fontinfo = m_tipsText->fontInfo(); // 设置提示语的高度 m_tipsText->setFixedHeight(20); // 设置提示的字体颜色与字体大小 QString normalFontFamily = Utils::loadFontFamilyByType(Utils::SourceHanSansNormal); Utils::bindFontBySizeAndWeight(m_tipsText, normalFontFamily, 12, QFont::ExtraLight); // 将控件设置布局 centralLayout = new QVBoxLayout(this); // 设置上下左右边界 centralLayout->setContentsMargins(0, 0, 0, 0); // 添加控件到布局中 centralLayout->addWidget(m_arrowIcon); centralLayout->addWidget(m_tipsText); // keep the tips in the middle centralLayout->setAlignment(m_tipsText, Qt::AlignCenter); setLayout(centralLayout); // 适应主题变化 QObject::connect( DGuiApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, &InfoControlButton::themeChanged); // add clicked connection fot expand or shrink connect(m_tipsText, &DCommandLinkButton::clicked, this, &InfoControlButton::onMouseRelease); } QAbstractButton *InfoControlButton::controlButton() { return m_tipsText; } void InfoControlButton::mouseReleaseEvent(QMouseEvent *mouseEvent) { QWidget::mouseReleaseEvent(mouseEvent); onMouseRelease(); // 鼠标事件的响应 } void InfoControlButton::keyPressEvent(QKeyEvent *event) { // 添加回车键,空格键,换行键来触发展开或收缩 if (event->key() == Qt::Key_Return || event->key() == Qt::Key_Space || event->key() == Qt::Key_Enter) { if (this->hasFocus()) { m_tipsText->clicked(); } } } void InfoControlButton::onMouseRelease() { if (m_expand) { // 当前已经展开 emit shrink(); // 发送收缩信号 } else { emit expand(); // 发送展开信号 } m_expand = !m_expand; // 修改标志 centralLayout->removeWidget(m_arrowIcon); centralLayout->removeWidget(m_tipsText); if (!m_expand) { // 当前是收缩状态 centralLayout->setSpacing(5); centralLayout->addWidget(m_arrowIcon); // 添加图片 centralLayout->addWidget(m_tipsText); // 添加提示 // fix bug: 33999 keep tips in the middle when install details hidden centralLayout->setAlignment(m_tipsText, Qt::AlignCenter); QIcon arrow_up = QIcon::fromTheme("di_arrow_up"); // 设置图标为展开的图标 m_arrowIcon->setPixmap(arrow_up.pixmap(QSize(25, 8))); m_tipsText->setText(m_expandTips); // 设置提示为展开的提示 } else { // 当前是展开状态 centralLayout->setSpacing(0); centralLayout->addWidget(m_tipsText); // 添加提示 // fix bug: 33999 keep tips in the middle when details show centralLayout->setAlignment(m_tipsText, Qt::AlignCenter); centralLayout->addWidget(m_arrowIcon); // 添加图标 QIcon arrow_up = QIcon::fromTheme("di_arrow_down"); // 设置图标为收缩的图标 m_arrowIcon->setPixmap(arrow_up.pixmap(QSize(25, 8))); m_tipsText->setText(m_shrinkTips); // 设置提示为收缩的提示 } } void InfoControlButton::setExpandTips(const QString text) { m_expandTips = text; // 保存提示语 m_tipsText->setText(m_expandTips); // 设置提示语 } void InfoControlButton::shrinkContent() { if (m_expand) { onMouseRelease(); } } void InfoControlButton::setShrinkTips(const QString text) { m_shrinkTips = text; // 保存提示语 m_tipsText->setText(m_shrinkTips); // 设置提示语 } void InfoControlButton::themeChanged() { if (m_expand) { // 当前是展开状态 QIcon arrow_down = QIcon::fromTheme("di_arrow_down"); // 重新获取收缩的提示 m_arrowIcon->setPixmap(arrow_down.pixmap(QSize(25, 8))); } else { // 当前是收缩状态 QIcon arrow_up = QIcon::fromTheme("di_arrow_up"); // 重新设置展开的提示 m_arrowIcon->setPixmap(arrow_up.pixmap(QSize(25, 8))); } } deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/infocontrolbutton.h000066400000000000000000000042531474340456100274270ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef INFOCONTROLBUTTON_H #define INFOCONTROLBUTTON_H #include #include #include DWIDGET_USE_NAMESPACE #define THEME_DARK 2 //"dark" #define THEME_LIGHT 1 //"light" class InfoCommandLinkButton; class InfoControlButton : public QWidget { Q_OBJECT public: explicit InfoControlButton(const QString &expandTips, const QString &shrinkTips, QWidget *parent = nullptr); /** * @brief setShrinkTips 设置收缩的提示语 * @param text 提示语 */ void setShrinkTips(const QString text); /** * @brief setExpandTips 设置展开的提示语 * @param text 提示语 */ void setExpandTips(const QString text); void shrinkContent(); public: /** * @brief linkButton 返回当前使用的CommandLinkButton * @return 当前使用的CommandLinkButton */ QAbstractButton *controlButton(); signals: /** * @brief expand 展开的信号 */ void expand(); /** * @brief shrink 收缩的信号 */ void shrink(); protected: /** * @brief mouseReleaseEvent 重写鼠标事件 */ void mouseReleaseEvent(QMouseEvent *) override; /** * @brief keyPressEvent 重写按键事件 增加对回车、换行、空格的兼容 * @param event */ void keyPressEvent(QKeyEvent *event) override; private slots: /** * @brief onMouseRelease 鼠标事件的具体实现 */ void onMouseRelease(); /** * @brief themeChanged 主题变化后,图标等的变化 */ void themeChanged(); private: bool m_expand = false; // 当前是需要扩展还是收缩的标志位 QString m_expandTips = ""; // 展开的提示语 QString m_shrinkTips = ""; // 收缩的提示语 DLabel *m_arrowIcon = nullptr; // 展开或收缩的图标 QVBoxLayout *centralLayout = nullptr; // 布局 // DCommandLinkButton for Activity color InfoCommandLinkButton *m_tipsText = nullptr; // }; #endif // INFOCONTROLBUTTON_H deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/installprocessinfoview.cpp000066400000000000000000000112631474340456100310050ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "installprocessinfoview.h" #include "droundbgframe.h" #include "utils/utils.h" #include "ShowInstallInfoTextEdit.h" #include #include #include InstallProcessInfoView::InstallProcessInfoView(int w, int h, QWidget *parent) : QWidget(parent) , m_editor(new ShowInstallInfoTextEdit(this)) // 修改为自写控件 { initUI(w, h); // 数据更新后,直接跳转到最后一行 connect(m_editor, &QTextEdit::textChanged, this, &InstallProcessInfoView::slotMoveCursorToEnd); // 设置TextEdit和InfoView为无焦点 this->setFocusPolicy(Qt::NoFocus); m_editor->setFocusPolicy(Qt::NoFocus); } void InstallProcessInfoView::slotMoveCursorToEnd() { m_editor->moveCursor(QTextCursor::End); } void InstallProcessInfoView::initUI(int w, int h) { // 设置控件背景色 DRoundBgFrame *bgFrame = new DRoundBgFrame(this); bgFrame->setFixedSize(w, h); // edit的布局 QVBoxLayout *editLayout = new QVBoxLayout(this); editLayout->setSpacing(0); editLayout->setContentsMargins(5, 1, 0, 5); // 设置上下左右边距 bgFrame->setLayout(editLayout); editLayout->addWidget(m_editor); // 设置控件的字体类型和字体大小 QString textFont = Utils::loadFontFamilyByType(Utils::DefautFont); Utils::bindFontBySizeAndWeight(m_editor, textFont, 11, QFont::Light); // 设置字体颜色 DebApplicationHelper *pdebhelp = DebApplicationHelper::instance(); if (nullptr == pdebhelp) { return; } DPalette pa = m_editor->palette(); m_colorType = DPalette::TextTips; pa.setColor(DPalette::Text, pa.color(m_colorType)); pa.setColor(DPalette::HighlightedText, QColor(Qt::white)); pa.setColor(DPalette::Highlight, DGuiApplicationHelper::instance()->applicationPalette().highlight().color()); m_editor->setPalette(pa); // 设置只读,不允许对其进行修改 m_editor->setReadOnly(true); m_editor->setFrameShape(QFrame::NoFrame); // 设置frame类型为noframe m_editor->viewport()->setBackgroundRole(QPalette::Window); // 设置内容的背景色 m_editor->viewport()->setAutoFillBackground(false); QTextCursor textCursor = m_editor->textCursor(); // 获取游标 QTextBlockFormat textBlockFormat; // 设置行高 textBlockFormat.setLineHeight(20, QTextBlockFormat::FixedHeight); // 设置行间距 textBlockFormat.setBottomMargin(1); textCursor.setBlockFormat(textBlockFormat); m_editor->setTextCursor(textCursor); } void InstallProcessInfoView::setTextFontSize(int fontSize, int fontWeight) { QString textFont = Utils::loadFontFamilyByType(Utils::DefautFont); Utils::bindFontBySizeAndWeight(m_editor, textFont, fontSize, fontWeight); } void InstallProcessInfoView::setTextColor(DPalette::ColorType ct) { m_colorType = ct; // 保存传入的颜色类型 DPalette pa = m_editor->palette(); pa.setColor(DPalette::Text, pa.color(m_colorType)); // editor设置传入的颜色类型 pa.setColor(DPalette::HighlightedText, QColor(Qt::white)); pa.setColor(DPalette::Highlight, DGuiApplicationHelper::instance()->applicationPalette().highlight().color()); m_editor->setPalette(pa); } void InstallProcessInfoView::appendText(QString text) { m_editor->append(text); } InstallProcessInfoView::~InstallProcessInfoView() {} void InstallProcessInfoView::paintEvent(QPaintEvent *event) { QWidget::paintEvent(event); DPalette pa = m_editor->palette(); // 获取当前的主题 DGuiApplicationHelper::ColorType themeType = DGuiApplicationHelper::instance()->themeType(); if (themeType == DGuiApplicationHelper::LightType) { // 当前是浅色主题 pa.setColor(DPalette::Text, QColor(96, 157, 200)); } else if (themeType == DGuiApplicationHelper::DarkType) { // 当前是深色主题 pa.setColor(DPalette::Text, QColor(109, 124, 136)); } else { // 默认使用浅色主题 pa.setColor(DPalette::Text, QColor(96, 157, 200)); } pa.setColor(DPalette::HighlightedText, QColor(Qt::white)); pa.setColor(DPalette::Highlight, DGuiApplicationHelper::instance()->applicationPalette().highlight().color()); m_editor->setPalette(pa); } /** * @brief 清除当前展示框中的内容 * */ void InstallProcessInfoView::clearText() { m_editor->clear(); } void InstallProcessInfoView::setTextCursor(QTextCursor::MoveOperation operation) { QTextCursor textCursor = m_editor->textCursor(); textCursor.movePosition(operation, QTextCursor::MoveAnchor); m_editor->setTextCursor(textCursor); } deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/installprocessinfoview.h000066400000000000000000000037551474340456100304610ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef INSTALLPROCESSINFOVIEW_H #define INSTALLPROCESSINFOVIEW_H #include #include #include #include DGUI_USE_NAMESPACE class ShowInstallInfoTextEdit; class InstallProcessInfoView : public QWidget { Q_OBJECT public: explicit InstallProcessInfoView(int w, int h, QWidget *parent = nullptr); virtual ~InstallProcessInfoView() override; /** * @brief appendTextx 向installProcessInfo中添加数据 * @param text 要添加的数据 */ void appendText(QString text); /** * @brief setTextFontSize 设置字体大小 * @param fontSize 字体大小 PS: 此参数无用 * @param fontWeight 字体大小 */ void setTextFontSize(int fontSize, int fontWeight); /** * @brief setTextColor 设置文字颜色类型 * @param ct 颜色类型 */ void setTextColor(DPalette::ColorType ct); /** * @brief clearText 清空目前installProcessInfo中的数据 */ void clearText(); /** * @brief setTextCursor 设置文本光标位置 * @param operation */ void setTextCursor(QTextCursor::MoveOperation operation); protected: void paintEvent(QPaintEvent *event) override; private slots: /** * @brief slotMoveCursorToEnd 移动当前光标到最后一行 */ void slotMoveCursorToEnd(); private: /** * @brief initUI 初始化ProcessInfo的大小 * @param w 控件的宽度 * @param h 控件的高度 * 此处在SP3之后修改,增加宽度高度参数 * 为适应配置框的大小与安装器installProcessInfo的大小 */ void initUI(int w, int h); ShowInstallInfoTextEdit *m_editor = nullptr; // 展示框 修改为自写控件 DPalette::ColorType m_colorType; // 显示的字体的颜色类型 }; #endif // INSTALLPROCESSINFOVIEW_H deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/noprocesswidget.cpp000066400000000000000000000030771474340456100274140ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "noprocesswidget.h" #include "utils/utils.h" #include #include #include #include #include NoProcessWidget::NoProcessWidget(QWidget *parent) : QWidget(parent) { spinner = new Dtk::Widget::DSpinner; spinner->setFixedSize(24, 24); actionTextLabel = new Dtk::Widget::DLabel; Dtk::Widget::DFontSizeManager::instance()->bind(actionTextLabel, Dtk::Widget::DFontSizeManager::T6, QFont::Medium); Dtk::Gui::DPalette pe; pe.setColor(QPalette::WindowText, Dtk::Gui::DGuiApplicationHelper::instance()->applicationPalette().highlight().color()); actionTextLabel->setPalette(pe); auto allLayer = new QVBoxLayout; allLayer->addWidget(spinner, 0, Qt::AlignHCenter | Qt::AlignBottom); allLayer->addWidget(actionTextLabel, 0, Qt::AlignHCenter | Qt::AlignTop); setLayout(allLayer); } void NoProcessWidget::start() { spinner->start(); } void NoProcessWidget::stop() { spinner->stop(); } bool NoProcessWidget::event(QEvent *e) { if (QEvent::PaletteChange == e->type()) { // 调色板更新时调整高亮颜色 Dtk::Gui::DPalette pe; pe.setColor(QPalette::WindowText, Dtk::Gui::DGuiApplicationHelper::instance()->applicationPalette().highlight().color()); actionTextLabel->setPalette(pe); } return QWidget::event(e); } void NoProcessWidget::setActionText(const QString &text) { actionTextLabel->setText(text); } deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/noprocesswidget.h000066400000000000000000000012371474340456100270550ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef NOPROCESSWIDGET_H #define NOPROCESSWIDGET_H #include namespace Dtk { namespace Widget { class DSpinner; class DLabel; } // namespace Widget } // namespace Dtk class NoProcessWidget : public QWidget { Q_OBJECT public: explicit NoProcessWidget(QWidget *parent = nullptr); void setActionText(const QString &text); void start(); void stop(); protected: bool event(QEvent *e); private: Dtk::Widget::DSpinner *spinner; Dtk::Widget::DLabel *actionTextLabel; }; #endif // NOPROCESSWIDGET_H deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/packageselectitem.cpp000066400000000000000000000072221474340456100276430ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "view/widgets/packageselectitem.h" #include "model/packageanalyzer.h" #include #include #include #include #include #include #include PackageSelectItem::PackageSelectItem(QWidget *parent) : QWidget(parent) , nameLabel(new Dtk::Widget::DLabel) , versionLabel(new Dtk::Widget::DLabel) , descriptionLabel(new Dtk::Widget::DLabel) , checkBox(new QCheckBox) { checkBox->setIcon(QIcon::fromTheme("application-x-deb")); checkBox->setIconSize(QSize(32, 32)); auto line = new QFrame; line->setFrameShape(QFrame::HLine); line->setFrameShadow(QFrame::Sunken); line->setLineWidth(0); line->setMidLineWidth(1); auto nameVersionLayout = new QHBoxLayout; nameVersionLayout->addWidget(nameLabel); nameVersionLayout->addWidget(versionLabel); auto infoLayout = new QVBoxLayout; infoLayout->addLayout(nameVersionLayout); infoLayout->addWidget(descriptionLabel); infoLayout->addWidget(line); auto allLayout = new QHBoxLayout; allLayout->setContentsMargins(0, 0, 0, 0); allLayout->addWidget(checkBox); allLayout->addLayout(infoLayout); setLayout(allLayout); descriptionLabel->setFixedWidth(373); Dtk::Widget::DFontSizeManager::instance()->bind(nameLabel, Dtk::Widget::DFontSizeManager::T6, QFont::Medium); nameLabel->setForegroundRole(Dtk::Gui::DPalette::TextTitle); Dtk::Widget::DFontSizeManager::instance()->bind(versionLabel, Dtk::Widget::DFontSizeManager::T6, QFont::Medium); versionLabel->setForegroundRole(Dtk::Gui::DPalette::TextTitle); Dtk::Widget::DFontSizeManager::instance()->bind(descriptionLabel, Dtk::Widget::DFontSizeManager::T8, QFont::Medium); connect(checkBox, &QCheckBox::stateChanged, this, &PackageSelectItem::checkStatusChanged); } void PackageSelectItem::setDebIR(const DebIr &ir) { nameLabel->setText(ir.appName); versionLabel->setText(ir.version); checkBox->setEnabled(ir.archMatched); if (ir.archMatched) { descriptionLabel->setForegroundRole(Dtk::Gui::DPalette::TextTips); // item显示策略 QString displayText; auto installInfo = PackageAnalyzer::instance().packageInstallStatus(ir); auto installStatus = installInfo.first; auto installedVersion = installInfo.second; switch (installStatus) { case Pkg::NotInstalled: // 未安装 displayText = ir.shortDescription; checkBox->setChecked(true); break; case Pkg::InstalledSameVersion: // 已安装相同版本 displayText = tr("Same version installed"); break; case Pkg::InstalledEarlierVersion: // 已安装较早版本 displayText = tr("Earlier version installed: %1").arg(installedVersion); checkBox->setChecked(true); break; case Pkg::InstalledLaterVersion: // 已安装较新版本 displayText = tr("Later version installed: %1").arg(installedVersion); break; } descriptionLabel->setText(displayText); } else { descriptionLabel->setText(tr("Unmatched package architecture")); descriptionLabel->setForegroundRole(Dtk::Gui::DPalette::TextWarning); } } bool PackageSelectItem::isChecked() { return checkBox->isChecked(); } bool PackageSelectItem::isEnabled() { return checkBox->isEnabled(); } void PackageSelectItem::setChecked(bool checked) { checkBox->setChecked(checked); } deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/packageselectitem.h000066400000000000000000000013451474340456100273100ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef PACKAGESELECTITEM_H #define PACKAGESELECTITEM_H #include "model/packageselectmodel.h" #include #include class QCheckBox; class PackageSelectItem : public QWidget { Q_OBJECT public: PackageSelectItem(QWidget *parent = nullptr); void setDebIR(const DebIr &ir); bool isChecked(); bool isEnabled(); void setChecked(bool checked); signals: void checkStatusChanged(int state); private: Dtk::Widget::DLabel *nameLabel; Dtk::Widget::DLabel *versionLabel; Dtk::Widget::DLabel *descriptionLabel; QCheckBox *checkBox; }; #endif // PACKAGESELECTITEM_H deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/processwidget.cpp000066400000000000000000000036431474340456100270560ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "processwidget.h" #include #include #include #include #include ProcessWidget::ProcessWidget(QWidget *parent) : QWidget(parent) { mainIcon = new Dtk::Widget::DLabel; mainLabel = new Dtk::Widget::DLabel; Dtk::Widget::DFontSizeManager::instance()->bind(mainLabel, Dtk::Widget::DFontSizeManager::T6, QFont::Medium); mainLabel->setForegroundRole(Dtk::Gui::DPalette::TextTitle); processBar = new Dtk::Widget::DProgressBar; processBar->setFixedSize(300, 8); processTextLabel = new Dtk::Widget::DLabel(this); Dtk::Widget::DFontSizeManager::instance()->bind(processTextLabel, Dtk::Widget::DFontSizeManager::T8, QFont::Medium); processTextLabel->setForegroundRole(Dtk::Gui::DPalette::TextTips); auto allLayer = new QVBoxLayout; allLayer->setContentsMargins(11, 63, 11, 11); allLayer->setSpacing(15); allLayer->addWidget(mainIcon, 0, Qt::AlignCenter); allLayer->addWidget(mainLabel, 0, Qt::AlignCenter); allLayer->addWidget(processBar, 0, Qt::AlignCenter); // allLayer->addWidget(processTextLabel); allLayer->addStretch(); setLayout(allLayer); } void ProcessWidget::setIcon(const QIcon &icon) { mainIcon->setPixmap(icon.pixmap(64, 64)); } void ProcessWidget::setMainText(const QString &text) { mainLabel->setText(text); } void ProcessWidget::setProcessText(const QString &text) { processText = text; } void ProcessWidget::setProgress(int current, int all) { auto currentText = processText.arg(current).arg(all); processTextLabel->setText(currentText); processTextLabel->adjustSize(); processTextLabel->move((this->width() - processTextLabel->width()) / 2, processBar->y() + 30); processBar->setRange(0, all); processBar->setValue(current); } deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/processwidget.h000066400000000000000000000015061474340456100265170ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef PROCESSWIDGET_H #define PROCESSWIDGET_H #include #include namespace Dtk { namespace Widget { class DLabel; class DProgressBar; } // namespace Widget } // namespace Dtk class ProcessWidget : public QWidget { Q_OBJECT public: explicit ProcessWidget(QWidget *parent = nullptr); void setIcon(const QIcon &icon); void setMainText(const QString &text); void setProcessText(const QString &text); void setProgress(int current, int all); private: Dtk::Widget::DLabel *mainIcon; Dtk::Widget::DLabel *mainLabel; Dtk::Widget::DLabel *processTextLabel; Dtk::Widget::DProgressBar *processBar; QString processText; }; #endif // PROCESSWIDGET_H deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/workerprogress.cpp000066400000000000000000000007511474340456100272670ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "workerprogress.h" WorkerProgress::WorkerProgress(QWidget *parent) : DProgressBar(parent) { // 进度条在为设置初始值时,值为-1 安装进度条前面一段显示为方头 setValue(0); // 设置初始进度为0 setMinimum(0); setMaximum(100); setFixedHeight(8); setFixedWidth(240); setTextVisible(false); } deepin-deb-installer-6.5.5/src/deb-installer/view/widgets/workerprogress.h000066400000000000000000000006621474340456100267350ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef WORKERPROGRESS_H #define WORKERPROGRESS_H #include "coloredprogressbar.h" #include #include DWIDGET_USE_NAMESPACE class WorkerProgress : public DProgressBar { Q_OBJECT public: explicit WorkerProgress(QWidget *parent = nullptr); }; #endif // WORKERPROGRESS_H deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/000077500000000000000000000000001474340456100230605ustar00rootroot00000000000000deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/CMakeLists.txt000066400000000000000000000037641474340456100256320ustar00rootroot00000000000000# SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. # # SPDX-License-Identifier: CC0-1.0 cmake_minimum_required(VERSION 3.13) if (NOT DEFINED VERSION) set(VERSION 5.3.9) endif () set(APP_BIN_NAME "libdeepin-deb-installer") project(deepin-deb-installer-dev) set(CMAKE_CXX_STANDARD 17) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") find_package(PkgConfig REQUIRED) set(qt_required_components Core DBus Concurrent) if (QT_DESIRED_VERSION MATCHES 6) list(APPEND qt_required_components Core5Compat) endif() find_package(Qt${QT_DESIRED_VERSION} REQUIRED COMPONENTS ${qt_required_components}) set(LINK_LIBS Qt${QT_DESIRED_VERSION}::Core Qt${QT_DESIRED_VERSION}::DBus Qt${QT_DESIRED_VERSION}::Concurrent ) include_directories(${CMAKE_CURRENT_LIST_DIR}) file(GLOB_RECURSE APP_SRCS ${CMAKE_CURRENT_LIST_DIR}/*.cpp ${CMAKE_CURRENT_LIST_DIR}/manager/*.cpp ${CMAKE_CURRENT_LIST_DIR}/installer/*.cpp ${CMAKE_CURRENT_LIST_DIR}/package/*.cpp ${CMAKE_CURRENT_LIST_DIR}/status/*.cpp ) file(GLOB_RECURSE APP_INCLUDE ${CMAKE_CURRENT_LIST_DIR}/deepin-deb-installer-lib_global.h ${CMAKE_CURRENT_LIST_DIR}/DeepinDebInstallerLib.h ) add_library( ${APP_BIN_NAME} SHARED ${APP_SRCS}) # Find the library target_link_libraries(${APP_BIN_NAME} PRIVATE ${LINK_LIBS} ${QAPT_LIB} ) set(CMAKE_INSTALL_PREFIX /usr) # Install files #安全测试加固编译参数 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -z relro -z now -z noexecstack -pie") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -z relro -z now -z noexecstack -pie") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-all") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector-all") SET_TARGET_PROPERTIES(${APP_BIN_NAME} PROPERTIES VERSION 1.0.0 SOVERSION 1) install(TARGETS ${APP_BIN_NAME} LIBRARY DESTINATION lib) install(FILES ${APP_INCLUDE} DESTINATION include/deepin-deb-installer) execute_process(COMMAND "ldconfig") deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/DeepinDebInstallerLib.cpp000066400000000000000000000066401474340456100277160ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "DeepinDebInstallerLib.h" #include "manager/PackagesManager.h" DeepinDebInstallerLib::DeepinDebInstallerLib() : m_pPackageManager(new PackagesManager()) { initConnections(); } void DeepinDebInstallerLib::addPackages(const QStringList &debFilePath) { m_pPackageManager->appendPackages(debFilePath); } void DeepinDebInstallerLib::deletePackage(int index) { m_pPackageManager->removePackage(index); } int DeepinDebInstallerLib::checkInstallStatus(int index) { qDebug() << "check install status" << "DeepinDebInstallerLib" << m_pPackageManager; return m_pPackageManager->checkInstallStatus(index); } bool DeepinDebInstallerLib::checkPackageFile(int index) { return m_pPackageManager->checkPackageValid(index); } bool DeepinDebInstallerLib::checkDigitalSignature(int index) { return m_pPackageManager->checkPackageSignture(index); } bool DeepinDebInstallerLib::checkPkgDependsStatus(int index) { return m_pPackageManager->checkPackageDependsStatus(index); } void DeepinDebInstallerLib::install() { m_pPackageManager->install(); } void DeepinDebInstallerLib::uninstall(int index) { m_pPackageManager->uninstall(index); } void DeepinDebInstallerLib::initConnections() { connect(m_pPackageManager, &PackagesManager::signal_startInstallPackages, this, &DeepinDebInstallerLib::signal_startInstall); connect(m_pPackageManager, &PackagesManager::signal_installProgress, this, &DeepinDebInstallerLib::signal_installProcess); connect(m_pPackageManager, &PackagesManager::signal_installDetailStatus, this, &DeepinDebInstallerLib::signal_installDetails); connect(m_pPackageManager, &PackagesManager::signal_installFinished, this, &DeepinDebInstallerLib::signal_installFinished); connect( m_pPackageManager, &PackagesManager::signal_uninstallFinished, this, &DeepinDebInstallerLib::signal_uninstallFinished); connect(m_pPackageManager, &PackagesManager::signal_installErrorOccured, this, &DeepinDebInstallerLib::signal_installFailedReason); connect(m_pPackageManager, &PackagesManager::signal_invalidIndex, this, &DeepinDebInstallerLib::signal_invalidIndex); connect(m_pPackageManager, &PackagesManager::signal_packageInvalid, this, &DeepinDebInstallerLib::signal_invalidPackage); connect(m_pPackageManager, &PackagesManager::signal_signatureError, this, &DeepinDebInstallerLib::signal_signtureError); connect( m_pPackageManager, &PackagesManager::signal_dependStatusError, this, &DeepinDebInstallerLib::signal_dependStatusError); connect(m_pPackageManager, &PackagesManager::signal_packageAlreadyExits, this, &DeepinDebInstallerLib::signal_packageAlreadyExits); connect( m_pPackageManager, &PackagesManager::signal_addPackageSuccess, this, &DeepinDebInstallerLib::signal_appendPackageSuccess); connect(m_pPackageManager, &PackagesManager::signal_removePackageSuccess, this, &DeepinDebInstallerLib::signal_removePackageSuccess); connect(m_pPackageManager, &PackagesManager::signal_packageNotInstalled, this, &DeepinDebInstallerLib::signal_packageNotInstalled); } DeepinDebInstallerLib::~DeepinDebInstallerLib() { delete m_pPackageManager; this->deleteLater(); } deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/DeepinDebInstallerLib.h000066400000000000000000000110741474340456100273600ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef DEEPINDEBINSTALLERLIB_H #define DEEPINDEBINSTALLERLIB_H #include "deepin-deb-installer-lib_global.h" #include #include class PackagesManager; class DEEPINDEBINSTALLERLIBSHARED_EXPORT DeepinDebInstallerLib : public QObject { Q_OBJECT public: DeepinDebInstallerLib(); virtual ~DeepinDebInstallerLib(); public: /** * @brief addPackages 添加deb包到程序中 * @param debFilePath 包的路径 */ void addPackages(const QStringList &debFilePath); /** * @brief deletePackage 在程序中删除指定包 * @param index 要删除的包的下表 */ void deletePackage(int index = 0); /** * @brief checkPackageFile 检查指定包的下标 * @param index 指定包的下标 * @return true:包有效 false:包无效 */ bool checkPackageFile(int index = 0); /** * @brief checkPkgDependsStatus 检查包的依赖是否满足要求 * @param index 指定包的下标 * @return true:包可安装 false:依赖错误,不可安装 */ bool checkPkgDependsStatus(int index = 0); /** * @brief checkDigitalSignature 检查指定包的数字签名 * @param index 指定包的下标 * @return true:包数字签名验证成功 false:包数字签名验证失败 */ bool checkDigitalSignature(int index = 0); /** * @brief checkInstallStatus 检查包的安装状态 * @param index 指定包的下标 * @return * 0:安装状态未知 * 1:包未安装 * 2:当前已经安装相同版本 * 3:当前安装了较早的版本 * 4:当前已经安装了更新的版本 */ int checkInstallStatus(int index = 0); /** * @brief install 开始安装已经添加的包 */ void install(); /** * @brief uninstall 卸载某个包 * @param index 要卸载的包的下标 */ void uninstall(int index = 0); signals: void signal_startInstall(); /** * @brief installProcess 当前操作的进度 * @param 进度信息 */ void signal_installProcess(int); /** * @brief installDetails 当前安装的过程信息 */ void signal_installDetails(QString); /** * @brief installFinished 安装成功 */ void signal_installFinished(); /** * @brief signal_uninstallFinished 卸载成功 */ void signal_uninstallFinished(); /** * @brief installFailedReason 安装失败 * int: 安装失败的错误代码 * QString: 安装失败的错误信息 */ void signal_installFailedReason(int, QString); void signal_removePackageSuccess(int); signals: /** * @brief signal_invalidPackage 当前添加的包无效 * * @param 包的下标 */ void signal_invalidPackage(int); /** * @brief signal_invalidIndex 当前处理的包的下标无效 * @param 包的下标 */ void signal_invalidIndex(int); /** * @brief signal_dependStatusError 当前添加的包依赖错误 * * @param 包的下标 * @param 依赖的状态 * * 0: 依赖状态未知 * 1: 依赖满足 * 2: 依赖可用但是需要下载 * 3: 依赖不满足 * 4: 依赖下载授权失败 * 5: 架构错误 */ void signal_dependStatusError(int, int); /** * @brief signal_signtureError 当前添加的包签名错误 * * @param 包的下标 * @param 签名状态 * * 0: 签名状态未知 * 1: 签名验证成功 * 2: 解压deb文件用的临时目录不存在 * 3: 提取deb包内容时出错 * 4: 签名数据校验失败 */ void signal_signtureError(int, int); /** * @brief signal_packageAlreadyExits 当前添加的包已经添加过 * @param 包的下标 */ void signal_packageAlreadyExits(int); /** * @brief signal_appendPackageSuccess 添加包成功 * @param 包的下标 */ void signal_appendPackageSuccess(int); /** * @brief signal_packageNotInstalled 卸载时未安装 */ void signal_packageNotInstalled(int); private: /** * @brief m_pPackageManager 后端包管理对象 */ PackagesManager *m_pPackageManager; private: /** * @brief initConnections 连接信号与槽 */ void initConnections(); }; #endif // DEEPINDEBINSTALLERLIB_H deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/deepin-deb-installer-lib_global.h000066400000000000000000000006721474340456100313110ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef DEEPINDEBINSTALLERLIB_GLOBAL_H #define DEEPINDEBINSTALLERLIB_GLOBAL_H #include #if defined(DEEPINDEBINSTALLERLIB_LIBRARY) #define DEEPINDEBINSTALLERLIBSHARED_EXPORT Q_DECL_EXPORT #else #define DEEPINDEBINSTALLERLIBSHARED_EXPORT Q_DECL_IMPORT #endif #endif // DEEPINDEBINSTALLERLIB_GLOBAL_H deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/installer/000077500000000000000000000000001474340456100250555ustar00rootroot00000000000000deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/installer/PackageInstaller.cpp000066400000000000000000000151141474340456100307740ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "PackageInstaller.h" #include "manager/PackagesManager.h" #include "package/Package.h" #include #include #include PackageInstaller::PackageInstaller(QApt::Backend *b) { m_backend = b; m_packages = nullptr; } void PackageInstaller::appendPackage(Package *packages) { m_packages = packages; } bool PackageInstaller::isDpkgRunning() { QProcess proc; // 获取当前的进程信息 proc.start("ps", QStringList() << "-e" << "-o" << "comm"); proc.waitForFinished(); // 获取进程信息的数据 const QString processOutput = proc.readAllStandardOutput(); // 查看进程信息中是否存在dpkg 存在说明已经正在安装其他包 if (processOutput.contains("dpkg")) return true; // 更换判断的方式 return false; } void PackageInstaller::uninstallPackage() { emit signal_startInstall(); if (isDpkgRunning()) { qInfo() << "PackageInstaller" << "dpkg running, waitting..."; // 缩短检查的时间,每隔1S检查当前dpkg是否正在运行。 QTimer::singleShot(1000 * 1, this, &PackageInstaller::uninstallPackage); return; } const QStringList rdepends = m_packages->getPackageReverseDependList(); // 检查是否有应用依赖到该包 for (const auto &r : rdepends) { // 卸载所有依赖该包的应用(二者的依赖关系为depends) if (m_backend->package(r)) { // 更换卸载包的方式 m_backend->package(r)->setPurge(); } else qWarning() << "PackageInstaller" << "reverse depend" << r << "error ,please check it!"; } // 卸载当前包 更换卸载包的方式,此前的方式为markPackageForRemoval 会遗留配置文件对下次再次安装影响依赖解析 QApt::Package *uninstalledPackage = m_backend->package(m_packages->getName() + ':' + m_packages->getArchitecture()); // 如果未能成功根据包名以及架构名称获取到Package*对象,直接设置为卸载失败。并退出 if (!uninstalledPackage) { emit signal_installError(QApt::CommitError, m_pTrans->errorDetails()); return; } uninstalledPackage->setPurge(); m_pTrans = m_backend->commitChanges(); connect(m_pTrans, &QApt::Transaction::progressChanged, this, &PackageInstaller::signal_installProgress); // 详细状态信息(安装情况)展示链接 connect(m_pTrans, &QApt::Transaction::statusDetailsChanged, this, &PackageInstaller::signal_installDetailStatus); // trans运行中出现错误 connect(m_pTrans, &QApt::Transaction::errorOccurred, this, [=](QApt::ErrorCode error) { emit signal_installError(error, m_pTrans->errorDetails()); }); // 卸载结束,处理卸载成功与失败的情况并发送结束信号 connect(m_pTrans, &QApt::Transaction::finished, this, &PackageInstaller::signal_uninstallFinished); // 卸载结束之后 删除指针 connect(m_pTrans, &QApt::Transaction::finished, m_pTrans, &QApt::Transaction::deleteLater); m_pTrans->run(); } void PackageInstaller::installPackage() { emit signal_startInstall(); if (isDpkgRunning()) { qInfo() << "[PackageInstaller]" << "dpkg running, waitting..."; // 缩短检查的时间,每隔1S检查当前dpkg是否正在运行。 QTimer::singleShot(1000 * 1, this, &PackageInstaller::installPackage); return; } DependsStatus packageDependsStatus = m_packages->getDependStatus(); switch (packageDependsStatus) { case DependsUnknown: case DependsBreak: case DependsAuthCancel: case ArchBreak: dealBreakPackage(); break; case DependsAvailable: dealAvailablePackage(); break; case DependsOk: dealInstallablePackage(); break; } connect(m_pTrans, &QApt::Transaction::progressChanged, this, &PackageInstaller::signal_installProgress); // 详细状态信息(安装情况)展示链接 connect(m_pTrans, &QApt::Transaction::statusDetailsChanged, this, &PackageInstaller::signal_installDetailStatus); // trans运行中出现错误 connect(m_pTrans, &QApt::Transaction::errorOccurred, this, [=](QApt::ErrorCode error) { emit signal_installError(error, m_pTrans->errorDetails()); }); // 卸载结束之后 删除指针 connect(m_pTrans, &QApt::Transaction::finished, m_pTrans, &QApt::Transaction::deleteLater); m_pTrans->run(); } void PackageInstaller::dealBreakPackage() { DependsStatus packageDependsStatus = m_packages->getDependStatus(); switch (packageDependsStatus) { case DependsBreak: case DependsAuthCancel: emit signal_installError(packageDependsStatus, "Broken dependencies"); return; case ArchBreak: emit signal_installError(packageDependsStatus, "Unmatched package architecture"); return; default: emit signal_installError(packageDependsStatus, "unknown error"); return; } } void PackageInstaller::dealAvailablePackage() { const QStringList availableDepends = m_packages->getPackageAvailableDepends(); // 获取到可用的依赖包并根据后端返回的结果判断依赖包的安装结果 for (auto const &p : availableDepends) { if (p.contains(" not found")) { // 依赖安装失败 emit signal_installError(DependsAvailable, p); return; } m_backend->markPackageForInstall(p); } m_pTrans = m_backend->commitChanges(); connect(m_pTrans, &QApt::Transaction::finished, this, &PackageInstaller::installAvailableDepends); } void PackageInstaller::installAvailableDepends() { const auto ret = m_pTrans->exitStatus(); if (ret) { qWarning() << m_pTrans->error() << m_pTrans->errorDetails() << m_pTrans->errorString(); // transaction发生错误 emit signal_installError(m_pTrans->error(), m_pTrans->errorDetails()); } m_packages->setPackageDependStatus(DependsOk); installPackage(); } void PackageInstaller::dealInstallablePackage() { QApt::DebFile deb(m_packages->getPath()); m_pTrans = m_backend->installFile(deb); // 触发Qapt授权框和安装线程 connect(m_pTrans, &QApt::Transaction::finished, this, &PackageInstaller::signal_installFinished); } PackageInstaller::~PackageInstaller() {} deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/installer/PackageInstaller.h000066400000000000000000000022251474340456100304400ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef INSTALLER_H #define INSTALLER_H #include #include #include class PackagesManager; class Package; class PackageInstaller : public QObject { Q_OBJECT public: explicit PackageInstaller(QApt::Backend *b); virtual ~PackageInstaller(); void appendPackage(Package *packages); void installPackage(); void uninstallPackage(); signals: void signal_startInstall(); void signal_installError(int, QString); void signal_installProgress(int progress); void signal_installDetailStatus(QString); void signal_installFinished(QApt::ExitStatus); void signal_uninstallFinished(QApt::ExitStatus); void signal_packageNotInstall(); private: bool isDpkgRunning(); void dealBreakPackage(); void dealAvailablePackage(); void dealInstallablePackage(); void installAvailableDepends(); private: Package *m_packages = nullptr; QApt::Backend *m_backend = nullptr; QApt::Transaction *m_pTrans = nullptr; }; #endif // INSTALLER_H deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/manager/000077500000000000000000000000001474340456100244725ustar00rootroot00000000000000deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/manager/PackagesManager.cpp000066400000000000000000000216531474340456100302160ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "PackagesManager.h" #include "status/PackageSigntureStatus.h" #include "status/GetStatusThread.h" #include "installer/PackageInstaller.h" #include "package/Package.h" #include PackagesManager::PackagesManager() : m_pPackageStatus(new PackageStatus()) , m_pPackageInstaller(new PackageInstaller(m_pPackageStatus->m_backendFuture.result())) { m_pGetStatusThread = new GetStatusThread(m_pPackageStatus); initConnection(); } void PackagesManager::initConnection() { connect(m_pPackageInstaller, &PackageInstaller::signal_startInstall, this, &PackagesManager::signal_startInstallPackages); connect(m_pPackageInstaller, &PackageInstaller::signal_installProgress, this, &PackagesManager::signal_installProgress); connect( m_pPackageInstaller, &PackageInstaller::signal_installDetailStatus, this, &PackagesManager::signal_installDetailStatus); connect(m_pPackageInstaller, &PackageInstaller::signal_installError, this, &PackagesManager::signal_installErrorOccured); connect(m_pPackageInstaller, &PackageInstaller::signal_installFinished, this, &PackagesManager::slot_installFinished); connect(m_pPackageInstaller, &PackageInstaller::signal_uninstallFinished, this, &PackagesManager::slot_uninstallFinished); connect(m_pGetStatusThread, &GetStatusThread::signal_dependsStatus, this, &PackagesManager::slot_getDependsStatus); connect(m_pGetStatusThread, &GetStatusThread::signal_installStatus, this, &PackagesManager::slot_getInstallStatus); } void PackagesManager::slot_getDependsStatus(int index, DependsStatus dependsStatus) { Package *pkg = searchByIndex(index); if (pkg) { pkg->setPackageDependStatus(dependsStatus); // 根据获取的依赖结果,发送信号 switch (dependsStatus) { case DependsOk: case DependsAvailable: // 依赖满足,不发送信号 break; case DependsBreak: // 依赖不满足 emit signal_dependStatusError(index, DependsBreak); break; case DependsAuthCancel: // 依赖下载授权被取消 emit signal_dependStatusError(index, DependsAuthCancel); break; case DependsUnknown: // 依赖未知(下载依赖失败) emit signal_dependStatusError(index, DependsUnknown); break; case ArchBreak: // 依赖架构错误 emit signal_dependStatusError(index, ArchBreak); break; } } else { // 未获取到 当前包的下标 qWarning() << "[PackagesManager]<< slot_getDependsStatus" << "Package not found"; } } void PackagesManager::slot_getInstallStatus(int index, InstallStatus installStatus) { Package *pkg = searchByIndex(index); pkg->setPackageInstallStatus(installStatus); if (!m_appendFinished) { m_appendFinished = true; } else { emit signal_addPackageSuccess(index); } } void PackagesManager::appendPackages(QStringList packages) { for (int i = 0; i < packages.size(); i++) { getPackageInfo(packages[i], i); } } void PackagesManager::removePackage(int index) { Package *pkg = searchByIndex(index); if (pkg) { m_packages.removeOne(pkg); m_packagesMd5.remove(pkg->getMd5()); emit signal_removePackageSuccess(index); } delete pkg; } int PackagesManager::checkInstallStatus(int index) { Package *pkg = searchByIndex(index); if (pkg) { return pkg->getInstallStatus(); } else { qWarning() << "[PackagesManager]<< checkInstallStatus" << "Package not found"; return InstallStatusUnknown; } } bool PackagesManager::checkPackageValid(int index) { Package *package = searchByIndex(index); if (package) { return package->getValid(); } else { qWarning() << "[PackagesManager]<< checkPackageValid" << "Package not found"; return false; } } bool PackagesManager::checkPackageSignture(int index) { Package *package = searchByIndex(index); if (package) { if (SigntureVerifySuccess == package->getSigntureStatus()) { return true; } else { qWarning() << "[PackagesManager]<< checkPackageSignture" << "package verify signture" << package->getSigntureStatus(); return false; } } else { qWarning() << "[PackagesManager]<< checkPackageSignture" << "Package not found"; return false; } } bool PackagesManager::checkPackageDependsStatus(int index) { Package *package = searchByIndex(index); if (package) { return (package->getDependStatus() == DependsOk || package->getDependStatus() == DependsAvailable); } else { qWarning() << "[PackagesManager]<< checkPackageDependsStatus" << "Package not found"; return false; } } bool PackagesManager::checkPackageSuffix(QString packagePath) { const QFileInfo info(packagePath); if (info.exists() && info.isFile() && info.suffix().toLower() == "deb") { // 大小写不敏感的判断是否为deb后缀 return true; } qWarning() << "[PackagesManager]" << "checkPackageSuffix" << "Suffix error"; return false; } void PackagesManager::getPackageInfo(QString packagePath, int index) { m_appendFinished = false; if (!checkPackageSuffix(packagePath)) { emit signal_packageInvalid(index); return; } m_pGetStatusThread->setPackage(index, packagePath); m_pGetStatusThread->start(); Package *packageFile = new Package(index, packagePath); if (!packageFile->getValid()) { qWarning() << "[PackagesManager]" << "getPackageInfo" << "packageFile->getValid()" << packageFile->getValid(); emit signal_packageInvalid(index); return; } auto md5 = packageFile->getMd5(); if (m_packagesMd5.contains(md5)) { qWarning() << "[PackagesManager]" << "getPackageInfo" << "md5 already exists"; emit signal_packageAlreadyExits(index); return; } if (packageFile->getSigntureStatus() != SigntureVerifySuccess) { emit signal_signatureError(index, packageFile->getSigntureStatus()); return; } m_packagesMd5 << md5; m_packages.append(packageFile); if (!m_appendFinished) { m_appendFinished = true; } else { emit signal_addPackageSuccess(index); } } void PackagesManager::install() { if (m_packages.size() > 0) { m_pPackageInstaller->appendPackage(m_packages[0]); m_pPackageInstaller->installPackage(); } else { qWarning() << "PackagesManager" << "install" << "index invalid"; emit signal_invalidIndex(0); } } void PackagesManager::uninstall(int index) { Package *package = searchByIndex(index); if (package) { if (package->getInstallStatus() <= NotInstalled) { emit signal_packageNotInstalled(index); return; } QStringList reverseDepends = m_pPackageStatus->getPackageReverseDependsList(package->getName(), package->getArchitecture()); if (!reverseDepends.isEmpty()) { package->setPackageReverseDependsList(reverseDepends); } m_pPackageInstaller->appendPackage(package); m_pPackageInstaller->uninstallPackage(); } else { qWarning() << "PackagesManager" << "uninstall" << "index invalid"; } } Package *PackagesManager::searchByIndex(int index) { auto iter = std::find_if(m_packages.begin(), m_packages.end(), [index](const auto &package) { return package->getIndex() == index; }); if (iter != m_packages.end()) { return *iter; } emit signal_invalidIndex(index); qWarning() << "[PackagesManager]<< searchByIndex" << "Package not found"; return nullptr; } void PackagesManager::slot_installFinished(QApt::ExitStatus exitStatus) { if (QApt::ExitSuccess == exitStatus) { m_packagesMd5.remove(m_packages[0]->getMd5()); m_packages.removeAt(0); if (m_packages.isEmpty()) { emit signal_installFinished(); return; } QApt::Backend *backend = m_pPackageStatus->m_backendFuture.result(); backend->reloadCache(); install(); } } void PackagesManager::slot_uninstallFinished(QApt::ExitStatus exitStatus) { if (QApt::ExitSuccess == exitStatus) { m_packagesMd5.remove(m_packages[0]->getMd5()); m_packages.removeAt(0); emit signal_uninstallFinished(); } } PackagesManager::~PackagesManager() { m_packages.clear(); m_packagesMd5.clear(); delete m_pPackageStatus; } deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/manager/PackagesManager.h000066400000000000000000000043261474340456100276610ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef PackagesManager_H #define PackagesManager_H #include "result.h" #include "status/PackageStatus.h" #include #include class PackageSigntureStatus; class Package; class PackageInstaller; typedef Result ConflictResult; class GetStatusThread; class PackagesManager : public QObject { friend class installer; Q_OBJECT public: PackagesManager(); virtual ~PackagesManager(); public: bool checkPackageValid(int index = 0); bool checkPackageSignture(int index = 0); bool checkPackageDependsStatus(int index = 0); int checkInstallStatus(int index = 0); public: void appendPackages(QStringList packages); void removePackage(int index); signals: void signal_backendError(); void signal_packageInvalid(int); void signal_signatureError(int, int); void signal_dependStatusError(int, int); void signal_addPackageSuccess(int); void signal_removePackageSuccess(int); void signal_packageAlreadyExits(int); void signal_invalidIndex(int); void signal_packageNotInstalled(int); signals: void signal_startInstallPackages(); void signal_installProgress(int progress); void signal_installDetailStatus(QString); void signal_installFinished(); void signal_uninstallFinished(); void signal_installErrorOccured(int, QString); public: void install(); void uninstall(int index); private slots: void slot_installFinished(QApt::ExitStatus); void slot_uninstallFinished(QApt::ExitStatus); void slot_getDependsStatus(int, DependsStatus); void slot_getInstallStatus(int, InstallStatus); private: QList m_packages = {}; QSet m_packagesMd5 = {}; PackageStatus *m_pPackageStatus = nullptr; PackageInstaller *m_pPackageInstaller = nullptr; GetStatusThread *m_pGetStatusThread = nullptr; bool m_appendFinished = false; private: Package *searchByIndex(int index = 0); void getPackageInfo(QString pkg, int index = 0); bool checkPackageSuffix(QString packagePath); void initConnection(); }; #endif // PackagesManager_H deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/package/000077500000000000000000000000001474340456100244535ustar00rootroot00000000000000deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/package/Package.cpp000066400000000000000000000061521474340456100265160ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "Package.h" #include Package::Package() : m_pSigntureStatus(new PackageSigntureStatus) { } Package::Package(const QString &packagePath) : m_packagePath(packagePath) , m_pSigntureStatus(new PackageSigntureStatus) { QApt::DebFile *pDebInfo = new QApt::DebFile(packagePath); if (!pDebInfo || !pDebInfo->isValid()) { qWarning() << "Package" << "Package" << "获取包文件失败"; m_valid = false; return; } m_signtureStatus = m_pSigntureStatus->checkPackageSignture(packagePath); m_valid = pDebInfo->isValid(); m_name = pDebInfo->packageName(); m_version = pDebInfo->version(); m_architecture = pDebInfo->architecture(); m_md5 = pDebInfo->md5Sum(); delete pDebInfo; } Package::Package(int index, const QString &packagePath) : m_index(index) , m_packagePath(packagePath) , m_pSigntureStatus(new PackageSigntureStatus) { QApt::DebFile *pDebInfo = new QApt::DebFile(packagePath); if (!pDebInfo || !pDebInfo->isValid()) { qWarning() << "Package" << "Package" << "获取包文件失败"; m_valid = false; return; } m_valid = pDebInfo->isValid(); m_name = pDebInfo->packageName(); m_version = pDebInfo->version(); m_architecture = pDebInfo->architecture(); m_md5 = pDebInfo->md5Sum(); m_signtureStatus = m_pSigntureStatus->checkPackageSignture(packagePath); } void Package::setPackageReverseDependsList(const QStringList &reverseDepends) { m_packageReverseDepends = reverseDepends; } void Package::setPackageInstallStatus(InstallStatus packageInstallStatus) { m_installStatus = packageInstallStatus; } void Package::setPackageIndex(int index) { m_index = index; } void Package::setPackagePath(const QString &packagePath) { m_packagePath = packagePath; } void Package::setPackageDependStatus(DependsStatus packageDependStatus) { m_dependsStatus = packageDependStatus; } void Package::setPackageAvailableDepends(const QStringList &depends) { m_packageAvailableDependList.clear(); m_packageAvailableDependList << depends; } int Package::getIndex() { return m_index; } bool Package::getValid() { return m_valid; } QString Package::getName() { return m_name; } QString Package::getPath() { return m_packagePath; } QString Package::getVersion() { return m_version; } QString Package::getArchitecture() { return m_architecture; } QByteArray Package::getMd5() { return m_md5; } SigntureStatus Package::getSigntureStatus() { return m_signtureStatus; } DependsStatus Package::getDependStatus() { return m_dependsStatus; } InstallStatus Package::getInstallStatus() { return m_installStatus; } QStringList Package::getPackageAvailableDepends() { return m_packageAvailableDependList; } QStringList Package::getPackageReverseDependList() { return m_packageReverseDepends; } Package::~Package() { delete m_pSigntureStatus; } deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/package/Package.h000066400000000000000000000073601474340456100261650ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef PACKAGE_H #define PACKAGE_H #include "status/PackageStatus.h" #include "status/PackageSigntureStatus.h" #include class Package { public: explicit Package(const QString &packagePath); explicit Package(int index, const QString &packagePath); Package(); ~Package(); /** * @brief setPackageIndex 设置包的下标 * @param index 包的下标 */ void setPackageIndex(int index); /** * @brief setPackagePath 设置包的路径 * @param packagePath 包的路径 */ void setPackagePath(const QString &packagePath); /** * @brief setPackageDependStatus 设置包的依赖状态 * @param packageDependStatus 包的依赖状态 */ void setPackageDependStatus(DependsStatus packageDependStatus); /** * @brief setPackageAvailableDepends 设置包的可用依赖列表 * @param depends 依赖列表 */ void setPackageAvailableDepends(const QStringList &depends); /** * @brief setPackageInstallStatus 设置包的安装状态 * @param packageInstallStatus 包的安装状态 */ void setPackageInstallStatus(InstallStatus packageInstallStatus); /** * @brief setPackageReverseDependsList 设置依赖于这个包的应用列表 * @param reverseDepends 应用列表 */ void setPackageReverseDependsList(const QStringList &reverseDepends); /** * @brief getIndex 获取包的下标 * @return 包的下标 */ int getIndex(); /** * @brief getValid 获取包的有效性 * @return 包的有效性 */ bool getValid(); /** * @brief getName 获取包的名称 * @return 包的名字 */ QString getName(); /** * @brief getPath 获取包的路径 * @return 包的路径 */ QString getPath(); /** * @brief getVersion 获取包的版本 * @return 包的版本 */ QString getVersion(); /** * @brief getArchitecture 获取包的架构 * @return 包的架构 */ QString getArchitecture(); /** * @brief getMd5 获取包的MD5值 * @return 包的md5值 */ QByteArray getMd5(); /** * @brief getDependStatus 获取包的依赖状态 * @return 包的依赖状态 */ DependsStatus getDependStatus(); /** * @brief getSigntureStatus 获取包的签名状态 * @return 包的签名状态 */ SigntureStatus getSigntureStatus(); /** * @brief getInstallStatus 获取包的安装状态 * @return 包的安装状态 */ InstallStatus getInstallStatus(); /** * @brief getPackageAvailableDepends 获取包的可用依赖列表 * @return 包的可用依赖列表 */ QStringList getPackageAvailableDepends(); /** * @brief getPackageReverseDependList 获取依赖于此应用的 应用列表 * @return 应用列表 */ QStringList getPackageReverseDependList(); private: int m_index = -1; bool m_valid = false; QString m_name = ""; QString m_version = ""; QString m_architecture = ""; QByteArray m_md5 = ""; DependsStatus m_dependsStatus = DependsUnknown; SigntureStatus m_signtureStatus = SigntureUnknown; InstallStatus m_installStatus = InstallStatusUnknown; QString m_packagePath = ""; QStringList m_packageAvailableDependList = {}; QStringList m_packageReverseDepends = {}; private: /** * @brief m_pSigntureStatus 签名状态类 */ PackageSigntureStatus *m_pSigntureStatus = nullptr; Package(const Package &rhs) = delete; Package &operator=(const Package &rhs) = delete; }; #endif // PACKAGE_H deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/result.h000066400000000000000000000014141474340456100245470ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef RESULT_H #define RESULT_H template class Result { public: static Result ok(const T &value); static Result err(const T &value); Result(const bool stat, const T &value); bool is_ok() const { return m_ok; } T unwrap() const { return m_value; } private: bool m_ok; T m_value; }; template Result Result::ok(const T &value) { return {true, value}; } template Result Result::err(const T &value) { return {false, value}; } template Result::Result(const bool stat, const T &value) : m_ok(stat) , m_value(value) { } #endif // RESULT_H deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/status/000077500000000000000000000000001474340456100244035ustar00rootroot00000000000000deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/status/GetStatusThread.cpp000066400000000000000000000021741474340456100301660ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "GetStatusThread.h" #include "package/Package.h" #include #include GetStatusThread::GetStatusThread(PackageStatus *packageStatus) { qRegisterMetaType("DependsStatus"); // 注册PortConfig类型 qRegisterMetaType("InstallStatus"); m_pPackageStatus = packageStatus; } void GetStatusThread::setPackage(int index, const QString &packagePath) { m_index = index; m_packagePath = packagePath; } void GetStatusThread::run() { QFile debFile(m_packagePath); if (!debFile.exists()) { qWarning() << "GetStatusThread" << "run" << "getPackageDeoebdsStatus" << "文件不存在"; } DependsStatus DependsStatus = m_pPackageStatus->getPackageDependsStatus(m_packagePath); emit signal_dependsStatus(m_index, DependsStatus); InstallStatus installStatus = m_pPackageStatus->getPackageInstallStatus(m_packagePath); emit signal_installStatus(m_index, installStatus); } deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/status/GetStatusThread.h000066400000000000000000000012741474340456100276330ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef GETSTATUSTHREAD_H #define GETSTATUSTHREAD_H #include "PackageStatus.h" #include #include class Package; class GetStatusThread : public QThread { Q_OBJECT public: explicit GetStatusThread(PackageStatus *); void run(); void setPackage(int index, const QString &packagePath); signals: void signal_dependsStatus(int, DependsStatus); void signal_installStatus(int, InstallStatus); private: int m_index = -1; PackageStatus *m_pPackageStatus = nullptr; QString m_packagePath = ""; }; #endif // GETSTATUSTHREAD_H deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/status/PackageSigntureStatus.cpp000066400000000000000000000037431474340456100313760ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "PackageSigntureStatus.h" #include #include #include #include PackageSigntureStatus::PackageSigntureStatus() : m_pCheckSignProc(new QProcess) { } bool PackageSigntureStatus::checkDigitalVerifyTools() { QFile file(deb_verify_tool); return file.exists(); } bool PackageSigntureStatus::checkDeviceLock() { QDBusInterface Installer("com.deepin.deepinid", "/com/deepin/deepinid", "com.deepin.deepinid"); return Installer.property("DeviceUnlocked").toBool(); // 判断当前是否处于开发者模式 } SigntureStatus PackageSigntureStatus::checkPackageSignture(QString packagePath) { if (checkDeviceLock()) { qInfo() << "已打开开发者模式,默认签名验证通过"; return SigntureVerifySuccess; } if (checkDigitalVerifyTools()) { QString program = "/usr/bin/deepin-deb-verify"; packagePath = "\"" + packagePath + "\""; m_pCheckSignProc->start(program, {"\"" + packagePath + "\""}); m_pCheckSignProc->waitForFinished(-1); const QString output1 = m_pCheckSignProc->readAllStandardError(); qInfo() << "签名校验结果:" << output1; for (const auto &item : output1.split('\n')) { if (item.toLatin1() == "[INFO] signature verified!") { return SigntureVerifySuccess; } if (item.toLatin1() == "cannot find signinfo in deb file") { return SigntureInexistence; } if (item.toLatin1() == "extract deb_file failed!") { return SigntureExtractFail; } if (item.toLatin1() == "verify deb file failed!") { return SigntureVerifyFail; } } } return SigntureUnknown; } PackageSigntureStatus::~PackageSigntureStatus() { delete m_pCheckSignProc; } deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/status/PackageSigntureStatus.h000066400000000000000000000027761474340456100310500ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef PackageSigntureStatus_H #define PackageSigntureStatus_H #include #include #define deb_verify_tool "/usr/bin/deepin-deb-verify" enum SigntureStatus { SigntureUnknown = -1, // 其他错误 SigntureVerifySuccess, // 验证成功 SigntureInexistence, // 解压deb文件用的临时目录不存在 SigntureExtractFail, // 提取deb包内容时出错 SigntureVerifyFail // deb包验证失败 }; class PackageSigntureStatus { public: PackageSigntureStatus(); ~PackageSigntureStatus(); /** * @brief checkPackageSignture 检查包的签名状态 * @param packagePath 包的路径 * @return */ SigntureStatus checkPackageSignture(QString packagePath); private: /** * @brief checkDigitalVerifyTools 检查当前系统中是否存在验证工具 * @return true: 存在签名验证工具 false:签名验证工具不存在 */ bool checkDigitalVerifyTools(); /** * @brief checkDeviceLock 检查当前是否开启开发者模式 * @return true: 已开启开发者模式 false: 未开启开发者模式 */ bool checkDeviceLock(); private: QProcess *m_pCheckSignProc = nullptr; PackageSigntureStatus(const PackageSigntureStatus &rhs) = delete; PackageSigntureStatus &operator=(const PackageSigntureStatus &rhs) = delete; }; #endif // PackageSigntureStatus_H deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/status/PackageStatus.cpp000066400000000000000000000574011474340456100276550ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "PackageStatus.h" #include #include #include #include #include using namespace QApt; QApt::Backend *init_backend() { QApt::Backend *b = new QApt::Backend; if (b->init()) return b; return nullptr; } PackageStatus::PackageStatus() : m_backendFuture(QtConcurrent::run(init_backend)) { } PackageStatus::PackageStatus(DependsStatus ds, const QString &pkg) : m_status(ds) , m_package(pkg) , m_backendFuture(QtConcurrent::run(init_backend)) { } PackageStatus &PackageStatus::operator=(const PackageStatus &other) { m_status = other.m_status; m_package = other.m_package; m_backendFuture = other.m_backendFuture; return *this; } PackageStatus PackageStatus::max(const PackageStatus &other) { if (other.m_status > m_status) *this = other; return *this; } PackageStatus PackageStatus::maxEq(const PackageStatus &other) { if (other.m_status >= m_status) *this = other; return *this; } PackageStatus PackageStatus::min(const PackageStatus &other) { if (other.m_status < m_status) *this = other; return *this; } PackageStatus PackageStatus::minEq(const PackageStatus &other) { if (other.m_status <= m_status) *this = other; return *this; } bool PackageStatus::isBreak() const { return m_status == DependsBreak; } bool PackageStatus::isAuthCancel() const { return m_status == DependsAuthCancel; } bool PackageStatus::isAvailable() const { return m_status == DependsAvailable; } QString PackageStatus::resolvMultiArchAnnotation(const QString &annotation, const QString &debArch, const int multiArchType) { if (annotation == "native" || annotation == "any") return QString(); if (annotation == "all") return QString(); if (multiArchType == MultiArchForeign) return QString(); QString arch; if (annotation.isEmpty()) arch = debArch; else arch = annotation; if (!arch.startsWith(':') && !arch.isEmpty()) return arch.prepend(':'); else return arch; } QApt::Package *PackageStatus::packageWithArch(const QString &packageName, const QString &sysArch, const QString &annotation) { Backend *backend = m_backendFuture.result(); QApt::Package *p = backend->package(packageName + resolvMultiArchAnnotation(annotation, sysArch)); do { // change: 按照当前支持的CPU架构进行打包。取消对deepin-wine的特殊处理 if (!p) p = backend->package(packageName); if (p) break; for (QString arch : backend->architectures()) { if (!p) p = backend->package(packageName + ":" + arch); if (p) break; } } while (false); if (p) return p; // check virtual package providers for (auto *ap : backend->availablePackages()) if (ap->name() != packageName && ap->providesList().contains(packageName)) return packageWithArch(ap->name(), sysArch, annotation); return nullptr; } /** * @brief isArchMatches 判断包的架构是否符合系统要求 * @param sysArch 系统架构 * @param packageArch 包的架构 * @param multiArchType 系统多架构类型 * @return 是否符合多架构要求 */ bool PackageStatus::isArchMatches(QString sysArch, const QString &packageArch, const int multiArchType) { Q_UNUSED(multiArchType); if (sysArch.startsWith(':')) sysArch.remove(0, 1); if (sysArch == "all" || sysArch == "any") return true; return sysArch == packageArch; } bool PackageStatus::dependencyVersionMatch(const int result, const RelationType relation) { switch (relation) { case LessOrEqual: return result <= 0; case GreaterOrEqual: return result >= 0; case LessThan: return result < 0; case GreaterThan: return result > 0; case Equals: return result == 0; case NotEqual: return result != 0; default:; } return true; } const ConflictResult PackageStatus::isConflictSatisfy(const QString &arch, Package *package) { const QString &name = package->name(); const auto ret_installed = isInstalledConflict(name, package->version(), package->architecture()); if (!ret_installed.is_ok()) return ret_installed; const auto ret_package = isConflictSatisfy(arch, package->conflicts(), package->replaces()); return ret_package; } const ConflictResult PackageStatus::isConflictSatisfy(const QString &arch, const QList &conflicts, const QList &replaces) { for (const auto &conflict_list : conflicts) { for (const auto &conflict : conflict_list) { const QString name = conflict.packageName(); QApt::Package *p = packageWithArch(name, arch, conflict.multiArchAnnotation()); if (!p || !p->isInstalled()) continue; // arch error, conflicts if (!isArchMatches(arch, p->architecture(), p->multiArchType())) { qWarning() << "PackagesManager:" << "conflicts package installed: " << arch << p->name() << p->architecture() << p->multiArchTypeString(); return ConflictResult::err(name); } const QString conflict_version = conflict.packageVersion(); const QString installed_version = p->installedVersion(); const auto type = conflict.relationType(); const auto result = QApt::Package::compareVersion(installed_version, conflict_version); // not match, ok if (!dependencyVersionMatch(result, type)) continue; // test package const QString mirror_version = p->availableVersion(); // mirror version is also break const auto mirror_result = QApt::Package::compareVersion(mirror_version, conflict_version); if (dependencyVersionMatch(mirror_result, type) && name != m_package) { // 此处即可确认冲突成立 // 额外判断是否会替换此包 bool conflict_yes = true; for (auto replace_list : replaces) { for (auto replace : replace_list) { if (replace.packageName() == name) { // 包名符合 auto replaceType = replace.relationType(); // 提取版本号规则 auto versionCompare = Package::compareVersion(installed_version, replace.packageVersion()); // 比较版本号 if (dependencyVersionMatch(versionCompare, replaceType)) { // 如果版本号符合要求,即判定replace成立 conflict_yes = false; break; } } } if (!conflict_yes) { break; } } if (!conflict_yes) { p = nullptr; continue; } qWarning() << "PackagesManager:" << "conflicts package installed: " << arch << p->name() << p->architecture() << p->multiArchTypeString() << mirror_version << conflict_version; return ConflictResult::err(name); } } } return ConflictResult::ok(QString()); } bool PackageStatus::isArchError(const QString &packagePath) { DebFile deb(packagePath); Backend *backend = m_backendFuture.result(); const QString arch = deb.architecture(); if (arch == "all" || arch == "any") return false; bool architectures = !backend->architectures().contains(deb.architecture()); return architectures; } const ConflictResult PackageStatus::isInstalledConflict(const QString &packageName, const QString &packageVersion, const QString &packageArch) { static QList> sysConflicts; Backend *backend = m_backendFuture.result(); if (sysConflicts.isEmpty()) { for (QApt::Package *p : backend->availablePackages()) { if (!p->isInstalled()) continue; const auto &conflicts = p->conflicts(); if (conflicts.isEmpty()) continue; for (const auto &conflict_list : conflicts) for (const auto &conflict : conflict_list) sysConflicts << QPair(p->name(), conflict); } } for (const auto &info : sysConflicts) { const auto &conflict = info.second; const auto &pkgName = conflict.packageName(); const auto &pkgVersion = conflict.packageVersion(); const auto &pkgArch = conflict.multiArchAnnotation(); if (pkgName != packageName) continue; // pass if arch not match if (!pkgArch.isEmpty() && pkgArch != packageArch && pkgArch != "any" && pkgArch != "native") continue; if (pkgVersion.isEmpty()) return ConflictResult::err(info.first); const int relation = QApt::Package::compareVersion(packageVersion, conflict.packageVersion()); // match, so is bad if (dependencyVersionMatch(relation, conflict.relationType())) return ConflictResult::err(info.first); } return ConflictResult::ok(QString()); } DependsStatus PackageStatus::checkDependsPackageStatus(QSet &choosed_set, const QString &architecture, const QList &depends) { DependsStatus ret = DependsOk; if (depends.isEmpty()) return DependsOk; for (const auto &candicate_list : depends) { const auto r = checkDependsPackageStatus(choosed_set, architecture, candicate_list); // ret.maxEq(r); if (ret >= r) this->m_status = ret; else { this->m_status = r; } if (this->m_status == DependsBreak) break; } return this->m_status; } DependsStatus PackageStatus::checkDependsPackageStatus(QSet &choosed_set, const QString &architecture, const DependencyItem &candicate) { // PackageStatus ret = PackageStatus::_break(QString()); DependsStatus ret = DependsBreak; for (const auto &info : candicate) { const auto r = checkDependsPackageStatus(choosed_set, architecture, info); // ret.minEq(r); if (ret <= r) this->m_status = ret; else { this->m_status = r; } if (this->m_status != DependsBreak) break; } return this->m_status; } DependsStatus PackageStatus::checkDependsPackageStatus(QSet &choosed_set, const QString &architecture, const DependencyInfo &dependencyInfo) { const QString package_name = dependencyInfo.packageName(); QApt::Package *p = packageWithArch(package_name, architecture, dependencyInfo.multiArchAnnotation()); if (!p) { qWarning() << "PackagesManager:" << "depends break because package" << package_name << "not available"; // return PackageStatus::_break(package_name); return DependsBreak; } Backend *backend = m_backendFuture.result(); const RelationType relation = dependencyInfo.relationType(); const QString &installedVersion = p->installedVersion(); if (!installedVersion.isEmpty()) { const int result = QApt::Package::compareVersion(installedVersion, dependencyInfo.packageVersion()); if (dependencyVersionMatch(result, relation)) return DependsOk; else { const QString &mirror_version = p->availableVersion(); if (mirror_version != installedVersion) { const auto mirror_result = QApt::Package::compareVersion(mirror_version, dependencyInfo.packageVersion()); if (dependencyVersionMatch(mirror_result, relation)) { return DependsAvailable; } } qWarning() << "PackagesManager:" << "depends break by" << p->name() << p->architecture() << dependencyInfo.packageVersion(); qWarning() << "PackagesManager:" << "installed version not match" << installedVersion; // return PackageStatus::_break(p->name()); return DependsBreak; } } else { const int result = QApt::Package::compareVersion(p->version(), dependencyInfo.packageVersion()); if (!dependencyVersionMatch(result, relation)) { qWarning() << "PackagesManager:" << "depends break by" << p->name() << p->architecture() << dependencyInfo.packageVersion(); qWarning() << "PackagesManager:" << "available version not match" << p->version(); // return PackageStatus::_break(p->name()); return DependsBreak; } // is that already choosed? // if (choosed_set.contains(p->name())) return PackageStatus::ok(); if (choosed_set.contains(p->name())) { return DependsOk; } // check arch conflicts if (p->multiArchType() == MultiArchSame) { for (const auto &arch : backend->architectures()) { if (arch == p->architecture()) continue; QApt::Package *tp = packageWithArch(p->name(), arch); if (tp && tp->isInstalled()) { qWarning() << "PackagesManager:" << "multiple architecture installed: " << p->name() << p->version() << p->architecture() << "but now need" << tp->name() << tp->version() << tp->architecture(); // return PackageStatus::_break(p->name() + ":" + p->architecture()); return DependsBreak; } } } // let's check conflicts if (!isConflictSatisfy(architecture, p).is_ok()) { for (auto *ap : backend->availablePackages()) { if (!ap->providesList().contains(p->name())) continue; // is that already provide by another package? if (ap->isInstalled()) { return DependsOk; } // provider is ok, switch to provider. if (isConflictSatisfy(architecture, ap).is_ok()) { choosed_set << ap->name(); return DependsOk; } } qWarning() << "PackagesManager:" << "providers not found, still break: " << p->name(); // return PackageStatus::_break(p->name()); return DependsBreak; } // now, package dependencies status is available or break, // time to check depends' dependencies, but first, we need // to add this package to choose list choosed_set << p->name(); const auto r = checkDependsPackageStatus(choosed_set, p->architecture(), p->depends()); if (r == DependsBreak) { choosed_set.remove(p->name()); return DependsBreak; } return DependsAvailable; } } DependsStatus PackageStatus::getPackageDependsStatus(const QString &packagePath) { while (true) { if (m_backendFuture.isFinished()) { break; } qInfo() << "Initializing backend, please wait"; usleep(10 * 1000); } m_backendFuture.result()->reloadCache(); DebFile *deb = new DebFile(packagePath); const QString architecture = deb->architecture(); DependsStatus ret = DependsOk; if (isArchError(packagePath)) { return ArchBreak; } // conflicts const ConflictResult debConflitsResult = isConflictSatisfy(architecture, deb->conflicts(), deb->replaces()); if (!debConflitsResult.is_ok()) { qWarning() << "PackagesManager:" << "depends break because conflict" << deb->packageName(); ret = DependsBreak; } else { const ConflictResult localConflictsResult = isInstalledConflict(deb->packageName(), deb->version(), architecture); if (!localConflictsResult.is_ok()) { qWarning() << "PackagesManager:" << "depends break because conflict with local package" << deb->packageName(); ret = DependsBreak; } else { QSet choose_set; choose_set << deb->packageName(); ret = checkDependsPackageStatus(choose_set, deb->architecture(), deb->depends()); } } delete deb; return ret; } const QStringList PackageStatus::getPackageAvailableDepends(const QString &packagePath) { DebFile *deb = new DebFile(packagePath); QSet choose_set; const QString debArch = deb->architecture(); const auto &depends = deb->depends(); packageCandidateChoose(choose_set, debArch, depends); // TODO: check upgrade from conflicts delete deb; return choose_set.values(); } InstallStatus PackageStatus::getPackageInstallStatus(const QString &packagePath) { m_backendFuture.result()->reloadCache(); DebFile *debFile = new DebFile(packagePath); const QString packageName = debFile->packageName(); const QString packageArch = debFile->architecture(); const QString packageVersion = debFile->version(); delete debFile; Backend *backend = m_backendFuture.result(); Package *pkg = backend->package(packageName + ":" + packageArch); InstallStatus ret = InstallStatusUnknown; do { if (!pkg) break; const QString installedVersion = pkg->installedVersion(); if (installedVersion.isEmpty()) { return NotInstalled; } const int result = Package::compareVersion(packageVersion, installedVersion); if (result == 0) { return InstalledSameVersion; } else if (result < 0) { return InstalledLaterVersion; } else { return InstalledEarlierVersion; } } while (false); return ret; } void PackageStatus::packageCandidateChoose(QSet &choosed_set, const QString &debArch, const QList &dependsList) { for (auto const &candidate_list : dependsList) packageCandidateChoose(choosed_set, debArch, candidate_list); } void PackageStatus::packageCandidateChoose(QSet &choosed_set, const QString &debArch, const DependencyItem &candidateList) { for (const auto &info : candidateList) { Package *dep = packageWithArch(info.packageName(), debArch, info.multiArchAnnotation()); if (!dep) continue; const auto choosed_name = dep->name() + resolvMultiArchAnnotation(QString(), dep->architecture()); if (choosed_set.contains(choosed_name)) { break; } // 修复升级依赖时,因为依赖包版本过低,造成安装循环。 // 删除无用冗余的日志 if (Package::compareVersion(dep->installedVersion(), info.packageVersion()) < 0) { Backend *b = m_backendFuture.result(); Package *p = b->package(dep->name() + resolvMultiArchAnnotation(QString(), dep->architecture())); if (p) { choosed_set << dep->name() + resolvMultiArchAnnotation(QString(), dep->architecture()); } else { choosed_set << dep->name() + " not found"; } } if (!isConflictSatisfy(debArch, dep->conflicts(), dep->replaces()).is_ok()) { continue; } // pass if break QSet set = choosed_set; set << choosed_name; const auto stat = checkDependsPackageStatus(set, dep->architecture(), dep->depends()); if (stat == DependsBreak) { qWarning() << "PackagesManager:" << "depends error in choose candidate" << dep->name(); continue; } choosed_set << choosed_name; packageCandidateChoose(choosed_set, debArch, dep->depends()); break; } } QMap PackageStatus::specialPackage() { QMap sp; sp.insert("deepin-wine-plugin-virtual", "deepin-wine-helper"); sp.insert("deepin-wine32", "deepin-wine"); return sp; } const QStringList PackageStatus::getPackageReverseDependsList(const QString &packageName, const QString &sysArch) { Package *package = packageWithArch(packageName, sysArch); QSet ret{packageName}; QQueue testQueue; for (const auto &item : package->requiredByList()) testQueue.append(item); while (!testQueue.isEmpty()) { const auto item = testQueue.first(); testQueue.pop_front(); if (ret.contains(item)) continue; Package *p = packageWithArch(item, sysArch); if (!p || !p->isInstalled()) continue; if (p->recommendsList().contains(packageName)) continue; if (p->suggestsList().contains(packageName)) continue; // fix bug: https://pms.uniontech.com/zentao/bug-view-37220.html dde相关组件特殊处理. // 修复dde会被动卸载但是不会提示的问题 // if (item.contains("dde")) continue; ret << item; // fix bug:https://pms.uniontech.com/zentao/bug-view-37220.html if (specialPackage().contains(item)) { testQueue.append(specialPackage()[item]); } // append new reqiure list for (const auto &r : p->requiredByList()) { if (ret.contains(r) || testQueue.contains(r)) continue; Package *subPackage = packageWithArch(r, sysArch); // fix bug: https://pms.uniontech.com/zentao/bug-view-54930.html // 部分wine应用在系统中有一个替换的名字,使用requiredByList 可以获取到这些名字 if (subPackage && !subPackage->requiredByList().isEmpty()) { // 增加对package指针的检查 QStringList rdepends = subPackage->requiredByList(); // 对添加到testQueue的包进行检查, for (QString depend : rdepends) { Package *pkg = packageWithArch(depend, sysArch); if (!pkg || !pkg->isInstalled()) // 增加对package指针的检查 continue; if (pkg->recommendsList().contains(r)) continue; if (pkg->suggestsList().contains(r)) continue; // 只添加和当前依赖是依赖关系的包 testQueue.append(depend); } } if (!subPackage || !subPackage->isInstalled()) // 增加对package指针的检查 continue; if (subPackage->recommendsList().contains(item)) continue; if (subPackage->suggestsList().contains(item)) continue; testQueue.append(r); } } // remove self ret.remove(packageName); return ret.values(); } PackageStatus::~PackageStatus() {} deepin-deb-installer-6.5.5/src/deepin-deb-installer-dev/status/PackageStatus.h000066400000000000000000000151221474340456100273140ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef PACKAGEDEPENDSSTATUS_H #define PACKAGEDEPENDSSTATUS_H #include "result.h" #include #include #include /** * @brief The PackageDependsStatus enum * 当前包的依赖状态 */ enum DependsStatus { DependsUnknown, DependsOk, // 依赖满足 DependsAvailable, // 依赖可用但是需要下载 DependsBreak, // 依赖不满足 DependsAuthCancel, // 依赖授权失败(wine依赖) ArchBreak, // 架构不满足(此前架构不满足在前端验证,此后会优化到后端)//2020-11-19 暂时未优化 }; /** * @brief The PackageInstallStatus enum * 包的安装状态 */ enum InstallStatus { InstallStatusUnknown, NotInstalled, // 当前包没有被安装 InstalledSameVersion, // 当前已经安装过相同的版本 InstalledEarlierVersion, // 当前已经安装过较早的版本 InstalledLaterVersion, // 当前已经安装过更新的版本 }; QApt::Backend *init_backend(); typedef Result ConflictResult; class PackageStatus { public: friend class PackagesManager; PackageStatus(); PackageStatus(DependsStatus status, const QString &package); ~PackageStatus(); /** * @brief operator = 重写=操作符 * @param other 要赋值的依赖的状态 * @return 赋值后的依赖的状态 */ PackageStatus &operator=(const PackageStatus &other); /** * @brief max 状态的比较 * @param other * @return */ PackageStatus max(const PackageStatus &other); PackageStatus maxEq(const PackageStatus &other); PackageStatus min(const PackageStatus &other); PackageStatus minEq(const PackageStatus &other); bool isBreak() const; bool isAuthCancel() const; bool isAvailable() const; DependsStatus getPackageDependsStatus(const QString &packagePath); /** * @brief packageInstallStatus 获取指定index的包的安装状态 * @param index 指定的index * @return 包的安装状态s */ InstallStatus getPackageInstallStatus(const QString &packagePath); /** * @brief packageAvailableDepends 获取指定包的可用的依赖 * @param index 下标 * @return 指定包所有的需要下载的依赖 */ const QStringList getPackageAvailableDepends(const QString &packagePath); /** * @brief packageReverseDependsList 获取依赖于此包的所有应用名称 * @param packageName 需要检查的包的包名 * @param sysArch 包的架构 * @return 依赖于此包的应用列表 */ const QStringList getPackageReverseDependsList(const QString &packageName, const QString &sysArch); private: QApt::Package *packageWithArch(const QString &packageName, const QString &sysArch, const QString &annotation = QString()); QString resolvMultiArchAnnotation(const QString &annotation, const QString &debArch, const int multiArchType = QApt::InvalidMultiArchType); /** * @brief isArchMatches 判断包的架构是否符合系统要求 * @param sysArch 系统架构 * @param packageArch 包的架构 * @param multiArchType 系统多架构类型 * @return 是否符合多架构要求 */ bool isArchMatches(QString sysArch, const QString &packageArch, const int multiArchType); /** * @brief isArchError 判断指定的包是否符合架构要求 * @param packagePath 指定的包 * @return 符合架构要求的结果 * * false: 符合架构要求 * true: 不符合当前系统架构的要求 */ bool isArchError(const QString &packagePath); /** * @brief dependencyVersionMatch * @param result * @param relation * @return */ bool dependencyVersionMatch(const int result, const QApt::RelationType relation); /** * @brief isInstalledConflict 是否存在下载冲突 * @param packageName 包名 * @param packageVersion 包的版本 * @param packageArch 包的架构 * @return */ const ConflictResult isInstalledConflict(const QString &packageName, const QString &packageVersion, const QString &packageArch); /** * @brief isConflictSatisfy 是否冲突满足 * @param arch 架构 * @param package 包名 * @return 冲突的结果 */ const ConflictResult isConflictSatisfy(const QString &arch, QApt::Package *package); const ConflictResult isConflictSatisfy(const QString &arch, const QList &conflicts, const QList &replaces = {}); /** * @brief checkDependsPackageStatus 检查依赖包的状态 * @param choosed_set 被选择安装或卸载的包的集合 * @param architecture 包的架构 * @param depends 包的依赖列表 * @return */ DependsStatus checkDependsPackageStatus(QSet &choosed_set, const QString &architecture, const QList &depends); DependsStatus checkDependsPackageStatus(QSet &choosed_set, const QString &architecture, const QApt::DependencyItem &candicate); DependsStatus checkDependsPackageStatus(QSet &choosed_set, const QString &architecture, const QApt::DependencyInfo &dependencyInfo); private: /** * @brief packageCandidateChoose 查找包的依赖候选 * @param choosed_set 包的依赖候选的集合 * @param debArch 包的架构 * @param dependsList 依赖列表 */ void packageCandidateChoose(QSet &choosed_set, const QString &debArch, const QList &dependsList); void packageCandidateChoose(QSet &choosed_set, const QString &debArch, const QApt::DependencyItem &candidateItem); private: // fix bug:https://pms.uniontech.com/zentao/bug-view-37220.html // 卸载deepin-wine-plugin-virture 时无法卸载deepin-wine-helper. Temporary solution:Special treatment for these package QMap specialPackage(); public: DependsStatus m_status = DependsUnknown; QString m_package = ""; private: QFuture m_backendFuture; }; #endif // PACKAGEDEPENDSSTATUS_H deepin-deb-installer-6.5.5/tests/000077500000000000000000000000001474340456100166705ustar00rootroot00000000000000deepin-deb-installer-6.5.5/tests/CMakeLists.txt000066400000000000000000000130261474340456100214320ustar00rootroot00000000000000# SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. # # SPDX-License-Identifier: CC0-1.0 cmake_minimum_required(VERSION 3.7) if(NOT DEFINED VERSION) message(WARNING "Not defined version ,about dialog version set 5.3.9") set(VERSION 5.3.9) endif() find_package(GTest REQUIRED) include_directories(${GTEST_INCLUDE_DIRS}) # common resource names set(APP_RES_DIR "${CMAKE_SOURCE_DIR}/assets") set(APP_BIN_NAME_TEST "deepin-deb-installer-test") set(APP_DESKTOP "${APP_RES_DIR}/deepin-deb-installer.desktop") set(APP_QRC "${APP_RES_DIR}/resources.qrc") project(${APP_BIN_NAME_TEST}) ADD_COMPILE_OPTIONS(-fno-access-control) set(CMAKE_VERBOSE_MAKEFILE ON) set(CMAKE_CXX_STANDARD 17) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--as-need -fPIE") set(CMAKE_EXE_LINKER_FLAGS "-pie") # 安全测试加固编译参数 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -z relro -z now -z noexecstack -pie") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -z relro -z now -z noexecstack -pie") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-all") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector-all") if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "sw_64") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mieee") endif() set(CMAKE_SAFETYTEST "${CMAKE_SAFETYTEST_ARG}") if(CMAKE_SAFETYTEST STREQUAL "") set(CMAKE_SAFETYTEST "CMAKE_SAFETYTEST_ARG_OFF") endif() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D${CMAKE_SAFETYTEST}") if(CMAKE_SAFETYTEST STREQUAL "CMAKE_SAFETYTEST_ARG_ON") # 安全测试选项 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -fsanitize=undefined,address -O2") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsanitize=undefined,address -O2") endif() # compile flags if(CMAKE_BUILD_TYPE MATCHES Debug) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall -Wextra") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -Wextra") # Enable Qt builtin debug mode add_definitions("-DQT_MESSAGELOGCONTEXT") else() # -Wl, -O2 Enable linker optimizations # -Wl, --gc-sections Remove unused code resulting from -fdsta-sections and # -ffunction-sections set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O2 -Wl,-O1 -Wl,--gc-sections") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -O2 -Wl,-O1 -Wl,--gc-sections") endif() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fprofile-arcs -ftest-coverage") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -fprofile-arcs -ftest-coverage") configure_file(${APP_RES_DIR}/environments.h.in environments.h @ONLY) add_definitions(-DUSE_POLKIT -DENABLE_INACTIVE_DISPLAY) # Find the library find_package(PkgConfig REQUIRED) find_package(PolkitQt${QT_DESIRED_VERSION}-1) set(qt_required_components Core DBus Gui Widgets Concurrent Test) if (QT_DESIRED_VERSION MATCHES 6) list(APPEND qt_required_components Core5Compat) endif() find_package(Qt${QT_DESIRED_VERSION} REQUIRED COMPONENTS ${qt_required_components}) find_package(Dtk${DTK_VERSION_MAJOR} COMPONENTS Core Gui Widget REQUIRED) set(LINK_LIBS Qt${QT_DESIRED_VERSION}::Core Qt${QT_DESIRED_VERSION}::DBus Qt${QT_DESIRED_VERSION}::Gui Qt${QT_DESIRED_VERSION}::Widgets Qt${QT_DESIRED_VERSION}::Concurrent Qt${QT_DESIRED_VERSION}::Test Dtk${DTK_VERSION_MAJOR}::Widget Dtk${DTK_VERSION_MAJOR}::Core Dtk${DTK_VERSION_MAJOR}::Gui PolkitQt${QT_DESIRED_VERSION}-1::Agent ) if (QT_DESIRED_VERSION MATCHES 6) list(APPEND LINK_LIBS Qt${QT_DESIRED_VERSION}::Core5Compat) endif() macro(SUBDIRLIST result curdir) file(GLOB children RELATIVE ${curdir} ${curdir}/*) set(dirlist "") foreach(child ${children}) if(IS_DIRECTORY ${curdir}/${child}) LIST(APPEND dirlist ${child}) endif() endforeach() set(${result} ${dirlist}) endmacro() include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src/deb-installer) SUBDIRLIST(all_src ${CMAKE_CURRENT_SOURCE_DIR}/../src/deb-installer/) # Include all app own subdirectorys foreach(subdir ${all_src}) include_directories(${CMAKE_CURRENT_SOURCE_DIR}${subdir}) endforeach() file(GLOB_RECURSE APP_SRCS ${CMAKE_CURRENT_LIST_DIR}/../src/deb-installer/singleInstallerApplication.cpp ${CMAKE_CURRENT_LIST_DIR}/../src/deb-installer/manager/*.cpp ${CMAKE_CURRENT_LIST_DIR}/../src/deb-installer/model/*.cpp ${CMAKE_CURRENT_LIST_DIR}/../src/deb-installer/utils/*.cpp ${CMAKE_CURRENT_LIST_DIR}/../src/deb-installer/process/*.cpp ${CMAKE_CURRENT_LIST_DIR}/../src/deb-installer/view/pages/*.cpp ${CMAKE_CURRENT_LIST_DIR}/../src/deb-installer/view/widgets/*.cpp ${CMAKE_CURRENT_LIST_DIR}/../src/deb-installer/uab/*.cpp ${CMAKE_CURRENT_LIST_DIR}/../src/deb-installer/compatible/*.cpp ${CMAKE_CURRENT_LIST_DIR}/../src/deb-installer/immutable/*.cpp ) FILE(GLOB allTestSource src/*.cpp src/manager/*.cpp src/model/*.cpp src/utils/*.cpp src/view/pages/*.cpp src/view/widgets/*.cpp src/uab/*.cpp ) include_directories(src) include_directories(${CMAKE_CURRENT_LIST_DIR}/../src/deb-installer/) # Tell CMake to create the executable add_executable(${APP_BIN_NAME_TEST} ${APP_SRCS} ${APP_QRC} ${TEST_ACCESSIBLE_HEADERS_FILES} ${allTestSource}) target_link_libraries(${APP_BIN_NAME_TEST} PUBLIC ${LINK_LIBS} ${QAPT_LIB} ${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES} pthread ) # add_custom_target(test # COMMAND echo " =================== TEST BEGIN ==================== " # COMMAND ${CMAKE_BINARY_DIR}/tests/${APP_BIN_NAME_TEST} # COMMAND echo " =================== TEST END ==================== " # ) deepin-deb-installer-6.5.5/tests/FuzzyTest/000077500000000000000000000000001474340456100206575ustar00rootroot00000000000000deepin-deb-installer-6.5.5/tests/FuzzyTest/CMakeLists.txt000066400000000000000000000033031474340456100234160ustar00rootroot00000000000000# SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. # # SPDX-License-Identifier:CC0-1.0 cmake_minimum_required(VERSION 3.9.5) set(EXE_LIBQAPT_NAME libqapt_test) project(EXE_LIBQAPT_NAME) set(CMAKE_AUTOUIC ON) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOMOC ON) set(CMAKE_C_COMPILER /usr/bin/clang) set(CMAKE_CXX_COMPILER /usr/bin/clang++) include(FindPkgConfig) pkg_check_modules(MOD_GOBJECT REQUIRED gobject-2.0) find_package(Qt5 COMPONENTS Core Widgets Gui REQUIRED ) file(GLOB_RECURSE SRC_LIST FOLLOW_SYMLINKS LIST_DIRECTORIES false ${PROJECT_SOURCE_DIR}/src/*.cpp) file(GLOB_RECURSE INC_LIST FOLLOW_SYMLINKS LIST_DIRECTORIES false ${PROJECT_SOURCE_DIR}/src/*.h) file(GLOB_RECURSE HEAD_LIST FOLLOW_SYMLINKS LIST_DIRECTORIES false ${PROJECT_SOURCE_DIR}/include/*.h) list(APPEND INC_LIST ${HEAD_LIST}) add_executable(${EXE_LIBQAPT_NAME} ${SRC_LIST}) target_include_directories(${EXE_LIBQAPT_NAME} PRIVATE Qt5::Core Qt5::Widgets Qt5::Gui ) target_link_libraries(${EXE_LIBQAPT_NAME} PRIVATE Qt5::Core Qt5::Widgets Qt5::Gui) target_compile_options(${EXE_LIBQAPT_NAME} PRIVATE -g -std=c++11) target_link_options(${EXE_LIBQAPT_NAME} PRIVATE -fsanitize=undefined,address,leak -fsanitize=fuzzer) target_include_directories(${EXE_LIBQAPT_NAME} PRIVATE ${MOD_ATSPI2_INCLUDE_DIRS} PRIVATE ${MOD_GOBJECT_INCLUDE_DIRS} ) target_link_libraries(${EXE_LIBQAPT_NAME} PRIVATE ${MOD_ATSPI2_LIBRARIES} PRIVATE ${MOD_GOBJECT_LIBRARIES} PRIVATE libFuzzer.a PRIVATE pthread QApt) target_link_directories(${EXE_LIBQAPT_NAME} PRIVATE ${MOD_ATSPI2_LIBRARY_DIRS} PRIVATE ${MOD_GOBJECT_LIBRARY_DIRS} PRIVATE ${PROJECT_SOURCE_DIR}/thirdlib ) set(LINK_LIBS QApt ) deepin-deb-installer-6.5.5/tests/FuzzyTest/include/000077500000000000000000000000001474340456100223025ustar00rootroot00000000000000deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerBuiltins.h000066400000000000000000000023701474340456100254540ustar00rootroot00000000000000//===- FuzzerBuiltins.h - Internal header for builtins ----------*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // Wrapper functions and marcos around builtin functions. //===----------------------------------------------------------------------===// #ifndef LLVM_FUZZER_BUILTINS_H #define LLVM_FUZZER_BUILTINS_H #include "FuzzerDefs.h" #if !LIBFUZZER_MSVC #include #define GET_CALLER_PC() __builtin_return_address(0) namespace fuzzer { inline uint8_t Bswap(uint8_t x) { return x; } inline uint16_t Bswap(uint16_t x) { return __builtin_bswap16(x); } inline uint32_t Bswap(uint32_t x) { return __builtin_bswap32(x); } inline uint64_t Bswap(uint64_t x) { return __builtin_bswap64(x); } inline uint32_t Clzll(unsigned long long X) { return __builtin_clzll(X); } inline uint32_t Clz(unsigned long long X) { return __builtin_clz(X); } inline int Popcountll(unsigned long long X) { return __builtin_popcountll(X); } } // namespace fuzzer #endif // !LIBFUZZER_MSVC #endif // LLVM_FUZZER_BUILTINS_H deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerBuiltinsMsvc.h000066400000000000000000000045201474340456100263040ustar00rootroot00000000000000//===- FuzzerBuiltinsMSVC.h - Internal header for builtins ------*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // Wrapper functions and marcos that use intrinsics instead of builtin functions // which cannot be compiled by MSVC. //===----------------------------------------------------------------------===// #ifndef LLVM_FUZZER_BUILTINS_MSVC_H #define LLVM_FUZZER_BUILTINS_MSVC_H #include "FuzzerDefs.h" #if LIBFUZZER_MSVC #include #include #include // __builtin_return_address() cannot be compiled with MSVC. Use the equivalent // from #define GET_CALLER_PC() _ReturnAddress() namespace fuzzer { inline uint8_t Bswap(uint8_t x) { return x; } // Use alternatives to __builtin functions from and on // Windows since the builtins are not supported by MSVC. inline uint16_t Bswap(uint16_t x) { return _byteswap_ushort(x); } inline uint32_t Bswap(uint32_t x) { return _byteswap_ulong(x); } inline uint64_t Bswap(uint64_t x) { return _byteswap_uint64(x); } // The functions below were mostly copied from // compiler-rt/lib/builtins/int_lib.h which defines the __builtin functions used // outside of Windows. inline uint32_t Clzll(uint64_t X) { unsigned long LeadZeroIdx = 0; #if !defined(_M_ARM) && !defined(_M_X64) // Scan the high 32 bits. if (_BitScanReverse(&LeadZeroIdx, static_cast(X >> 32))) return static_cast(63 - (LeadZeroIdx + 32)); // Create a bit offset from the MSB. // Scan the low 32 bits. if (_BitScanReverse(&LeadZeroIdx, static_cast(X))) return static_cast(63 - LeadZeroIdx); #else if (_BitScanReverse64(&LeadZeroIdx, X)) return 63 - LeadZeroIdx; #endif return 64; } inline uint32_t Clz(uint32_t X) { unsigned long LeadZeroIdx = 0; if (_BitScanReverse(&LeadZeroIdx, X)) return 31 - LeadZeroIdx; return 32; } inline int Popcountll(unsigned long long X) { #if !defined(_M_ARM) && !defined(_M_X64) return __popcnt(X) + __popcnt(X >> 32); #else return __popcnt64(X); #endif } } // namespace fuzzer #endif // LIBFUZER_MSVC #endif // LLVM_FUZZER_BUILTINS_MSVC_H deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerCommand.h000066400000000000000000000137201474340456100252420ustar00rootroot00000000000000//===- FuzzerCommand.h - Interface representing a process -------*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // FuzzerCommand represents a command to run in a subprocess. It allows callers // to manage command line arguments and output and error streams. //===----------------------------------------------------------------------===// #ifndef LLVM_FUZZER_COMMAND_H #define LLVM_FUZZER_COMMAND_H #include "FuzzerDefs.h" #include "FuzzerIO.h" #include #include #include #include namespace fuzzer { class Command final { public: // This command line flag is used to indicate that the remaining command line // is immutable, meaning this flag effectively marks the end of the mutable // argument list. static inline const char *ignoreRemainingArgs() { return "-ignore_remaining_args=1"; } Command() : CombinedOutAndErr(false) {} explicit Command(const Vector &ArgsToAdd) : Args(ArgsToAdd), CombinedOutAndErr(false) {} explicit Command(const Command &Other) : Args(Other.Args), CombinedOutAndErr(Other.CombinedOutAndErr), OutputFile(Other.OutputFile) {} Command &operator=(const Command &Other) { Args = Other.Args; CombinedOutAndErr = Other.CombinedOutAndErr; OutputFile = Other.OutputFile; return *this; } ~Command() {} // Returns true if the given Arg is present in Args. Only checks up to // "-ignore_remaining_args=1". bool hasArgument(const std::string &Arg) const { auto i = endMutableArgs(); return std::find(Args.begin(), i, Arg) != i; } // Gets all of the current command line arguments, **including** those after // "-ignore-remaining-args=1". const Vector &getArguments() const { return Args; } // Adds the given argument before "-ignore_remaining_args=1", or at the end // if that flag isn't present. void addArgument(const std::string &Arg) { Args.insert(endMutableArgs(), Arg); } // Adds all given arguments before "-ignore_remaining_args=1", or at the end // if that flag isn't present. void addArguments(const Vector &ArgsToAdd) { Args.insert(endMutableArgs(), ArgsToAdd.begin(), ArgsToAdd.end()); } // Removes the given argument from the command argument list. Ignores any // occurrences after "-ignore_remaining_args=1", if present. void removeArgument(const std::string &Arg) { auto i = endMutableArgs(); Args.erase(std::remove(Args.begin(), i, Arg), i); } // Like hasArgument, but checks for "-[Flag]=...". bool hasFlag(const std::string &Flag) const { std::string Arg("-" + Flag + "="); auto IsMatch = [&](const std::string &Other) { return Arg.compare(0, std::string::npos, Other, 0, Arg.length()) == 0; }; return std::any_of(Args.begin(), endMutableArgs(), IsMatch); } // Returns the value of the first instance of a given flag, or an empty string // if the flag isn't present. Ignores any occurrences after // "-ignore_remaining_args=1", if present. std::string getFlagValue(const std::string &Flag) const { std::string Arg("-" + Flag + "="); auto IsMatch = [&](const std::string &Other) { return Arg.compare(0, std::string::npos, Other, 0, Arg.length()) == 0; }; auto i = endMutableArgs(); auto j = std::find_if(Args.begin(), i, IsMatch); std::string result; if (j != i) { result = j->substr(Arg.length()); } return result; } // Like AddArgument, but adds "-[Flag]=[Value]". void addFlag(const std::string &Flag, const std::string &Value) { addArgument("-" + Flag + "=" + Value); } // Like RemoveArgument, but removes "-[Flag]=...". void removeFlag(const std::string &Flag) { std::string Arg("-" + Flag + "="); auto IsMatch = [&](const std::string &Other) { return Arg.compare(0, std::string::npos, Other, 0, Arg.length()) == 0; }; auto i = endMutableArgs(); Args.erase(std::remove_if(Args.begin(), i, IsMatch), i); } // Returns whether the command's stdout is being written to an output file. bool hasOutputFile() const { return !OutputFile.empty(); } // Returns the currently set output file. const std::string &getOutputFile() const { return OutputFile; } // Configures the command to redirect its output to the name file. void setOutputFile(const std::string &FileName) { OutputFile = FileName; } // Returns whether the command's stderr is redirected to stdout. bool isOutAndErrCombined() const { return CombinedOutAndErr; } // Sets whether to redirect the command's stderr to its stdout. void combineOutAndErr(bool combine = true) { CombinedOutAndErr = combine; } // Returns a string representation of the command. On many systems this will // be the equivalent command line. std::string toString() const { std::stringstream SS; for (auto arg : getArguments()) SS << arg << " "; if (hasOutputFile()) SS << ">" << getOutputFile() << " "; if (isOutAndErrCombined()) SS << "2>&1 "; std::string result = SS.str(); if (!result.empty()) result = result.substr(0, result.length() - 1); return result; } private: Command(Command &&Other) = delete; Command &operator=(Command &&Other) = delete; Vector::iterator endMutableArgs() { return std::find(Args.begin(), Args.end(), ignoreRemainingArgs()); } Vector::const_iterator endMutableArgs() const { return std::find(Args.begin(), Args.end(), ignoreRemainingArgs()); } // The command arguments. Args[0] is the command name. Vector Args; // True indicates stderr is redirected to stdout. bool CombinedOutAndErr; // If not empty, stdout is redirected to the named file. std::string OutputFile; }; } // namespace fuzzer #endif // LLVM_FUZZER_COMMAND_H deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerCorpus.h000066400000000000000000000226021474340456100251360ustar00rootroot00000000000000//===- FuzzerCorpus.h - Internal header for the Fuzzer ----------*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // fuzzer::InputCorpus //===----------------------------------------------------------------------===// #ifndef LLVM_FUZZER_CORPUS #define LLVM_FUZZER_CORPUS #include "FuzzerDataFlowTrace.h" #include "FuzzerDefs.h" #include "FuzzerIO.h" #include "FuzzerRandom.h" #include "FuzzerSHA1.h" #include "FuzzerTracePC.h" #include #include #include #include namespace fuzzer { struct InputInfo { Unit U; // The actual input data. uint8_t Sha1[kSHA1NumBytes]; // Checksum. // Number of features that this input has and no smaller input has. size_t NumFeatures = 0; size_t Tmp = 0; // Used by ValidateFeatureSet. // Stats. size_t NumExecutedMutations = 0; size_t NumSuccessfullMutations = 0; bool MayDeleteFile = false; bool Reduced = false; bool HasFocusFunction = false; Vector UniqFeatureSet; Vector DataFlowTraceForFocusFunction; }; class InputCorpus { static const size_t kFeatureSetSize = 1 << 21; public: InputCorpus(const std::string &OutputCorpus) : OutputCorpus(OutputCorpus) { memset(InputSizesPerFeature, 0, sizeof(InputSizesPerFeature)); memset(SmallestElementPerFeature, 0, sizeof(SmallestElementPerFeature)); } ~InputCorpus() { for (auto II : Inputs) delete II; } size_t size() const { return Inputs.size(); } size_t SizeInBytes() const { size_t Res = 0; for (auto II : Inputs) Res += II->U.size(); return Res; } size_t NumActiveUnits() const { size_t Res = 0; for (auto II : Inputs) Res += !II->U.empty(); return Res; } size_t MaxInputSize() const { size_t Res = 0; for (auto II : Inputs) Res = std::max(Res, II->U.size()); return Res; } size_t NumInputsThatTouchFocusFunction() { return std::count_if(Inputs.begin(), Inputs.end(), [](const InputInfo *II) { return II->HasFocusFunction; }); } size_t NumInputsWithDataFlowTrace() { return std::count_if(Inputs.begin(), Inputs.end(), [](const InputInfo *II) { return !II->DataFlowTraceForFocusFunction.empty(); }); } bool empty() const { return Inputs.empty(); } const Unit &operator[] (size_t Idx) const { return Inputs[Idx]->U; } InputInfo *AddToCorpus(const Unit &U, size_t NumFeatures, bool MayDeleteFile, bool HasFocusFunction, const Vector &FeatureSet, const DataFlowTrace &DFT, const InputInfo *BaseII) { assert(!U.empty()); if (FeatureDebug) Printf("ADD_TO_CORPUS %zd NF %zd\n", Inputs.size(), NumFeatures); Inputs.push_back(new InputInfo()); InputInfo &II = *Inputs.back(); II.U = U; II.NumFeatures = NumFeatures; II.MayDeleteFile = MayDeleteFile; II.UniqFeatureSet = FeatureSet; II.HasFocusFunction = HasFocusFunction; std::sort(II.UniqFeatureSet.begin(), II.UniqFeatureSet.end()); ComputeSHA1(U.data(), U.size(), II.Sha1); auto Sha1Str = Sha1ToString(II.Sha1); Hashes.insert(Sha1Str); if (HasFocusFunction) if (auto V = DFT.Get(Sha1Str)) II.DataFlowTraceForFocusFunction = *V; // This is a gross heuristic. // Ideally, when we add an element to a corpus we need to know its DFT. // But if we don't, we'll use the DFT of its base input. if (II.DataFlowTraceForFocusFunction.empty() && BaseII) II.DataFlowTraceForFocusFunction = BaseII->DataFlowTraceForFocusFunction; UpdateCorpusDistribution(); PrintCorpus(); // ValidateFeatureSet(); return &II; } // Debug-only void PrintUnit(const Unit &U) { if (!FeatureDebug) return; for (uint8_t C : U) { if (C != 'F' && C != 'U' && C != 'Z') C = '.'; Printf("%c", C); } } // Debug-only void PrintFeatureSet(const Vector &FeatureSet) { if (!FeatureDebug) return; Printf("{"); for (uint32_t Feature: FeatureSet) Printf("%u,", Feature); Printf("}"); } // Debug-only void PrintCorpus() { if (!FeatureDebug) return; Printf("======= CORPUS:\n"); int i = 0; for (auto II : Inputs) { if (std::find(II->U.begin(), II->U.end(), 'F') != II->U.end()) { Printf("[%2d] ", i); Printf("%s sz=%zd ", Sha1ToString(II->Sha1).c_str(), II->U.size()); PrintUnit(II->U); Printf(" "); PrintFeatureSet(II->UniqFeatureSet); Printf("\n"); } i++; } } void Replace(InputInfo *II, const Unit &U) { assert(II->U.size() > U.size()); Hashes.erase(Sha1ToString(II->Sha1)); DeleteFile(*II); ComputeSHA1(U.data(), U.size(), II->Sha1); Hashes.insert(Sha1ToString(II->Sha1)); II->U = U; II->Reduced = true; UpdateCorpusDistribution(); } bool HasUnit(const Unit &U) { return Hashes.count(Hash(U)); } bool HasUnit(const std::string &H) { return Hashes.count(H); } InputInfo &ChooseUnitToMutate(Random &Rand) { InputInfo &II = *Inputs[ChooseUnitIdxToMutate(Rand)]; assert(!II.U.empty()); return II; } // Returns an index of random unit from the corpus to mutate. size_t ChooseUnitIdxToMutate(Random &Rand) { size_t Idx = static_cast(CorpusDistribution(Rand)); assert(Idx < Inputs.size()); return Idx; } void PrintStats() { for (size_t i = 0; i < Inputs.size(); i++) { const auto &II = *Inputs[i]; Printf(" [% 3zd %s] sz: % 5zd runs: % 5zd succ: % 5zd focus: %d\n", i, Sha1ToString(II.Sha1).c_str(), II.U.size(), II.NumExecutedMutations, II.NumSuccessfullMutations, II.HasFocusFunction); } } void PrintFeatureSet() { for (size_t i = 0; i < kFeatureSetSize; i++) { if(size_t Sz = GetFeature(i)) Printf("[%zd: id %zd sz%zd] ", i, SmallestElementPerFeature[i], Sz); } Printf("\n\t"); for (size_t i = 0; i < Inputs.size(); i++) if (size_t N = Inputs[i]->NumFeatures) Printf(" %zd=>%zd ", i, N); Printf("\n"); } void DeleteFile(const InputInfo &II) { if (!OutputCorpus.empty() && II.MayDeleteFile) RemoveFile(DirPlusFile(OutputCorpus, Sha1ToString(II.Sha1))); } void DeleteInput(size_t Idx) { InputInfo &II = *Inputs[Idx]; DeleteFile(II); Unit().swap(II.U); if (FeatureDebug) Printf("EVICTED %zd\n", Idx); } bool AddFeature(size_t Idx, uint32_t NewSize, bool Shrink) { assert(NewSize); Idx = Idx % kFeatureSetSize; uint32_t OldSize = GetFeature(Idx); if (OldSize == 0 || (Shrink && OldSize > NewSize)) { if (OldSize > 0) { size_t OldIdx = SmallestElementPerFeature[Idx]; InputInfo &II = *Inputs[OldIdx]; assert(II.NumFeatures > 0); II.NumFeatures--; if (II.NumFeatures == 0) DeleteInput(OldIdx); } else { NumAddedFeatures++; } NumUpdatedFeatures++; if (FeatureDebug) Printf("ADD FEATURE %zd sz %d\n", Idx, NewSize); SmallestElementPerFeature[Idx] = Inputs.size(); InputSizesPerFeature[Idx] = NewSize; return true; } return false; } size_t NumFeatures() const { return NumAddedFeatures; } size_t NumFeatureUpdates() const { return NumUpdatedFeatures; } private: static const bool FeatureDebug = false; size_t GetFeature(size_t Idx) const { return InputSizesPerFeature[Idx]; } void ValidateFeatureSet() { if (FeatureDebug) PrintFeatureSet(); for (size_t Idx = 0; Idx < kFeatureSetSize; Idx++) if (GetFeature(Idx)) Inputs[SmallestElementPerFeature[Idx]]->Tmp++; for (auto II: Inputs) { if (II->Tmp != II->NumFeatures) Printf("ZZZ %zd %zd\n", II->Tmp, II->NumFeatures); assert(II->Tmp == II->NumFeatures); II->Tmp = 0; } } // Updates the probability distribution for the units in the corpus. // Must be called whenever the corpus or unit weights are changed. // // Hypothesis: units added to the corpus last are more interesting. // // Hypothesis: inputs with infrequent features are more interesting. void UpdateCorpusDistribution() { size_t N = Inputs.size(); assert(N); Intervals.resize(N + 1); Weights.resize(N); std::iota(Intervals.begin(), Intervals.end(), 0); for (size_t i = 0; i < N; i++) Weights[i] = Inputs[i]->NumFeatures ? (i + 1) * (Inputs[i]->HasFocusFunction ? 1000 : 1) : 0.; if (FeatureDebug) { for (size_t i = 0; i < N; i++) Printf("%zd ", Inputs[i]->NumFeatures); Printf("SCORE\n"); for (size_t i = 0; i < N; i++) Printf("%f ", Weights[i]); Printf("Weights\n"); } CorpusDistribution = std::piecewise_constant_distribution( Intervals.begin(), Intervals.end(), Weights.begin()); } std::piecewise_constant_distribution CorpusDistribution; Vector Intervals; Vector Weights; std::unordered_set Hashes; Vector Inputs; size_t NumAddedFeatures = 0; size_t NumUpdatedFeatures = 0; uint32_t InputSizesPerFeature[kFeatureSetSize]; uint32_t SmallestElementPerFeature[kFeatureSetSize]; std::string OutputCorpus; }; } // namespace fuzzer #endif // LLVM_FUZZER_CORPUS deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerDataFlowTrace.h000066400000000000000000000077551474340456100263570ustar00rootroot00000000000000//===- FuzzerDataFlowTrace.h - Internal header for the Fuzzer ---*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // fuzzer::DataFlowTrace; reads and handles a data-flow trace. // // A data flow trace is generated by e.g. dataflow/DataFlow.cpp // and is stored on disk in a separate directory. // // The trace dir contains a file 'functions.txt' which lists function names, // oner per line, e.g. // ==> functions.txt <== // Func2 // LLVMFuzzerTestOneInput // Func1 // // All other files in the dir are the traces, see dataflow/DataFlow.cpp. // The name of the file is sha1 of the input used to generate the trace. // // Current status: // the data is parsed and the summary is printed, but the data is not yet // used in any other way. //===----------------------------------------------------------------------===// #ifndef LLVM_FUZZER_DATA_FLOW_TRACE #define LLVM_FUZZER_DATA_FLOW_TRACE #include "FuzzerDefs.h" #include "FuzzerIO.h" #include #include #include #include namespace fuzzer { int CollectDataFlow(const std::string &DFTBinary, const std::string &DirPath, const Vector &CorporaFiles); class BlockCoverage { public: bool AppendCoverage(std::istream &IN); bool AppendCoverage(const std::string &S); size_t NumCoveredFunctions() const { return Functions.size(); } uint32_t GetCounter(size_t FunctionId, size_t BasicBlockId) { auto It = Functions.find(FunctionId); if (It == Functions.end()) return 0; const auto &Counters = It->second; if (BasicBlockId < Counters.size()) return Counters[BasicBlockId]; return 0; } uint32_t GetNumberOfBlocks(size_t FunctionId) { auto It = Functions.find(FunctionId); if (It == Functions.end()) return 0; const auto &Counters = It->second; return Counters.size(); } uint32_t GetNumberOfCoveredBlocks(size_t FunctionId) { auto It = Functions.find(FunctionId); if (It == Functions.end()) return 0; const auto &Counters = It->second; uint32_t Result = 0; for (auto Cnt: Counters) if (Cnt) Result++; return Result; } Vector FunctionWeights(size_t NumFunctions) const; void clear() { Functions.clear(); } private: typedef Vector CoverageVector; uint32_t NumberOfCoveredBlocks(const CoverageVector &Counters) const { uint32_t Res = 0; for (auto Cnt : Counters) if (Cnt) Res++; return Res; } uint32_t NumberOfUncoveredBlocks(const CoverageVector &Counters) const { return Counters.size() - NumberOfCoveredBlocks(Counters); } uint32_t SmallestNonZeroCounter(const CoverageVector &Counters) const { assert(!Counters.empty()); uint32_t Res = Counters[0]; for (auto Cnt : Counters) if (Cnt) Res = Min(Res, Cnt); assert(Res); return Res; } // Function ID => vector of counters. // Each counter represents how many input files trigger the given basic block. std::unordered_map Functions; // Functions that have DFT entry. std::unordered_set FunctionsWithDFT; }; class DataFlowTrace { public: void ReadCoverage(const std::string &DirPath); bool Init(const std::string &DirPath, std::string *FocusFunction, Vector &CorporaFiles, Random &Rand); void Clear() { Traces.clear(); } const Vector *Get(const std::string &InputSha1) const { auto It = Traces.find(InputSha1); if (It != Traces.end()) return &It->second; return nullptr; } private: // Input's sha1 => DFT for the FocusFunction. std::unordered_map > Traces; BlockCoverage Coverage; std::unordered_set CorporaHashes; }; } // namespace fuzzer #endif // LLVM_FUZZER_DATA_FLOW_TRACE deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerDefs.h000066400000000000000000000132541474340456100245470ustar00rootroot00000000000000//===- FuzzerDefs.h - Internal header for the Fuzzer ------------*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // Basic definitions. //===----------------------------------------------------------------------===// #ifndef LLVM_FUZZER_DEFS_H #define LLVM_FUZZER_DEFS_H #include #include #include #include #include #include #include #include // Platform detection. #ifdef __linux__ #define LIBFUZZER_APPLE 0 #define LIBFUZZER_FUCHSIA 0 #define LIBFUZZER_LINUX 1 #define LIBFUZZER_NETBSD 0 #define LIBFUZZER_FREEBSD 0 #define LIBFUZZER_OPENBSD 0 #define LIBFUZZER_WINDOWS 0 #elif __APPLE__ #define LIBFUZZER_APPLE 1 #define LIBFUZZER_FUCHSIA 0 #define LIBFUZZER_LINUX 0 #define LIBFUZZER_NETBSD 0 #define LIBFUZZER_FREEBSD 0 #define LIBFUZZER_OPENBSD 0 #define LIBFUZZER_WINDOWS 0 #elif __NetBSD__ #define LIBFUZZER_APPLE 0 #define LIBFUZZER_FUCHSIA 0 #define LIBFUZZER_LINUX 0 #define LIBFUZZER_NETBSD 1 #define LIBFUZZER_FREEBSD 0 #define LIBFUZZER_OPENBSD 0 #define LIBFUZZER_WINDOWS 0 #elif __FreeBSD__ #define LIBFUZZER_APPLE 0 #define LIBFUZZER_FUCHSIA 0 #define LIBFUZZER_LINUX 0 #define LIBFUZZER_NETBSD 0 #define LIBFUZZER_FREEBSD 1 #define LIBFUZZER_OPENBSD 0 #define LIBFUZZER_WINDOWS 0 #elif __OpenBSD__ #define LIBFUZZER_APPLE 0 #define LIBFUZZER_FUCHSIA 0 #define LIBFUZZER_LINUX 0 #define LIBFUZZER_NETBSD 0 #define LIBFUZZER_FREEBSD 0 #define LIBFUZZER_OPENBSD 1 #define LIBFUZZER_WINDOWS 0 #elif _WIN32 #define LIBFUZZER_APPLE 0 #define LIBFUZZER_FUCHSIA 0 #define LIBFUZZER_LINUX 0 #define LIBFUZZER_NETBSD 0 #define LIBFUZZER_FREEBSD 0 #define LIBFUZZER_OPENBSD 0 #define LIBFUZZER_WINDOWS 1 #elif __Fuchsia__ #define LIBFUZZER_APPLE 0 #define LIBFUZZER_FUCHSIA 1 #define LIBFUZZER_LINUX 0 #define LIBFUZZER_NETBSD 0 #define LIBFUZZER_FREEBSD 0 #define LIBFUZZER_OPENBSD 0 #define LIBFUZZER_WINDOWS 0 #else #error "Support for your platform has not been implemented" #endif #if defined(_MSC_VER) && !defined(__clang__) // MSVC compiler is being used. #define LIBFUZZER_MSVC 1 #else #define LIBFUZZER_MSVC 0 #endif #ifndef __has_attribute # define __has_attribute(x) 0 #endif #define LIBFUZZER_POSIX \ (LIBFUZZER_APPLE || LIBFUZZER_LINUX || LIBFUZZER_NETBSD || \ LIBFUZZER_FREEBSD || LIBFUZZER_OPENBSD) #ifdef __x86_64 # if __has_attribute(target) # define ATTRIBUTE_TARGET_POPCNT __attribute__((target("popcnt"))) # else # define ATTRIBUTE_TARGET_POPCNT # endif #else # define ATTRIBUTE_TARGET_POPCNT #endif #ifdef __clang__ // avoid gcc warning. # if __has_attribute(no_sanitize) # define ATTRIBUTE_NO_SANITIZE_MEMORY __attribute__((no_sanitize("memory"))) # else # define ATTRIBUTE_NO_SANITIZE_MEMORY # endif # define ALWAYS_INLINE __attribute__((always_inline)) #else # define ATTRIBUTE_NO_SANITIZE_MEMORY # define ALWAYS_INLINE #endif // __clang__ #if LIBFUZZER_WINDOWS #define ATTRIBUTE_NO_SANITIZE_ADDRESS #else #define ATTRIBUTE_NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address)) #endif #if LIBFUZZER_WINDOWS #define ATTRIBUTE_ALIGNED(X) __declspec(align(X)) #define ATTRIBUTE_INTERFACE __declspec(dllexport) // This is used for __sancov_lowest_stack which is needed for // -fsanitize-coverage=stack-depth. That feature is not yet available on // Windows, so make the symbol static to avoid linking errors. #define ATTRIBUTES_INTERFACE_TLS_INITIAL_EXEC static #define ATTRIBUTE_NOINLINE __declspec(noinline) #else #define ATTRIBUTE_ALIGNED(X) __attribute__((aligned(X))) #define ATTRIBUTE_INTERFACE __attribute__((visibility("default"))) #define ATTRIBUTES_INTERFACE_TLS_INITIAL_EXEC \ ATTRIBUTE_INTERFACE __attribute__((tls_model("initial-exec"))) thread_local #define ATTRIBUTE_NOINLINE __attribute__((noinline)) #endif #if defined(__has_feature) # if __has_feature(address_sanitizer) # define ATTRIBUTE_NO_SANITIZE_ALL ATTRIBUTE_NO_SANITIZE_ADDRESS # elif __has_feature(memory_sanitizer) # define ATTRIBUTE_NO_SANITIZE_ALL ATTRIBUTE_NO_SANITIZE_MEMORY # else # define ATTRIBUTE_NO_SANITIZE_ALL # endif #else # define ATTRIBUTE_NO_SANITIZE_ALL #endif namespace fuzzer { template T Min(T a, T b) { return a < b ? a : b; } template T Max(T a, T b) { return a > b ? a : b; } class Random; class Dictionary; class DictionaryEntry; class MutationDispatcher; struct FuzzingOptions; class InputCorpus; struct InputInfo; struct ExternalFunctions; // Global interface to functions that may or may not be available. extern ExternalFunctions *EF; // We are using a custom allocator to give a different symbol name to STL // containers in order to avoid ODR violations. template class fuzzer_allocator: public std::allocator { public: fuzzer_allocator() = default; template fuzzer_allocator(const fuzzer_allocator&) {} template struct rebind { typedef fuzzer_allocator other; }; }; template using Vector = std::vector>; template using Set = std::set, fuzzer_allocator>; typedef Vector Unit; typedef Vector UnitVector; typedef int (*UserCallback)(const uint8_t *Data, size_t Size); int FuzzerDriver(int *argc, char ***argv, UserCallback Callback); uint8_t *ExtraCountersBegin(); uint8_t *ExtraCountersEnd(); void ClearExtraCounters(); extern bool RunningUserCallback; } // namespace fuzzer #endif // LLVM_FUZZER_DEFS_H deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerDictionary.h000066400000000000000000000065071474340456100257760ustar00rootroot00000000000000//===- FuzzerDictionary.h - Internal header for the Fuzzer ------*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // fuzzer::Dictionary //===----------------------------------------------------------------------===// #ifndef LLVM_FUZZER_DICTIONARY_H #define LLVM_FUZZER_DICTIONARY_H #include "FuzzerDefs.h" #include "FuzzerIO.h" #include "FuzzerUtil.h" #include #include namespace fuzzer { // A simple POD sized array of bytes. template class FixedWord { public: static const size_t kMaxSize = kMaxSizeT; FixedWord() {} FixedWord(const uint8_t *B, uint8_t S) { Set(B, S); } void Set(const uint8_t *B, uint8_t S) { assert(S <= kMaxSize); memcpy(Data, B, S); Size = S; } bool operator==(const FixedWord &w) const { return Size == w.Size && 0 == memcmp(Data, w.Data, Size); } static size_t GetMaxSize() { return kMaxSize; } const uint8_t *data() const { return Data; } uint8_t size() const { return Size; } private: uint8_t Size = 0; uint8_t Data[kMaxSize]; }; typedef FixedWord<64> Word; class DictionaryEntry { public: DictionaryEntry() {} DictionaryEntry(Word W) : W(W) {} DictionaryEntry(Word W, size_t PositionHint) : W(W), PositionHint(PositionHint) {} const Word &GetW() const { return W; } bool HasPositionHint() const { return PositionHint != std::numeric_limits::max(); } size_t GetPositionHint() const { assert(HasPositionHint()); return PositionHint; } void IncUseCount() { UseCount++; } void IncSuccessCount() { SuccessCount++; } size_t GetUseCount() const { return UseCount; } size_t GetSuccessCount() const {return SuccessCount; } void Print(const char *PrintAfter = "\n") { PrintASCII(W.data(), W.size()); if (HasPositionHint()) Printf("@%zd", GetPositionHint()); Printf("%s", PrintAfter); } private: Word W; size_t PositionHint = std::numeric_limits::max(); size_t UseCount = 0; size_t SuccessCount = 0; }; class Dictionary { public: static const size_t kMaxDictSize = 1 << 14; bool ContainsWord(const Word &W) const { return std::any_of(begin(), end(), [&](const DictionaryEntry &DE) { return DE.GetW() == W; }); } const DictionaryEntry *begin() const { return &DE[0]; } const DictionaryEntry *end() const { return begin() + Size; } DictionaryEntry & operator[] (size_t Idx) { assert(Idx < Size); return DE[Idx]; } void push_back(DictionaryEntry DE) { if (Size < kMaxDictSize) this->DE[Size++] = DE; } void clear() { Size = 0; } bool empty() const { return Size == 0; } size_t size() const { return Size; } private: DictionaryEntry DE[kMaxDictSize]; size_t Size = 0; }; // Parses one dictionary entry. // If successful, write the enty to Unit and returns true, // otherwise returns false. bool ParseOneDictionaryEntry(const std::string &Str, Unit *U); // Parses the dictionary file, fills Units, returns true iff all lines // were parsed successfully. bool ParseDictionaryFile(const std::string &Text, Vector *Units); } // namespace fuzzer #endif // LLVM_FUZZER_DICTIONARY_H deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerExtFunctions.h000066400000000000000000000020551474340456100263140ustar00rootroot00000000000000//===- FuzzerExtFunctions.h - Interface to external functions ---*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // Defines an interface to (possibly optional) functions. //===----------------------------------------------------------------------===// #ifndef LLVM_FUZZER_EXT_FUNCTIONS_H #define LLVM_FUZZER_EXT_FUNCTIONS_H #include #include namespace fuzzer { struct ExternalFunctions { // Initialize function pointers. Functions that are not available will be set // to nullptr. Do not call this constructor before ``main()`` has been // entered. ExternalFunctions(); #define EXT_FUNC(NAME, RETURN_TYPE, FUNC_SIG, WARN) \ RETURN_TYPE(*NAME) FUNC_SIG = nullptr #include "FuzzerExtFunctions.def" #undef EXT_FUNC }; } // namespace fuzzer #endif deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerFork.h000066400000000000000000000014121474340456100245600ustar00rootroot00000000000000//===- FuzzerFork.h - run fuzzing in sub-processes --------------*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLVM_FUZZER_FORK_H #define LLVM_FUZZER_FORK_H #include "FuzzerDefs.h" #include "FuzzerOptions.h" #include "FuzzerRandom.h" #include namespace fuzzer { void FuzzWithFork(Random &Rand, const FuzzingOptions &Options, const Vector &Args, const Vector &CorpusDirs, int NumJobs); } // namespace fuzzer #endif // LLVM_FUZZER_FORK_H deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerIO.h000066400000000000000000000065071474340456100242000ustar00rootroot00000000000000//===- FuzzerIO.h - Internal header for IO utils ----------------*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // IO interface. //===----------------------------------------------------------------------===// #ifndef LLVM_FUZZER_IO_H #define LLVM_FUZZER_IO_H #include "FuzzerDefs.h" namespace fuzzer { long GetEpoch(const std::string &Path); Unit FileToVector(const std::string &Path, size_t MaxSize = 0, bool ExitOnError = true); std::string FileToString(const std::string &Path); void CopyFileToErr(const std::string &Path); void WriteToFile(const uint8_t *Data, size_t Size, const std::string &Path); // Write Data.c_str() to the file without terminating null character. void WriteToFile(const std::string &Data, const std::string &Path); void WriteToFile(const Unit &U, const std::string &Path); void ReadDirToVectorOfUnits(const char *Path, Vector *V, long *Epoch, size_t MaxSize, bool ExitOnError); // Returns "Dir/FileName" or equivalent for the current OS. std::string DirPlusFile(const std::string &DirPath, const std::string &FileName); // Returns the name of the dir, similar to the 'dirname' utility. std::string DirName(const std::string &FileName); // Returns path to a TmpDir. std::string TmpDir(); std::string TempPath(const char *Extension); bool IsInterestingCoverageFile(const std::string &FileName); void DupAndCloseStderr(); void CloseStdout(); void Printf(const char *Fmt, ...); void VPrintf(bool Verbose, const char *Fmt, ...); // Print using raw syscalls, useful when printing at early init stages. void RawPrint(const char *Str); // Platform specific functions: bool IsFile(const std::string &Path); size_t FileSize(const std::string &Path); void ListFilesInDirRecursive(const std::string &Dir, long *Epoch, Vector *V, bool TopDir); void RmDirRecursive(const std::string &Dir); // Iterate files and dirs inside Dir, recursively. // Call DirPreCallback/DirPostCallback on dirs before/after // calling FileCallback on files. void IterateDirRecursive(const std::string &Dir, void (*DirPreCallback)(const std::string &Dir), void (*DirPostCallback)(const std::string &Dir), void (*FileCallback)(const std::string &Dir)); struct SizedFile { std::string File; size_t Size; bool operator<(const SizedFile &B) const { return Size < B.Size; } }; void GetSizedFilesFromDir(const std::string &Dir, Vector *V); char GetSeparator(); // Similar to the basename utility: returns the file name w/o the dir prefix. std::string Basename(const std::string &Path); FILE* OpenFile(int Fd, const char *Mode); int CloseFile(int Fd); int DuplicateFile(int Fd); void RemoveFile(const std::string &Path); void RenameFile(const std::string &OldPath, const std::string &NewPath); void DiscardOutput(int Fd); intptr_t GetHandleFromFd(int fd); void MkDir(const std::string &Path); void RmDir(const std::string &Path); const std::string &getDevNull(); } // namespace fuzzer #endif // LLVM_FUZZER_IO_H deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerInterface.h000066400000000000000000000060401474340456100255610ustar00rootroot00000000000000//===- FuzzerInterface.h - Interface header for the Fuzzer ------*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // Define the interface between libFuzzer and the library being tested. //===----------------------------------------------------------------------===// // NOTE: the libFuzzer interface is thin and in the majority of cases // you should not include this file into your target. In 95% of cases // all you need is to define the following function in your file: // extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size); // WARNING: keep the interface in C. #ifndef LLVM_FUZZER_INTERFACE_H #define LLVM_FUZZER_INTERFACE_H #include #include #ifdef __cplusplus extern "C" { #endif // __cplusplus // Define FUZZER_INTERFACE_VISIBILITY to set default visibility in a way that // doesn't break MSVC. #if defined(_WIN32) #define FUZZER_INTERFACE_VISIBILITY __declspec(dllexport) #else #define FUZZER_INTERFACE_VISIBILITY __attribute__((visibility("default"))) #endif // Mandatory user-provided target function. // Executes the code under test with [Data, Data+Size) as the input. // libFuzzer will invoke this function *many* times with different inputs. // Must return 0. FUZZER_INTERFACE_VISIBILITY int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size); // Optional user-provided initialization function. // If provided, this function will be called by libFuzzer once at startup. // It may read and modify argc/argv. // Must return 0. FUZZER_INTERFACE_VISIBILITY int LLVMFuzzerInitialize(int *argc, char ***argv); // Optional user-provided custom mutator. // Mutates raw data in [Data, Data+Size) inplace. // Returns the new size, which is not greater than MaxSize. // Given the same Seed produces the same mutation. FUZZER_INTERFACE_VISIBILITY size_t LLVMFuzzerCustomMutator(uint8_t *Data, size_t Size, size_t MaxSize, unsigned int Seed); // Optional user-provided custom cross-over function. // Combines pieces of Data1 & Data2 together into Out. // Returns the new size, which is not greater than MaxOutSize. // Should produce the same mutation given the same Seed. FUZZER_INTERFACE_VISIBILITY size_t LLVMFuzzerCustomCrossOver(const uint8_t *Data1, size_t Size1, const uint8_t *Data2, size_t Size2, uint8_t *Out, size_t MaxOutSize, unsigned int Seed); // Experimental, may go away in future. // libFuzzer-provided function to be used inside LLVMFuzzerCustomMutator. // Mutates raw data in [Data, Data+Size) inplace. // Returns the new size, which is not greater than MaxSize. FUZZER_INTERFACE_VISIBILITY size_t LLVMFuzzerMutate(uint8_t *Data, size_t Size, size_t MaxSize); #undef FUZZER_INTERFACE_VISIBILITY #ifdef __cplusplus } // extern "C" #endif // __cplusplus #endif // LLVM_FUZZER_INTERFACE_H deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerInternal.h000066400000000000000000000125221474340456100254370ustar00rootroot00000000000000//===- FuzzerInternal.h - Internal header for the Fuzzer --------*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // Define the main class fuzzer::Fuzzer and most functions. //===----------------------------------------------------------------------===// #ifndef LLVM_FUZZER_INTERNAL_H #define LLVM_FUZZER_INTERNAL_H #include "FuzzerDataFlowTrace.h" #include "FuzzerDefs.h" #include "FuzzerExtFunctions.h" #include "FuzzerInterface.h" #include "FuzzerOptions.h" #include "FuzzerSHA1.h" #include "FuzzerValueBitMap.h" #include #include #include #include #include #include namespace fuzzer { using namespace std::chrono; class Fuzzer { public: Fuzzer(UserCallback CB, InputCorpus &Corpus, MutationDispatcher &MD, FuzzingOptions Options); ~Fuzzer(); void Loop(Vector &CorporaFiles); void ReadAndExecuteSeedCorpora(Vector &CorporaFiles); void MinimizeCrashLoop(const Unit &U); void RereadOutputCorpus(size_t MaxSize); size_t secondsSinceProcessStartUp() { return duration_cast(system_clock::now() - ProcessStartTime) .count(); } bool TimedOut() { return Options.MaxTotalTimeSec > 0 && secondsSinceProcessStartUp() > static_cast(Options.MaxTotalTimeSec); } size_t execPerSec() { size_t Seconds = secondsSinceProcessStartUp(); return Seconds ? TotalNumberOfRuns / Seconds : 0; } size_t getTotalNumberOfRuns() { return TotalNumberOfRuns; } static void StaticAlarmCallback(); static void StaticCrashSignalCallback(); static void StaticExitCallback(); static void StaticInterruptCallback(); static void StaticFileSizeExceedCallback(); static void StaticGracefulExitCallback(); void ExecuteCallback(const uint8_t *Data, size_t Size); bool RunOne(const uint8_t *Data, size_t Size, bool MayDeleteFile = false, InputInfo *II = nullptr, bool *FoundUniqFeatures = nullptr); // Merge Corpora[1:] into Corpora[0]. void Merge(const Vector &Corpora); void CrashResistantMergeInternalStep(const std::string &ControlFilePath); MutationDispatcher &GetMD() { return MD; } void PrintFinalStats(); void SetMaxInputLen(size_t MaxInputLen); void SetMaxMutationLen(size_t MaxMutationLen); void RssLimitCallback(); bool InFuzzingThread() const { return IsMyThread; } size_t GetCurrentUnitInFuzzingThead(const uint8_t **Data) const; void TryDetectingAMemoryLeak(const uint8_t *Data, size_t Size, bool DuringInitialCorpusExecution); void HandleMalloc(size_t Size); static void MaybeExitGracefully(); std::string WriteToOutputCorpus(const Unit &U); private: void AlarmCallback(); void CrashCallback(); void ExitCallback(); void CrashOnOverwrittenData(); void InterruptCallback(); void MutateAndTestOne(); void PurgeAllocator(); void ReportNewCoverage(InputInfo *II, const Unit &U); void PrintPulseAndReportSlowInput(const uint8_t *Data, size_t Size); void WriteUnitToFileWithPrefix(const Unit &U, const char *Prefix); void PrintStats(const char *Where, const char *End = "\n", size_t Units = 0, size_t Features = 0); void PrintStatusForNewUnit(const Unit &U, const char *Text); void CheckExitOnSrcPosOrItem(); static void StaticDeathCallback(); void DumpCurrentUnit(const char *Prefix); void DeathCallback(); void AllocateCurrentUnitData(); uint8_t *CurrentUnitData = nullptr; std::atomic CurrentUnitSize; uint8_t BaseSha1[kSHA1NumBytes]; // Checksum of the base unit. bool GracefulExitRequested = false; size_t TotalNumberOfRuns = 0; size_t NumberOfNewUnitsAdded = 0; size_t LastCorpusUpdateRun = 0; bool HasMoreMallocsThanFrees = false; size_t NumberOfLeakDetectionAttempts = 0; system_clock::time_point LastAllocatorPurgeAttemptTime = system_clock::now(); UserCallback CB; InputCorpus &Corpus; MutationDispatcher &MD; FuzzingOptions Options; DataFlowTrace DFT; system_clock::time_point ProcessStartTime = system_clock::now(); system_clock::time_point UnitStartTime, UnitStopTime; long TimeOfLongestUnitInSeconds = 0; long EpochOfLastReadOfOutputCorpus = 0; size_t MaxInputLen = 0; size_t MaxMutationLen = 0; size_t TmpMaxMutationLen = 0; Vector UniqFeatureSetTmp; // Need to know our own thread. static thread_local bool IsMyThread; }; struct ScopedEnableMsanInterceptorChecks { ScopedEnableMsanInterceptorChecks() { if (EF->__msan_scoped_enable_interceptor_checks) EF->__msan_scoped_enable_interceptor_checks(); } ~ScopedEnableMsanInterceptorChecks() { if (EF->__msan_scoped_disable_interceptor_checks) EF->__msan_scoped_disable_interceptor_checks(); } }; struct ScopedDisableMsanInterceptorChecks { ScopedDisableMsanInterceptorChecks() { if (EF->__msan_scoped_disable_interceptor_checks) EF->__msan_scoped_disable_interceptor_checks(); } ~ScopedDisableMsanInterceptorChecks() { if (EF->__msan_scoped_enable_interceptor_checks) EF->__msan_scoped_enable_interceptor_checks(); } }; } // namespace fuzzer #endif // LLVM_FUZZER_INTERNAL_H deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerMerge.h000066400000000000000000000064041474340456100247240ustar00rootroot00000000000000//===- FuzzerMerge.h - merging corpa ----------------------------*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // Merging Corpora. // // The task: // Take the existing corpus (possibly empty) and merge new inputs into // it so that only inputs with new coverage ('features') are added. // The process should tolerate the crashes, OOMs, leaks, etc. // // Algorithm: // The outter process collects the set of files and writes their names // into a temporary "control" file, then repeatedly launches the inner // process until all inputs are processed. // The outer process does not actually execute the target code. // // The inner process reads the control file and sees a) list of all the inputs // and b) the last processed input. Then it starts processing the inputs one // by one. Before processing every input it writes one line to control file: // STARTED INPUT_ID INPUT_SIZE // After processing an input it write another line: // DONE INPUT_ID Feature1 Feature2 Feature3 ... // If a crash happens while processing an input the last line in the control // file will be "STARTED INPUT_ID" and so the next process will know // where to resume. // // Once all inputs are processed by the innner process(es) the outer process // reads the control files and does the merge based entirely on the contents // of control file. // It uses a single pass greedy algorithm choosing first the smallest inputs // within the same size the inputs that have more new features. // //===----------------------------------------------------------------------===// #ifndef LLVM_FUZZER_MERGE_H #define LLVM_FUZZER_MERGE_H #include "FuzzerDefs.h" #include #include #include #include namespace fuzzer { struct MergeFileInfo { std::string Name; size_t Size = 0; Vector Features, Cov; }; struct Merger { Vector Files; size_t NumFilesInFirstCorpus = 0; size_t FirstNotProcessedFile = 0; std::string LastFailure; bool Parse(std::istream &IS, bool ParseCoverage); bool Parse(const std::string &Str, bool ParseCoverage); void ParseOrExit(std::istream &IS, bool ParseCoverage); size_t Merge(const Set &InitialFeatures, Set *NewFeatures, const Set &InitialCov, Set *NewCov, Vector *NewFiles); size_t ApproximateMemoryConsumption() const; Set AllFeatures() const; }; void CrashResistantMerge(const Vector &Args, const Vector &OldCorpus, const Vector &NewCorpus, Vector *NewFiles, const Set &InitialFeatures, Set *NewFeatures, const Set &InitialCov, Set *NewCov, const std::string &CFPath, bool Verbose); } // namespace fuzzer #endif // LLVM_FUZZER_MERGE_H deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerMutate.h000066400000000000000000000151051474340456100251220ustar00rootroot00000000000000//===- FuzzerMutate.h - Internal header for the Fuzzer ----------*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // fuzzer::MutationDispatcher //===----------------------------------------------------------------------===// #ifndef LLVM_FUZZER_MUTATE_H #define LLVM_FUZZER_MUTATE_H #include "FuzzerDefs.h" #include "FuzzerDictionary.h" #include "FuzzerOptions.h" #include "FuzzerRandom.h" namespace fuzzer { class MutationDispatcher { public: MutationDispatcher(Random &Rand, const FuzzingOptions &Options); ~MutationDispatcher() {} /// Indicate that we are about to start a new sequence of mutations. void StartMutationSequence(); /// Print the current sequence of mutations. void PrintMutationSequence(); /// Indicate that the current sequence of mutations was successful. void RecordSuccessfulMutationSequence(); /// Mutates data by invoking user-provided mutator. size_t Mutate_Custom(uint8_t *Data, size_t Size, size_t MaxSize); /// Mutates data by invoking user-provided crossover. size_t Mutate_CustomCrossOver(uint8_t *Data, size_t Size, size_t MaxSize); /// Mutates data by shuffling bytes. size_t Mutate_ShuffleBytes(uint8_t *Data, size_t Size, size_t MaxSize); /// Mutates data by erasing bytes. size_t Mutate_EraseBytes(uint8_t *Data, size_t Size, size_t MaxSize); /// Mutates data by inserting a byte. size_t Mutate_InsertByte(uint8_t *Data, size_t Size, size_t MaxSize); /// Mutates data by inserting several repeated bytes. size_t Mutate_InsertRepeatedBytes(uint8_t *Data, size_t Size, size_t MaxSize); /// Mutates data by chanding one byte. size_t Mutate_ChangeByte(uint8_t *Data, size_t Size, size_t MaxSize); /// Mutates data by chanding one bit. size_t Mutate_ChangeBit(uint8_t *Data, size_t Size, size_t MaxSize); /// Mutates data by copying/inserting a part of data into a different place. size_t Mutate_CopyPart(uint8_t *Data, size_t Size, size_t MaxSize); /// Mutates data by adding a word from the manual dictionary. size_t Mutate_AddWordFromManualDictionary(uint8_t *Data, size_t Size, size_t MaxSize); /// Mutates data by adding a word from the TORC. size_t Mutate_AddWordFromTORC(uint8_t *Data, size_t Size, size_t MaxSize); /// Mutates data by adding a word from the persistent automatic dictionary. size_t Mutate_AddWordFromPersistentAutoDictionary(uint8_t *Data, size_t Size, size_t MaxSize); /// Tries to find an ASCII integer in Data, changes it to another ASCII int. size_t Mutate_ChangeASCIIInteger(uint8_t *Data, size_t Size, size_t MaxSize); /// Change a 1-, 2-, 4-, or 8-byte integer in interesting ways. size_t Mutate_ChangeBinaryInteger(uint8_t *Data, size_t Size, size_t MaxSize); /// CrossOver Data with CrossOverWith. size_t Mutate_CrossOver(uint8_t *Data, size_t Size, size_t MaxSize); /// Applies one of the configured mutations. /// Returns the new size of data which could be up to MaxSize. size_t Mutate(uint8_t *Data, size_t Size, size_t MaxSize); /// Applies one of the configured mutations to the bytes of Data /// that have '1' in Mask. /// Mask.size() should be >= Size. size_t MutateWithMask(uint8_t *Data, size_t Size, size_t MaxSize, const Vector &Mask); /// Applies one of the default mutations. Provided as a service /// to mutation authors. size_t DefaultMutate(uint8_t *Data, size_t Size, size_t MaxSize); /// Creates a cross-over of two pieces of Data, returns its size. size_t CrossOver(const uint8_t *Data1, size_t Size1, const uint8_t *Data2, size_t Size2, uint8_t *Out, size_t MaxOutSize); void AddWordToManualDictionary(const Word &W); void PrintRecommendedDictionary(); void SetCrossOverWith(const Unit *U) { CrossOverWith = U; } Random &GetRand() { return Rand; } private: struct Mutator { size_t (MutationDispatcher::*Fn)(uint8_t *Data, size_t Size, size_t Max); const char *Name; }; size_t AddWordFromDictionary(Dictionary &D, uint8_t *Data, size_t Size, size_t MaxSize); size_t MutateImpl(uint8_t *Data, size_t Size, size_t MaxSize, Vector &Mutators); size_t InsertPartOf(const uint8_t *From, size_t FromSize, uint8_t *To, size_t ToSize, size_t MaxToSize); size_t CopyPartOf(const uint8_t *From, size_t FromSize, uint8_t *To, size_t ToSize); size_t ApplyDictionaryEntry(uint8_t *Data, size_t Size, size_t MaxSize, DictionaryEntry &DE); template DictionaryEntry MakeDictionaryEntryFromCMP(T Arg1, T Arg2, const uint8_t *Data, size_t Size); DictionaryEntry MakeDictionaryEntryFromCMP(const Word &Arg1, const Word &Arg2, const uint8_t *Data, size_t Size); DictionaryEntry MakeDictionaryEntryFromCMP(const void *Arg1, const void *Arg2, const void *Arg1Mutation, const void *Arg2Mutation, size_t ArgSize, const uint8_t *Data, size_t Size); Random &Rand; const FuzzingOptions Options; // Dictionary provided by the user via -dict=DICT_FILE. Dictionary ManualDictionary; // Temporary dictionary modified by the fuzzer itself, // recreated periodically. Dictionary TempAutoDictionary; // Persistent dictionary modified by the fuzzer, consists of // entries that led to successful discoveries in the past mutations. Dictionary PersistentAutoDictionary; Vector CurrentDictionaryEntrySequence; static const size_t kCmpDictionaryEntriesDequeSize = 16; DictionaryEntry CmpDictionaryEntriesDeque[kCmpDictionaryEntriesDequeSize]; size_t CmpDictionaryEntriesDequeIdx = 0; const Unit *CrossOverWith = nullptr; Vector MutateInPlaceHere; Vector MutateWithMaskTemp; // CustomCrossOver needs its own buffer as a custom implementation may call // LLVMFuzzerMutate, which in turn may resize MutateInPlaceHere. Vector CustomCrossOverInPlaceHere; Vector Mutators; Vector DefaultMutators; Vector CurrentMutatorSequence; }; } // namespace fuzzer #endif // LLVM_FUZZER_MUTATE_H deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerOptions.h000066400000000000000000000043671474340456100253260ustar00rootroot00000000000000// // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // fuzzer::FuzzingOptions //===----------------------------------------------------------------------===// #ifndef LLVM_FUZZER_OPTIONS_H #define LLVM_FUZZER_OPTIONS_H #include "FuzzerDefs.h" namespace fuzzer { struct FuzzingOptions { int Verbosity = 1; size_t MaxLen = 0; size_t LenControl = 1000; int UnitTimeoutSec = 300; int TimeoutExitCode = 70; int OOMExitCode = 71; int InterruptExitCode = 72; int ErrorExitCode = 77; bool IgnoreTimeouts = true; bool IgnoreOOMs = true; bool IgnoreCrashes = false; int MaxTotalTimeSec = 0; int RssLimitMb = 0; int MallocLimitMb = 0; bool DoCrossOver = true; int MutateDepth = 5; bool ReduceDepth = false; bool UseCounters = false; bool UseMemmem = true; bool UseCmp = false; int UseValueProfile = false; bool Shrink = false; bool ReduceInputs = false; int ReloadIntervalSec = 1; bool ShuffleAtStartUp = true; bool PreferSmall = true; size_t MaxNumberOfRuns = -1L; int ReportSlowUnits = 10; bool OnlyASCII = false; std::string OutputCorpus; std::string ArtifactPrefix = "./"; std::string ExactArtifactPath; std::string ExitOnSrcPos; std::string ExitOnItem; std::string FocusFunction; std::string DataFlowTrace; std::string CollectDataFlow; std::string FeaturesDir; std::string StopFile; bool SaveArtifacts = true; bool PrintNEW = true; // Print a status line when new units are found; bool PrintNewCovPcs = false; int PrintNewCovFuncs = 0; bool PrintFinalStats = false; bool PrintCorpusStats = false; bool PrintCoverage = false; bool DumpCoverage = false; bool DetectLeaks = true; int PurgeAllocatorIntervalSec = 1; int TraceMalloc = 0; bool HandleAbrt = false; bool HandleBus = false; bool HandleFpe = false; bool HandleIll = false; bool HandleInt = false; bool HandleSegv = false; bool HandleTerm = false; bool HandleXfsz = false; bool HandleUsr1 = false; bool HandleUsr2 = false; }; } // namespace fuzzer #endif // LLVM_FUZZER_OPTIONS_H deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerRandom.h000066400000000000000000000023321474340456100251010ustar00rootroot00000000000000//===- FuzzerRandom.h - Internal header for the Fuzzer ----------*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // fuzzer::Random //===----------------------------------------------------------------------===// #ifndef LLVM_FUZZER_RANDOM_H #define LLVM_FUZZER_RANDOM_H #include namespace fuzzer { class Random : public std::minstd_rand { public: Random(unsigned int seed) : std::minstd_rand(seed) {} result_type operator()() { return this->std::minstd_rand::operator()(); } size_t Rand() { return this->operator()(); } size_t RandBool() { return Rand() % 2; } size_t SkewTowardsLast(size_t n) { size_t T = this->operator()(n * n); size_t Res = sqrt(T); return Res; } size_t operator()(size_t n) { return n ? Rand() % n : 0; } intptr_t operator()(intptr_t From, intptr_t To) { assert(From < To); intptr_t RangeSize = To - From + 1; return operator()(RangeSize) + From; } }; } // namespace fuzzer #endif // LLVM_FUZZER_RANDOM_H deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerSHA1.h000066400000000000000000000017221474340456100243570ustar00rootroot00000000000000//===- FuzzerSHA1.h - Internal header for the SHA1 utils --------*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // SHA1 utils. //===----------------------------------------------------------------------===// #ifndef LLVM_FUZZER_SHA1_H #define LLVM_FUZZER_SHA1_H #include "FuzzerDefs.h" #include #include namespace fuzzer { // Private copy of SHA1 implementation. static const int kSHA1NumBytes = 20; // Computes SHA1 hash of 'Len' bytes in 'Data', writes kSHA1NumBytes to 'Out'. void ComputeSHA1(const uint8_t *Data, size_t Len, uint8_t *Out); std::string Sha1ToString(const uint8_t Sha1[kSHA1NumBytes]); std::string Hash(const Unit &U); } // namespace fuzzer #endif // LLVM_FUZZER_SHA1_H deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerTracePC.h000066400000000000000000000215721474340456100251510ustar00rootroot00000000000000//===- FuzzerTracePC.h - Internal header for the Fuzzer ---------*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // fuzzer::TracePC //===----------------------------------------------------------------------===// #ifndef LLVM_FUZZER_TRACE_PC #define LLVM_FUZZER_TRACE_PC #include "FuzzerDefs.h" #include "FuzzerDictionary.h" #include "FuzzerValueBitMap.h" #include #include namespace fuzzer { // TableOfRecentCompares (TORC) remembers the most recently performed // comparisons of type T. // We record the arguments of CMP instructions in this table unconditionally // because it seems cheaper this way than to compute some expensive // conditions inside __sanitizer_cov_trace_cmp*. // After the unit has been executed we may decide to use the contents of // this table to populate a Dictionary. template struct TableOfRecentCompares { static const size_t kSize = kSizeT; struct Pair { T A, B; }; ATTRIBUTE_NO_SANITIZE_ALL void Insert(size_t Idx, const T &Arg1, const T &Arg2) { Idx = Idx % kSize; Table[Idx].A = Arg1; Table[Idx].B = Arg2; } Pair Get(size_t I) { return Table[I % kSize]; } Pair Table[kSize]; }; template struct MemMemTable { static const size_t kSize = kSizeT; Word MemMemWords[kSize]; Word EmptyWord; void Add(const uint8_t *Data, size_t Size) { if (Size <= 2) return; Size = std::min(Size, Word::GetMaxSize()); size_t Idx = SimpleFastHash(Data, Size) % kSize; MemMemWords[Idx].Set(Data, Size); } const Word &Get(size_t Idx) { for (size_t i = 0; i < kSize; i++) { const Word &W = MemMemWords[(Idx + i) % kSize]; if (W.size()) return W; } EmptyWord.Set(nullptr, 0); return EmptyWord; } }; class TracePC { public: void HandleInline8bitCountersInit(uint8_t *Start, uint8_t *Stop); void HandlePCsInit(const uintptr_t *Start, const uintptr_t *Stop); void HandleCallerCallee(uintptr_t Caller, uintptr_t Callee); template void HandleCmp(uintptr_t PC, T Arg1, T Arg2); size_t GetTotalPCCoverage(); void SetUseCounters(bool UC) { UseCounters = UC; } void SetUseValueProfileMask(uint32_t VPMask) { UseValueProfileMask = VPMask; } void SetPrintNewPCs(bool P) { DoPrintNewPCs = P; } void SetPrintNewFuncs(size_t P) { NumPrintNewFuncs = P; } void UpdateObservedPCs(); template void CollectFeatures(Callback CB) const; void ResetMaps() { ValueProfileMap.Reset(); ClearExtraCounters(); ClearInlineCounters(); } void ClearInlineCounters(); void UpdateFeatureSet(size_t CurrentElementIdx, size_t CurrentElementSize); void PrintFeatureSet(); void PrintModuleInfo(); void PrintCoverage(); template void IterateCoveredFunctions(CallBack CB); void AddValueForMemcmp(void *caller_pc, const void *s1, const void *s2, size_t n, bool StopAtZero); TableOfRecentCompares TORC4; TableOfRecentCompares TORC8; TableOfRecentCompares TORCW; MemMemTable<1024> MMT; void RecordInitialStack(); uintptr_t GetMaxStackOffset() const; template void ForEachObservedPC(CallBack CB) { for (auto PC : ObservedPCs) CB(PC); } void SetFocusFunction(const std::string &FuncName); bool ObservedFocusFunction(); struct PCTableEntry { uintptr_t PC, PCFlags; }; uintptr_t PCTableEntryIdx(const PCTableEntry *TE); const PCTableEntry *PCTableEntryByIdx(uintptr_t Idx); static uintptr_t GetNextInstructionPc(uintptr_t PC); bool PcIsFuncEntry(const PCTableEntry *TE) { return TE->PCFlags & 1; } private: bool UseCounters = false; uint32_t UseValueProfileMask = false; bool DoPrintNewPCs = false; size_t NumPrintNewFuncs = 0; // Module represents the array of 8-bit counters split into regions // such that every region, except maybe the first and the last one, is one // full page. struct Module { struct Region { uint8_t *Start, *Stop; bool Enabled; bool OneFullPage; }; Region *Regions; size_t NumRegions; uint8_t *Start() { return Regions[0].Start; } uint8_t *Stop() { return Regions[NumRegions - 1].Stop; } size_t Size() { return Stop() - Start(); } size_t Idx(uint8_t *P) { assert(P >= Start() && P < Stop()); return P - Start(); } }; Module Modules[4096]; size_t NumModules; // linker-initialized. size_t NumInline8bitCounters; template void IterateCounterRegions(Callback CB) { for (size_t m = 0; m < NumModules; m++) for (size_t r = 0; r < Modules[m].NumRegions; r++) CB(Modules[m].Regions[r]); } struct { const PCTableEntry *Start, *Stop; } ModulePCTable[4096]; size_t NumPCTables; size_t NumPCsInPCTables; Set ObservedPCs; std::unordered_map ObservedFuncs; // PC => Counter. uint8_t *FocusFunctionCounterPtr = nullptr; ValueBitMap ValueProfileMap; uintptr_t InitialStack; }; template // void Callback(size_t FirstFeature, size_t Idx, uint8_t Value); ATTRIBUTE_NO_SANITIZE_ALL size_t ForEachNonZeroByte(const uint8_t *Begin, const uint8_t *End, size_t FirstFeature, Callback Handle8bitCounter) { typedef uintptr_t LargeType; const size_t Step = sizeof(LargeType) / sizeof(uint8_t); const size_t StepMask = Step - 1; auto P = Begin; // Iterate by 1 byte until either the alignment boundary or the end. for (; reinterpret_cast(P) & StepMask && P < End; P++) if (uint8_t V = *P) Handle8bitCounter(FirstFeature, P - Begin, V); // Iterate by Step bytes at a time. for (; P < End; P += Step) if (LargeType Bundle = *reinterpret_cast(P)) for (size_t I = 0; I < Step; I++, Bundle >>= 8) if (uint8_t V = Bundle & 0xff) Handle8bitCounter(FirstFeature, P - Begin + I, V); // Iterate by 1 byte until the end. for (; P < End; P++) if (uint8_t V = *P) Handle8bitCounter(FirstFeature, P - Begin, V); return End - Begin; } // Given a non-zero Counter returns a number in the range [0,7]. template unsigned CounterToFeature(T Counter) { // Returns a feature number by placing Counters into buckets as illustrated // below. // // Counter bucket: [1] [2] [3] [4-7] [8-15] [16-31] [32-127] [128+] // Feature number: 0 1 2 3 4 5 6 7 // // This is a heuristic taken from AFL (see // http://lcamtuf.coredump.cx/afl/technical_details.txt). // // This implementation may change in the future so clients should // not rely on it. assert(Counter); unsigned Bit = 0; /**/ if (Counter >= 128) Bit = 7; else if (Counter >= 32) Bit = 6; else if (Counter >= 16) Bit = 5; else if (Counter >= 8) Bit = 4; else if (Counter >= 4) Bit = 3; else if (Counter >= 3) Bit = 2; else if (Counter >= 2) Bit = 1; return Bit; } template // void Callback(size_t Feature) ATTRIBUTE_NO_SANITIZE_ADDRESS ATTRIBUTE_NOINLINE void TracePC::CollectFeatures(Callback HandleFeature) const { auto Handle8bitCounter = [&](size_t FirstFeature, size_t Idx, uint8_t Counter) { if (UseCounters) HandleFeature(FirstFeature + Idx * 8 + CounterToFeature(Counter)); else HandleFeature(FirstFeature + Idx); }; size_t FirstFeature = 0; for (size_t i = 0; i < NumModules; i++) { for (size_t r = 0; r < Modules[i].NumRegions; r++) { if (!Modules[i].Regions[r].Enabled) continue; FirstFeature += 8 * ForEachNonZeroByte(Modules[i].Regions[r].Start, Modules[i].Regions[r].Stop, FirstFeature, Handle8bitCounter); } } FirstFeature += 8 * ForEachNonZeroByte(ExtraCountersBegin(), ExtraCountersEnd(), FirstFeature, Handle8bitCounter); if (UseValueProfileMask) { ValueProfileMap.ForEach([&](size_t Idx) { HandleFeature(FirstFeature + Idx); }); FirstFeature += ValueProfileMap.SizeInBits(); } // Step function, grows similar to 8 * Log_2(A). auto StackDepthStepFunction = [](uint32_t A) -> uint32_t { if (!A) return A; uint32_t Log2 = Log(A); if (Log2 < 3) return A; Log2 -= 3; return (Log2 + 1) * 8 + ((A >> Log2) & 7); }; assert(StackDepthStepFunction(1024) == 64); assert(StackDepthStepFunction(1024 * 4) == 80); assert(StackDepthStepFunction(1024 * 1024) == 144); if (auto MaxStackOffset = GetMaxStackOffset()) HandleFeature(FirstFeature + StackDepthStepFunction(MaxStackOffset / 8)); } extern TracePC TPC; } // namespace fuzzer #endif // LLVM_FUZZER_TRACE_PC deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerUtil.h000066400000000000000000000061311474340456100245770ustar00rootroot00000000000000//===- FuzzerUtil.h - Internal header for the Fuzzer Utils ------*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // Util functions. //===----------------------------------------------------------------------===// #ifndef LLVM_FUZZER_UTIL_H #define LLVM_FUZZER_UTIL_H #include "FuzzerBuiltins.h" #include "FuzzerBuiltinsMsvc.h" #include "FuzzerCommand.h" #include "FuzzerDefs.h" namespace fuzzer { void PrintHexArray(const Unit &U, const char *PrintAfter = ""); void PrintHexArray(const uint8_t *Data, size_t Size, const char *PrintAfter = ""); void PrintASCII(const uint8_t *Data, size_t Size, const char *PrintAfter = ""); void PrintASCII(const Unit &U, const char *PrintAfter = ""); // Changes U to contain only ASCII (isprint+isspace) characters. // Returns true iff U has been changed. bool ToASCII(uint8_t *Data, size_t Size); bool IsASCII(const Unit &U); bool IsASCII(const uint8_t *Data, size_t Size); std::string Base64(const Unit &U); void PrintPC(const char *SymbolizedFMT, const char *FallbackFMT, uintptr_t PC); std::string DescribePC(const char *SymbolizedFMT, uintptr_t PC); void PrintStackTrace(); void PrintMemoryProfile(); unsigned NumberOfCpuCores(); // Platform specific functions. void SetSignalHandler(const FuzzingOptions& Options); void SleepSeconds(int Seconds); unsigned long GetPid(); size_t GetPeakRSSMb(); int ExecuteCommand(const Command &Cmd); FILE *OpenProcessPipe(const char *Command, const char *Mode); const void *SearchMemory(const void *haystack, size_t haystacklen, const void *needle, size_t needlelen); std::string CloneArgsWithoutX(const Vector &Args, const char *X1, const char *X2); inline std::string CloneArgsWithoutX(const Vector &Args, const char *X) { return CloneArgsWithoutX(Args, X, X); } inline std::pair SplitBefore(std::string X, std::string S) { auto Pos = S.find(X); if (Pos == std::string::npos) return std::make_pair(S, ""); return std::make_pair(S.substr(0, Pos), S.substr(Pos)); } std::string DisassembleCmd(const std::string &FileName); std::string SearchRegexCmd(const std::string &Regex); size_t SimpleFastHash(const uint8_t *Data, size_t Size); inline uint32_t Log(uint32_t X) { return 32 - Clz(X) - 1; } inline size_t PageSize() { return 4096; } inline uint8_t *RoundUpByPage(uint8_t *P) { uintptr_t X = reinterpret_cast(P); size_t Mask = PageSize() - 1; X = (X + Mask) & ~Mask; return reinterpret_cast(X); } inline uint8_t *RoundDownByPage(uint8_t *P) { uintptr_t X = reinterpret_cast(P); size_t Mask = PageSize() - 1; X = X & ~Mask; return reinterpret_cast(X); } } // namespace fuzzer #endif // LLVM_FUZZER_UTIL_H deepin-deb-installer-6.5.5/tests/FuzzyTest/include/FuzzerValueBitMap.h000066400000000000000000000043401474340456100260330ustar00rootroot00000000000000//===- FuzzerValueBitMap.h - INTERNAL - Bit map -----------------*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // ValueBitMap. //===----------------------------------------------------------------------===// #ifndef LLVM_FUZZER_VALUE_BIT_MAP_H #define LLVM_FUZZER_VALUE_BIT_MAP_H #include "FuzzerDefs.h" namespace fuzzer { // A bit map containing kMapSizeInWords bits. struct ValueBitMap { static const size_t kMapSizeInBits = 1 << 16; static const size_t kMapPrimeMod = 65371; // Largest Prime < kMapSizeInBits; static const size_t kBitsInWord = (sizeof(uintptr_t) * 8); static const size_t kMapSizeInWords = kMapSizeInBits / kBitsInWord; public: // Clears all bits. void Reset() { memset(Map, 0, sizeof(Map)); } // Computes a hash function of Value and sets the corresponding bit. // Returns true if the bit was changed from 0 to 1. ATTRIBUTE_NO_SANITIZE_ALL inline bool AddValue(uintptr_t Value) { uintptr_t Idx = Value % kMapSizeInBits; uintptr_t WordIdx = Idx / kBitsInWord; uintptr_t BitIdx = Idx % kBitsInWord; uintptr_t Old = Map[WordIdx]; uintptr_t New = Old | (1ULL << BitIdx); Map[WordIdx] = New; return New != Old; } ATTRIBUTE_NO_SANITIZE_ALL inline bool AddValueModPrime(uintptr_t Value) { return AddValue(Value % kMapPrimeMod); } inline bool Get(uintptr_t Idx) { assert(Idx < kMapSizeInBits); uintptr_t WordIdx = Idx / kBitsInWord; uintptr_t BitIdx = Idx % kBitsInWord; return Map[WordIdx] & (1ULL << BitIdx); } size_t SizeInBits() const { return kMapSizeInBits; } template ATTRIBUTE_NO_SANITIZE_ALL void ForEach(Callback CB) const { for (size_t i = 0; i < kMapSizeInWords; i++) if (uintptr_t M = Map[i]) for (size_t j = 0; j < sizeof(M) * 8; j++) if (M & ((uintptr_t)1 << j)) CB(i * sizeof(M) * 8 + j); } private: ATTRIBUTE_ALIGNED(512) uintptr_t Map[kMapSizeInWords]; }; } // namespace fuzzer #endif // LLVM_FUZZER_VALUE_BIT_MAP_H deepin-deb-installer-6.5.5/tests/FuzzyTest/src/000077500000000000000000000000001474340456100214465ustar00rootroot00000000000000deepin-deb-installer-6.5.5/tests/FuzzyTest/src/main.cpp000066400000000000000000000010461474340456100230770ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include #include using namespace std; #include #include using namespace QApt; extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { Q_UNUSED(size); Q_UNUSED(data); // DebFile *debfile = new DebFile(reinterpret_cast(const_cast(data))); // debfile->isValid(); // delete debfile; return 0; } deepin-deb-installer-6.5.5/tests/cmake-lcov-test.sh000066400000000000000000000011621474340456100222220ustar00rootroot00000000000000# SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. # # SPDX-License-Identifier: CC0-1.0 utdir=build-ut rm -r $utdir rm -r ../$utdir mkdir ../$utdir cd ../$utdir cmake -DCMAKE_BUILD_TYPE=Debug .. make -j16 ./tests/deepin-deb-installer-test --gtest_output=xml:./report/report.xml workdir=$(cd ../$(dirname $0)/$utdir; pwd) mkdir -p report lcov -d $workdir -c -o ./report/coverage.info lcov --extract ./report/coverage.info '*/src/*' -o ./report/coverage.info lcov --remove ./report/coverage.info '*/tests/*' '*/process/*' -o ./report/coverage.info genhtml -o ./report ./report/coverage.info exit 0 deepin-deb-installer-6.5.5/tests/src/000077500000000000000000000000001474340456100174575ustar00rootroot00000000000000deepin-deb-installer-6.5.5/tests/src/addr_pri.h000066400000000000000000000152471474340456100214250ustar00rootroot00000000000000#ifndef __ADDR_PRI_H__ #define __ADDR_PRI_H__ #include #include //base on C++11 /********************************************************** access private function **********************************************************/ namespace std { template using enable_if_t = typename enable_if::type; template using remove_reference_t = typename remove_reference::type; } // namespace std // Unnamed namespace is used to avoid duplicate symbols if the macros are used namespace { namespace private_access_detail { // @tparam TagType, used to declare different "get" funciton overloads for // different members/statics template struct private_access { // Normal lookup cannot find in-class defined (inline) friend functions. friend PtrType get(TagType) { return PtrValue; } }; } // namespace private_access_detail } // namespace // Used macro naming conventions: // The "namespace" of this macro library is PRIVATE_ACCESS, i.e. all // macro here has this prefix. // All implementation macro, which are not meant to be used directly have the // PRIVATE_ACCESS_DETAIL prefix. // Some macros have the ABCD_IMPL form, which means they contain the // implementation details for the specific ABCD macro. #define PRIVATE_ACCESS_DETAIL_CONCATENATE_IMPL(x, y) x##y #define PRIVATE_ACCESS_DETAIL_CONCATENATE(x, y) \ PRIVATE_ACCESS_DETAIL_CONCATENATE_IMPL(x, y) // @param PtrTypeKind E.g if we have "class A", then it can be "A::*" in case of // members, or it can be "*" in case of statics. #define PRIVATE_ACCESS_DETAIL_ACCESS_PRIVATE(Tag, Class, Type, Name, \ PtrTypeKind) \ namespace { \ namespace private_access_detail { \ /* Tag type, used to declare different get funcitons for different \ * members \ */ \ struct Tag { \ }; \ /* Explicit instantiation */ \ template struct private_access; \ /* We can build the PtrType only with two aliases */ \ /* E.g. using PtrType = int(int) *; would be illformed */ \ using PRIVATE_ACCESS_DETAIL_CONCATENATE(Alias_, Tag) = Type; \ using PRIVATE_ACCESS_DETAIL_CONCATENATE(PtrType_, Tag) = \ PRIVATE_ACCESS_DETAIL_CONCATENATE(Alias_, Tag) PtrTypeKind; \ /* Declare the friend function, now it is visible in namespace scope. \ * Note, \ * we could declare it inside the Tag type too, in that case ADL would \ * find \ * the declaration. By choosing to declare it here, the Tag type remains \ * a \ * simple tag type, it has no other responsibilities. */ \ PRIVATE_ACCESS_DETAIL_CONCATENATE(PtrType_, Tag) \ get(Tag); \ } \ } #define PRIVATE_ACCESS_DETAIL_ACCESS_PRIVATE_FIELD(Tag, Class, Type, Name) \ PRIVATE_ACCESS_DETAIL_ACCESS_PRIVATE(Tag, Class, Type, Name, Class::*) \ namespace { \ namespace access_private_field { \ Type &Class##Name(Class &&t) { return t.*get(private_access_detail::Tag {}); } \ Type &Class##Name(Class &t) { return t.*get(private_access_detail::Tag {}); } \ /* The following usings are here to avoid duplicate const qualifier \ * warnings \ */ \ using PRIVATE_ACCESS_DETAIL_CONCATENATE(X, Tag) = Type; \ using PRIVATE_ACCESS_DETAIL_CONCATENATE(Y, Tag) = \ const PRIVATE_ACCESS_DETAIL_CONCATENATE(X, Tag); \ PRIVATE_ACCESS_DETAIL_CONCATENATE(Y, Tag) & Class##Name(const Class &t) \ { \ return t.*get(private_access_detail::Tag {}); \ } \ } \ } #define PRIVATE_ACCESS_DETAIL_ACCESS_PRIVATE_FUN(Tag, Class, Type, Name) \ PRIVATE_ACCESS_DETAIL_ACCESS_PRIVATE(Tag, Class, Type, Name, Class::*) \ namespace { \ namespace call_private_fun { \ /* We do perfect forwarding, but we want to restrict the overload set \ * only for objects which have the type Class. */ \ template, \ Class>::value> * = nullptr, \ typename... Args> \ auto Class##Name(Obj &&o, Args &&... args) -> decltype( \ (std::forward(o).*get(private_access_detail::Tag {}))(std::forward(args)...)) \ { \ return (std::forward(o).*get(private_access_detail::Tag {}))( \ std::forward(args)...); \ } \ } \ namespace get_private_fun { \ auto Class##Name() -> decltype( \ get(private_access_detail::Tag {})) \ { \ return (get(private_access_detail::Tag {})); \ } \ } \ } #define PRIVATE_ACCESS_DETAIL_ACCESS_PRIVATE_STATIC_FIELD(Tag, Class, Type, \ Name) \ PRIVATE_ACCESS_DETAIL_ACCESS_PRIVATE(Tag, Class, Type, Name, *) \ namespace { \ namespace access_private_static_field { \ namespace Class { \ Type &Class##Name() { return *get(private_access_detail::Tag {}); } \ } \ } \ } #define PRIVATE_ACCESS_DETAIL_ACCESS_PRIVATE_STATIC_FUN(Tag, Class, Type, \ Name) \ PRIVATE_ACCESS_DETAIL_ACCESS_PRIVATE(Tag, Class, Type, Name, *) \ namespace { \ namespace call_private_static_fun { \ namespace Class { \ template \ auto Class##Name(Args &&... args) -> decltype( \ get(private_access_detail::Tag {})(std::forward(args)...)) \ { \ return get(private_access_detail::Tag {})( \ std::forward(args)...); \ } \ } \ } \ namespace get_private_static_fun { \ namespace Class { \ auto Class##Name() -> decltype(get(private_access_detail::Tag {})) \ { \ return get(private_access_detail::Tag {}); \ } \ } \ } \ } #define PRIVATE_ACCESS_DETAIL_UNIQUE_TAG \ PRIVATE_ACCESS_DETAIL_CONCATENATE(PrivateAccessTag, __COUNTER__) #define ACCESS_PRIVATE_FIELD(Class, Type, Name) \ PRIVATE_ACCESS_DETAIL_ACCESS_PRIVATE_FIELD(PRIVATE_ACCESS_DETAIL_UNIQUE_TAG, \ Class, Type, Name) #define ACCESS_PRIVATE_FUN(Class, Type, Name) \ PRIVATE_ACCESS_DETAIL_ACCESS_PRIVATE_FUN(PRIVATE_ACCESS_DETAIL_UNIQUE_TAG, \ Class, Type, Name) #define ACCESS_PRIVATE_STATIC_FIELD(Class, Type, Name) \ Type Class::Name; \ PRIVATE_ACCESS_DETAIL_ACCESS_PRIVATE_STATIC_FIELD( \ PRIVATE_ACCESS_DETAIL_UNIQUE_TAG, Class, Type, Name) #define ACCESS_PRIVATE_STATIC_FUN(Class, Type, Name) \ PRIVATE_ACCESS_DETAIL_ACCESS_PRIVATE_STATIC_FUN( \ PRIVATE_ACCESS_DETAIL_UNIQUE_TAG, Class, Type, Name) #endif deepin-deb-installer-6.5.5/tests/src/manager/000077500000000000000000000000001474340456100210715ustar00rootroot00000000000000deepin-deb-installer-6.5.5/tests/src/manager/ut_addpackagethread.cpp000066400000000000000000000210601474340456100255400ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include "../deb-installer/manager/AddPackageThread.h" #include #include #include #include #include #include using namespace QApt; class UT_AddPackageThread : public ::testing::Test { // Test interface protected: void SetUp() { md5 << "24b0ce68d7af97ede709f3b723e686af"; m_addPkgThread = new AddPackageThread(md5); } void TearDown() { delete m_addPkgThread; } AddPackageThread *m_addPkgThread = nullptr; Stub stub; QSet md5; }; TEST_F(UT_AddPackageThread, UT_AddPackageThread_setPackage) { QStringList dependsList; dependsList << "package1" << "package"; m_addPkgThread->setPackages(dependsList, 1); ASSERT_EQ(m_addPkgThread->m_packages.size(), 2); } TEST_F(UT_AddPackageThread, UT_AddPackageThread_setAppendPackagesMd5) { md5.clear(); md5 << "test"; m_addPkgThread->setAppendPackagesMd5(md5); ASSERT_TRUE(m_addPkgThread->m_appendedPackagesMd5.contains("test")); } bool isValid() { return true; } QByteArray md5sum() { return ""; } QString packagename() { return "name"; } bool ut_dealInvalidPackage() { return true; } TEST_F(UT_AddPackageThread, UT_AddPackageThread_run) { QStringList dependsList; dependsList << "package1" << "package"; m_addPkgThread->setPackages(dependsList, 1); stub.set(ADDR(DebFile, isValid), isValid); stub.set(ADDR(DebFile, md5Sum), md5sum); stub.set(ADDR(DebFile, packageName), packagename); stub.set(ADDR(AddPackageThread, dealInvalidPackage), ut_dealInvalidPackage); m_addPkgThread->run(); ASSERT_EQ(m_addPkgThread->m_validPackageCount, 1); m_addPkgThread->terminate(); } bool apt_mkdir(const QString &dirName) { Q_UNUSED(dirName); return true; } bool apt_exits() { return true; } bool ut_mkTempDir() { return false; } TEST_F(UT_AddPackageThread, UT_AddPackageThread_SymbolicLink) { QStringList dependsList; dependsList << "package1" << "package"; m_addPkgThread->setPackages(dependsList, 1); stub.set(ADDR(DebFile, isValid), isValid); stub.set(ADDR(DebFile, md5Sum), md5sum); stub.set(ADDR(DebFile, packageName), packagename); stub.set((bool(QDir::*)(const QString &) const)ADDR(QDir, mkdir), apt_mkdir); //(int(A::*)(int))ADDR(A,foo) stub.set((bool(QDir::*)() const)ADDR(QDir, exists), apt_exits); stub.set(ADDR(AddPackageThread, mkTempDir), ut_mkTempDir); ASSERT_STREQ(m_addPkgThread->SymbolicLink("test", "test1").toLocal8Bit(), (QString("test")).toLocal8Bit()); } TEST_F(UT_AddPackageThread, UT_AddPackageThread_mkTempDir) { QStringList dependsList; dependsList << "package1" << "package"; m_addPkgThread->setPackages(dependsList, 1); stub.set(ADDR(DebFile, isValid), isValid); stub.set(ADDR(DebFile, md5Sum), md5sum); stub.set(ADDR(DebFile, packageName), packagename); stub.set((bool(QDir::*)(const QString &) const)ADDR(QDir, mkdir), apt_mkdir); //(int(A::*)(int))ADDR(A,foo) stub.set((bool(QDir::*)() const)ADDR(QDir, exists), apt_exits); ASSERT_TRUE(m_addPkgThread->mkTempDir()); } bool thread_stub_is_open() { qDebug() << "stb——is_open"; return false; } void thread_stub_open(const std::string &__s, std::ios_base::openmode __mode) { Q_UNUSED(__s); Q_UNUSED(__mode); qDebug() << "stb——open"; } void thread_stub_close() {} QString thread_stub_SymbolicLink(QString previousName, QString packageName) { Q_UNUSED(previousName); Q_UNUSED(packageName); return ""; } QString thread_stub_absoluteFilePath() { return ""; } bool thread_stub_permission_true(QFile::Permissions permissions) { Q_UNUSED(permissions); return true; } bool thread_stub_permission_false(QFile::Permissions permissions) { Q_UNUSED(permissions); return false; } bool add_stub_is_open_true() { qDebug() << "stb——is_open"; return true; } bool add_stub_is_open_false() { qDebug() << "stb——is_open"; return false; } void add_stub_open(const std::string &__s, std::ios_base::openmode __mode) { Q_UNUSED(__s); Q_UNUSED(__mode); qDebug() << "stb——open"; } void add_stub_close() {} bool add_stub_permission_true(QFile::Permissions permissions) { Q_UNUSED(permissions); return true; } bool add_stub_permission_false(QFile::Permissions permissions) { Q_UNUSED(permissions); return false; } TEST_F(UT_AddPackageThread, UT_AddPackageThread_dealInvalidPackage) { QStringList dependsList; dependsList << "package1" << "package"; m_addPkgThread->setPackages(dependsList, 1); stub.set((void(std::fstream::*)(const std::string &__s, std::ios_base::openmode __mode))ADDR(std::fstream, open), add_stub_open); stub.set((bool(std::fstream::*)())ADDR(std::fstream, is_open), add_stub_is_open_true); stub.set((bool(std::fstream::*)())ADDR(std::fstream, close), add_stub_close); EXPECT_FALSE(m_addPkgThread->dealInvalidPackage("")); } TEST_F(UT_AddPackageThread, UT_AddPackageThread_dealInvalidPackage_false) { QStringList dependsList; dependsList << "package1" << "package"; m_addPkgThread->setPackages(dependsList, 1); stub.set((void(std::fstream::*)(const std::string &__s, std::ios_base::openmode __mode))ADDR(std::fstream, open), add_stub_open); stub.set((bool(std::fstream::*)())ADDR(std::fstream, is_open), add_stub_is_open_false); stub.set((bool(std::fstream::*)())ADDR(std::fstream, close), add_stub_close); stub.set(ADDR(QFileInfo, permission), add_stub_permission_true); EXPECT_FALSE(m_addPkgThread->dealInvalidPackage("")); } TEST_F(UT_AddPackageThread, UT_AddPackageThread_dealInvalidPackage_noPermission) { QStringList dependsList; dependsList << "package1" << "package"; m_addPkgThread->setPackages(dependsList, 1); stub.set((void(std::fstream::*)(const std::string &__s, std::ios_base::openmode __mode))ADDR(std::fstream, open), add_stub_open); stub.set((bool(std::fstream::*)())ADDR(std::fstream, is_open), add_stub_is_open_false); stub.set((bool(std::fstream::*)())ADDR(std::fstream, close), add_stub_close); stub.set(ADDR(QFileInfo, permission), add_stub_permission_false); EXPECT_FALSE(m_addPkgThread->dealInvalidPackage("")); } TEST_F(UT_AddPackageThread, UT_AddPackageThread_dealPackagePath_absoluteFilePath) { QStringList dependsList; dependsList << "package1" << "package"; m_addPkgThread->setPackages(dependsList, 1); stub.set(ADDR(QFileInfo, absoluteFilePath), thread_stub_absoluteFilePath); stub.set(ADDR(AddPackageThread, SymbolicLink), thread_stub_SymbolicLink); ASSERT_STREQ("", m_addPkgThread->dealPackagePath("test").toUtf8()); } TEST_F(UT_AddPackageThread, UT_AddPackageThread_dealPackagePath_SymbolicLink) { QStringList dependsList; dependsList << "package1" << "package"; m_addPkgThread->setPackages(dependsList, 1); stub.set(ADDR(QFileInfo, absoluteFilePath), thread_stub_absoluteFilePath); stub.set(ADDR(AddPackageThread, SymbolicLink), thread_stub_SymbolicLink); ASSERT_STREQ("", m_addPkgThread->dealPackagePath(" ").toUtf8()); } TEST_F(UT_AddPackageThread, UT_AddPackageThread_dealPackagePath_SymbolicLink_1) { QStringList dependsList; dependsList << "package1" << "package"; m_addPkgThread->setPackages(dependsList, 1); stub.set(ADDR(QFileInfo, absoluteFilePath), thread_stub_absoluteFilePath); stub.set(ADDR(AddPackageThread, SymbolicLink), thread_stub_SymbolicLink); stub.set(ADDR(DebFile, packageName), packagename); ASSERT_STREQ("/ 1", m_addPkgThread->dealPackagePath("/ 1").toUtf8()); } TEST_F(UT_AddPackageThread, UT_AddPackageThread_dealPackagePath_mkTempDir) { stub.set((bool(QDir::*)(const QString &) const)ADDR(QDir, mkdir), ut_mkTempDir); //(int(A::*)(int))ADDR(A,foo) stub.set((bool(QDir::*)() const)ADDR(QDir, exists), ut_mkTempDir); EXPECT_FALSE(m_addPkgThread->mkTempDir()); } TEST_F(UT_AddPackageThread, UT_AddPackageThread_dealPackagePath_link) { stub.set((bool(QFile::*)(const QString &))ADDR(QFile, link), apt_exits); //(int(A::*)(int))ADDR(A,foo) stub.set((bool(QDir::*)() const)ADDR(QDir, exists), ut_mkTempDir); QFile file; EXPECT_TRUE(m_addPkgThread->link("", "").startsWith("/tmp/LinkTemp/")); EXPECT_TRUE(m_addPkgThread->m_tempLinkDir.startsWith("/tmp/LinkTemp/")); } deepin-deb-installer-6.5.5/tests/src/manager/ut_dealdependthread.cpp000066400000000000000000000064061474340456100255700ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include "../deb-installer/manager/DealDependThread.h" #include "../deb-installer/model/deblistmodel.h" #include #include #include class ut_dealDependThread_Test : public ::testing::Test { // Test interface protected: void SetUp() { m_dThread = new DealDependThread(); } void TearDown() { delete m_dThread; } DealDependThread *m_dThread = nullptr; Stub stub; }; TEST_F(ut_dealDependThread_Test, DealDependThread_UT_setDependsList) { QStringList dependsList; dependsList << "package1" << "package"; m_dThread->setDependsList(dependsList, 0); EXPECT_EQ(m_dThread->m_dependsList.size(), 2); EXPECT_EQ(0, m_dThread->m_index); } TEST_F(ut_dealDependThread_Test, DealDependThread_UT_setBrokenDepend) { m_dThread->setBrokenDepend("package"); ASSERT_STREQ(m_dThread->m_brokenDepend.toLocal8Bit(), "package"); } void proc_start(const QString &program, const QStringList &arguments, QIODevice::OpenModeFlag mode) { Q_UNUSED(program); Q_UNUSED(arguments); Q_UNUSED(mode); return; } TEST_F(ut_dealDependThread_Test, DealDependThread_UT_start) { QStringList dependsList; dependsList << "package1" << "package"; m_dThread->setDependsList(dependsList, 1); m_dThread->setBrokenDepend("package"); m_dThread->run(); EXPECT_EQ(m_dThread->m_brokenDepend.toLocal8Bit(), "package"); EXPECT_EQ(1, m_dThread->m_index); } TEST_F(ut_dealDependThread_Test, DealDependThread_UT_onFinished) { m_dThread->bDependsStatusErr = false; m_dThread->slotInstallFinished(-1); EXPECT_FALSE(m_dThread->bDependsStatusErr); m_dThread->bDependsStatusErr = true; m_dThread->slotInstallFinished(2); EXPECT_FALSE(m_dThread->bDependsStatusErr); } TEST_F(ut_dealDependThread_Test, DealDependThread_UT_finished) { emit m_dThread->proc->finished(0); ASSERT_FALSE(m_dThread->bDependsStatusErr); } QByteArray readAllStandardOutput_success() { return "Not authorized"; } TEST_F(ut_dealDependThread_Test, DealDependThread_UT_on_readoutput) { stub.set(ADDR(QProcess, readAllStandardOutput), readAllStandardOutput_success); m_dThread->slotReadOutput(); EXPECT_TRUE(m_dThread->bDependsStatusErr); } TEST_F(ut_dealDependThread_Test, slotReadOutput_Empty_Pass) { m_dThread->slotReadOutput(); EXPECT_FALSE(m_dThread->bDependsStatusErr); EXPECT_FALSE(m_dThread->bVerifyStatusErr); } QByteArray stub_readAllStandardOutput_Hierarchical_Failed() { return "deepin hook exit code: 65280 "; } TEST_F(ut_dealDependThread_Test, slotReadOutput_HierarchicalVerify_Failed) { stub.set(ADDR(QProcess, readAllStandardOutput), stub_readAllStandardOutput_Hierarchical_Failed); m_dThread->slotReadOutput(); EXPECT_TRUE(m_dThread->bVerifyStatusErr); } QByteArray stub_readAllStandardOutput_Hierarchical_Pass() { return "deepin hook exit code: 65277 "; } TEST_F(ut_dealDependThread_Test, slotReadOutput_HierarchicalVerify_Pass) { stub.set(ADDR(QProcess, readAllStandardOutput), stub_readAllStandardOutput_Hierarchical_Pass); m_dThread->slotReadOutput(); EXPECT_FALSE(m_dThread->bVerifyStatusErr); } deepin-deb-installer-6.5.5/tests/src/manager/ut_packagedependsstatus.cpp000066400000000000000000000045371474340456100265200ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include "../deb-installer/manager/PackageDependsStatus.h" #include "../deb-installer/model/deblistmodel.h" #include class ut_packageDependsStatus_Test : public ::testing::Test { // Test interface protected: void SetUp() { big = new PackageDependsStatus(Pkg::DependsStatus::DependsBreak, "packageName"); } void TearDown() { delete m_pds; delete big; } PackageDependsStatus *m_pds = nullptr; PackageDependsStatus *big = nullptr; }; TEST_F(ut_packageDependsStatus_Test, PackageDependsStatus_UT_ok) { ASSERT_EQ(m_pds->ok().status, Pkg::DependsStatus::DependsOk); } TEST_F(ut_packageDependsStatus_Test, PackageDependsStatus_UT_available) { ASSERT_EQ(m_pds->available("package").status, Pkg::DependsStatus::DependsAvailable); } TEST_F(ut_packageDependsStatus_Test, PackageDependsStatus_UT_isBreak) { m_pds = new PackageDependsStatus(Pkg::DependsStatus::DependsBreak, "packageName"); ASSERT_TRUE(m_pds->isBreak()); } TEST_F(ut_packageDependsStatus_Test, PackageDependsStatus_UT_isAvailable) { m_pds = new PackageDependsStatus(Pkg::DependsStatus::DependsAvailable, "packageName"); ASSERT_TRUE(m_pds->isAvailable()); } TEST_F(ut_packageDependsStatus_Test, PackageDependsStatus_UT_isAuthCancel) { m_pds = new PackageDependsStatus(Pkg::DependsStatus::DependsAuthCancel, "packageName"); ASSERT_TRUE(m_pds->isAuthCancel()); } TEST_F(ut_packageDependsStatus_Test, PackageDependsStatus_UT_min) { m_pds = new PackageDependsStatus(Pkg::DependsStatus::DependsAvailable, "packageName"); ASSERT_TRUE(m_pds->min(*big).isAvailable()); } TEST_F(ut_packageDependsStatus_Test, PackageDependsStatus_UT_minEq) { m_pds = new PackageDependsStatus(Pkg::DependsStatus::DependsAvailable, "packageName"); ASSERT_TRUE(m_pds->minEq(*big).isAvailable()); } TEST_F(ut_packageDependsStatus_Test, PackageDependsStatus_UT_max) { m_pds = new PackageDependsStatus(Pkg::DependsStatus::DependsAvailable, "packageName"); ASSERT_TRUE(m_pds->max(*big).isBreak()); } TEST_F(ut_packageDependsStatus_Test, PackageDependsStatus_UT_maxEq) { m_pds = new PackageDependsStatus(Pkg::DependsStatus::DependsAvailable, "packageName"); ASSERT_TRUE(m_pds->maxEq(*big).isBreak()); } deepin-deb-installer-6.5.5/tests/src/manager/ut_packagemanager.cpp000066400000000000000000002456551474340456100252540ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include "../deb-installer/manager/PackageDependsStatus.h" #include "../deb-installer/manager/packagesmanager.h" #include "../deb-installer/manager/DealDependThread.h" #include "../deb-installer/manager/AddPackageThread.h" #include "../deb-installer/model/deblistmodel.h" #include "../deb-installer/model/packageanalyzer.h" #include "../deb-installer/utils/utils.h" #include #include #include #include #include #include #include #include #include typedef Result ConflictResult; using namespace QApt; QString deb_arch_all() { return "all"; } QString deb_arch_i386() { return "i386"; } QStringList backend_architectures() { return {"i386", "amd64"}; } bool backend_init() { return true; } bool deb_isValid() { return true; } QByteArray deb_md5Sum() { return "0010"; } int deb_installSize() { return 0; } QString deb_packageName() { return ""; } QString deb_longDescription() { return "longDescription"; } QString deb_version() { return "version"; } QString ut_controlField() { return ""; } QList deb_conflicts() { DependencyInfo info("packageName", "0.0", RelationType::Equals, Depends); QList dependencyItem; dependencyItem << info; QList conflicts; conflicts << dependencyItem; return conflicts; } QList deb_conflicts_null() { return {}; } QList deb_replaces_null() { return {}; } Package *stub_packageWithArch(QString, QString, QString) { return nullptr; } Package *stub_avaialbe_packageWithArch(QString, QString, QString) { Backend *bac = nullptr; pkgCache::PkgIterator packageIter; // Package *package = new Package(bac,packageIter); QScopedPointer package(new Package(bac, packageIter)); return package.get(); } PackageList backend_availablePackages() { return {}; } QLatin1String package_name() { return QLatin1String(""); } QString deb_package_name() { return QString("deepin-elf-verify"); } QString deb_package_name1() { return QString("deepin-wine"); } QString package_version() { return "version"; } QString package_architecture() { return "i386"; } QList conflicts() { qDebug() << "conflicts"; DependencyInfo info("packageName", "0.0", RelationType::Equals, Conflicts); QList dependencyItem; dependencyItem << info; QList conflicts; conflicts << dependencyItem; return conflicts; } QList package_conflicts() { DependencyInfo info("packageName", "0.0", RelationType::Equals, Conflicts); QList dependencyItem; dependencyItem << info; QList conflicts; conflicts << dependencyItem; return conflicts; } bool stub_is_open_true() { qDebug() << "stb——is_open"; return true; } bool stub_is_open_false() { qDebug() << "stb——is_open"; return false; } void stub_open(const std::string &__s, std::ios_base::openmode __mode) { Q_UNUSED(__s); Q_UNUSED(__mode); qDebug() << "stb——open"; } void stub_close() {} PackageDependsStatus stub_getPackageDependsStatus(const int) { return PackageDependsStatus::ok(); } QString stub_SymbolicLink(QString previousName, QString packageName) { Q_UNUSED(previousName); Q_UNUSED(packageName); return ""; } QString stub_absoluteFilePath() { return ""; } bool stub_permission_true(QFile::Permissions permissions) { Q_UNUSED(permissions); return true; } bool stub_permission_false(QFile::Permissions permissions) { Q_UNUSED(permissions); return false; } void stub_addNode(const QString &packagePath, const QByteArray &md5, const QString &packageName, const QList &depends) { Q_UNUSED(packagePath) Q_UNUSED(md5) Q_UNUSED(packageName) Q_UNUSED(depends) return; } QString stub_dealPackagePath(QString packagePath) { Q_UNUSED(packagePath); return ""; } bool stub_dealInvalidPackage(QString) { return true; } std::pair, QList> stub_getBestInstallQueue() { return {{"package1"}, {"0010"}}; } QList deb_depends_2() { return {}; } bool deb_isValid_false() { return true; } Package *package_package(const QString &name) { Q_UNUSED(name); return nullptr; } bool package_isInstalled() { return true; } QString package_installedVersion() { return ""; } QString package_installedVersion1() { return "deb"; } int package_compareVersion() { return 0; } int package_compareVersion1() { return -1; } int package_compareVersion2() { return 1; } Package *backend_package(const QString &) { return nullptr; } class UT_packagesManager : public ::testing::Test { // Test interface protected: void SetUp() override; void TearDown() override; PackagesManager *m_packageManager = nullptr; Stub stub; }; void UT_packagesManager::SetUp() { stub.set(ADDR(DebFile, architecture), deb_arch_all); stub.set(ADDR(Backend, architectures), backend_architectures); stub.set(ADDR(Backend, init), backend_init); stub.set(ADDR(DebFile, isValid), deb_isValid); stub.set(ADDR(DebFile, md5Sum), deb_md5Sum); stub.set(ADDR(DebFile, installedSize), deb_installSize); stub.set(ADDR(DebFile, packageName), deb_packageName); stub.set(ADDR(DebFile, longDescription), deb_longDescription); stub.set(ADDR(DebFile, version), deb_version); stub.set(ADDR(DebFile, depends), deb_depends_2); stub.set(ADDR(DependGraph, addNode), stub_addNode); m_packageManager = new PackagesManager(); usleep(10 * 1000); } void UT_packagesManager::TearDown() { stub.set(ADDR(PackagesManager, rmTempDir), stub_is_open_false); delete m_packageManager; } Package *packagesManager_package(const QString &) { qDebug() << "not null"; Backend *bac = nullptr; pkgCache::PkgIterator packageIter; QScopedPointer package(new Package(bac, packageIter)); return package.get(); } TEST_F(UT_packagesManager, PackageManager_UT_isBackendReady) { ASSERT_TRUE(m_packageManager->isBackendReady()); } TEST_F(UT_packagesManager, PackageManager_UT_checkInvalid) { QStringList packages; packages << "package1" << "package2"; m_packageManager->checkInvalid(packages); EXPECT_EQ(1, m_packageManager->m_validPackageCount); } int stub_swappedPackageIndex() { return 1; } TEST_F(UT_packagesManager, PackageManager_UT_dealPackagePath_SymbolicLink_01) { stub.set(ADDR(PackagesManager, mkTempDir), stub_is_open_false); EXPECT_EQ("0", m_packageManager->SymbolicLink("0", "1")); } TEST_F(UT_packagesManager, PackageManager_UT_dealPackagePath_AbsolutePath) { stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(QFileInfo, absoluteFilePath), stub_absoluteFilePath); stub.set(ADDR(PackagesManager, SymbolicLink), stub_SymbolicLink); ASSERT_STREQ("", m_packageManager->dealPackagePath(" ").toUtf8()); } TEST_F(UT_packagesManager, PackageManager_UT_addPackage) { stub.set(ADDR(DependGraph, getBestInstallQueue), stub_getBestInstallQueue); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); m_packageManager->addPackage(1, "/", "deb"); EXPECT_EQ(1, m_packageManager->m_preparedPackages.size()); EXPECT_EQ(1, m_packageManager->m_packageMd5.size()); } TEST_F(UT_packagesManager, PackageManager_UT_dealPackagePath_space) { stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(QFileInfo, absoluteFilePath), stub_absoluteFilePath); stub.set(ADDR(PackagesManager, SymbolicLink), stub_SymbolicLink); ASSERT_STREQ("", m_packageManager->dealPackagePath("/ ").toUtf8()); } TEST_F(UT_packagesManager, PackageManager_UT_dealInvalidPackage_true) { stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set((void(std::fstream::*)(const std::string &__s, std::ios_base::openmode __mode))ADDR(std::fstream, open), stub_open); stub.set((bool(std::fstream::*)())ADDR(std::fstream, is_open), stub_is_open_true); stub.set((bool(std::fstream::*)())ADDR(std::fstream, close), stub_close); EXPECT_FALSE(m_packageManager->dealInvalidPackage("/1")); } void stub_qthread_start(QThread::Priority = QThread::InheritPriority) { return; } TEST_F(UT_packagesManager, PackageManager_UT_dealInvalidPackage_false) { stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set((void(std::fstream::*)(const std::string &__s, std::ios_base::openmode __mode))ADDR(std::fstream, open), stub_open); stub.set((bool(std::fstream::*)())ADDR(std::fstream, is_open), stub_is_open_false); stub.set((bool(std::fstream::*)())ADDR(std::fstream, close), stub_close); EXPECT_FALSE(m_packageManager->dealInvalidPackage("/1")); } TEST_F(UT_packagesManager, PackageManager_UT_dealInvalidPackage_NoPermission) { stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set((void(std::fstream::*)(const std::string &__s, std::ios_base::openmode __mode))ADDR(std::fstream, open), stub_open); stub.set((bool(std::fstream::*)())ADDR(std::fstream, is_open), stub_is_open_false); stub.set((bool(std::fstream::*)())ADDR(std::fstream, close), stub_close); stub.set(ADDR(QFileInfo, permission), stub_permission_false); EXPECT_FALSE(m_packageManager->dealInvalidPackage("/1")); } TEST_F(UT_packagesManager, PackageManager_UT_appendPackage) { stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(DependGraph, getBestInstallQueue), stub_getBestInstallQueue); m_packageManager->appendPackage({"/1"}); ASSERT_FALSE(m_packageManager->m_packageMd5.isEmpty()); stub.set(ADDR(QThread, start), stub_qthread_start); m_packageManager->appendPackage(QStringList() << "/1" << "/2"); ASSERT_EQ(1, m_packageManager->m_pAddPackageThread->m_packages.size()); } TEST_F(UT_packagesManager, PackageManager_UT_appendPackage_invalid) { stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(DependGraph, getBestInstallQueue), stub_getBestInstallQueue); m_packageManager->appendPackage({"/1"}); ASSERT_FALSE(m_packageManager->m_packageMd5.isEmpty()); stub.set(ADDR(QThread, start), stub_qthread_start); m_packageManager->appendPackage(QStringList() << "/1" << "/2"); ASSERT_EQ(1, m_packageManager->m_pAddPackageThread->m_packages.size()); } TEST_F(UT_packagesManager, PackageManager_UT_appendPackage_openFailed) { stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(DependGraph, getBestInstallQueue), stub_getBestInstallQueue); m_packageManager->appendPackage({"/1"}); ASSERT_FALSE(m_packageManager->m_packageMd5.isEmpty()); stub.set(ADDR(QThread, start), stub_qthread_start); m_packageManager->appendPackage(QStringList() << "/1" << "/2"); ASSERT_EQ(1, m_packageManager->m_pAddPackageThread->m_packages.size()); } void stub_appendNoThread(QStringList, int) {} void stub_start(const QString &program, const QStringList &arguments, QIODevice::OpenModeFlag mode) { Q_UNUSED(program); Q_UNUSED(arguments); Q_UNUSED(mode); return; } TEST_F(UT_packagesManager, PackageManager_UT_appendPackage_multi) { stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(PackagesManager, appendNoThread), stub_appendNoThread); stub.set(ADDR(QThread, start), stub_qthread_start); m_packageManager->appendPackage({"/1", "/2"}); ASSERT_TRUE(m_packageManager->m_packageMd5.isEmpty()); } TEST_F(UT_packagesManager, PackageManager_UT_refreshPage) { stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); m_packageManager->m_preparedPackages.clear(); m_packageManager->m_preparedPackages.append("/1"); m_packageManager->refreshPage(2); m_packageManager->m_preparedPackages.append("/2"); m_packageManager->refreshPage(2); m_packageManager->m_preparedPackages.append("/3"); m_packageManager->refreshPage(2); EXPECT_EQ(3, m_packageManager->m_preparedPackages.size()); } TEST_F(UT_packagesManager, PackageManager_UT_isArchError) { m_packageManager->m_preparedPackages.insert(0, "/1"); ASSERT_FALSE(m_packageManager->isArchError(0)); } TEST_F(UT_packagesManager, PackageManager_UT_isArchError_1) { stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); m_packageManager->appendPackage({"/1"}); m_packageManager->m_preparedPackages.append("0"); ASSERT_FALSE(m_packageManager->isArchError(0)); } TEST_F(UT_packagesManager, PackageManager_UT_packageConflictStat) { stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(DebFile, conflicts), deb_conflicts_null); stub.set(ADDR(DebFile, replaces), deb_replaces_null); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(DependGraph, getBestInstallQueue), stub_getBestInstallQueue); m_packageManager->appendPackage({"/1"}); ConflictResult cr = m_packageManager->packageConflictStat(0); ASSERT_TRUE(cr.is_ok()); ASSERT_EQ(1, m_packageManager->m_preparedPackages.size()); } TEST_F(UT_packagesManager, PackageManager_UT_packageConflictStat_invalid) { stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(DebFile, conflicts), deb_conflicts_null); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); m_packageManager->appendPackage({"/1"}); ConflictResult cr = m_packageManager->packageConflictStat(-1); ASSERT_FALSE(cr.is_ok()); } TEST_F(UT_packagesManager, PackageManager_UT_isConflictSatisfy) { stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), package_package); stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); m_packageManager->appendPackage({"/1"}); ConflictResult cr = m_packageManager->isConflictSatisfy("i386", conflicts()); ASSERT_TRUE(cr.is_ok()); } TEST_F(UT_packagesManager, PackageManager_UT_isConflictSatisfy_01) { stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), package_package); stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); m_packageManager->appendPackage({"/1"}); ConflictResult cr = m_packageManager->isConflictSatisfy("i386", conflicts()); ASSERT_TRUE(cr.is_ok()); } MultiArchType ut_packagesManager_multiArchType() { return MultiArchSame; } int ut_packagesManager_compareVersion(const QString &, const QString &) { return 0; } bool ut_packagesManager_dependencyVersionMatch(const int, const RelationType) { return false; } bool ut_packagesManager_dependencyVersionMatch1(const int, const RelationType) { return true; } TEST_F(UT_packagesManager, PackageManager_UT_isConflictSatisfy_02) { stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(PackagesManager, dependencyVersionMatch), stub_dealInvalidPackage); stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), packagesManager_package); stub.set(ADDR(Package, isInstalled), package_isInstalled); stub.set(ADDR(Package, name), package_name); stub.set(ADDR(Package, version), package_version); stub.set(ADDR(Package, architecture), package_architecture); stub.set(ADDR(Package, conflicts), package_conflicts); stub.set(ADDR(Package, multiArchType), ut_packagesManager_multiArchType); stub.set(ADDR(Package, multiArchTypeString), package_version); stub.set(ADDR(Package, installedVersion), package_version); stub.set(ADDR(Package, compareVersion), ut_packagesManager_compareVersion); stub.set(ADDR(Package, availableVersion), package_version); m_packageManager->appendPackage({"/1"}); ConflictResult cr = m_packageManager->isConflictSatisfy("i386", conflicts()); ASSERT_FALSE(cr.is_ok()); } bool stub_isArchMatches(QString, const QString &, const int) { return false; } TEST_F(UT_packagesManager, PackageManager_UT_isConflictSatisfy_03) { stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), packagesManager_package); stub.set(ADDR(Package, isInstalled), package_isInstalled); stub.set(ADDR(Package, name), package_name); stub.set(ADDR(Package, version), package_version); stub.set(ADDR(Package, architecture), package_architecture); stub.set(ADDR(Package, conflicts), package_conflicts); stub.set(ADDR(Package, multiArchType), ut_packagesManager_multiArchType); stub.set(ADDR(Package, multiArchTypeString), package_version); stub.set(ADDR(Package, installedVersion), package_version); stub.set(ADDR(Package, compareVersion), ut_packagesManager_compareVersion); stub.set(ADDR(Package, availableVersion), package_version); stub.set(ADDR(PackagesManager, isArchMatches), stub_isArchMatches); usleep(50 * 1000); ConflictResult cr = m_packageManager->isConflictSatisfy("i386", conflicts()); ASSERT_FALSE(cr.is_ok()); } TEST_F(UT_packagesManager, PackageManager_UT_isInstalledConflict) { stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(Package, isInstalled), package_isInstalled); stub.set(ADDR(Package, conflicts), deb_conflicts); stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); ConflictResult cr = m_packageManager->isInstalledConflict("package name", "packageversion", "i386"); ASSERT_TRUE(cr.is_ok()); } PackageList stub_availablePackages_nullptr() { PackageList paclist; Package *package = nullptr; paclist.append(package); return paclist; } QString deb_isInstalledConflict_packageName() { return ""; } QString deb_package_version() { return "1"; } TEST_F(UT_packagesManager, PackageManager_UT_isInstalledConflict_001) { qDebug() << "PackageManager_UT_isInstalledConflict_001"; usleep(10 * 1000); stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), package_package); stub.set(ADDR(Backend, availablePackages), stub_availablePackages_nullptr); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(Package, isInstalled), package_isInstalled); stub.set(ADDR(Package, conflicts), deb_conflicts); stub.set(ADDR(Package, name), package_name); stub.set(ADDR(DependencyInfo, packageName), deb_isInstalledConflict_packageName); stub.set(ADDR(DependencyInfo, packageVersion), deb_package_version); stub.set(ADDR(DependencyInfo, multiArchAnnotation), deb_package_version); stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); qDebug() << "PackageManager_UT_isInstalledConflict_001 打桩完成"; ConflictResult cr = m_packageManager->isInstalledConflict("package name", "packageversion", "i386"); ASSERT_TRUE(cr.is_ok()); } TEST_F(UT_packagesManager, PackageManager_UT_isInstalledConflict_002) { stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), package_package); stub.set(ADDR(Backend, availablePackages), stub_availablePackages_nullptr); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(Package, isInstalled), package_isInstalled); stub.set(ADDR(Package, conflicts), deb_conflicts); stub.set(ADDR(Package, name), package_name); stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(DependencyInfo, packageName), deb_isInstalledConflict_packageName); stub.set(ADDR(DependencyInfo, packageVersion), deb_package_version); stub.set(ADDR(DependencyInfo, multiArchAnnotation), package_installedVersion); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); ConflictResult cr = m_packageManager->isInstalledConflict("package name", "packageversion", "i386"); ASSERT_TRUE(cr.is_ok()); } TEST_F(UT_packagesManager, PackageManager_UT_isConflictSatisfy_0001) { stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); Package *package = nullptr; stub.set(ADDR(Package, name), package_name); stub.set(ADDR(Package, version), package_version); stub.set(ADDR(Package, architecture), package_architecture); stub.set(ADDR(Package, conflicts), package_conflicts); ConflictResult cr = m_packageManager->isConflictSatisfy("i386", package); ASSERT_FALSE(cr.is_ok()); delete package; } TEST_F(UT_packagesManager, PackageManager_UT_isConflictSatisfy_0002) { stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); Package *pkg = nullptr; stub.set(ADDR(Package, name), package_name); stub.set(ADDR(Package, version), package_version); stub.set(ADDR(Package, architecture), package_architecture); stub.set(ADDR(Package, conflicts), package_conflicts); ConflictResult cr = m_packageManager->isConflictSatisfy("i386", pkg); ASSERT_FALSE(cr.is_ok()); } const ConflictResult stub_isInstalledConflict(const QString &, const QString &, const QString &) { return ConflictResult::err("1"); } const ConflictResult stub_isInstalledConflict_ok(const QString &, const QString &, const QString &) { return ConflictResult::ok("1"); } TEST_F(UT_packagesManager, PackageManager_UT_isConflictSatisfy_0003) { stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); Backend *bac = nullptr; pkgCache::PkgIterator packageIter; Package package(bac, packageIter); stub.set(ADDR(Package, name), package_name); stub.set(ADDR(Package, version), package_version); stub.set(ADDR(Package, architecture), package_architecture); stub.set(ADDR(Package, conflicts), package_conflicts); stub.set(ADDR(PackagesManager, isInstalledConflict), stub_isInstalledConflict); ConflictResult cr = m_packageManager->isConflictSatisfy("i386", &package); ASSERT_FALSE(cr.is_ok()); } const ConflictResult stub_isConflictSatisfy(const QString &, const QList &, const QList &, QApt::Package *) { return ConflictResult::ok("1"); } const ConflictResult stub_isConflictSatisfy_error(const QString &, const QList &, const QList &, QApt::Package *) { return ConflictResult::err("1"); } TEST_F(UT_packagesManager, PackageManager_UT_isConflictSatisfy_0004) { stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); Backend *bac = nullptr; pkgCache::PkgIterator packageIter; Package package(bac, packageIter); stub.set(ADDR(Package, name), package_name); stub.set(ADDR(Package, version), package_version); stub.set(ADDR(Package, architecture), package_architecture); stub.set(ADDR(Package, conflicts), package_conflicts); stub.set(ADDR(Package, replaces), deb_replaces_null); stub.set(ADDR(PackagesManager, isInstalledConflict), stub_isInstalledConflict_ok); stub.set((const ConflictResult (PackagesManager::*)( const QString &, const QList &, const QList &, QApt::Package *)) ADDR(PackagesManager, isConflictSatisfy), stub_isConflictSatisfy); ConflictResult cr = m_packageManager->isConflictSatisfy("i386", &package); ASSERT_TRUE(cr.is_ok()); } TEST_F(UT_packagesManager, PackageManager_UT_packageInstallStatus) { stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(DependGraph, getBestInstallQueue), stub_getBestInstallQueue); m_packageManager->appendPackage({"/1"}); ASSERT_EQ(m_packageManager->packageInstallStatus(0), 0); } TEST_F(UT_packagesManager, PackageManager_UT_packageInstallStatus_01) { stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(DependGraph, getBestInstallQueue), stub_getBestInstallQueue); m_packageManager->m_packageMd5.insert(0, "deb"); m_packageManager->appendPackage({"/1"}); ASSERT_EQ(m_packageManager->packageInstallStatus(0), 0); ASSERT_EQ(Pkg::PackageInstallStatus::NotInstalled, m_packageManager->m_packageInstallStatus[m_packageManager->m_packageMd5.value(0)]); } TEST_F(UT_packagesManager, PackageManager_UT_packageInstallStatus_02) { stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(Package, installedVersion), deb_package_version); stub.set(ADDR(Package, compareVersion), package_compareVersion1); stub.set(ADDR(DependGraph, getBestInstallQueue), stub_getBestInstallQueue); m_packageManager->m_packageMd5.insert(0, "deb"); m_packageManager->appendPackage({"/1"}); ASSERT_EQ(m_packageManager->packageInstallStatus(0), 3); ASSERT_EQ(Pkg::PackageInstallStatus::InstalledLaterVersion, m_packageManager->m_packageInstallStatus[m_packageManager->m_packageMd5.value(0)]); } TEST_F(UT_packagesManager, PackageManager_UT_packageInstallStatus_03) { stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(Package, installedVersion), deb_package_version); stub.set(ADDR(Package, compareVersion), package_compareVersion2); stub.set(ADDR(DependGraph, getBestInstallQueue), stub_getBestInstallQueue); m_packageManager->m_packageMd5.insert(0, "deb"); m_packageManager->appendPackage({"/1"}); ASSERT_EQ(m_packageManager->packageInstallStatus(0), 2); ASSERT_EQ(Pkg::PackageInstallStatus::InstalledEarlierVersion, m_packageManager->m_packageInstallStatus[m_packageManager->m_packageMd5.value(0)]); } TEST_F(UT_packagesManager, PackageManager_UT_packageInstallStatus_04) { stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(Package, installedVersion), deb_package_version); stub.set(ADDR(Package, compareVersion), package_compareVersion2); m_packageManager->m_preparedPackages.append("0"); m_packageManager->m_packageMd5.insert(0, "0"); m_packageManager->m_packageInstallStatus.insert("0", 1); ASSERT_EQ(m_packageManager->packageInstallStatus(0), 1); ASSERT_EQ(Pkg::PackageInstallStatus::InstalledSameVersion, m_packageManager->m_packageInstallStatus[m_packageManager->m_packageMd5.value(0)]); } bool ut_isArchError_false(int index) { Q_UNUSED(index); return false; } bool stub_isInstalled() { return true; } QList deb_depends() { DependencyInfo info("packageName", "0.0", RelationType::Equals, Depends); QList dependencyItem; dependencyItem << info; QList conflicts; conflicts << dependencyItem; return conflicts; } TEST_F(UT_packagesManager, PackageManager_UT_DealDependResult) { Stub stub; stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), package_package); stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(PackagesManager, isArchError), ut_isArchError_false); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(DebFile, replaces), deb_replaces_null); stub.set((QString(DebFile::*)(const QString &name) const)ADDR(DebFile, controlField), ut_controlField); stub.set(ADDR(DependGraph, getBestInstallQueue), stub_getBestInstallQueue); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); usleep(10 * 1000); m_packageManager->appendPackage({"/"}); qInfo() << package_conflicts().size(); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(Package, isInstalled), stub_isInstalled); m_packageManager->m_dependInstallMark.append("deb"); m_packageManager->m_packageMd5.append("deb"); m_packageManager->m_packageMd5DependsStatus.insert("deb", PackageDependsStatus::ok()); m_packageManager->m_dependInstallMark.append("test success"); m_packageManager->slotDealDependResult(4, 0, ""); EXPECT_EQ(Pkg::DependsStatus::DependsOk, m_packageManager->m_packageMd5DependsStatus[m_packageManager->m_dependInstallMark[0]].status); EXPECT_TRUE(m_packageManager->m_errorIndex.isEmpty()); m_packageManager->slotDealDependResult(2, 0, ""); EXPECT_EQ(Pkg::DependsStatus::DependsAuthCancel, m_packageManager->m_packageMd5DependsStatus[m_packageManager->m_dependInstallMark[0]].status); m_packageManager->slotDealDependResult(5, 0, ""); EXPECT_EQ(Pkg::DependsStatus::DependsBreak, m_packageManager->m_packageMd5DependsStatus[m_packageManager->m_dependInstallMark[0]].status); GlobalStatus::setWinePreDependsInstalling(true); m_packageManager->slotDealDependResult(5, 0, ""); EXPECT_EQ(Pkg::DependsStatus::DependsBreak, m_packageManager->m_packageMd5DependsStatus[m_packageManager->m_dependInstallMark[0]].status); m_packageManager->m_preparedPackages.append({"1", "2"}); m_packageManager->slotDealDependResult(5, 0, ""); EXPECT_FALSE(GlobalStatus::winePreDependsInstalling()); EXPECT_EQ(Pkg::DependsStatus::DependsBreak, m_packageManager->m_packageMd5DependsStatus[m_packageManager->m_dependInstallMark[0]].status); } bool ut_isArchError(int index) { Q_UNUSED(index); return true; } TEST_F(UT_packagesManager, PackageManager_UT_getAllDepends) { stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(Package, depends), deb_depends); m_packageManager->getAllDepends("/", "/"); EXPECT_EQ(1, m_packageManager->getAllDepends("/", "/").size()); } TEST_F(UT_packagesManager, PackageManager_UT_getPackageDependsStatus) { stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), package_package); stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, isArchError), ut_isArchError_false); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set((QString(DebFile::*)(const QString &name) const)ADDR(DebFile, controlField), ut_controlField); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); usleep(10 * 1000); m_packageManager->appendPackage({"/"}); qInfo() << package_conflicts().size(); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(Package, isInstalled), stub_isInstalled); m_packageManager->m_dependInstallMark.append("deb"); m_packageManager->m_packageMd5.append("deb"); PackageDependsStatus pd = m_packageManager->getPackageDependsStatus(0); ASSERT_TRUE(pd.isBreak()); } TEST_F(UT_packagesManager, PackageManager_UT_getPackageDependsStatus_01) { stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), package_package); stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, isArchError), ut_isArchError); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set((QString(DebFile::*)(const QString &name) const)ADDR(DebFile, controlField), ut_controlField); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(DependGraph, getBestInstallQueue), stub_getBestInstallQueue); usleep(10 * 1000); m_packageManager->appendPackage({"/"}); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(Package, isInstalled), stub_isInstalled); m_packageManager->m_dependInstallMark.append("deb"); m_packageManager->m_packageMd5.append("deb1"); PackageDependsStatus pd = m_packageManager->getPackageDependsStatus(0); ASSERT_EQ(pd.status, 5); } bool stub_isBlackApplication_false(QString) { return false; } bool stub_isBlackApplication_true(QString) { return true; } TEST_F(UT_packagesManager, PackageManager_UT_getPackageDependsStatus_02) { stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), package_package); stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, isArchError), ut_isArchError); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set((QString(DebFile::*)(const QString &name) const)ADDR(DebFile, controlField), ut_controlField); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(PackagesManager, isBlackApplication), stub_isBlackApplication_false); usleep(10 * 1000); m_packageManager->appendPackage({"/"}); m_packageManager->m_packageMd5DependsStatus.clear(); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(Package, isInstalled), stub_isInstalled); PackageDependsStatus pd = m_packageManager->getPackageDependsStatus(0); ASSERT_EQ(pd.status, 2); } TEST_F(UT_packagesManager, PackageManager_UT_getPackageDependsStatus_03) { stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), package_package); stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, isArchError), ut_isArchError); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set((QString(DebFile::*)(const QString &name) const)ADDR(DebFile, controlField), ut_controlField); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(PackagesManager, isBlackApplication), stub_isBlackApplication_true); stub.set(ADDR(DependGraph, getBestInstallQueue), stub_getBestInstallQueue); usleep(10 * 1000); m_packageManager->appendPackage({"/"}); m_packageManager->m_packageMd5DependsStatus.clear(); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(Package, isInstalled), stub_isInstalled); PackageDependsStatus pd = m_packageManager->getPackageDependsStatus(0); ASSERT_EQ(pd.status, 6); } TEST_F(UT_packagesManager, PackageManager_UT_getPackageDependsStatus_04) { stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(Package, isInstalled), stub_isInstalled); stub.set((QString(DebFile::*)(const QString &name) const)ADDR(DebFile, controlField), ut_controlField); PackageDependsStatus pd = m_packageManager->getPackageDependsStatus(-1); ASSERT_EQ(pd.status, 2); } TEST_F(UT_packagesManager, PackageManager_UT_getPackageDependsStatus_05) { stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), package_package); stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, isArchError), ut_isArchError_false); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set((QString(DebFile::*)(const QString &name) const)ADDR(DebFile, controlField), ut_controlField); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(PackagesManager, isBlackApplication), stub_isBlackApplication_false); usleep(10 * 1000); m_packageManager->appendPackage({"/"}); m_packageManager->m_packageMd5DependsStatus.clear(); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(Package, isInstalled), stub_isInstalled); stub.set((const ConflictResult (PackagesManager::*)( const QString &, const QList &, const QList &, QApt::Package *)) ADDR(PackagesManager, isConflictSatisfy), stub_isConflictSatisfy_error); PackageDependsStatus pd = m_packageManager->getPackageDependsStatus(0); ASSERT_EQ(pd.status, 2); } const PackageDependsStatus stub_checkDependsPackageStatus(QSet &, const QString &, const QList &) { return PackageDependsStatus::_break("1"); } const PackageDependsStatus stub_checkDependsPackageStatus_ok(QSet &, const QString &, const QList &) { return PackageDependsStatus::ok(); } const PackageDependsStatus stub_checkDependsPackageStatus_DI(QSet &, const QString &, const DependencyInfo &, const QString &) { return PackageDependsStatus::_break("1"); } TEST_F(UT_packagesManager, PackageManager_UT_getPackageDependsStatus_06) { stub.set(ADDR(DependencyInfo, packageName), deb_package_name); stub.set(ADDR(DependencyInfo, packageVersion), deb_package_name); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(Package, name), package_name); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(Package, isInstalled), stub_isInstalled); stub.set(ADDR(Package, architecture), package_architecture); stub.set(ADDR(Package, version), package_architecture); stub.set(ADDR(Package, multiArchType), ut_packagesManager_multiArchType); stub.set(ADDR(Package, conflicts), package_conflicts); stub.set(ADDR(Package, depends), deb_conflicts_null); stub.set((QString(DebFile::*)(const QString &name) const)ADDR(DebFile, controlField), ut_controlField); stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), package_package); stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(PackagesManager, isArchError), ut_isArchError_false); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(PackagesManager, isBlackApplication), stub_isBlackApplication_false); stub.set((const ConflictResult (PackagesManager::*)( const QString &, const QList &, const QList &, QApt::Package *)) ADDR(PackagesManager, isConflictSatisfy), stub_isConflictSatisfy); stub.set((const PackageDependsStatus (PackagesManager::*)( QSet &, const QString &, const QList &))ADDR(PackagesManager, checkDependsPackageStatus), stub_checkDependsPackageStatus); stub.set((const PackageDependsStatus (PackagesManager::*)( QSet &, const QString &, const DependencyInfo &, const QString &))ADDR(PackagesManager, checkDependsPackageStatus), stub_checkDependsPackageStatus_DI); m_packageManager->appendPackage({"/"}); m_packageManager->m_packageMd5DependsStatus.clear(); PackageDependsStatus pd = m_packageManager->getPackageDependsStatus(0); ASSERT_EQ(pd.status, 2); } void stub_run() { return; } bool stub_isRunning() { return false; } void stub_setDependsList(QStringList, int) {} void stub_setBrokenDepend(QString) {} TEST_F(UT_packagesManager, PackageManager_UT_getPackageDependsStatus_07) { stub.set(ADDR(DependencyInfo, packageName), deb_package_name1); stub.set(ADDR(DependencyInfo, packageVersion), deb_package_name); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(Package, name), package_name); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(Package, isInstalled), stub_isInstalled); stub.set(ADDR(Package, architecture), package_architecture); stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), package_package); stub.set(ADDR(Package, multiArchType), ut_packagesManager_multiArchType); stub.set(ADDR(Package, conflicts), package_conflicts); stub.set(ADDR(DebFile, replaces), deb_replaces_null); stub.set((QString(DebFile::*)(const QString &name) const)ADDR(DebFile, controlField), ut_controlField); stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(PackagesManager, isArchError), ut_isArchError_false); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(PackagesManager, isBlackApplication), stub_isBlackApplication_false); stub.set((const ConflictResult (PackagesManager::*)( const QString &, const QList &, const QList &, QApt::Package *)) ADDR(PackagesManager, isConflictSatisfy), stub_isConflictSatisfy); stub.set((const PackageDependsStatus (PackagesManager::*)( QSet &, const QString &, const DependencyInfo &, const QString &))ADDR(PackagesManager, checkDependsPackageStatus), stub_checkDependsPackageStatus_DI); stub.set(ADDR(QThread, isRunning), stub_isRunning); typedef void (*fptr)(DealDependThread *); fptr run = (fptr)(&DealDependThread::run); stub.set(run, stub_run); stub.set(ADDR(DealDependThread, setDependsList), stub_setDependsList); stub.set(ADDR(DealDependThread, setBrokenDepend), stub_setBrokenDepend); m_packageManager->m_preparedPackages.insert(0, "0"); m_packageManager->m_packageMd5.insert(0, "0"); m_packageManager->m_dependInstallMark.insert(0, "1"); m_packageManager->m_packageMd5DependsStatus.clear(); PackageDependsStatus pd = m_packageManager->getPackageDependsStatus(0); ASSERT_EQ(pd.status, 2); } TEST_F(UT_packagesManager, PackageManager_UT_packageInstalledVersion) { stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), package_package); stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(DependGraph, getBestInstallQueue), stub_getBestInstallQueue); usleep(10 * 1000); m_packageManager->appendPackage({"/"}); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); m_packageManager->m_packageInstallStatus[m_packageManager->m_packageMd5[0]] = 0; QString version = m_packageManager->packageInstalledVersion(0); ASSERT_TRUE(version.isEmpty()); } TEST_F(UT_packagesManager, PackageManager_UT_packageAvailableDepends) { stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(DependGraph, getBestInstallQueue), stub_getBestInstallQueue); usleep(10 * 1000); m_packageManager->appendPackage({"/"}); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); QStringList ads = m_packageManager->packageAvailableDepends(0); ASSERT_TRUE(ads.isEmpty()); } TEST_F(UT_packagesManager, PackageManager_UT_specialPackage) { stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); m_packageManager->appendPackage({"/"}); usleep(10 * 1000); QMap sp = m_packageManager->specialPackage(); ASSERT_FALSE(sp.empty()); } QStringList package_requiredByList() { QStringList rbl; rbl << "package1" << "package2"; return rbl; } QStringList package_recommandList() { QStringList rbl; rbl << "package3"; return rbl; } QStringList package_suggestList() { QStringList rbl; rbl << "package4"; return rbl; } TEST_F(UT_packagesManager, PackageManager_UT_packageReverseDependsList) { stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); usleep(10 * 1000); m_packageManager->appendPackage({"/"}); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(Package, requiredByList), package_requiredByList); // stub.set(ADDR(Package, compareVersion),package_compareVersion); QStringList ads = m_packageManager->packageReverseDependsList("", ""); ASSERT_TRUE(ads.isEmpty()); } bool stub_isNegativeReverseDepend(const QString &packageName, const QApt::Package *reverseDepend) { return false; } TEST_F(UT_packagesManager, PackageManager_UT_packageReverseDependsList_1) { stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(DebFile, replaces), deb_replaces_null); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(Package, requiredByList), package_requiredByList); stub.set(ADDR(Package, recommendsList), package_requiredByList); stub.set(ADDR(Package, suggestsList), package_requiredByList); stub.set(ADDR(Package, isInstalled), stub_isInstalled); stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(PackagesManager, isNegativeReverseDepend), stub_isNegativeReverseDepend); usleep(10 * 1000); m_packageManager->appendPackage({"/"}); // stub.set(ADDR(Package, compareVersion),package_compareVersion); QStringList ads = m_packageManager->packageReverseDependsList("", ""); ASSERT_FALSE(ads.isEmpty()); } TEST_F(UT_packagesManager, PackageManager_UT_packageReverseDependsList_2) { stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(Package, requiredByList), package_requiredByList); stub.set(ADDR(Package, recommendsList), package_requiredByList); stub.set(ADDR(Package, suggestsList), package_requiredByList); stub.set(ADDR(Package, isInstalled), stub_isRunning); stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); usleep(10 * 1000); m_packageManager->appendPackage({"/"}); // stub.set(ADDR(Package, compareVersion),package_compareVersion); QStringList ads = m_packageManager->packageReverseDependsList("package1", ""); ASSERT_TRUE(ads.isEmpty()); } TEST_F(UT_packagesManager, PackageManager_UT_packageReverseDependsList_3) { stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(Package, requiredByList), package_requiredByList); stub.set(ADDR(Package, recommendsList), package_requiredByList); stub.set(ADDR(Package, suggestsList), package_requiredByList); stub.set(ADDR(Package, isInstalled), stub_isInstalled); stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); usleep(10 * 1000); m_packageManager->appendPackage({"/"}); // stub.set(ADDR(Package, compareVersion),package_compareVersion); QStringList ads = m_packageManager->packageReverseDependsList("package2", ""); ASSERT_TRUE(ads.isEmpty()); } TEST_F(UT_packagesManager, PackageManager_UT_packageReverseDependsList_4) { stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(Package, requiredByList), package_requiredByList); stub.set(ADDR(Package, recommendsList), package_requiredByList); stub.set(ADDR(Package, suggestsList), package_suggestList); stub.set(ADDR(Package, isInstalled), stub_isInstalled); stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); usleep(10 * 1000); m_packageManager->appendPackage({"/"}); // stub.set(ADDR(Package, compareVersion),package_compareVersion); QStringList ads = m_packageManager->packageReverseDependsList("package4", ""); ASSERT_TRUE(ads.isEmpty()); } TEST_F(UT_packagesManager, PackageManager_UT_packageReverseDependsList_5) { stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(Package, requiredByList), package_requiredByList); stub.set(ADDR(Package, recommendsList), package_recommandList); stub.set(ADDR(Package, suggestsList), package_suggestList); stub.set(ADDR(Package, isInstalled), stub_isInstalled); stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(PackagesManager, isNegativeReverseDepend), stub_isNegativeReverseDepend); usleep(10 * 1000); m_packageManager->appendPackage({"/"}); // stub.set(ADDR(Package, compareVersion),package_compareVersion); QStringList ads = m_packageManager->packageReverseDependsList("package6", ""); ASSERT_FALSE(ads.isEmpty()); } bool backend_reloadCache() { return true; } TEST_F(UT_packagesManager, PackageManager_UT_reset) { stub.set(ADDR(Backend, reloadCache), backend_reloadCache); stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); usleep(10 * 1000); m_packageManager->appendPackage({"/"}); m_packageManager->reset(); ASSERT_TRUE(m_packageManager->m_appendedPackagesMd5.isEmpty()); } TEST_F(UT_packagesManager, PackageManager_UT_resetPackageDependsStatus) { stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(DependGraph, getBestInstallQueue), stub_getBestInstallQueue); usleep(10 * 1000); m_packageManager->appendPackage({"/"}); m_packageManager->resetPackageDependsStatus(0); ASSERT_TRUE(m_packageManager->m_packageMd5DependsStatus.isEmpty()); } bool stub_reloadCache() { return false; } TEST_F(UT_packagesManager, PackageManager_UT_resetPackageDependsStatus_01) { stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(Backend, reloadCache), stub_reloadCache); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(DependGraph, getBestInstallQueue), stub_getBestInstallQueue); usleep(10 * 1000); m_packageManager->appendPackage({"/"}); m_packageManager->m_packageMd5[0] = "1"; PackageDependsStatus st = PackageDependsStatus::ok(); m_packageManager->m_packageMd5DependsStatus.insert("1", st); m_packageManager->resetPackageDependsStatus(0); ASSERT_TRUE(m_packageManager->m_packageMd5DependsStatus.isEmpty()); } TEST_F(UT_packagesManager, PackageManager_UT_removePackage) { stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(DependGraph, getBestInstallQueue), stub_getBestInstallQueue); usleep(10 * 1000); m_packageManager->appendPackage({"/"}); m_packageManager->removePackage(0); ASSERT_TRUE(m_packageManager->m_appendedPackagesMd5.isEmpty()); } TEST_F(UT_packagesManager, PackageManager_UT_removePackage_01) { m_packageManager->m_preparedPackages.append("1"); m_packageManager->removePackage(-1); ASSERT_EQ(m_packageManager->m_preparedPackages.size(), 1); } TEST_F(UT_packagesManager, PackageManager_UT_removePackage_02) { m_packageManager->m_preparedPackages.append("1"); m_packageManager->m_packageMd5.insert(0, "1"); m_packageManager->m_dependInstallMark.append("1"); m_packageManager->removePackage(0); ASSERT_EQ(m_packageManager->m_preparedPackages.size(), 0); } TEST_F(UT_packagesManager, PackageManager_UT_removePackage_removeMulti) { stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); usleep(10 * 1000); m_packageManager->m_preparedPackages.append("/0"); m_packageManager->m_preparedPackages.append("/1"); m_packageManager->m_preparedPackages.append("/2"); m_packageManager->m_packageMd5.append("0"); m_packageManager->m_packageMd5.append("0"); m_packageManager->m_packageMd5.append("0"); m_packageManager->removePackage(0); ASSERT_EQ(m_packageManager->m_preparedPackages.size(), 2); } TEST_F(UT_packagesManager, PackageManager_UT_removePackage_removeTwo) { stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); usleep(10 * 1000); m_packageManager->m_preparedPackages.append("/1"); m_packageManager->m_preparedPackages.append("/2"); m_packageManager->m_packageMd5.append("0"); m_packageManager->m_packageMd5.append("0"); m_packageManager->removePackage(0); ASSERT_EQ(m_packageManager->m_preparedPackages.size(), 1); } TEST_F(UT_packagesManager, PackageManager_UT_rmTempDir) { usleep(10 * 1000); m_packageManager->rmTempDir(); ASSERT_STREQ(m_packageManager->SymbolicLink("test", "test").toLocal8Bit(), (QString("/tmp/LinkTemp/") + QString("test")).toLocal8Bit()); } TEST_F(UT_packagesManager, PackageManager_UT_020) { usleep(10 * 1000); ASSERT_TRUE(m_packageManager->rmTempDir()); } bool pm_mkdir(const QString &dirName) { Q_UNUSED(dirName); return true; } bool pm_exits() { return true; } TEST_F(UT_packagesManager, PackageManager_UT_mkTempDir) { stub.set((bool(QDir::*)(const QString &) const)ADDR(QDir, mkdir), pm_mkdir); //(int(A::*)(int))ADDR(A,foo) stub.set((bool(QDir::*)() const)ADDR(QDir, exists), pm_exits); ASSERT_TRUE(m_packageManager->mkTempDir()); } TEST_F(UT_packagesManager, PackageManager_UT_link) { m_packageManager->link("test", "test1").toLocal8Bit(), (QString("test")).toLocal8Bit(); EXPECT_TRUE(m_packageManager->m_tempLinkDir.startsWith("/tmp/LinkTemp/")); } TEST_F(UT_packagesManager, PackageManager_UT_packageWithArch) { // stub.set(ADDR(DebFile, architecture), deb_arch_i386); stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), package_package); stub.set(ADDR(DebFile, depends), deb_depends); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); usleep(10 * 1000); m_packageManager->appendPackage({"/"}); m_packageManager->appendPackage(QStringList() << "test"); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(Package, requiredByList), package_requiredByList); // stub.set(ADDR(Package, compareVersion),package_compareVersion); ASSERT_FALSE(m_packageManager->packageWithArch("package", "arch")); m_packageManager->deleteLater(); } TEST_F(UT_packagesManager, PackageManager_UT_appendPackageFinished) { usleep(10 * 1000); QSignalSpy spy(m_packageManager, SIGNAL(signalAppendFinished(QList))); m_packageManager->slotAppendPackageFinished(); EXPECT_EQ(1, spy.count()); } TEST_F(UT_packagesManager, PackageManager_UT_isArchMatches_01) { ASSERT_TRUE(m_packageManager->isArchMatches("all", "", 0)); } TEST_F(UT_packagesManager, PackageManager_UT_isArchMatches_02) { ASSERT_FALSE(m_packageManager->isArchMatches("amd64", "", 0)); } TEST_F(UT_packagesManager, PackageManager_UT_isArchMatches_03) { ASSERT_FALSE(m_packageManager->isArchMatches(":amd64", "", 0)); } TEST_F(UT_packagesManager, PackageManager_UT_resolvMultiArchAnnotation) { ASSERT_STREQ(m_packageManager->resolvMultiArchAnnotation("all", "", InvalidMultiArchType).toLocal8Bit(), ""); } TEST_F(UT_packagesManager, PackageManager_UT_resolvMultiArchAnnotation_any) { ASSERT_STREQ(m_packageManager->resolvMultiArchAnnotation("any", "", InvalidMultiArchType).toLocal8Bit(), ""); } TEST_F(UT_packagesManager, PackageManager_UT_resolvMultiArchAnnotation_MultiArchForeign) { ASSERT_STREQ(m_packageManager->resolvMultiArchAnnotation("any", "", MultiArchForeign).toLocal8Bit(), ""); } TEST_F(UT_packagesManager, PackageManager_UT_resolvMultiArchAnnotation_01) { ASSERT_STREQ(m_packageManager->resolvMultiArchAnnotation("testAnnotation", "", InvalidMultiArchType).toLocal8Bit(), ":testAnnotation"); } TEST_F(UT_packagesManager, PackageManager_UT_resolvMultiArchAnnotation_02) { ASSERT_STREQ(m_packageManager->resolvMultiArchAnnotation(":i386", "", InvalidMultiArchType).toLocal8Bit(), ":i386"); } TEST_F(UT_packagesManager, PackageManager_UT_resolvMultiArchAnnotation_03) { ASSERT_STREQ(m_packageManager->resolvMultiArchAnnotation(":i386", "", MultiArchForeign).toLocal8Bit(), ""); } TEST_F(UT_packagesManager, PackageManager_UT_dependencyVersionMatch) { ASSERT_TRUE(m_packageManager->dependencyVersionMatch(0, Equals)); } TEST_F(UT_packagesManager, PackageManager_UT_dependencyVersionMatch_01) { ASSERT_TRUE(m_packageManager->dependencyVersionMatch(0, LessOrEqual)); } TEST_F(UT_packagesManager, PackageManager_UT_dependencyVersionMatch_02) { ASSERT_TRUE(m_packageManager->dependencyVersionMatch(-1, LessThan)); } TEST_F(UT_packagesManager, PackageManager_UT_dependencyVersionMatch_03) { ASSERT_TRUE(m_packageManager->dependencyVersionMatch(1, GreaterThan)); } TEST_F(UT_packagesManager, PackageManager_UT_dependencyVersionMatch_04) { ASSERT_TRUE(m_packageManager->dependencyVersionMatch(1, NotEqual)); } TEST_F(UT_packagesManager, PackageManager_UT_dependencyVersionMatch_05) { ASSERT_TRUE(m_packageManager->dependencyVersionMatch(1, GreaterOrEqual)); } TEST_F(UT_packagesManager, PackageManager_UT_dependencyVersionMatch_06) { ASSERT_TRUE(m_packageManager->dependencyVersionMatch(1, NoOperand)); } TEST_F(UT_packagesManager, PackageManager_UT_package) { stub.set(ADDR(PackagesManager, getPackageDependsStatus), stub_getPackageDependsStatus); stub.set(ADDR(PackagesManager, dealPackagePath), stub_dealPackagePath); stub.set(ADDR(PackagesManager, dealInvalidPackage), stub_dealInvalidPackage); stub.set(ADDR(DependGraph, getBestInstallQueue), stub_getBestInstallQueue); usleep(10 * 1000); m_packageManager->appendPackage({"/1"}); ASSERT_STREQ(m_packageManager->package(0).toLocal8Bit(), "package1"); } TEST_F(UT_packagesManager, PackageManager_UT_checkDependsPackageStatus) { stub.set(ADDR(PackagesManager, packageWithArch), stub_packageWithArch); stub.set(ADDR(DebFile, conflicts), deb_conflicts); usleep(10 * 1000); QSet set; m_packageManager->checkDependsPackageStatus(set, "", conflicts()); EXPECT_EQ(PackageDependsStatus::_break("").status, m_packageManager->checkDependsPackageStatus(set, "", conflicts().at(0).at(0)).status); } QString ut_availableversion() { return "1.0"; } QString ut_version() { return "1.1"; } TEST_F(UT_packagesManager, PackageManager_UT_checkDependsPackageStatus01) { usleep(10 * 1000); QSet set; stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(Package, installedVersion), package_installedVersion1); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(Package, name), package_name); stub.set(ADDR(Package, architecture), package_architecture); stub.set(ADDR(Package, conflicts), package_conflicts); stub.set(ADDR(Package, availableVersion), ut_availableversion); stub.set(ADDR(Package, depends), deb_conflicts_null); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(Package, version), ut_version); m_packageManager->checkDependsPackageStatus(set, "", conflicts().at(0).at(0)); EXPECT_EQ(PackageDependsStatus::ok().status, m_packageManager->checkDependsPackageStatus(set, "", conflicts().at(0).at(0)).status); stub.set(ADDR(PackagesManager, dependencyVersionMatch), ut_packagesManager_dependencyVersionMatch); m_packageManager->checkDependsPackageStatus(set, "", conflicts().at(0).at(0)); EXPECT_EQ(PackageDependsStatus::_break("").status, m_packageManager->checkDependsPackageStatus(set, "", conflicts().at(0).at(0)).status); } TEST_F(UT_packagesManager, PackageManager_UT_checkDependsPackageStatus02) { usleep(10 * 1000); QSet set; Stub stub; stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), package_compareVersion); stub.set(ADDR(Package, name), package_name); stub.set(ADDR(Package, version), ut_version); stub.set(ADDR(Package, architecture), package_architecture); stub.set(ADDR(Package, conflicts), package_conflicts); stub.set(ADDR(Package, availableVersion), ut_availableversion); stub.set(ADDR(Package, depends), deb_conflicts_null); stub.set(ADDR(DebFile, conflicts), deb_conflicts); stub.set(ADDR(PackagesManager, dependencyVersionMatch), ut_packagesManager_dependencyVersionMatch); EXPECT_EQ(PackageDependsStatus::_break("").status, m_packageManager->checkDependsPackageStatus(set, "", conflicts().at(0).at(0)).status); Stub stub1; set.insert(""); stub1.set(ADDR(PackagesManager, dependencyVersionMatch), ut_packagesManager_dependencyVersionMatch1); m_packageManager->checkDependsPackageStatus(set, "", conflicts().at(0).at(0)); EXPECT_EQ("", m_packageManager->m_dinfo.packageName); EXPECT_EQ(PackageDependsStatus::ok().status, m_packageManager->checkDependsPackageStatus(set, "", conflicts().at(0).at(0)).status); } TEST_F(UT_packagesManager, PackageManager_UT_getPackageMd5) { m_packageManager->m_packageMd5.append({"1", "2"}); EXPECT_EQ("1", m_packageManager->getPackageMd5(0)); } QByteArray ut_readAll() { return " "; } TEST_F(UT_packagesManager, PackageManager_UT_getBlackApplications) { stub.set((bool(QFile::*)() const)ADDR(QFile, exists), pm_exits); stub.set(ADDR(QIODevice, readAll), ut_readAll); m_packageManager->getBlackApplications(); EXPECT_TRUE(m_packageManager->m_blackApplicationList.first().isEmpty()); } TEST_F(UT_packagesManager, PackageManager_UT_isBlackApplication) { m_packageManager->m_blackApplicationList.append(QString("black")); ASSERT_TRUE(m_packageManager->isBlackApplication(QString("black"))); ASSERT_TRUE(m_packageManager->m_blackApplicationList.contains(QString("black"))); } TEST_F(UT_packagesManager, PackageManager_UT_packageCandidateChoose) { QSet choosed_set; QString debArch = ""; DependencyItem cadicateList; DependencyInfo info("depends", "0.0.1", QApt::RelationType::GreaterThan, QApt::Depends); cadicateList.append(info); stub.set(ADDR(DependencyInfo, multiArchAnnotation), package_installedVersion); stub.set(ADDR(DependencyInfo, packageName), deb_package_name); stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(Package, version), package_version); stub.set(ADDR(Package, installedVersion), package_installedVersion); stub.set(ADDR(Package, compareVersion), ut_packagesManager_compareVersion); stub.set(ADDR(Package, name), package_name); stub.set(ADDR(Package, architecture), package_architecture); stub.set(ADDR(Package, conflicts), package_conflicts); stub.set(ADDR(Package, replaces), deb_replaces_null); stub.set(ADDR(Package, depends), deb_conflicts_null); stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), packagesManager_package); stub.set((const ConflictResult (PackagesManager::*)( const QString &, const QList &, const QList &, QApt::Package *)) ADDR(PackagesManager, isConflictSatisfy), stub_isConflictSatisfy); stub.set((const PackageDependsStatus (PackagesManager::*)( QSet &, const QString &, const QList &))ADDR(PackagesManager, checkDependsPackageStatus), stub_checkDependsPackageStatus); m_packageManager->packageCandidateChoose(choosed_set, debArch, cadicateList, QString()); EXPECT_EQ("", debArch); EXPECT_EQ(1, choosed_set.size()); EXPECT_EQ(1, cadicateList.size()); } TEST_F(UT_packagesManager, PackageManager_UT_packageCandidateChoose_1) { QSet choosed_set; QString debArch = ""; DependencyItem cadicateList; DependencyInfo info("depends", "0.0.1", QApt::RelationType::GreaterThan, QApt::Depends); cadicateList.append(info); stub.set(ADDR(DependencyInfo, multiArchAnnotation), package_installedVersion); stub.set(ADDR(DependencyInfo, packageName), deb_package_name); stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(Package, version), package_version); stub.set(ADDR(Package, installedVersion), package_version); stub.set(ADDR(Package, compareVersion), package_compareVersion1); stub.set(ADDR(Package, name), package_name); stub.set(ADDR(Package, architecture), package_architecture); stub.set(ADDR(Package, conflicts), package_conflicts); stub.set(ADDR(Package, replaces), deb_replaces_null); stub.set(ADDR(Package, depends), deb_conflicts_null); stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), packagesManager_package); stub.set((const ConflictResult (PackagesManager::*)( const QString &, const QList &, const QList &, QApt::Package *)) ADDR(PackagesManager, isConflictSatisfy), stub_isConflictSatisfy); stub.set((const PackageDependsStatus (PackagesManager::*)( QSet &, const QString &, const QList &))ADDR(PackagesManager, checkDependsPackageStatus), stub_checkDependsPackageStatus); m_packageManager->packageCandidateChoose(choosed_set, debArch, cadicateList, QString()); EXPECT_EQ("", debArch); EXPECT_EQ(1, choosed_set.size()); EXPECT_EQ(1, cadicateList.size()); } TEST_F(UT_packagesManager, PackageManager_UT_packageCandidateChoose_2) { QSet choosed_set; QString debArch = ""; DependencyItem cadicateList; DependencyInfo info("depends", "0.0.1", QApt::RelationType::GreaterThan, QApt::Depends); cadicateList.append(info); stub.set(ADDR(DependencyInfo, multiArchAnnotation), package_installedVersion); stub.set(ADDR(DependencyInfo, packageName), deb_package_name); stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(Package, version), package_version); stub.set(ADDR(Package, installedVersion), package_version); stub.set(ADDR(Package, compareVersion), package_compareVersion1); stub.set(ADDR(Package, name), package_name); stub.set(ADDR(Package, architecture), package_architecture); stub.set(ADDR(Package, conflicts), package_conflicts); stub.set(ADDR(Package, replaces), deb_replaces_null); stub.set(ADDR(Package, depends), deb_conflicts_null); stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), package_package); stub.set((const ConflictResult (PackagesManager::*)( const QString &, const QList &, const QList &, QApt::Package *)) ADDR(PackagesManager, isConflictSatisfy), stub_isConflictSatisfy); stub.set((const PackageDependsStatus (PackagesManager::*)( QSet &, const QString &, const QList &))ADDR(PackagesManager, checkDependsPackageStatus), stub_checkDependsPackageStatus_ok); m_packageManager->packageCandidateChoose(choosed_set, debArch, cadicateList, QString()); EXPECT_EQ("", debArch); EXPECT_EQ(2, choosed_set.size()); EXPECT_EQ(1, cadicateList.size()); } TEST_F(UT_packagesManager, PackageManager_UT_packageCandidateChoose_3) { QSet choosed_set; QString debArch = ""; DependencyItem cadicateList; DependencyInfo info("depends", "0.0.1", QApt::RelationType::GreaterThan, QApt::Depends); cadicateList.append(info); stub.set(ADDR(DependencyInfo, multiArchAnnotation), package_installedVersion); stub.set(ADDR(DependencyInfo, packageName), deb_package_name); stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(Package, version), package_version); stub.set(ADDR(Package, installedVersion), package_version); stub.set(ADDR(Package, compareVersion), package_compareVersion2); stub.set(ADDR(Package, name), package_name); stub.set(ADDR(Package, architecture), package_architecture); stub.set(ADDR(Package, conflicts), package_conflicts); stub.set(ADDR(Package, replaces), deb_replaces_null); stub.set(ADDR(Package, depends), deb_conflicts_null); stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), package_package); stub.set((const ConflictResult (PackagesManager::*)( const QString &, const QList &, const QList &, QApt::Package *)) ADDR(PackagesManager, isConflictSatisfy), stub_isConflictSatisfy_error); stub.set((const PackageDependsStatus (PackagesManager::*)( QSet &, const QString &, const QList &))ADDR(PackagesManager, checkDependsPackageStatus), stub_checkDependsPackageStatus_ok); m_packageManager->packageCandidateChoose(choosed_set, debArch, cadicateList, QString()); EXPECT_EQ("", debArch); EXPECT_EQ(0, choosed_set.size()); EXPECT_EQ(1, cadicateList.size()); } TEST_F(UT_packagesManager, PackageManager_UT_packageCandidateChoose_4) { QSet choosed_set; QString debArch = ""; DependencyItem cadicateList; DependencyInfo info("depends", "0.0.1", QApt::RelationType::GreaterThan, QApt::Depends); cadicateList.append(info); stub.set(ADDR(DependencyInfo, multiArchAnnotation), package_installedVersion); stub.set(ADDR(DependencyInfo, packageName), deb_package_name); stub.set(ADDR(PackagesManager, packageWithArch), stub_avaialbe_packageWithArch); stub.set(ADDR(Package, version), package_version); stub.set(ADDR(Package, installedVersion), package_version); stub.set(ADDR(Package, compareVersion), package_compareVersion1); stub.set(ADDR(Package, name), package_name); stub.set(ADDR(Package, architecture), package_architecture); stub.set(ADDR(Package, conflicts), package_conflicts); stub.set(ADDR(Package, replaces), deb_replaces_null); stub.set(ADDR(Package, depends), deb_conflicts_null); stub.set((QApt::Package * (QApt::Backend::*)(const QString &name) const) ADDR(Backend, package), package_package); stub.set((const ConflictResult (PackagesManager::*)( const QString &, const QList &, const QList &, QApt::Package *)) ADDR(PackagesManager, isConflictSatisfy), stub_isConflictSatisfy_error); stub.set((const PackageDependsStatus (PackagesManager::*)( QSet &, const QString &, const QList &))ADDR(PackagesManager, checkDependsPackageStatus), stub_checkDependsPackageStatus_ok); m_packageManager->packageCandidateChoose(choosed_set, debArch, cadicateList, QString()); EXPECT_EQ("", debArch); EXPECT_EQ(1, choosed_set.size()); EXPECT_EQ(1, cadicateList.size()); } deepin-deb-installer-6.5.5/tests/src/manager/ut_packagemanager.h000066400000000000000000000004751474340456100247060ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef UT_PACKAGEMANAGER_TEST_H #define UT_PACKAGEMANAGER_TEST_H #include class ut_packagemanager_test { public: ut_packagemanager_test(); }; #endif // UT_PACKAGEMANAGER_TEST_H deepin-deb-installer-6.5.5/tests/src/model/000077500000000000000000000000001474340456100205575ustar00rootroot00000000000000deepin-deb-installer-6.5.5/tests/src/model/ut_deblistmodel.cpp000066400000000000000000001166011474340456100244470ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include "../deb-installer/model/deblistmodel.h" #include "../deb-installer/manager/packagesmanager.h" #include "../deb-installer/manager/PackageDependsStatus.h" #include "../deb-installer/utils/utils.h" #include "../deb-installer/utils/result.h" #include "../deb-installer/utils/hierarchicalverify.h" #include "../deb-installer/view/widgets/error_notify_dialog_helper.h" #include #include #include #include #include using namespace QApt; class ut_DebListModel_test : public ::testing::Test { // Test interface protected: void SetUp() override; void TearDown() override; void stubFunction(); DebListModel *m_debListModel = nullptr; Stub stub; Stub stubHierachicalInvalid; }; bool model_backend_init() { return true; } void model_checkSystemVersion() {} bool model_BackendReady() { return true; } bool stub_model_is_open() { qDebug() << "stb——is_open"; return true; } void stub_model_open(const std::string &__s, std::ios_base::openmode __mode) { Q_UNUSED(__s); Q_UNUSED(__mode); qDebug() << "stb——open"; } QString model_deb_arch_i386() { return "i386"; } bool model_deb_isValid() { return true; } QByteArray model_deb_md5Sum() { return nullptr; } int model_deb_installSize() { return 0; } QString model_deb_packageName() { return ""; } QString model_deb_longDescription() { return "longDescription"; } QString model_deb_shortDescription() { return "shortDescription"; } QString model_deb_version() { return "version"; } QList model_deb_conflicts() { DependencyInfo info("packageName", "0.0", RelationType::Equals, Depends); QList dependencyItem; dependencyItem << info; QList conflicts; conflicts << dependencyItem; return conflicts; } Package *model_packageWithArch(QString, QString, QString) { return nullptr; } QStringList model_backend_architectures() { return {"i386", "amd64"}; } PackageDependsStatus model_getPackageDependsStatus(const int index) { Q_UNUSED(index); PackageDependsStatus status; return status; } bool model_stud_recheckPackagePath_true(QString) { return true; } bool model_stud_recheckPackagePath_false(QString) { return false; } bool model_stub_dealInvalidPackage(QString) { return true; } Package *model_package_package(const QString &name) { return nullptr; } QList model_deb_depends() { DependencyInfo info("packageName", "0.0", RelationType::Equals, Depends); QList dependencyItem; dependencyItem << info; QList conflicts; conflicts << dependencyItem; return conflicts; } void model_initRowStatus() { return; } void model_installNextDeb() { return; } void model_transaction_run() { return; } QString model_packageManager_package(const int index) { return ""; } const QStringList model_packageManager_packageReverseDependsList(const QString &, const QString &) { return {}; } void model_backend_markPackageForRemoval(const QString &) { return; } void model_refreshOperatingPackageStatus(const Pkg::PackageOperationStatus) { return; } QApt::Transaction *model_backend_commitChanges() { return nullptr; } QByteArray model_package_getPackageMd5(const int) { return ""; } bool model_package_isArchError(const int) { return true; } bool model_package_isArchError1(const int) { return false; } QString stub_readLink_empty() { return ""; } QString stub_readLink() { return "1"; } bool stub_exists_true() { return true; } bool stub_exists_false() { return false; } static Dtk::Core::DSysInfo::UosEdition model_uosEditionType_UosEnterprise() { return Dtk::Core::DSysInfo::UosEnterprise; } static Dtk::Core::DSysInfo::UosEdition model_uosEditionType_UosProfessional() { return Dtk::Core::DSysInfo::UosProfessional; } static Dtk::Core::DSysInfo::UosEdition model_uosEditionType_UosHome() { return Dtk::Core::DSysInfo::UosHome; } static Dtk::Core::DSysInfo::UosEdition model_uosEditionType_UosCommunity() { return Dtk::Core::DSysInfo::UosCommunity; } static Dtk::Core::DSysInfo::UosEdition model_uosEditionType_default() { return Dtk::Core::DSysInfo::UosEditionUnknown; } bool stud_toBool() { return true; } Utils::VerifyResultCode model_Digital_Verify(QString) { qDebug() << "model_Digital_Verify"; return Utils::VerifySuccess; } Utils::VerifyResultCode model_Digital_Verify1(QString) { qDebug() << "model_Digital_Verify"; return Utils::DebfileInexistence; } Utils::VerifyResultCode model_Digital_Verify2(QString) { qDebug() << "model_Digital_Verify"; return Utils::ExtractDebFail; } Utils::VerifyResultCode model_Digital_Verify3(QString) { return Utils::DebVerifyFail; } Utils::VerifyResultCode model_Digital_Verify4(QString) { return Utils::OtherError; } void model_bumpInstallIndex() { return; } QApt::ErrorCode model_transaction_error() { return QApt::AuthError; } QApt::ExitStatus model_transaction_exitStatus() { return QApt::ExitFailed; } QApt::ExitStatus model_transaction_exitStatus1() { return QApt::ExitSuccess; } QString model_transaction_errorString() { return "error"; } bool model_transaction_isCancellable() { return false; } bool model_transaction_isCancelled() { return true; } QByteArray model_getPackageMd5() { return "1"; } QString model_transaction_errorDetails() { return ""; } bool model_transaction_setProperty(const char *, const QVariant &) { return true; } bool ut_process_startDetached(qint64 *) { return false; } qint64 ut_process_write(const QByteArray &) { return 0; } bool stub_DebListModel_Hierarchical_Invalid() { return false; } bool stub_DebListModel_Hierarchical_Valid() { return true; } static int g_VerifyDeependErrCount = 0; void stub_DebListModel_showHierarchicalVerifyWindow_DoNothing() { g_VerifyDeependErrCount++; } void ut_DebListModel_test::stubFunction() { stub.set((void(std::fstream::*)(const std::string &__s, std::ios_base::openmode __mode))ADDR(std::fstream, open), stub_model_open); stub.set((bool(std::fstream::*)())ADDR(std::fstream, is_open), stub_model_is_open); stub.set(ADDR(Backend, init), model_backend_init); stub.set(ADDR(Backend, architectures), model_backend_architectures); stub.set(ADDR(Backend, commitChanges), model_backend_commitChanges); stub.set(ADDR(Backend, reloadCache), model_backend_init); stub.set(ADDR(Transaction, run), model_transaction_run); stub.set(ADDR(Transaction, errorString), model_transaction_errorString); stub.set(ADDR(Transaction, isCancellable), model_transaction_isCancellable); stub.set(ADDR(Transaction, isCancelled), model_transaction_isCancelled); stub.set(ADDR(Transaction, errorDetails), model_transaction_errorDetails); #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) stub.set(ADDR(Transaction, setProperty), model_transaction_setProperty); #endif stub.set(ADDR(Transaction, exitStatus), model_transaction_exitStatus); stub.set(ADDR(DebFile, architecture), model_deb_arch_i386); stub.set(ADDR(DebFile, isValid), model_deb_isValid); stub.set(ADDR(DebFile, md5Sum), model_deb_md5Sum); stub.set(ADDR(DebFile, installedSize), model_deb_installSize); stub.set(ADDR(DebFile, packageName), model_deb_packageName); stub.set(ADDR(DebFile, longDescription), model_deb_longDescription); stub.set(ADDR(DebFile, shortDescription), model_deb_shortDescription); stub.set(ADDR(DebFile, version), model_deb_version); stub.set(ADDR(DebFile, conflicts), model_deb_conflicts); stub.set(ADDR(DebFile, depends), model_deb_depends); stub.set(ADDR(PackagesManager, getPackageMd5), model_package_getPackageMd5); stub.set(ADDR(PackagesManager, isArchError), model_package_isArchError); stub.set(ADDR(PackagesManager, getPackageDependsStatus), model_getPackageDependsStatus); stub.set(ADDR(PackagesManager, isBackendReady), model_BackendReady); stub.set(ADDR(PackagesManager, packageWithArch), model_packageWithArch); stub.set(ADDR(PackagesManager, package), model_packageManager_package); stub.set(ADDR(PackagesManager, dealInvalidPackage), model_stub_dealInvalidPackage); stub.set((Package * (Backend::*)(const QString &) const) ADDR(Backend, package), model_package_package); stubHierachicalInvalid.set(ADDR(HierarchicalVerify, isValid), stub_DebListModel_Hierarchical_Invalid); } void ut_DebListModel_test::SetUp() { stubFunction(); m_debListModel = new DebListModel(); usleep(10 * 1000); } void ut_DebListModel_test::TearDown() { delete m_debListModel; } TEST_F(ut_DebListModel_test, deblistmodel_UT_reset) { m_debListModel->reset(); EXPECT_EQ(m_debListModel->m_workerStatus, DebListModel::WorkerPrepare); EXPECT_EQ(0, m_debListModel->m_operatingIndex); EXPECT_TRUE(m_debListModel->m_operatingPackageMd5.isEmpty()); EXPECT_EQ(0, m_debListModel->m_operatingStatusIndex); EXPECT_TRUE(m_debListModel->m_packageOperateStatus.isEmpty()); EXPECT_TRUE(m_debListModel->m_packageFailCode.isEmpty()); EXPECT_TRUE(m_debListModel->m_packageFailReason.isEmpty()); EXPECT_TRUE(m_debListModel->m_packagesManager->m_errorIndex.isEmpty()); EXPECT_FALSE(m_debListModel->m_hierarchicalVerifyError); } TEST_F(ut_DebListModel_test, deblistmodel_UT_reset_filestatus) { m_debListModel->m_packageOperateStatus[0] = 1; m_debListModel->resetFileStatus(); EXPECT_TRUE(m_debListModel->m_packageOperateStatus.isEmpty()); EXPECT_TRUE(m_debListModel->m_packageFailReason.isEmpty()); EXPECT_TRUE(m_debListModel->m_packageFailCode.isEmpty()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_isReady) { EXPECT_TRUE(m_debListModel->isReady()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_isWorkerPrepare) { EXPECT_TRUE(m_debListModel->isWorkerPrepare()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_preparedPackages) { EXPECT_TRUE(m_debListModel->preparedPackages().isEmpty()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_slotAppendPackage) { QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); EXPECT_EQ(m_debListModel->preparedPackages().size(), 1); EXPECT_EQ(DebListModel::WorkerPrepare, m_debListModel->m_workerStatus); } TEST_F(ut_DebListModel_test, deblistmodel_UT_first) { QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); ASSERT_EQ(m_debListModel->first().row(), 0); } TEST_F(ut_DebListModel_test, deblistmodel_UT_rowCount) { QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); QModelIndex index; ASSERT_EQ(m_debListModel->rowCount(index), 1); } bool stub_recheckPackagePath(QString) { return true; } TEST_F(ut_DebListModel_test, deblistmodel_UT_data) { QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); QModelIndex index = m_debListModel->index(0); int i = 1; m_debListModel->data(index, 1); i = 2; m_debListModel->slotAppendPackage(QStringList() << "deb"); stub.set(ADDR(PackagesManager, packageReverseDependsList), model_packageManager_packageReverseDependsList); stub.set(ADDR(DebListModel, recheckPackagePath), stub_recheckPackagePath); while (i <= 13) { m_debListModel->data(index, i); i++; } for (int i = 257; i <= 269; i++) { m_debListModel->data(index, i); } m_debListModel->data(index, 1); m_debListModel->m_packageOperateStatus[""] = 1; m_debListModel->data(index, 268); EXPECT_EQ(1, m_debListModel->m_packagesManager->m_preparedPackages.size()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_data_recheck) { QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); QModelIndex index = m_debListModel->index(0); EXPECT_EQ(1, m_debListModel->m_packagesManager->m_preparedPackages.size()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_isDevelopMode) { m_debListModel->m_isDevelopMode = true; EXPECT_TRUE(m_debListModel->isDevelopMode()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_initPrepareStatus) { QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); m_debListModel->initPrepareStatus(); ASSERT_EQ(m_debListModel->m_packageOperateStatus[0], Pkg::PackageOperationStatus::Prepare); } TEST_F(ut_DebListModel_test, deblistmodel_UT_index) { QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); ASSERT_EQ(m_debListModel->index(0).data(DebListModel::PackageDependsStatusRole).toInt(), Pkg::DependsStatus::DependsOk); } TEST_F(ut_DebListModel_test, deblistmodel_UT_getInstallFileSize) { QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); ASSERT_EQ(m_debListModel->getInstallFileSize(), 1); } TEST_F(ut_DebListModel_test, deblistmodel_UT_setCurrentIndex) { QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); QModelIndex index = m_debListModel->index(0); m_debListModel->slotSetCurrentIndex(index); ASSERT_EQ(m_debListModel->m_currentIdx, m_debListModel->index(0)); } TEST_F(ut_DebListModel_test, deblistmodel_UT_installPackages) { QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); m_debListModel->slotInstallPackages(); ASSERT_EQ(m_debListModel->m_workerStatus, DebListModel::WorkerProcessing); ASSERT_EQ(0, m_debListModel->m_operatingIndex); ASSERT_EQ(0, m_debListModel->m_operatingStatusIndex); } Package *stub_model_packageWithArch(QString) { Backend *bac = nullptr; pkgCache::PkgIterator packageIter; QScopedPointer package(new Package(bac, packageIter)); return package.get(); } void stub_setPurge() { return; } Package *ut_package(QString, QString, QString) { Backend *bac = nullptr; pkgCache::PkgIterator packageIter; // Package *package = new Package(bac,packageIter); QScopedPointer package(new Package(bac, packageIter)); return package.get(); } TEST_F(ut_DebListModel_test, deblistmodel_UT_uninstallPackage) { stub.set(ADDR(PackagesManager, packageReverseDependsList), model_packageManager_packageReverseDependsList); stub.set(ADDR(Backend, markPackageForRemoval), model_backend_markPackageForRemoval); QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); m_debListModel->slotUninstallPackage(0); ASSERT_EQ(m_debListModel->m_workerStatus, DebListModel::WorkerProcessing); ASSERT_EQ(m_debListModel->m_operatingIndex, 0); } TEST_F(ut_DebListModel_test, deblistmodel_UT_uninstallPackage1) { stub.set(ADDR(PackagesManager, packageReverseDependsList), model_packageManager_packageReverseDependsList); stub.set(ADDR(Backend, markPackageForRemoval), model_backend_markPackageForRemoval); // stub.set((Package * (Backend::*)(const QString &) const)ADDR(Backend, package), stub_model_packageWithArch); stub.set(ADDR(Package, setPurge), stub_setPurge); QStringList list; list << "/"; m_debListModel->m_workerStatus = DebListModel::WorkerProcessing; m_debListModel->slotAppendPackage(list); m_debListModel->slotUninstallPackage(0); ASSERT_EQ(m_debListModel->m_workerStatus, DebListModel::WorkerProcessing); } bool ut_model_isBreak() { return true; } ConflictResult ut_packageConflictStat() { return ConflictResult::err(""); } PackageDependsStatus getPackageDependsStatus(const int) { return PackageDependsStatus::_break(""); } TEST_F(ut_DebListModel_test, deblistmodel_UT_packageFailedReason) { QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); ASSERT_STREQ(m_debListModel->packageFailedReason(0).toLocal8Bit(), "Unmatched package architecture"); Stub stub; stub.set(ADDR(PackagesManager, isArchError), model_package_isArchError1); stub.set(ADDR(PackageDependsStatus, isBreak), ut_model_isBreak); stub.set(ADDR(PackagesManager, packageConflictStat), ut_packageConflictStat); stub.set(ADDR(PackagesManager, getPackageDependsStatus), getPackageDependsStatus); m_debListModel->packageFailedReason(0); EXPECT_TRUE(m_debListModel->packageFailedReason(0).contains("Broken dependencies")); } TEST_F(ut_DebListModel_test, deblistmodel_UT_initRowStatus) { QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); m_debListModel->m_packageMd5.insert(0, "deb"); m_debListModel->initRowStatus(); ASSERT_EQ(m_debListModel->m_packageOperateStatus.find("deb").value(), Pkg::PackageOperationStatus::Waiting); } TEST_F(ut_DebListModel_test, deblistmodel_UT_checkSystemVersion_UosEnterprise) { stub.set(ADDR(Dtk::Core::DSysInfo, uosEditionType), model_uosEditionType_UosEnterprise); EXPECT_TRUE(Utils::isDevelopMode()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_checkSystemVersion_UosProfessional) { stub.set(ADDR(Dtk::Core::DSysInfo, uosEditionType), model_uosEditionType_UosProfessional); Utils::isDevelopMode(); } TEST_F(ut_DebListModel_test, deblistmodel_UT_checkSystemVersion_UosHome) { stub.set(ADDR(Dtk::Core::DSysInfo, uosEditionType), model_uosEditionType_UosHome); Utils::isDevelopMode(); } TEST_F(ut_DebListModel_test, deblistmodel_UT_checkSystemVersion_UosCommunity) { stub.set(ADDR(Dtk::Core::DSysInfo, uosEditionType), model_uosEditionType_UosCommunity); EXPECT_TRUE(Utils::isDevelopMode()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_checkSystemVersion_default) { stub.set(ADDR(Dtk::Core::DSysInfo, uosEditionType), model_uosEditionType_default); EXPECT_TRUE(Utils::isDevelopMode()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_checkDigitalSignature) { QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); stub.set((Utils::VerifyResultCode(*)(QString))ADDR(Utils, Digital_Verify), model_Digital_Verify); m_debListModel->m_isDevelopMode = false; m_debListModel->m_operatingIndex = 0; ASSERT_TRUE(m_debListModel->checkDigitalSignature()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_checkDigitalSignature_01) { QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); stub.set((Utils::VerifyResultCode(*)(QString))ADDR(Utils, Digital_Verify), model_Digital_Verify1); m_debListModel->m_isDevelopMode = false; m_debListModel->m_operatingIndex = 0; ASSERT_FALSE(m_debListModel->checkDigitalSignature()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_checkDigitalSignature_02) { QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); stub.set((Utils::VerifyResultCode(*)(QString))ADDR(Utils, Digital_Verify), model_Digital_Verify2); m_debListModel->m_isDevelopMode = false; m_debListModel->m_operatingIndex = 0; ASSERT_FALSE(m_debListModel->checkDigitalSignature()); Stub stub1; stub1.set((Utils::VerifyResultCode(*)(QString))ADDR(Utils, Digital_Verify), model_Digital_Verify3); ASSERT_FALSE(m_debListModel->checkDigitalSignature()); Stub stub2; stub2.set((Utils::VerifyResultCode(*)(QString))ADDR(Utils, Digital_Verify), model_Digital_Verify4); ASSERT_FALSE(m_debListModel->checkDigitalSignature()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_checkDigitalSignature_03) { QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); m_debListModel->m_operatingIndex = 0; Stub stub; m_debListModel->m_isDevelopMode = true; m_debListModel->m_isDigitalVerify = true; stub.set((Utils::VerifyResultCode(*)(QString))ADDR(Utils, Digital_Verify), model_Digital_Verify2); ASSERT_TRUE(m_debListModel->checkDigitalSignature()); m_debListModel->showDevelopDigitalErrWindow(Pkg::NoDigitalSignature); EXPECT_EQ(1, m_debListModel->preparedPackages().size()); } void model_digitalVerifyFailed() { return; } TEST_F(ut_DebListModel_test, deblistmodel_UT_showNoDigitalErrWindow) { stub.set(ADDR(DebListModel, digitalVerifyFailed), model_digitalVerifyFailed); QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); m_debListModel->m_operatingIndex = 0; m_debListModel->m_packagesManager->m_preparedPackages.append("1"); m_debListModel->showNoDigitalErrWindow(); EXPECT_TRUE(m_debListModel->m_operatingIndex < m_debListModel->m_packagesManager->m_preparedPackages.size() - 1); } TEST_F(ut_DebListModel_test, deblistmodel_UT_removePackage) { QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); m_debListModel->m_operatingIndex = 0; m_debListModel->m_packagesManager->m_preparedPackages.append("1"); m_debListModel->removePackage(0); ASSERT_EQ(m_debListModel->m_packagesManager->m_preparedPackages.size(), 1); ASSERT_TRUE(m_debListModel->m_packageOperateStatus.isEmpty()); m_debListModel->slotAppendPackage(list); m_debListModel->m_packageOperateStatus[""] = 1; m_debListModel->removePackage(0); ASSERT_EQ(m_debListModel->m_packagesManager->m_preparedPackages.size(), 0); ASSERT_TRUE(m_debListModel->m_packageOperateStatus.isEmpty()); } QApt::ErrorCode model_transaction_commitError() { return QApt::CommitError; } QObject *ut_sender() { Transaction *transaction = new Transaction("1"); return qobject_cast(transaction); } TEST_F(ut_DebListModel_test, deblistmodel_UT_onTransactionErrorOccurred) { stub.set(ADDR(Transaction, error), model_transaction_error); m_debListModel->m_operatingPackageMd5 = "deb"; m_debListModel->m_packageOperateStatus.insert("deb", QApt::CommitError); m_debListModel->m_packageFailCode.insert("deb", QApt::FetchError); m_debListModel->m_isDevelopMode = Utils::isDevelopMode(); m_debListModel->m_workerStatus = DebListModel::WorkerProcessing; m_debListModel->m_packageMd5.insert(0, "00000"); m_debListModel->m_operatingIndex = 0; Stub stub1; stub1.set(ADDR(QObject, sender), ut_sender); m_debListModel->slotTransactionErrorOccurred(); EXPECT_EQ(QApt::AuthError, m_debListModel->m_packageFailCode[m_debListModel->m_operatingPackageMd5]); EXPECT_EQ(Pkg::PackageOperationStatus::Failed, m_debListModel->m_packageOperateStatus[m_debListModel->m_operatingPackageMd5]); delete ut_sender(); } TEST_F(ut_DebListModel_test, deblistmodel_UT_DealDependResult) { stub.set(ADDR(DebListModel, refreshOperatingPackageStatus), model_refreshOperatingPackageStatus); stub.set(ADDR(DebListModel, bumpInstallIndex), model_bumpInstallIndex); stub.set(ADDR(DebListModel, getPackageMd5), model_getPackageMd5); m_debListModel->slotDealDependResult(1, 0, ""); m_debListModel->slotDealDependResult(2, 0, ""); EXPECT_EQ(Pkg::PackageOperationStatus::Prepare, m_debListModel->m_packageOperateStatus["1"]); m_debListModel->slotDealDependResult(3, 0, ""); m_debListModel->slotDealDependResult(4, 0, ""); EXPECT_EQ(Pkg::PackageOperationStatus::Prepare, m_debListModel->m_packageOperateStatus["1"]); EXPECT_EQ(Pkg::PackageOperationStatus::Prepare, m_debListModel->m_workerStatus); m_debListModel->slotDealDependResult(5, 0, ""); EXPECT_EQ("", m_debListModel->m_brokenDepend); } TEST_F(ut_DebListModel_test, deblistmodel_UT_DealDependResult_VerifyDependsErr) { Stub tmpStub; tmpStub.set(ADDR(ErrorNotifyDialogHelper, showHierarchicalVerifyWindow), stub_DebListModel_showHierarchicalVerifyWindow_DoNothing); g_VerifyDeependErrCount = 0; m_debListModel->slotDealDependResult(DebListModel::VerifyDependsErr, 0, ""); EXPECT_EQ(g_VerifyDeependErrCount, 1); } TEST_F(ut_DebListModel_test, deblistmodel_UT_onTransactionStatusChanged) { TransactionStatus stat = TransactionStatus::AuthenticationStatus; m_debListModel->slotTransactionStatusChanged(stat); stat = TransactionStatus::WaitingStatus; m_debListModel->slotTransactionStatusChanged(stat); } TEST_F(ut_DebListModel_test, deblistmodel_UT_setEndEnable) { QSignalSpy spy(m_debListModel, SIGNAL(signalEnableReCancelBtn(bool))); m_debListModel->setEndEnable(); EXPECT_EQ(1, spy.count()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_checkBoxStatus) { m_debListModel->checkBoxStatus(); } TEST_F(ut_DebListModel_test, deblistmodel_UT_bumpInstallIndex) { stub.set(ADDR(DebListModel, installNextDeb), model_installNextDeb); m_debListModel->m_operatingIndex = 0; m_debListModel->m_packageMd5.append("\n"); m_debListModel->m_packageMd5.append("1"); m_debListModel->bumpInstallIndex(); EXPECT_EQ("", m_debListModel->m_operatingPackageMd5); } TEST_F(ut_DebListModel_test, deblistmodel_UT_slotInstallPackages_resetHierarchicalVerify) { stub.set(ADDR(DebListModel, installNextDeb), model_installNextDeb); m_debListModel->m_operatingIndex = 0; m_debListModel->m_packageMd5.append("\n"); m_debListModel->m_packageMd5.append("1"); m_debListModel->m_hierarchicalVerifyError = true; m_debListModel->slotInstallPackages(); EXPECT_FALSE(m_debListModel->m_hierarchicalVerifyError); } TEST_F(ut_DebListModel_test, deblistmodel_UT_ConfigInstallFinish) { stub.set(ADDR(DebListModel, bumpInstallIndex), model_bumpInstallIndex); m_debListModel->m_packagesManager->m_preparedPackages.append("/"); m_debListModel->slotConfigInstallFinish(1); EXPECT_EQ(DebListModel::WorkerPrepare, m_debListModel->m_workerStatus); } QByteArray model_readAllStandardOutput() { return "StartInstallAptConfig"; } QByteArray model_readAllStandardOutput1() { return "StartInstall"; } TEST_F(ut_DebListModel_test, deblistmodel_UT_ConfigReadOutput) { m_debListModel->m_operatingPackageMd5 = "deb"; m_debListModel->m_packageOperateStatus.insert("deb", QApt::CommitError); stub.set(ADDR(Konsole::Pty, receivedData), model_readAllStandardOutput); // asan检查 内存泄露 QString buffer = "11111111"; int length = sizeof(buffer); bool isCommandExec = false; m_debListModel->slotConfigReadOutput(buffer.toStdString().c_str(), length, isCommandExec); EXPECT_EQ(Pkg::PackageOperationStatus::Operating, m_debListModel->m_packageOperateStatus[m_debListModel->m_operatingPackageMd5]); } TEST_F(ut_DebListModel_test, deblistmodel_UT_onTransactionFinished) { m_debListModel->m_operatingPackageMd5 = "deb"; m_debListModel->m_packageFailCode.insert("deb", QApt::CommitError); m_debListModel->m_operatingPackageMd5 = "deb"; m_debListModel->m_packageFailCode.insert("deb", QApt::CommitError); stub.set(ADDR(DebListModel, bumpInstallIndex), model_bumpInstallIndex); stub.set(ADDR(Transaction, error), model_transaction_error); m_debListModel->m_operatingIndex = 0; m_debListModel->m_packageMd5.append("test"); m_debListModel->m_packageMd5.append("test1"); m_debListModel->m_packagesManager->m_preparedPackages.append(QString("deb")); m_debListModel->m_packagesManager->m_preparedPackages.append(QString("deb1")); Stub stub1; stub1.set(ADDR(QObject, sender), ut_sender); m_debListModel->slotTransactionFinished(); EXPECT_EQ(nullptr, m_debListModel->m_currentTransaction); EXPECT_EQ(QApt::AuthError, m_debListModel->m_packageFailCode[m_debListModel->m_operatingPackageMd5]); delete ut_sender(); } static Transaction *g_transaction = nullptr; QObject *stub_UT_Transaction_Sender() { return qobject_cast(g_transaction); } void stub_showDigitalErrWindow() { // Do nothing. } QString stub_Transacton_ErrorDetails_Failed() { // 65280 is hierarchical verfiy error code. return QString("deepin hook exit code:65280"); } TEST_F(ut_DebListModel_test, onTransactionFinished_HierarchicalVerify_Failed) { // Enable hierarchical verify stubHierachicalInvalid.set(ADDR(HierarchicalVerify, isValid), stub_DebListModel_Hierarchical_Valid); m_debListModel->m_operatingPackageMd5 = "deb"; m_debListModel->m_packageFailCode.insert("deb", QApt::CommitError); stub.set(ADDR(DebListModel, bumpInstallIndex), model_bumpInstallIndex); stub.set(ADDR(DebListModel, showDigitalErrWindow), stub_showDigitalErrWindow); stub.set(ADDR(Transaction, error), model_transaction_error); stub.set(ADDR(Transaction, errorDetails), stub_Transacton_ErrorDetails_Failed); m_debListModel->m_operatingIndex = 0; m_debListModel->m_packageMd5.append("test"); m_debListModel->m_packageMd5.append("test1"); m_debListModel->m_packagesManager->m_preparedPackages.append(QString("deb")); m_debListModel->m_packagesManager->m_preparedPackages.append(QString("deb1")); Stub stub1; g_transaction = new Transaction("1"); stub1.set(ADDR(QObject, sender), stub_UT_Transaction_Sender); m_debListModel->m_hierarchicalVerifyError = false; m_debListModel->slotTransactionFinished(); EXPECT_EQ(nullptr, m_debListModel->m_currentTransaction); EXPECT_EQ(Pkg::DigitalSignatureError, m_debListModel->m_packageFailCode[m_debListModel->m_operatingPackageMd5]); EXPECT_TRUE(m_debListModel->m_hierarchicalVerifyError); delete g_transaction; g_transaction = nullptr; } QString stub_Transacton_ErrorDetails_Pass() { return QString("deepin hook exit code:65277"); } TEST_F(ut_DebListModel_test, onTransactionFinished_HierarchicalVerify_Pass) { // Enable hierarchical verify stubHierachicalInvalid.set(ADDR(HierarchicalVerify, isValid), stub_DebListModel_Hierarchical_Valid); m_debListModel->m_operatingPackageMd5 = "deb"; m_debListModel->m_packageFailCode.insert("deb", QApt::CommitError); stub.set(ADDR(DebListModel, bumpInstallIndex), model_bumpInstallIndex); stub.set(ADDR(DebListModel, showDigitalErrWindow), stub_showDigitalErrWindow); stub.set(ADDR(Transaction, error), model_transaction_error); stub.set(ADDR(Transaction, errorDetails), stub_Transacton_ErrorDetails_Pass); m_debListModel->m_operatingIndex = 0; m_debListModel->m_packageMd5.append("test"); m_debListModel->m_packageMd5.append("test1"); m_debListModel->m_packagesManager->m_preparedPackages.append(QString("deb")); m_debListModel->m_packagesManager->m_preparedPackages.append(QString("deb1")); Stub stub1; g_transaction = new Transaction("1"); stub1.set(ADDR(QObject, sender), stub_UT_Transaction_Sender); m_debListModel->m_hierarchicalVerifyError = false; m_debListModel->slotTransactionFinished(); EXPECT_EQ(nullptr, m_debListModel->m_currentTransaction); EXPECT_EQ(QApt::AuthError, m_debListModel->m_packageFailCode[m_debListModel->m_operatingPackageMd5]); EXPECT_FALSE(m_debListModel->m_hierarchicalVerifyError); delete g_transaction; g_transaction = nullptr; } TEST_F(ut_DebListModel_test, deblistmodel_UT_refreshOperatingPackageStatus) { m_debListModel->m_operatingPackageMd5 = "deb"; m_debListModel->m_packageOperateStatus.insert("deb", QApt::CommitError); m_debListModel->refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); EXPECT_EQ(Pkg::PackageOperationStatus::Failed, m_debListModel->m_packageOperateStatus[m_debListModel->m_operatingPackageMd5]); } TEST_F(ut_DebListModel_test, deblistmodel_UT_slotDependsInstallTransactionFinished) { stub.set(ADDR(DebListModel, refreshOperatingPackageStatus), model_refreshOperatingPackageStatus); stub.set(ADDR(DebListModel, getPackageMd5), model_getPackageMd5); stub.set(ADDR(DebListModel, installNextDeb), model_installNextDeb); stub.set(ADDR(DebListModel, bumpInstallIndex), model_installNextDeb); stub.set(ADDR(Transaction, error), model_transaction_error); m_debListModel->m_operatingPackageMd5 = "deb"; m_debListModel->m_packageFailCode.insert("deb", QApt::CommitError); Stub stub1; stub1.set(ADDR(QObject, sender), ut_sender); m_debListModel->slotDependsInstallTransactionFinished(); EXPECT_EQ(nullptr, m_debListModel->m_currentTransaction); EXPECT_EQ(QApt::AuthError, m_debListModel->m_packageFailCode[m_debListModel->m_operatingPackageMd5]); delete ut_sender(); } TEST_F(ut_DebListModel_test, deblistmodel_UT_showDevelopModeWindow) { stub.set((bool(QProcess::*)(qint64 *))ADDR(QProcess, startDetached), ut_process_startDetached); m_debListModel->slotShowDevelopModeWindow(); } TEST_F(ut_DebListModel_test, deblistmodel_UT_slotUpWrongStatusRow) { stub.set(ADDR(DebListModel, refreshOperatingPackageStatus), model_refreshOperatingPackageStatus); stub.set(ADDR(DebListModel, getPackageMd5), model_getPackageMd5); stub.set(ADDR(DebListModel, installNextDeb), model_installNextDeb); stub.set(ADDR(DebListModel, bumpInstallIndex), model_installNextDeb); stub.set(ADDR(Transaction, error), model_transaction_error); m_debListModel->m_packageOperateStatus.insert("key", Pkg::PackageOperationStatus::Failed); m_debListModel->m_packageOperateStatus.insert("key1", Pkg::PackageOperationStatus::Success); m_debListModel->slotUpWrongStatusRow(); EXPECT_EQ(2, m_debListModel->m_packagesManager->m_packageMd5.size()); EXPECT_EQ(2, m_debListModel->m_packagesManager->m_preparedPackages.size()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_ConfigInputWrite) { stub.set((qint64(QProcess::*)(const QByteArray &))ADDR(QProcess, write), ut_process_write); m_debListModel->slotConfigInputWrite("\n"); EXPECT_TRUE(m_debListModel->m_procInstallConfig); } TEST_F(ut_DebListModel_test, deblistmodel_UT_onTransactionOutput) { Stub stub1; stub1.set(ADDR(QObject, sender), ut_sender); m_debListModel->m_packageOperateStatus.insert("deb", Pkg::PackageOperationStatus::Prepare); m_debListModel->m_operatingPackageMd5 = "deb"; m_debListModel->slotTransactionOutput(); EXPECT_EQ(Pkg::PackageOperationStatus::Operating, m_debListModel->m_packageOperateStatus[m_debListModel->m_operatingPackageMd5]); delete ut_sender(); } ExitStatus ut_exitStatus() { return ExitStatus::ExitSuccess; } TEST_F(ut_DebListModel_test, deblistmodel_UT_uninstallFinished) { stub.set(ADDR(Transaction, error), model_transaction_run); Stub stub1; stub1.set(ADDR(QObject, sender), ut_sender); m_debListModel->slotUninstallFinished(); stub1.set(ADDR(Transaction, exitStatus), ut_exitStatus); m_debListModel->slotUninstallFinished(); EXPECT_EQ(DebListModel::WorkerFinished, m_debListModel->m_workerStatus); delete ut_sender(); } TEST_F(ut_DebListModel_test, deblistmodel_UT_checkInstallStatus) { stub.set(ADDR(DebListModel, bumpInstallIndex), model_installNextDeb); stub.set(ADDR(DebListModel, refreshOperatingPackageStatus), model_refreshOperatingPackageStatus); QString str = "Error executing command as another user: Request dismissed"; m_debListModel->slotCheckInstallStatus(str); EXPECT_EQ(DebListModel::WorkerFinished, m_debListModel->m_workerStatus); EXPECT_EQ(1, m_debListModel->m_packageFailCode.size()); EXPECT_EQ(1, m_debListModel->m_packageFailReason.size()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_initConnections) { m_debListModel->initConnections(); } TEST_F(ut_DebListModel_test, deblistmodel_UT_slotShowProhibitWindow) { m_debListModel->slotShowProhibitWindow(); QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); m_debListModel->m_isDevelopMode = true; m_debListModel->slotShowProhibitWindow(); EXPECT_EQ(1, m_debListModel->m_packageFailCode.size()); m_debListModel->showProhibitWindow(); m_debListModel->m_operatingIndex = -1; m_debListModel->showProhibitWindow(); EXPECT_EQ(1, m_debListModel->m_packageFailCode.size()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_initAppendConnection) { m_debListModel->initAppendConnection(); } TEST_F(ut_DebListModel_test, deblistmodel_UT_initRefreshPageConnecions) { m_debListModel->initRefreshPageConnecions(); } TEST_F(ut_DebListModel_test, deblistmodel_UT_initInstallConnections) { m_debListModel->initInstallConnections(); } #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) #define FILE_LINK readLink #else #define FILE_LINK symLinkTarget #endif TEST_F(ut_DebListModel_test, deblistmodel_UT_recheckPackagePath_readRealPathExist) { stub.set((QString(QFile::*)(void) const)ADDR(QFile, FILE_LINK), stub_readLink_empty); stub.set((bool(QFile::*)(void) const)ADDR(QFile, exists), stub_exists_true); ASSERT_TRUE(m_debListModel->recheckPackagePath("/0")); } TEST_F(ut_DebListModel_test, deblistmodel_UT_recheckPackagePath_readLinkPathExist) { stub.set((QString(QFile::*)(void) const)ADDR(QFile, FILE_LINK), stub_readLink); stub.set((bool(QFile::*)(void) const)ADDR(QFile, exists), stub_exists_true); ASSERT_TRUE(m_debListModel->recheckPackagePath("/0")); } TEST_F(ut_DebListModel_test, deblistmodel_UT_recheckPackagePath_readLinkPathNotExist) { stub.set((QString(QFile::*)(void) const)ADDR(QFile, FILE_LINK), stub_readLink); stub.set((bool(QFile::*)(void) const)ADDR(QFile, exists), stub_exists_false); ASSERT_FALSE(m_debListModel->recheckPackagePath("/0")); } TEST_F(ut_DebListModel_test, deblistmodel_UT_netErrors) { EXPECT_TRUE(m_debListModel->netErrors().at(0).contains("Address family")); } TEST_F(ut_DebListModel_test, deblistmodel_UT_workerErrorString) { EXPECT_TRUE(m_debListModel->workerErrorString(1, "").contains("Installation Failed")); EXPECT_TRUE(m_debListModel->workerErrorString(2, "No space left on device").contains("insufficient disk space")); EXPECT_TRUE(m_debListModel->workerErrorString(2, "").contains("Installation Failed")); EXPECT_TRUE(m_debListModel->workerErrorString(3, "").contains("insufficient disk space")); EXPECT_TRUE(m_debListModel->workerErrorString(4, "").contains("network connection")); EXPECT_TRUE(m_debListModel->workerErrorString(5, "").contains("Installation Failed")); EXPECT_TRUE(m_debListModel->workerErrorString(5, "Network is unreachable;http").contains("network connection")); EXPECT_TRUE(m_debListModel->workerErrorString(5, "No space left on device").contains("insufficient disk space")); EXPECT_TRUE(m_debListModel->workerErrorString(9, "").contains("network connection")); EXPECT_TRUE(m_debListModel->workerErrorString(10, "").contains("Control Center")); EXPECT_TRUE(m_debListModel->workerErrorString(101, "").contains("No digital signature")); EXPECT_TRUE(m_debListModel->workerErrorString(102, "").contains("Invalid digital signature")); EXPECT_FALSE(m_debListModel->workerErrorString(127, "").contains("iAuthentication")); } const QList ut_preparedPackages() { QList list; list << "deb" << "rpm"; return list; } TEST_F(ut_DebListModel_test, deblistmodel_UT_digitalVerifyFailed) { // stub.set(ADDR(DebListModel,preparedPackages),ut_preparedPackages); m_debListModel->digitalVerifyFailed(Pkg::ErrorCode::DigitalSignatureError); QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); m_debListModel->m_isDevelopMode = true; m_debListModel->digitalVerifyFailed(Pkg::ErrorCode::DigitalSignatureError); EXPECT_EQ(1, m_debListModel->m_packageFailCode.size()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_slotDigitalSignatureError) { m_debListModel->slotDigitalSignatureError(); QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); m_debListModel->m_isDevelopMode = true; m_debListModel->slotDigitalSignatureError(); EXPECT_EQ(1, m_debListModel->m_packageFailCode.size()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_slotNoDigitalSignature) { QStringList list; list << "/"; m_debListModel->slotAppendPackage(list); m_debListModel->m_isDevelopMode = true; m_debListModel->slotNoDigitalSignature(); EXPECT_EQ(1, m_debListModel->m_packageFailCode.size()); } TEST_F(ut_DebListModel_test, deblistmodel_UT_isWorkPrepare) { m_debListModel->m_workerStatus = DebListModel::WorkerPrepare; ASSERT_TRUE(m_debListModel->isWorkerPrepare()); } deepin-deb-installer-6.5.5/tests/src/model/ut_packageanalyzer.cpp000066400000000000000000000045351474340456100251430ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include #include #include #define private public #include "../deb-installer/model/packageanalyzer.h" class ut_packageanalyzer_TEST : public ::testing::Test { // Test interface protected: void SetUp() {} void TearDown() {} private: PackageAnalyzer *w; }; TEST_F(ut_packageanalyzer_TEST, PackageAnalyzer_UT_supportArch) { ASSERT_EQ(PackageAnalyzer::instance().supportArch("any"), true); ASSERT_EQ(PackageAnalyzer::instance().supportArch("all"), true); } TEST_F(ut_packageanalyzer_TEST, PackageAnalyzer_UT_packageInstallStatus) { DebIr ir; ir.isValid = true; ir.packageName = "deepin-hd;o3h8dhoewl"; ir.architecture = "amd64"; ir.version = "1.0"; auto data = PackageAnalyzer::instance().packageInstallStatus(ir); ASSERT_EQ(data.first, Pkg::NotInstalled); ir.packageName = "libc6"; data = PackageAnalyzer::instance().packageInstallStatus(ir); ASSERT_EQ(data.first, Pkg::InstalledLaterVersion); ir.version = "999.999"; data = PackageAnalyzer::instance().packageInstallStatus(ir); ASSERT_EQ(data.first, Pkg::InstalledEarlierVersion); } TEST_F(ut_packageanalyzer_TEST, PackageAnalyzer_UT_packageWithArch) { auto package = PackageAnalyzer::instance().packageWithArch("libc6", "deepin-hd;o3h8dhoewl", ""); ASSERT_NE(package, nullptr); } TEST_F(ut_packageanalyzer_TEST, PackageAnalyzer_UT_virtualPackageIsExist) { auto result = PackageAnalyzer::instance().virtualPackageIsExist("deepin-hd;o3h8dhoewl"); ASSERT_EQ(result, false); } TEST_F(ut_packageanalyzer_TEST, PackageAnalyzer_UT_versionMatched) { bool result; result = PackageAnalyzer::instance().versionMatched("1.0", "1.0", QApt::LessOrEqual); ASSERT_EQ(result, true); result = PackageAnalyzer::instance().versionMatched("1.5", "1.0", QApt::GreaterOrEqual); ASSERT_EQ(result, false); result = PackageAnalyzer::instance().versionMatched("1.0", "1.5", QApt::GreaterThan); ASSERT_EQ(result, true); result = PackageAnalyzer::instance().versionMatched("1.0", "1.0", QApt::NotEqual); ASSERT_EQ(result, false); result = PackageAnalyzer::instance().versionMatched("1.0", "1.1", QApt::NotEqual); ASSERT_EQ(result, true); } deepin-deb-installer-6.5.5/tests/src/model/ut_packagelistview.cpp000066400000000000000000000067601474340456100251660ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include "../deb-installer/model/deblistmodel.h" #include "../deb-installer/model/packagelistview.h" #include "../deb-installer/manager/packagesmanager.h" #include "../deb-installer/manager/PackageDependsStatus.h" #include "utils/utils.h" #include class ut_packagelistview_Test : public ::testing::Test { // Test interface protected: void SetUp() { m_listview = new PackagesListView; } void TearDown() { delete m_listview; } PackagesListView *m_listview = nullptr; }; TEST_F(ut_packagelistview_Test, packagelistview_UT_initUI) { m_listview->initUI(); EXPECT_TRUE(m_listview->hasAutoScroll()); } TEST_F(ut_packagelistview_Test, packagelistview_UT_initConnection) { m_listview->initConnections(); } TEST_F(ut_packagelistview_Test, packagelistview_UT_initShortcus) { m_listview->initShortcuts(); } TEST_F(ut_packagelistview_Test, packagelistview_UT_initRightContextMenu) { m_listview->initRightContextMenu(); EXPECT_EQ(1, m_listview->m_rightMenu->actions().size()); } TEST_F(ut_packagelistview_Test, packagelistview_UT_onShortcutDeleteAction) { m_listview->slotShortcutDeleteAction(); EXPECT_FALSE(m_listview->m_rightMenu->isVisible()); EXPECT_EQ(-1, m_listview->m_currModelIndex.row()); } TEST_F(ut_packagelistview_Test, packagelistview_UT_onListViewShowContextMenu) { QModelIndex index; m_listview->slotListViewShowContextMenu(index); EXPECT_FALSE(m_listview->m_bShortcutDelete); EXPECT_FALSE(m_listview->m_bIsRightMenuShow); EXPECT_FALSE(m_listview->m_rightMenu->isVisible()); } TEST_F(ut_packagelistview_Test, packagelistview_UT_onRightMenuDeleteAction) { m_listview->slotRightMenuDeleteAction(); EXPECT_EQ(-1, m_listview->m_currModelIndex.row()); } TEST_F(ut_packagelistview_Test, packagelistview_UT_getPos) { m_listview->m_currentIndex = 1; m_listview->slotGetPos(QRect(1, 1, 1, 1), 1); EXPECT_EQ(1, m_listview->m_rightMenuPos.y()); } TEST_F(ut_packagelistview_Test, packagelistview_UT_setRightMenuShowStatus) { m_listview->setRightMenuShowStatus(true); EXPECT_TRUE(m_listview->m_bIsRightMenuShow); } TEST_F(ut_packagelistview_Test, packagelistview_UT_setSelection) { QItemSelectionModel::SelectionFlags command; m_listview->setSelection(QRect(10, 10, 10, 10), command); ASSERT_FALSE(m_listview->m_bShortcutDelete); } TEST_F(ut_packagelistview_Test, packagelistview_UT_mousePressEvent) { QMouseEvent mousePressEvent(QEvent::MouseButtonPress, QPoint(10, 10), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier); m_listview->mousePressEvent(&mousePressEvent); EXPECT_TRUE(m_listview->m_bLeftMouse); } TEST_F(ut_packagelistview_Test, packagelistview_UT_PaintEvent) { QPaintEvent paint(QRect(m_listview->rect())); m_listview->paintEvent(&paint); EXPECT_EQ(-1, m_listview->m_currentIndex); } TEST_F(ut_packagelistview_Test, packagelistview_UT_keyPressEvent) { QKeyEvent keyPressEvent(QEvent::KeyPress, Qt::Key_Space, Qt::NoModifier); QCoreApplication::sendEvent(m_listview, &keyPressEvent); EXPECT_TRUE(m_listview->m_bLeftMouse); } TEST_F(ut_packagelistview_Test, packagelistview_UT_focusInEvent) { QFocusEvent focus(QFocusEvent::FocusIn); QCoreApplication::sendEvent(m_listview, &focus); } TEST_F(ut_packagelistview_Test, packagelistview_UT_event) { QEvent event(QEvent::FontChange); QCoreApplication::sendEvent(m_listview, &event); } deepin-deb-installer-6.5.5/tests/src/model/ut_packageslistdelegate.cpp000066400000000000000000000135141474340456100261440ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include "../deb-installer/model/deblistmodel.h" #include "../deb-installer/model/packagelistview.h" #include "../deb-installer/manager/packagesmanager.h" #include "../deb-installer/manager/PackageDependsStatus.h" #include "../deb-installer/model/packageslistdelegate.h" #include "utils/utils.h" #include #include using namespace QApt; bool delegate_backend_init() { return true; } void delegate_checkSystemVersion() {} bool delegate_backendReady() { return true; } QString delegate_deb_arch_i386() { return "i386"; } bool delegate_deb_isValid() { return true; } QByteArray delegate_deb_md5Sum() { return nullptr; } int delegate_deb_installSize() { return 0; } QString delegate_deb_packageName() { return ""; } QString delegate_deb_longDescription() { return "longDescription"; } QString delegate_deb_version() { return "version"; } QList delegate_deb_conflicts() { DependencyInfo info("packageName", "0.0", RelationType::Equals, Depends); QList dependencyItem; dependencyItem << info; QList conflicts; conflicts << dependencyItem; return conflicts; } Package *delegate_packageWithArch(QString, QString, QString) { return nullptr; } QStringList delegate_backend_architectures() { return {"i386", "amd64"}; } class ut_packageslistdelegate_Test : public ::testing::Test { // Test interface protected: void SetUp() { m_listview = new PackagesListView; m_delegate = new PackagesListDelegate(nullptr, m_listview); } void TearDown() { delete m_delegate; delete m_listview; } PackagesListView *m_listview = nullptr; PackagesListDelegate *m_delegate; Stub stub; }; TEST_F(ut_packageslistdelegate_Test, packageslistdelegate_UT_getItemHeight) { m_delegate->getItemHeight(48); EXPECT_EQ(48, m_delegate->m_itemHeight); } TEST_F(ut_packageslistdelegate_Test, packageslistdelegate_UT_refreshDebItemStatus) { PackagesListDelegate *delegate = new PackagesListDelegate(nullptr, m_listview); QPainter painter(m_listview); bool isselected = true; bool isEnable = true; m_delegate->refreshDebItemStatus(1, QRect(0, 0, 10, 10), &painter, isselected, isEnable); m_delegate->refreshDebItemStatus(2, QRect(0, 0, 10, 10), &painter, isselected, isEnable); m_delegate->refreshDebItemStatus(4, QRect(0, 0, 10, 10), &painter, isselected, isEnable); m_delegate->refreshDebItemStatus(0, QRect(0, 0, 10, 10), &painter, isselected, isEnable); EXPECT_TRUE(isselected); EXPECT_TRUE(isEnable); } QVariant stud_data(int role) { return Pkg::PackageOperationStatus::Waiting; } TEST_F(ut_packageslistdelegate_Test, packageslistdelegate_UT_paint) { PackagesListDelegate *delegate = new PackagesListDelegate(nullptr, m_listview); QPainter painter(m_listview); QStyleOptionViewItem option; stub.set(ADDR(Backend, init), delegate_backend_init); stub.set(ADDR(PackagesManager, isBackendReady), delegate_backendReady); stub.set(ADDR(DebFile, architecture), delegate_deb_arch_i386); stub.set(ADDR(Backend, architectures), delegate_backend_architectures); stub.set(ADDR(QModelIndex, isValid), delegate_deb_isValid); stub.set(ADDR(DebFile, md5Sum), delegate_deb_md5Sum); stub.set(ADDR(DebFile, installedSize), delegate_deb_installSize); stub.set(ADDR(DebFile, packageName), delegate_deb_packageName); stub.set(ADDR(DebFile, longDescription), delegate_deb_longDescription); stub.set(ADDR(DebFile, version), delegate_deb_version); stub.set(ADDR(PackagesManager, packageWithArch), delegate_packageWithArch); stub.set(ADDR(PackagesManager, removePackage), delegate_checkSystemVersion); stub.set(ADDR(QModelIndex, data), stud_data); stub.set(ADDR(DebFile, conflicts), delegate_deb_conflicts); DebListModel *model = new DebListModel; model->slotAppendPackage(QStringList() << "\n"); model->m_packagesManager->m_preparedPackages.append("deb"); m_listview->setModel(model); QModelIndex index = m_listview->model()->index(0, 0); m_delegate->paint(&painter, option, index); EXPECT_EQ(0, index.row()); } PackageDependsStatus delegate_getPackageDependsStatus(const int index) { Q_UNUSED(index); PackageDependsStatus status; return status; } TEST_F(ut_packageslistdelegate_Test, packageslistdelegate_UT_sizeHint) { PackagesListDelegate *delegate = new PackagesListDelegate(nullptr, m_listview); QStyleOptionViewItem option; stub.set(ADDR(Backend, init), delegate_backend_init); stub.set(ADDR(PackagesManager, isBackendReady), delegate_backendReady); stub.set(ADDR(DebFile, architecture), delegate_deb_arch_i386); stub.set(ADDR(Backend, architectures), delegate_backend_architectures); stub.set(ADDR(DebFile, isValid), delegate_deb_isValid); stub.set(ADDR(DebFile, md5Sum), delegate_deb_md5Sum); stub.set(ADDR(DebFile, installedSize), delegate_deb_installSize); stub.set(ADDR(DebFile, packageName), delegate_deb_packageName); stub.set(ADDR(DebFile, longDescription), delegate_deb_longDescription); stub.set(ADDR(DebFile, version), delegate_deb_version); stub.set(ADDR(PackagesManager, packageWithArch), delegate_packageWithArch); stub.set(ADDR(PackagesManager, removePackage), delegate_checkSystemVersion); stub.set(ADDR(PackagesManager, getPackageDependsStatus), delegate_getPackageDependsStatus); stub.set(ADDR(DebFile, conflicts), delegate_deb_conflicts); DebListModel *model = new DebListModel; model->slotAppendPackage(QStringList() << "\n"); QModelIndex index = model->index(0); m_delegate->getItemHeight(50); m_delegate->sizeHint(option, index); EXPECT_EQ(50, m_delegate->m_itemHeight); } deepin-deb-installer-6.5.5/tests/src/stub.h000066400000000000000000000164231474340456100206130ustar00rootroot00000000000000#ifndef __STUB_H__ #define __STUB_H__ #ifdef _WIN32 //windows #include #include #else //linux #include #include #endif //c #include #include //c++ #include #define ADDR(CLASS_NAME,MEMBER_NAME) (&CLASS_NAME::MEMBER_NAME) /********************************************************** replace function **********************************************************/ #ifdef _WIN32 #define CACHEFLUSH(addr, size) FlushInstructionCache(GetCurrentProcess(), addr, size) #else #define CACHEFLUSH(addr, size) __builtin___clear_cache(addr, addr + size) #endif #if defined(__aarch64__) || defined(_M_ARM64) #define CODESIZE 16U #define CODESIZE_MIN 16U #define CODESIZE_MAX CODESIZE // ldr x9, +8 // br x9 // addr #define REPLACE_FAR(t, fn, fn_stub)\ ((uint32_t*)fn)[0] = 0x58000040 | 9;\ ((uint32_t*)fn)[1] = 0xd61f0120 | (9 << 5);\ *(long long *)(fn + 8) = (long long )fn_stub;\ CACHEFLUSH((char *)fn, CODESIZE); #define REPLACE_NEAR(t, fn, fn_stub) REPLACE_FAR(t, fn, fn_stub) #elif defined(__arm__) || defined(_M_ARM) #define CODESIZE 8U #define CODESIZE_MIN 8U #define CODESIZE_MAX CODESIZE // ldr pc, [pc, #-4] #define REPLACE_FAR(t, fn, fn_stub)\ ((uint32_t*)fn)[0] = 0xe51ff004;\ ((uint32_t*)fn)[1] = (uint32_t)fn_stub;\ CACHEFLUSH((char *)fn, CODESIZE); #define REPLACE_NEAR(t, fn, fn_stub) REPLACE_FAR(t, fn, fn_stub) #elif defined(__thumb__) || defined(_M_THUMB) #error "Thumb is not supported" #else //__i386__ _x86_64__ #define CODESIZE 13U #define CODESIZE_MIN 5U #define CODESIZE_MAX CODESIZE //13 byte(jmp m16:64) //movabs $0x102030405060708,%r11 //jmpq *%r11 #define REPLACE_FAR(t, fn, fn_stub)\ *fn = 0x49;\ *(fn + 1) = 0xbb;\ *(long long *)(fn + 2) = (long long)fn_stub;\ *(fn + 10) = 0x41;\ *(fn + 11) = 0xff;\ *(fn + 12) = 0xe3;\ //CACHEFLUSH((char *)fn, CODESIZE); //5 byte(jmp rel32) #define REPLACE_NEAR(t, fn, fn_stub)\ *fn = 0xE9;\ *(int *)(fn + 1) = (int)(fn_stub - fn - CODESIZE_MIN);\ //CACHEFLUSH((char *)fn, CODESIZE); #endif struct func_stub { char *fn; unsigned char code_buf[CODESIZE]; bool far_jmp; }; class Stub { public: Stub() { #ifdef _WIN32 SYSTEM_INFO sys_info; GetSystemInfo(&sys_info); m_pagesize = sys_info.dwPageSize; #else m_pagesize = sysconf(_SC_PAGE_SIZE); #endif if (m_pagesize < 0) { m_pagesize = 4096; } } ~Stub() { std::map::iterator iter; struct func_stub *pstub; for(iter=m_result.begin(); iter != m_result.end(); iter++) { pstub = iter->second; #ifdef _WIN32 DWORD lpflOldProtect; if(0 != VirtualProtect(pageof(pstub->fn), m_pagesize * 2, PAGE_EXECUTE_READWRITE, &lpflOldProtect)) #else if (0 == mprotect(pageof(pstub->fn), m_pagesize * 2, PROT_READ | PROT_WRITE | PROT_EXEC)) #endif { if(pstub->far_jmp) { std::memcpy(pstub->fn, pstub->code_buf, CODESIZE_MAX); } else { std::memcpy(pstub->fn, pstub->code_buf, CODESIZE_MIN); } #ifdef _WIN32 VirtualProtect(pageof(pstub->fn), m_pagesize * 2, PAGE_EXECUTE_READ, &lpflOldProtect); #else mprotect(pageof(pstub->fn), m_pagesize * 2, PROT_READ | PROT_EXEC); #endif } iter->second = NULL; delete pstub; } return; } template void set(T addr, S addr_stub) { char * fn; char * fn_stub; fn = addrof(addr); fn_stub = addrof(addr_stub); struct func_stub *pstub; pstub = new func_stub; //start pstub->fn = fn; if(distanceof(fn, fn_stub)) { pstub->far_jmp = true; std::memcpy(pstub->code_buf, fn, CODESIZE_MAX); } else { pstub->far_jmp = false; std::memcpy(pstub->code_buf, fn, CODESIZE_MIN); } #ifdef _WIN32 DWORD lpflOldProtect; if(0 == VirtualProtect(pageof(pstub->fn), m_pagesize * 2, PAGE_EXECUTE_READWRITE, &lpflOldProtect)) #else if (-1 == mprotect(pageof(pstub->fn), m_pagesize * 2, PROT_READ | PROT_WRITE | PROT_EXEC)) #endif { throw("stub set memory protect to w+r+x faild"); } if(pstub->far_jmp) { REPLACE_FAR(this, fn, fn_stub); } else { REPLACE_NEAR(this, fn, fn_stub); } #ifdef _WIN32 if(0 == VirtualProtect(pageof(pstub->fn), m_pagesize * 2, PAGE_EXECUTE_READ, &lpflOldProtect)) #else if (-1 == mprotect(pageof(pstub->fn), m_pagesize * 2, PROT_READ | PROT_EXEC)) #endif { throw("stub set memory protect to r+x failed"); } m_result.insert(std::pair(fn,pstub)); return; } template void reset(T addr) { char * fn; fn = addrof(addr); std::map::iterator iter = m_result.find(fn); if (iter == m_result.end()) { return; } struct func_stub *pstub; pstub = iter->second; #ifdef _WIN32 DWORD lpflOldProtect; if(0 == VirtualProtect(pageof(pstub->fn), m_pagesize * 2, PAGE_EXECUTE_READWRITE, &lpflOldProtect)) #else if (-1 == mprotect(pageof(pstub->fn), m_pagesize * 2, PROT_READ | PROT_WRITE | PROT_EXEC)) #endif { throw("stub reset memory protect to w+r+x faild"); } if(pstub->far_jmp) { std::memcpy(pstub->fn, pstub->code_buf, CODESIZE_MAX); } else { std::memcpy(pstub->fn, pstub->code_buf, CODESIZE_MIN); } #ifdef _WIN32 if(0 == VirtualProtect(pageof(pstub->fn), m_pagesize * 2, PAGE_EXECUTE_READ, &lpflOldProtect)) #else if (-1 == mprotect(pageof(pstub->fn), m_pagesize * 2, PROT_READ | PROT_EXEC)) #endif { throw("stub reset memory protect to r+x failed"); } m_result.erase(iter); delete pstub; return; } private: char *pageof(char* addr) { #ifdef _WIN32 return (char *)((unsigned long long)addr & ~(m_pagesize - 1)); #else return (char *)((unsigned long)addr & ~(m_pagesize - 1)); #endif } template char* addrof(T addr) { union { T _s; char* _d; }ut; ut._s = addr; return ut._d; } bool distanceof(char* addr, char* addr_stub) { std::ptrdiff_t diff = addr_stub >= addr ? addr_stub - addr : addr - addr_stub; if((sizeof(addr) > 4) && (((diff >> 31) - 1) > 0)) { return true; } return false; } private: #ifdef _WIN32 //LLP64 long long m_pagesize; #else //LP64 long m_pagesize; #endif std::map m_result; }; #endif deepin-deb-installer-6.5.5/tests/src/test_main.cpp000066400000000000000000000013341474340456100221470ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include using namespace std; #include #include "gtest/gtest.h" #include #include "../deb-installer/model/packageanalyzer.h" #if defined(CMAKE_SAFETYTEST_ARG_ON) #include #endif // gtest的入口函数 int main(int argc, char **argv) { qputenv("QT_QPA_PLATFORM", "offscreen"); QApplication a(argc, argv); PackageAnalyzer::instance().initBackend(); ::testing::InitGoogleTest(&argc, argv); auto c = RUN_ALL_TESTS(); #if defined(CMAKE_SAFETYTEST_ARG_ON) __sanitizer_set_report_path("asan.log"); #endif return c; } deepin-deb-installer-6.5.5/tests/src/uab/000077500000000000000000000000001474340456100202265ustar00rootroot00000000000000deepin-deb-installer-6.5.5/tests/src/uab/ut_uab_backend.cpp000066400000000000000000000125141474340456100236630ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include #include "../stub.h" #include "../deb-installer/uab/uab_backend.h" class utDebBackend : public ::testing::Test { protected: void SetUp() override; void TearDown() override; }; void utDebBackend::SetUp() { } void utDebBackend::TearDown() { } static QByteArray kUabJsonDataExample { "{" " \"digest\": \"319c85...\"," " \"layers\": [" " {" " \"info\": {" " \"kind\": \"runtime\"" " }" " }," " {" " \"info\": {" " \"arch\": [" " \"x86_64\"" " ]," " \"base\": \"main:org.deepin.foundation/23.0.0/x86_64\"," " \"channel\": \"main\"," " \"command\": [" " \"dde-calendar\"" " ]," " \"description\": \"calendar for deepin os.\n\"," " \"id\": \"org.dde.calendar\"," " \"kind\": \"app\"," " \"module\": \"binary\"," " \"name\": \"dde-calendar\"," " \"runtime\": \"main:org.deepin.Runtime/23.0.1/x86_64\"," " \"schema_version\": \"1.0\"," " \"size\": 51503113," " \"version\": \"5.1.2.1\"" " }," " \"minified\": false" " }" " ]" "}" }; Uab::UabPkgInfo::Ptr createPtr(const QString &id, const QString &version) { auto ptr = Uab::UabPkgInfo::Ptr::create(); ptr->id = id; ptr->version = version; return ptr; }; void initDataSet(QList &pkgList) { pkgList.append(createPtr("org.deepin.pkg1", "2.0.0")); pkgList.append(createPtr("com.deepin.pkg1", "1.0.2")); pkgList.append(createPtr("com.deepin.pkg1", "1.0.0")); pkgList.append(createPtr("com.deepin.pkg1", "1.0.1")); pkgList.append(createPtr("com.deepin.pkg2", "1.0.0")); } TEST_F(utDebBackend, initSuccess) { Uab::UabBackend *insPtr = Uab::UabBackend::instance(); Uab::UabBackend::backendProcess(insPtr); insPtr->dumpPackageList(); } TEST_F(utDebBackend, sortPackagesNormalSuccess) { QList pkgList; initDataSet(pkgList); Uab::UabBackend::sortPackages(pkgList); EXPECT_EQ(QString("com.deepin.pkg1"), pkgList.first()->id); EXPECT_EQ(QString("1.0.2"), pkgList.first()->version); EXPECT_EQ(QString("com.deepin.pkg2"), pkgList.at(3)->id); EXPECT_EQ(QString("org.deepin.pkg1"), pkgList.last()->id); } TEST_F(utDebBackend, findPackageContainFind) { Uab::UabBackend *insPtr = Uab::UabBackend::instance(); insPtr->m_packageList.clear(); initDataSet(insPtr->m_packageList); Uab::UabBackend::sortPackages(insPtr->m_packageList); auto findPtr = insPtr->findPackage("com.deepin.pkg1"); ASSERT_FALSE(findPtr.isNull()); EXPECT_EQ(findPtr->id, QString("com.deepin.pkg1")); EXPECT_EQ(findPtr->version, QString("1.0.2")); findPtr = insPtr->findPackage("com.deepin.pkg2"); ASSERT_FALSE(findPtr.isNull()); EXPECT_EQ(findPtr->id, QString("com.deepin.pkg2")); EXPECT_EQ(findPtr->version, QString("1.0.0")); findPtr = insPtr->findPackage("org.deepin.pkg1"); ASSERT_FALSE(findPtr.isNull()); EXPECT_EQ(findPtr->id, QString("org.deepin.pkg1")); EXPECT_EQ(findPtr->version, QString("2.0.0")); } TEST_F(utDebBackend, findPackageNotContainNotFind) { Uab::UabBackend *insPtr = Uab::UabBackend::instance(); insPtr->m_packageList.clear(); EXPECT_TRUE(insPtr->findPackage("test").isNull()); } TEST_F(utDebBackend, packageFromMetaJsonNormalSuccess) { Uab::UabBackend *insPtr = Uab::UabBackend::instance(); insPtr->m_supportArchSet.clear(); insPtr->m_supportArchSet.insert("x86_64"); auto uabPtr = insPtr->packageFromMetaJson(kUabJsonDataExample); ASSERT_FALSE(uabPtr.isNull()); EXPECT_EQ(uabPtr->id, QString("org.dde.calendar")); EXPECT_EQ(uabPtr->appName, QString("dde-calendar")); EXPECT_EQ(uabPtr->version, QString("5.1.2.1")); QStringList cmpArch { "x86_64" }; EXPECT_EQ(uabPtr->architecture, cmpArch); } deepin-deb-installer-6.5.5/tests/src/uab/ut_uab_process_controller.cpp000066400000000000000000000026531474340456100262200ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include #include #include "../stub.h" #include "../deb-installer/uab/uab_process_controller.h" #include "../deb-installer/process/Pty.h" class utDebProcessController : public ::testing::Test { protected: void SetUp() override; void TearDown() override; private: Stub utStub; }; void stub_QProcess_start(QProcess::OpenMode mode) { // do nothing } void utDebProcessController::SetUp() { utStub.set((void(QProcess::*)(QProcess::OpenMode))ADDR(QProcess, start), stub_QProcess_start); } void utDebProcessController::TearDown() {} bool stub_isValid_true() { return true; } bool stub_installBackendCliImpl_true(const Uab::UabPackage::Ptr &) { return true; } TEST_F(utDebProcessController, installExecSuccess) { Stub s; s.set(ADDR(Uab::UabPackage, isValid), stub_isValid_true); s.set(ADDR(Uab::UabProcessController, installBackendCliImpl), stub_installBackendCliImpl_true); Uab::UabProcessController uabController; auto uabPtr = Uab::UabPkgInfo::Ptr::create(); uabPtr->filePath = "localtest"; uabController.reset(); uabController.markInstall(Uab::UabPackage::fromInfo(uabPtr)); EXPECT_TRUE(uabController.commitChanges()); EXPECT_TRUE(uabController.m_procFlag.testFlag(Uab::UabProcessController::Processing)); } deepin-deb-installer-6.5.5/tests/src/ut_Head.h000066400000000000000000000004031474340456100211760ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef UT_HEAD_HH #define UT_HEAD_HH #include #include class UT_HEAD : public testing::Test { public: }; #endif deepin-deb-installer-6.5.5/tests/src/ut_singleInstallerApplication.cpp000066400000000000000000000067341474340456100262300ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "../deb-installer/singleInstallerApplication.h" #include "../deb-installer/utils/utils.h" #include "../deb-installer/view/pages/debinstaller.h" #include "../deb-installer/utils/hierarchicalverify.h" #include #include #include #include #include #include void stud_singleaAppProcess(const QCoreApplication &app) { Q_UNUSED(app); } bool stub_SingleInstallerApplication_HierarchicalVerify_Invalid() { return false; } class SingleInstallerApplication_UT : public UT_HEAD { public: // 添加日志 static void SetUpTestCase() { qDebug() << "SetUpTestCase"; } static void TearDownTestCase() { qDebug() << "TearDownTestCase"; } void SetUp() // TEST跑之前会执行SetUp { int a = 1; int &argc = a; char argv[] = "abc"; char argv1[] = "123"; char *pArgv[] = {argv, argv1}; singleInstaller = new SingleInstallerApplication(argc, pArgv); usleep(100 * 1000); qDebug() << "SetUp"; } void TearDown() // TEST跑完之后会执行TearDown { } SingleInstallerApplication *singleInstaller; }; TEST_F(SingleInstallerApplication_UT, UT_SingleInstallerApplication_parseCmdLine) { Stub stub; stub.set((void(QCommandLineParser::*)(const QCoreApplication &))ADDR(QCommandLineParser, process), stud_singleaAppProcess); singleInstaller->m_selectedFiles.append(" "); EXPECT_TRUE(singleInstaller->parseCmdLine()); QStringList debPathList; singleInstaller->InstallerDeb(debPathList); EXPECT_EQ(0, debPathList.size()); debPathList.append("test.deb"); singleInstaller->InstallerDeb(debPathList); EXPECT_EQ(1, debPathList.size()); } TEST_F(SingleInstallerApplication_UT, UT_SingleInstallerApplication_activateWindow) { singleInstaller->m_selectedFiles.append(" "); singleInstaller->activateWindow(); EXPECT_TRUE(singleInstaller->m_qspMainWnd.get()->isVisible()); } TEST_F(SingleInstallerApplication_UT, UT_SingleInstallerApplication_checkInstallStatus) { singleInstaller->activateWindow(); EXPECT_EQ(0, singleInstaller->checkInstallStatus("test.db")); } TEST_F(SingleInstallerApplication_UT, UT_SingleInstallerApplication_checkDependsStatus) { singleInstaller->activateWindow(); EXPECT_EQ(2, singleInstaller->checkDependsStatus("test.db")); } TEST_F(SingleInstallerApplication_UT, UT_SingleInstallerApplication_checkDigitalSignature) { Stub stub; stub.set(ADDR(HierarchicalVerify, isValid), stub_SingleInstallerApplication_HierarchicalVerify_Invalid); singleInstaller->activateWindow(); EXPECT_EQ(0, singleInstaller->checkDigitalSignature("test.db")); } TEST_F(SingleInstallerApplication_UT, UT_SingleInstallerApplication_getPackageInfo) { singleInstaller->activateWindow(); EXPECT_EQ(QString(""), singleInstaller->getPackageInfo("test.db")); } TEST_F(SingleInstallerApplication_UT, UT_SingleInstallerApplication_InstallerDebPackge) { singleInstaller->activateWindow(); EXPECT_EQ(QString("You can only install local deb packages"), singleInstaller->InstallerDebPackge("test.db")); } TEST_F(SingleInstallerApplication_UT, UT_SingleInstallerApplication_unInstallDebPackge) { singleInstaller->activateWindow(); EXPECT_EQ(QString("currentdeb not install, uninstall package faild"), singleInstaller->unInstallDebPackge("test.db")); } deepin-deb-installer-6.5.5/tests/src/utils/000077500000000000000000000000001474340456100206175ustar00rootroot00000000000000deepin-deb-installer-6.5.5/tests/src/utils/ut_hierarchicalverify.cpp000066400000000000000000000101361474340456100256770ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "../deb-installer/utils/hierarchicalverify.h" #include #include #include #include class ut_HierarchicalVerify_TEST : public ::testing::Test { protected: void SetUp(); void TearDown(); }; void ut_HierarchicalVerify_TEST::SetUp() { HierarchicalVerify::instance()->interfaceInvalid = false; } void ut_HierarchicalVerify_TEST::TearDown() { HierarchicalVerify::instance()->invalidPackages.clear(); } // Stub functions. bool stub_checkHierarchicalInterface_true() { return true; } bool stub_dbus_isValid_false() { return false; } static bool stub_switchValid = true; bool stub_checkHierarchicalInterface_switch() { return stub_switchValid; } TEST_F(ut_HierarchicalVerify_TEST, isValid_WithInterface_True) { Stub stub; stub.set(ADDR(HierarchicalVerify, checkHierarchicalInterface), stub_checkHierarchicalInterface_true); ASSERT_TRUE(HierarchicalVerify::instance()->checkValidImpl()); } TEST_F(ut_HierarchicalVerify_TEST, isValid_NoInterface_False) { HierarchicalVerify::instance()->interfaceInvalid = false; ASSERT_FALSE(HierarchicalVerify::instance()->isValid()); } TEST_F(ut_HierarchicalVerify_TEST, checkTransactionError_TestRegExp_True) { auto hVerify = HierarchicalVerify::instance(); ASSERT_TRUE(hVerify->checkTransactionError("pkg", "deepinhook65280")); ASSERT_TRUE(hVerify->checkTransactionError("pkg", "\r\ndeepindeehook+++65280\n")); ASSERT_TRUE(hVerify->checkTransactionError("pkg2", "deepinhookhook65280")); ASSERT_TRUE(hVerify->checkTransactionError("pkg2", "Error:deepin hook exit code 65280")); // 1071 调整错误码为 256 ASSERT_TRUE(hVerify->checkTransactionError("pkg2", "deepinhookhook256")); ASSERT_TRUE(hVerify->checkTransactionError("pkg2", "Error:deepin hook exit code 256")); ASSERT_TRUE(hVerify->checkTransactionError("pkg2", "执行钩子 if test -x /usr/sbin/deepin-pkg-install-hook;then /usr/sbin/deepin-pkg " "install-hook -e hc-verifysign;fi 出错,退出状态为 256")); QSet pkgSet{"pkg", "pkg2"}; ASSERT_EQ(hVerify->invalidPackages, pkgSet); } TEST_F(ut_HierarchicalVerify_TEST, checkTransactionError_TestRegExp_False) { auto hVerify = HierarchicalVerify::instance(); ASSERT_FALSE(hVerify->checkTransactionError("pkg", "")); ASSERT_FALSE(hVerify->checkTransactionError("pkg", "deepihoo65280")); ASSERT_FALSE(hVerify->checkTransactionError("pkg", "\r\ndeepin\ndeehook+++65280\n")); ASSERT_FALSE(hVerify->checkTransactionError("pkg2", "deepinh-ookh-ook65280")); ASSERT_FALSE(hVerify->checkTransactionError("pkg2", "Error:deepin hook \n exit code 65280")); // 1071 调整错误码为 256 ASSERT_FALSE(hVerify->checkTransactionError("pkg2", "deepinhookhook25")); ASSERT_FALSE(hVerify->checkTransactionError("pkg2", "Error:deepin hook exit code 255")); ASSERT_FALSE(hVerify->checkTransactionError("pkg2", "执行钩子 if test -x /usr/sbin/deepin-pkg-install-hook;then /usr/sbin/deepin-pkg " "install-hook -e hc-verifysign;fi 出错,退出状态为 \n测试代码")); ASSERT_FALSE(hVerify->checkTransactionError("pkg2", "执行钩子 if test -x /usr/sbin/deepin-pkg-install-hook;then /usr/sbin/deepin-pkg " "install-hook -e hc-verifysign;fi 出错,退出状态为 xxx")); ASSERT_TRUE(hVerify->invalidPackages.isEmpty()); } TEST_F(ut_HierarchicalVerify_TEST, verifyResult_Store_True) { auto hVerify = HierarchicalVerify::instance(); hVerify->invalidPackages.insert("deb"); // Passed when not contains invalid package name. ASSERT_TRUE(hVerify->pkgVerifyPassed("")); ASSERT_FALSE(hVerify->pkgVerifyPassed("deb")); hVerify->clearVerifyResult(); ASSERT_TRUE(hVerify->pkgVerifyPassed("deb")); } deepin-deb-installer-6.5.5/tests/src/utils/ut_result.cpp000066400000000000000000000010341474340456100233470ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include "../src/deb-installer/utils/result.h" #include typedef Result TestResult; TEST(Result_Test, Result_UT_001) { TestResult t = TestResult::err("test"); } TEST(Result_Test, Result_UT_002) { TestResult t = TestResult::err("test"); t.err("test"); t.unwrap(); } TEST(Result_Test, Result_UT_003) { Result t(true, "QString"); t.is_ok(); } deepin-deb-installer-6.5.5/tests/src/utils/ut_utils.cpp000066400000000000000000000222361474340456100232000ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include "../deb-installer/utils/utils.h" #include #include #include #include #include #include #include DWIDGET_USE_NAMESPACE QString stud_family() { return "test"; } TEST(Utils_Test, Utils_UT_loadFontFamilyByType) { Stub stub; stub.set(ADDR(QFont, family), stud_family); Utils::loadFontFamilyByType(Utils::SourceHanSansMedium); EXPECT_EQ("test", Utils::loadFontFamilyByType(Utils::SourceHanSansMedium)); } TEST(Utils_Test, Utils_UT_loadFontBySizeAndWeight) { QString mediumFontFamily = Utils::loadFontFamilyByType(Utils::SourceHanSansMedium); int fontsize = 14; QFont pkg_name_font = Utils::loadFontBySizeAndWeight(mediumFontFamily, fontsize, QFont::Medium); EXPECT_EQ(14, fontsize); } void util_setFont(const QFont &) { return; } void util_bind(QWidget *, DFontSizeManager::SizeType, int) { return; } TEST(Utils_Test, Utils_UT_bindFontBySizeAndWeight) { Stub stub; QString fontFamily = Utils::loadFontFamilyByType(Utils::SourceHanSansMedium); QWidget *widget = nullptr; stub.set(ADDR(QWidget, setFont), util_setFont); stub.set((void(DFontSizeManager::*)(QWidget *, DFontSizeManager::SizeType, int))ADDR(DFontSizeManager, bind), util_bind); Utils::bindFontBySizeAndWeight(widget, fontFamily, 14, QFont::Medium); EXPECT_EQ(nullptr, widget); } TEST(Utils_Test, Utils_UT_fromSpecialEncoding) { ASSERT_STREQ(Utils::fromSpecialEncoding("name").toLocal8Bit(), "name"); } TEST(Utils_Test, Utils_UT_Return_Digital_Verify_00) { ASSERT_FALSE(Utils::Return_Digital_Verify("strfilepath", "strfilename")); } bool utils_exits() { return true; } void util_setFilter(QDir::Filters filter) { Q_UNUSED(filter); return; } QFileInfoList utils_entryInfoList(QDir::Filters filters = QDir::NoFilter, QDir::SortFlags sort = QDir::NoSort) { Q_UNUSED(filters); Q_UNUSED(sort); QList list; QFileInfo info; info.setFile("deepin-deb-verify"); list << info; return list; } TEST(Utils_Test, Utils_UT_Return_Digital_Verify_01) { Stub stub; stub.set((bool(QDir::*)() const)ADDR(QDir, exists), utils_exits); stub.set((QFileInfoList(QDir::*)(const QStringList &, QDir::Filters, QDir::SortFlags) const)ADDR(QDir, entryInfoList), utils_entryInfoList); stub.set((void(QDir::*)(QDir::Filters))ADDR(QDir, setFilter), util_setFilter); ASSERT_TRUE(Utils::Return_Digital_Verify("strfilepath", "deepin-deb-verify")); } void util_proc_start(const QString &program, const QStringList &arguments, QIODevice::OpenModeFlag mode) { Q_UNUSED(program); Q_UNUSED(arguments); Q_UNUSED(mode); return; } QByteArray util_readAllStandardOutput_success() { return "[INFO] signature verified!"; } QByteArray util_readAllStandardOutput_DebfileInexistence() { return "cannot find signinfo in deb file"; } QByteArray util_readAllStandardOutput_ExtractDebFail() { return "extract deb_file failed!"; } QByteArray util_readAllStandardOutput_DebVerifyFail() { return "verify deb file failed!"; } TEST(Utils_Test, Utils_UT_Digital_Verify_DebfileInexistence) { Stub stub; stub.set((bool(QDir::*)() const)ADDR(QDir, exists), utils_exits); stub.set((QFileInfoList(QDir::*)(const QStringList &, QDir::Filters, QDir::SortFlags) const)ADDR(QDir, entryInfoList), utils_entryInfoList); stub.set((void(QDir::*)(QDir::Filters))ADDR(QDir, setFilter), util_setFilter); stub.set((void(QProcess::*)(const QString &, const QStringList &, QIODevice::OpenMode))ADDR(QProcess, start), util_proc_start); stub.set(ADDR(QProcess, readAllStandardOutput), util_readAllStandardOutput_DebfileInexistence); stub.set(ADDR(QProcess, readAllStandardError), util_readAllStandardOutput_DebfileInexistence); ASSERT_EQ(Utils::Digital_Verify("strfilepath"), Utils::DebfileInexistence); } TEST(Utils_Test, Utils_UT_Digital_Verify_ExtractDebFail) { Stub stub; stub.set((bool(QDir::*)() const)ADDR(QDir, exists), utils_exits); stub.set((QFileInfoList(QDir::*)(const QStringList &, QDir::Filters, QDir::SortFlags) const)ADDR(QDir, entryInfoList), utils_entryInfoList); stub.set((void(QDir::*)(QDir::Filters))ADDR(QDir, setFilter), util_setFilter); stub.set((void(QProcess::*)(const QString &, const QStringList &, QIODevice::OpenMode))ADDR(QProcess, start), util_proc_start); stub.set(ADDR(QProcess, readAllStandardOutput), util_readAllStandardOutput_ExtractDebFail); stub.set(ADDR(QProcess, readAllStandardError), util_readAllStandardOutput_ExtractDebFail); ASSERT_EQ(Utils::Digital_Verify("strfilepath"), Utils::ExtractDebFail); } TEST(Utils_Test, Utils_UT_Digital_Verify_DebVerifyFail) { Stub stub; stub.set((bool(QDir::*)() const)ADDR(QDir, exists), utils_exits); stub.set((QFileInfoList(QDir::*)(const QStringList &, QDir::Filters, QDir::SortFlags) const)ADDR(QDir, entryInfoList), utils_entryInfoList); stub.set((void(QDir::*)(QDir::Filters))ADDR(QDir, setFilter), util_setFilter); stub.set((void(QProcess::*)(const QString &, const QStringList &, QIODevice::OpenMode))ADDR(QProcess, start), util_proc_start); stub.set(ADDR(QProcess, readAllStandardOutput), util_readAllStandardOutput_DebVerifyFail); stub.set(ADDR(QProcess, readAllStandardError), util_readAllStandardOutput_DebVerifyFail); ASSERT_EQ(Utils::Digital_Verify("strfilepath"), Utils::DebVerifyFail); } TEST(Utils_Test, Utils_UT_Digital_Verify) { Stub stub; stub.set((bool(QDir::*)() const)ADDR(QDir, exists), utils_exits); stub.set((QFileInfoList(QDir::*)(const QStringList &, QDir::Filters, QDir::SortFlags) const)ADDR(QDir, entryInfoList), utils_entryInfoList); stub.set((void(QDir::*)(QDir::Filters))ADDR(QDir, setFilter), util_setFilter); stub.set((void(QProcess::*)(const QString &, const QStringList &, QIODevice::OpenMode))ADDR(QProcess, start), util_proc_start); stub.set(ADDR(QProcess, readAllStandardOutput), util_readAllStandardOutput_success); stub.set(ADDR(QProcess, readAllStandardError), util_readAllStandardOutput_success); ASSERT_EQ(Utils::Digital_Verify("strfilepath"), Utils::VerifySuccess); } TEST(Utils_Test, Utils_UT_holdTextInRect) { QFont font; QString info = "(Reading database ... 272597 files and directories currently installed.)"; QString str = Utils::holdTextInRect(font, info, QSize(30, 600)); ASSERT_TRUE(str.contains("\n")); } TEST(Utils_Test, Utils_UT_0012) { QFont font; QString info = "(Reading database ... 272597 files and directories currently installed.)"; QString str = Utils::holdTextInRect(font, info, 30); ASSERT_TRUE(str.contains("\n")); } TEST(Utils_Test, Utils_UT_0013) { Utils util; } TEST(Utils_Test, Utils_UT_DebApplicationHelper) { DebApplicationHelper *helper = DebApplicationHelper::instance(); Q_UNUSED(helper); } TEST(Utils_Test, Utils_UT_standardPalette) { DebApplicationHelper *helper = DebApplicationHelper::instance(); helper->standardPalette(DGuiApplicationHelper::LightType); } void util_setPalette(const QPalette &) { return; } bool util_setProperty(const char *, const QVariant &) { return true; } TEST(Utils_Test, Utils_UT_setPalette) { Stub stub; stub.set(ADDR(QWidget, setPalette), util_setPalette); #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) stub.set(ADDR(QWidget, setProperty), util_setProperty); #endif DebApplicationHelper *helper = DebApplicationHelper::instance(); QWidget *w = nullptr; DPalette pa; helper->setPalette(w, pa); } void util_setAttribute(Qt::WidgetAttribute, bool) { return; } TEST(Utils_Test, Utils_UT_resetPalette) { Stub stub; #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) stub.set(ADDR(QWidget, setProperty), util_setProperty); #endif stub.set(ADDR(QWidget, setAttribute), util_setAttribute); DebApplicationHelper *helper = DebApplicationHelper::instance(); QWidget *w = nullptr; DPalette pa; helper->resetPalette(w); } QString stub_storageinfo_device_gvfs() { return "gvfsd-fuse"; } TEST(Utils_Test, checkPackageReadable_deviceError_fail) { Stub stub; stub.set(ADDR(QStorageInfo, device), stub_storageinfo_device_gvfs); EXPECT_FALSE(Pkg::PkgReadable == Utils::checkPackageReadable("/tmp")); } bool stub_file_isOpen_failed() { return false; } TEST(Utils_Test, checkPackageReadable_readError_fail) { Stub stub; stub.set(ADDR(QFile, isOpen), stub_file_isOpen_failed); QTemporaryFile tempFile; tempFile.open(); tempFile.close(); // This string is null before the QTemporaryFile is opened QString tmpFilePath = tempFile.fileName(); EXPECT_FALSE(Pkg::PkgReadable == Utils::checkPackageReadable(tmpFilePath)); } TEST(Utils_Test, checkPackageReadable_normal_success) { QTemporaryFile tempFile; tempFile.open(); tempFile.close(); // This string is null before the QTemporaryFile is opened QString tmpFilePath = tempFile.fileName(); EXPECT_TRUE(Pkg::PkgReadable == Utils::checkPackageReadable(tmpFilePath)); } deepin-deb-installer-6.5.5/tests/src/view/000077500000000000000000000000001474340456100204315ustar00rootroot00000000000000deepin-deb-installer-6.5.5/tests/src/view/pages/000077500000000000000000000000001474340456100215305ustar00rootroot00000000000000deepin-deb-installer-6.5.5/tests/src/view/pages/ut_AptConfigMessage.cpp000066400000000000000000000031511474340456100261230ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "../deb-installer/view/pages/AptConfigMessage.h" #include "../deb-installer/view/widgets/ShowInstallInfoTextEdit.h" #include #include #include #include class AptConfigMessage_UT : public UT_HEAD { public: // 添加日志 static void SetUpTestCase() { qDebug() << "SetUpTestCase"; } static void TearDownTestCase() { qDebug() << "TearDownTestCase"; } void SetUp() // TEST跑之前会执行SetUp { aptConfig = new AptConfigMessage(); usleep(100 * 1000); qDebug() << "SetUp"; } void TearDown() // TEST跑完之后会执行TearDown { delete aptConfig; } AptConfigMessage *aptConfig; }; TEST_F(AptConfigMessage_UT, UT_AptConfigMessage_clearTexts) { aptConfig->clearTexts(); EXPECT_TRUE(aptConfig->m_inputEdit->text().isEmpty()); EXPECT_TRUE(aptConfig->m_textEdit->m_editor->toPlainText().isEmpty()); } TEST_F(AptConfigMessage_UT, UT_AptConfigMessage_appendTextEdit) { aptConfig->appendTextEdit("test"); aptConfig->appendTextEdit("test\\n"); EXPECT_NE(4, aptConfig->m_textEdit->m_editor->toPlainText().size()); } TEST_F(AptConfigMessage_UT, UT_AptConfigMessage_dealInput) { aptConfig->dealInput(); aptConfig->m_inputEdit->setText("test"); aptConfig->dealInput(); EXPECT_TRUE(aptConfig->m_inputEdit->text().isEmpty()); } TEST_F(AptConfigMessage_UT, paintEvent_UT) { QPaintEvent paint(QRect(aptConfig->rect())); aptConfig->paintEvent(&paint); } deepin-deb-installer-6.5.5/tests/src/view/pages/ut_backendprocesspage.cpp000066400000000000000000000027061474340456100265740ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include #include #include #include #define private public #include "../deb-installer/view/pages/backendprocesspage.h" #include "../deb-installer/view/widgets/noprocesswidget.h" #include "../deb-installer/view/widgets/processwidget.h" class ut_backendProcessPage_TEST : public ::testing::Test { // Test interface protected: void SetUp() { w = new BackendProcessPage; } void TearDown() { delete w; } private: BackendProcessPage *w; }; TEST_F(ut_backendProcessPage_TEST, BackendProcessPage_UT_setDisplayPage_0) { w->setDisplayPage(BackendProcessPage::APT_INIT); ASSERT_EQ(w->allLayout->currentWidget(), w->noProcessWidget); } TEST_F(ut_backendProcessPage_TEST, BackendProcessPage_UT_setDisplayPage_1) { w->setDisplayPage(BackendProcessPage::READ_PKG); ASSERT_EQ(w->allLayout->currentWidget(), w->processWidget); } TEST_F(ut_backendProcessPage_TEST, BackendProcessPage_UT_setDisplayPage_2) { w->setDisplayPage(BackendProcessPage::PROCESS_FIN); ASSERT_EQ(w->noProcessWidget->spinner->isPlaying(), false); } TEST_F(ut_backendProcessPage_TEST, BackendProcessPage_UT_setPkgProcessRate) { w->setPkgProcessRate(1, 10); ASSERT_EQ(w->processWidget->processBar->value(), 1); ASSERT_EQ(w->processWidget->processBar->maximum(), 10); } deepin-deb-installer-6.5.5/tests/src/view/pages/ut_ddimerrorpage.cpp000066400000000000000000000011721474340456100255710ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include #include #define private public #include "../deb-installer/view/pages/ddimerrorpage.h" class ut_ddimErrorPage_TEST : public ::testing::Test { // Test interface protected: void SetUp() { w = new DdimErrorPage; } void TearDown() { delete w; } private: DdimErrorPage *w; }; TEST_F(ut_ddimErrorPage_TEST, DdimErrorPage_UT_setErrorMessage) { w->setErrorMessage("123321"); ASSERT_EQ(w->errorMessageLabel->text() == "123321", true); } deepin-deb-installer-6.5.5/tests/src/view/pages/ut_debinstaller.cpp000066400000000000000000000241671474340456100254260ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "../deb-installer/view/pages/debinstaller.h" #include "../deb-installer/model/deblistmodel.h" #include "../deb-installer/model/proxy_package_list_model.h" #include "../deb-installer/view/pages/multipleinstallpage.h" #include "../deb-installer/view/pages/singleinstallpage.h" #include "../deb-installer/view/widgets/filechoosewidget.h" #include "../deb-installer/view/widgets/choosefilebutton.h" #include "../deb-installer/manager/packagesmanager.h" #include "../deb-installer/view/widgets/infocontrolbutton.h" #include #include #include #include #include #include #include #include #include #include using namespace QApt; void stud_removePackage(DebListModel *, int idx) { Q_UNUSED(idx); } void stud_installDebs() {} bool stud_checkSuffix(QString filePath) { Q_UNUSED(filePath); return true; } void stud_appendPackage(DebListModel *, const QStringList &package) { Q_UNUSED(package); } void stud_refreshModel() {} void stud_uninstallCurrentPackage() {} QString stud_packageName() { return QString("test.deb"); }; QString stud_version() { return QString("1.0.0"); }; QString stud_longDescription() { return QString("This is test"); }; const QList stud_preparedPackages() { return QList{"test.deb"}; } void stud_afterGetAutherFalse() {} void stud_setEnableButton(bool bEnable) { Q_UNUSED(bEnable); } void stud_DealDependResult(int iAuthRes, QString dependName) { Q_UNUSED(iAuthRes); Q_UNUSED(dependName); } bool stud_isFile() { return true; } bool stud_run() { return true; } bool stud_reloadCache() { return true; } void stud_reset(DebListModel *) {} void stud_appendNoThread(QStringList packages, int allPackageSize) { Q_UNUSED(packages); Q_UNUSED(allPackageSize); } class UT_Debinstaller : public UT_HEAD { public: // 添加日志 static void SetUpTestCase() { qDebug() << "SetUpTestCase"; } static void TearDownTestCase() { qDebug() << "TearDownTestCase"; } void SetUp() // TEST跑之前会执行SetUp { Stub stub; stub.set(ADDR(Backend, init), stud_run); stub.set(ADDR(PackagesManager, appendNoThread), stud_appendNoThread); deb = new DebInstaller(); proxyModel = qobject_cast(deb->m_fileListModel); debListModel = qobject_cast(proxyModel->modelFromType(Pkg::Deb)); usleep(1000 * 1000); qDebug() << "SetUp"; } void TearDown() // TEST跑完之后会执行TearDown { delete deb; } DebInstaller *deb{nullptr}; ProxyPackageListModel *proxyModel{nullptr}; DebListModel *debListModel{nullptr}; }; void stub_enableCloseAndExit() { return; } TEST_F(UT_Debinstaller, UT_Debinstaller_total) { deb->slotShowInvalidePackageMessage(Pkg::Deb); deb->slotShowPkgExistMessage(); deb->slotShowNotLocalPackageMessage(Pkg::Deb); deb->slotShowPkgRemovedMessage("00"); EXPECT_EQ(deb->backToSinglePage(), nullptr); } TEST_F(UT_Debinstaller, UT_Debinstaller_refreshSingle) { deb->refreshSingle(); EXPECT_EQ(2, deb->m_dragflag); EXPECT_EQ(2, deb->m_Filterflag); EXPECT_TRUE(!deb->m_lastPage.isNull()); } TEST_F(UT_Debinstaller, UT_Debinstaller_slotEnableCloseButton) { deb->slotEnableCloseButton(false); EXPECT_TRUE(deb->titlebar()->quitMenuIsDisabled()); deb->slotEnableCloseButton(true); EXPECT_FALSE(deb->titlebar()->quitMenuIsDisabled()); deb->refreshMulti(); EXPECT_EQ(1, deb->m_dragflag); } TEST_F(UT_Debinstaller, UT_Debinstaller_slotSetAuthingStatus) { bool auth = false; deb->slotSetAuthingStatus(auth); EXPECT_FALSE(auth); } TEST_F(UT_Debinstaller, UT_Debinstaller_single2Multi) { deb->single2Multi(); EXPECT_TRUE(debListModel->m_packageOperateStatus.isEmpty()); EXPECT_EQ(1, deb->m_Filterflag); EXPECT_EQ(1, deb->m_dragflag); } TEST_F(UT_Debinstaller, UT_Debinstaller_slotChangeDragFlag) { deb->slotChangeDragFlag(); EXPECT_EQ(0, deb->m_dragflag); } TEST_F(UT_Debinstaller, UT_Debinstaller_slotDealDependResult) { deb->slotDealDependResult(DebListModel::AuthDependsSuccess, "test"); EXPECT_TRUE(debListModel->m_packageOperateStatus.isEmpty()); deb->slotDealDependResult(DebListModel::AuthBefore, "test"); } TEST_F(UT_Debinstaller, UT_Debinstaller_slotSetEnableButton) { deb->m_dragflag = 2; deb->slotSetEnableButton(true); deb->slotSetEnableButton(false); deb->slotShowHiddenButton(); EXPECT_FALSE(deb->m_packageAppending); EXPECT_EQ(2, deb->m_dragflag); deb->m_dragflag = 1; deb->slotSetEnableButton(true); deb->slotSetEnableButton(false); deb->slotShowHiddenButton(); EXPECT_FALSE(deb->m_packageAppending); EXPECT_EQ(1, deb->m_dragflag); EXPECT_TRUE(debListModel->m_packageOperateStatus.isEmpty()); deb->m_packageAppending = true; deb->slotSetEnableButton(true); EXPECT_TRUE(deb->m_packageAppending); } TEST_F(UT_Debinstaller, UT_Debinstaller_appendPackageStart) { deb->appendPackageStart(); EXPECT_TRUE(deb->m_packageAppending); deb->appendFinished(); EXPECT_FALSE(deb->m_packageAppending); } TEST_F(UT_Debinstaller, UT_Debinstaller_slotPackagesSelected) { deb->m_fileListModel->setWorkerStatus(DebListModel::WorkerProcessing); deb->slotPackagesSelected(QStringList() << "test.deb" << "test1.deb"); EXPECT_EQ(DebListModel::WorkerProcessing, deb->m_fileListModel->getWorkerStatus()); } TEST_F(UT_Debinstaller, UT_Debinstaller_slotPackagesSelected_01) { deb->m_fileListModel->setWorkerStatus(DebListModel::WorkerFinished); deb->slotPackagesSelected(QStringList() << "test.deb"); EXPECT_EQ(DebListModel::WorkerFinished, deb->m_fileListModel->getWorkerStatus()); } TEST_F(UT_Debinstaller, UT_Debinstaller_slotShowUninstallConfirmPage) { deb->slotShowUninstallConfirmPage(); EXPECT_EQ(DebListModel::WorkerUnInstall, deb->m_fileListModel->getWorkerStatus()); EXPECT_EQ(3, deb->m_Filterflag); } TEST_F(UT_Debinstaller, UT_Debinstaller_slotUninstallAccepted) { deb->m_dragflag = 1; deb->slotUninstallAccepted(); EXPECT_TRUE(deb->m_fileChooseWidget->acceptDrops()); EXPECT_EQ(-1, deb->m_Filterflag) << deb->m_Filterflag; } TEST_F(UT_Debinstaller, UT_Debinstaller_slotUninstallCancel) { deb->m_dragflag = 1; deb->slotUninstallCancel(); EXPECT_EQ(DebListModel::WorkerPrepare, deb->m_fileListModel->getWorkerStatus()); EXPECT_EQ(1, deb->m_Filterflag); } TEST_F(UT_Debinstaller, UT_Debinstaller_slotReset) { Stub stub; stub.set(ADDR(DebInstaller, checkSuffix), stud_checkSuffix); stub.set((void (*)(DebListModel *, const QStringList &))(&DebListModel::slotAppendPackage), stud_appendPackage); stub.set(ADDR(DebListModel, preparedPackages), stud_preparedPackages); stub.set((void (*)(DebListModel *, int))(&DebListModel::removePackage), stud_removePackage); stub.set((void (*)(DebListModel *))(&DebListModel::reset), stud_reset); stub.set(ADDR(DebListModel, initPrepareStatus), stud_reset); stub.set(ADDR(DebListModel, installDebs), stud_installDebs); stub.set(ADDR(MultipleInstallPage, refreshModel), stud_refreshModel); stub.set(ADDR(MultipleInstallPage, setEnableButton), stud_setEnableButton); stub.set(ADDR(MultipleInstallPage, DealDependResult), stud_DealDependResult); stub.set(ADDR(MultipleInstallPage, afterGetAutherFalse), stud_afterGetAutherFalse); stub.set(ADDR(SingleInstallPage, slotUninstallCurrentPackage), stud_uninstallCurrentPackage); stub.set(ADDR(SingleInstallPage, afterGetAutherFalse), stud_afterGetAutherFalse); stub.set(ADDR(SingleInstallPage, setEnableButton), stud_setEnableButton); stub.set(ADDR(SingleInstallPage, DealDependResult), stud_DealDependResult); stub.set(ADDR(DebFile, packageName), stud_packageName); stub.set(ADDR(DebFile, version), stud_version); stub.set(ADDR(DebFile, longDescription), stud_longDescription); stub.set(ADDR(Backend, reloadCache), stud_reloadCache); deb->slotReset(); EXPECT_EQ(-1, deb->m_dragflag); EXPECT_EQ(-1, deb->m_Filterflag); EXPECT_EQ(DebListModel::WorkerPrepare, deb->m_fileListModel->m_workerStatus); EXPECT_TRUE(deb->m_fileChooseWidget->acceptDrops()); EXPECT_FALSE(deb->m_fileChooseWidget->m_chooseFileBtn->hasFocus()); } TEST_F(UT_Debinstaller, UT_Debinstaller_checkSuffix) { Stub stub; stub.set(ADDR(QFileInfo, isFile), stud_isFile); EXPECT_EQ(deb->checkSuffix("test.deb"), true); EXPECT_EQ(deb->checkSuffix("test"), false); } TEST_F(UT_Debinstaller, UT_Debinstaller_keyPressEvent) { QKeyEvent keyPressEvent(QEvent::KeyPress, Qt::Key_Escape, Qt::NoModifier); QCoreApplication::sendEvent(deb, &keyPressEvent); } bool ut_hasUrls() { return true; } TEST_F(UT_Debinstaller, UT_Debinstaller_dragEnterEvent) { QMimeData *mimeData = new QMimeData; Stub stub; stub.set(ADDR(QMimeData, hasUrls), ut_hasUrls); QDragEnterEvent enterEvent(QPoint(0, 0), Qt::MoveAction, mimeData, Qt::LeftButton, Qt::NoModifier); QCoreApplication::sendEvent(deb, &enterEvent); EXPECT_TRUE(deb->m_fileChooseWidget->acceptDrops()); delete mimeData; } TEST_F(UT_Debinstaller, UT_Debinstaller_dragMoveEvent) { QMimeData *mimeData = new QMimeData; QDragMoveEvent enterEvent(QPoint(0, 0), Qt::MoveAction, mimeData, Qt::LeftButton, Qt::NoModifier); QCoreApplication::sendEvent(deb, &enterEvent); delete mimeData; } TEST_F(UT_Debinstaller, UT_Debinstaller_dropEvent) { QByteArray csvData = "test"; QMimeData *mimeData = new QMimeData; mimeData->setData("text/csv", csvData); QDropEvent dropEvent(QPoint(0, 0), Qt::MoveAction, mimeData, Qt::LeftButton, Qt::NoModifier); QCoreApplication::sendEvent(deb, &dropEvent); delete mimeData; } TEST_F(UT_Debinstaller, UT_Debinstaller_closeEvent) { QByteArray csvData = "test"; QMimeData *mimeData = new QMimeData; mimeData->setData("text/csv", csvData); QCloseEvent closeEvent; QCoreApplication::sendEvent(deb, &closeEvent); delete mimeData; } deepin-deb-installer-6.5.5/tests/src/view/pages/ut_multipleinstallpage.cpp000066400000000000000000000144321474340456100270270ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "../deb-installer/view/pages/multipleinstallpage.h" #include "../deb-installer/model/deblistmodel.h" #include "../deb-installer/manager/packagesmanager.h" #include "../deb-installer/model/packagelistview.h" #include "../deb-installer/view/widgets/ShowInstallInfoTextEdit.h" #include "../deb-installer/view/widgets/installprocessinfoview.h" #include "../deb-installer/view/widgets/workerprogress.h" #include #include #include #include #include using namespace QApt; bool stud_init() { return true; } int stud_getInstallFileSize() { return 10; } class UT_MultipleInstallPage : public UT_HEAD { public: // 添加日志 static void SetUpTestCase() { qDebug() << "SetUpTestCase"; } static void TearDownTestCase() { qDebug() << "TearDownTestCase"; } void SetUp() // TEST跑之前会执行SetUp { Stub stub; stub.set(ADDR(Backend, init), stud_init); debListModel = new DebListModel(); usleep(100 * 1000); multiplepage = new MultipleInstallPage(debListModel); usleep(100 * 1000); qDebug() << "SetUp"; } void TearDown() // TEST跑完之后会执行TearDown { delete multiplepage; delete debListModel; } MultipleInstallPage *multiplepage; DebListModel *debListModel; }; TEST_F(UT_MultipleInstallPage, UT_MultipleInstallPage_total) { multiplepage->setEnableButton(true); EXPECT_FALSE(multiplepage->m_installButton->isVisible()); multiplepage->refreshModel(); multiplepage->slotHideInfo(); EXPECT_TRUE(multiplepage->m_upDown); EXPECT_FALSE(multiplepage->m_appsListView->hasFocus()); EXPECT_FALSE(multiplepage->m_installProcessInfoView->isVisible()); EXPECT_FALSE(multiplepage->m_appsListViewBgFrame->isVisible()); } TEST_F(UT_MultipleInstallPage, UT_MultipleInstallPage_slotWorkerFinshed) { multiplepage->slotWorkerFinshed(); EXPECT_FALSE(multiplepage->m_acceptButton->isVisible()); EXPECT_FALSE(multiplepage->m_backButton->isVisible()); EXPECT_FALSE(multiplepage->m_processFrame->isVisible()); EXPECT_FALSE(multiplepage->m_appsListView->m_bIsRightMenuShow); } TEST_F(UT_MultipleInstallPage, UT_MultipleInstallPage_slotOutputAvailable) { multiplepage->slotOutputAvailable(""); EXPECT_EQ("", multiplepage->m_installProcessInfoView->m_editor->toPlainText()); EXPECT_FALSE(multiplepage->m_installButton->isVisible()); EXPECT_FALSE(multiplepage->m_infoControlButton->isVisible()); } TEST_F(UT_MultipleInstallPage, UT_MultipleInstallPage_slotProgressChanged) { multiplepage->slotProgressChanged(100); EXPECT_EQ(100, multiplepage->m_progressAnimation->endValue()); multiplepage->m_installProgress->setValue(0); EXPECT_EQ(0, multiplepage->m_progressAnimation->startValue()); } TEST_F(UT_MultipleInstallPage, UT_MultipleInstallPage_slotAutoScrollInstallList) { Stub stub; stub.set(ADDR(DebListModel, getInstallFileSize), stud_getInstallFileSize); multiplepage->slotAutoScrollInstallList(-1); multiplepage->slotAutoScrollInstallList(2); EXPECT_FALSE(multiplepage->m_appsListView->isVisible()); } TEST_F(UT_MultipleInstallPage, UT_MultipleInstallPage_DealDependResult) { multiplepage->DealDependResult(0, "test"); multiplepage->DealDependResult(2, "test"); EXPECT_TRUE(multiplepage->m_installButton->isEnabled()); multiplepage->DealDependResult(3, "test"); multiplepage->DealDependResult(4, "test"); multiplepage->DealDependResult(5, "test"); multiplepage->DealDependResult(6, "test"); multiplepage->DealDependResult(1, "test"); EXPECT_FALSE(multiplepage->m_appsListView->isVisible()); EXPECT_FALSE(multiplepage->m_tipsLabel->isVisible()); EXPECT_FALSE(multiplepage->m_installButton->isVisible()); } TEST_F(UT_MultipleInstallPage, UT_MultipleInstallPage_afterGetAutherFalse) { multiplepage->afterGetAutherFalse(); EXPECT_TRUE(multiplepage->m_infoControlButton->isEnabled()); EXPECT_TRUE(multiplepage->m_appsListView->m_bIsRightMenuShow); EXPECT_FALSE(multiplepage->m_processFrame->isVisible()); EXPECT_FALSE(multiplepage->m_installButton->isVisible()); } TEST_F(UT_MultipleInstallPage, UT_MultipleInstallPage_slotHideDependsInfo) { multiplepage->slotHideDependsInfo(); EXPECT_FALSE(multiplepage->m_appsListView->hasFocus()); EXPECT_FALSE(multiplepage->m_showDependsView->isVisible()); multiplepage->slotShowDependsInfo(); EXPECT_FALSE(multiplepage->m_showDependsView->isVisible()); EXPECT_FALSE(multiplepage->m_appsListView->hasFocus()); } TEST_F(UT_MultipleInstallPage, UT_MultipleInstallPage_slotRequestRemoveItemClicked) { multiplepage->slotRequestRemoveItemClicked(debListModel->index(0)); EXPECT_TRUE(debListModel->isWorkerPrepare()); EXPECT_TRUE(debListModel->m_packageOperateStatus.isEmpty()); EXPECT_FALSE(multiplepage->m_showDependsButton->isVisible()); } TEST_F(UT_MultipleInstallPage, UT_MultipleInstallPage_slotDependPackages) { Pkg::DependInfo info; info.packageName = "libopencl1"; info.version = "1.0"; QList list; list.append(info); QPair, QList> pair; pair.first.append(list); pair.second.append(list); // dependPackages.insert("deb", pair); multiplepage->slotDependPackages(pair, false); EXPECT_EQ(1, pair.first.size()); EXPECT_FALSE(multiplepage->m_showDependsButton->isVisible()); } TEST_F(UT_MultipleInstallPage, UT_MultipleInstallPage_slotShowInfo) { multiplepage->slotShowInfo(); EXPECT_EQ(multiplepage->m_upDown, false); EXPECT_FALSE(multiplepage->m_appsListView->hasFocus()); EXPECT_FALSE(multiplepage->m_installProcessInfoView->isVisible()); EXPECT_FALSE(multiplepage->m_appsListViewBgFrame->isVisible()); } TEST_F(UT_MultipleInstallPage, UT_MultipleInstallPage_slotHiddenCancelButton) { multiplepage->slotHiddenCancelButton(); EXPECT_FALSE(multiplepage->m_installButton->hasFocus()); EXPECT_FALSE(multiplepage->m_appsListView->m_bIsRightMenuShow); EXPECT_FALSE(multiplepage->m_showDependsButton->isVisible()); EXPECT_FALSE(multiplepage->m_installButton->isVisible()); EXPECT_FALSE(multiplepage->m_backButton->isVisible()); } deepin-deb-installer-6.5.5/tests/src/view/pages/ut_packageselectview.cpp000066400000000000000000000041331474340456100264330ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include #include #include #include #include "../deb-installer/view/widgets/packageselectitem.h" #define private public #include "../deb-installer/view/pages/packageselectview.h" class ut_packageSelectView_TEST : public ::testing::Test { // Test interface protected: void SetUp() { w = new PackageSelectView; } void TearDown() { delete w; } private: PackageSelectView *w; }; TEST_F(ut_packageSelectView_TEST, PackageSelectView_UT_flushDebList) { DebIr ir1; DebIr ir2; w->flushDebList({ir1, ir2}); ASSERT_EQ(w->items.size(), 2); } TEST_F(ut_packageSelectView_TEST, PackageSelectView_UT_checkSelect) { DebIr ir1; ir1.archMatched = true; DebIr ir2; ir2.archMatched = false; w->flushDebList({ir1, ir2}); w->checkSelect(); ASSERT_EQ(w->selectAllBox->isChecked(), true); w->items[0]->setChecked(false); w->checkSelect(); ASSERT_EQ(w->selectAllBox->isChecked(), false); } TEST_F(ut_packageSelectView_TEST, PackageSelectView_UT_selectAll) { DebIr ir1; ir1.archMatched = true; DebIr ir2; ir2.archMatched = false; w->flushDebList({ir1, ir2}); w->selectAll(false); ASSERT_EQ(w->selectAllBox->isChecked(), false); w->selectAll(true); ASSERT_EQ(w->selectAllBox->isChecked(), true); } TEST_F(ut_packageSelectView_TEST, PackageSelectView_UT_setHaveMustInstallDeb) { w->setHaveMustInstallDeb(true); ASSERT_EQ(w->installButton->isEnabled(), true); w->setHaveMustInstallDeb(false); ASSERT_EQ(w->installButton->isEnabled(), false); } TEST_F(ut_packageSelectView_TEST, PackageSelectView_UT_onInstallClicked) { QObject::connect( w, &PackageSelectView::packageInstallConfim, [](const QList &indexes) { ASSERT_EQ(indexes.size(), 2); }); DebIr ir1; ir1.archMatched = true; DebIr ir2; ir2.archMatched = true; w->flushDebList({ir1, ir2}); w->installButton->click(); QThread::msleep(50); } deepin-deb-installer-6.5.5/tests/src/view/pages/ut_settingdialog.cpp000066400000000000000000000037041474340456100256050ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "../deb-installer/view/pages/settingdialog.h" #include "../deb-installer/utils/hierarchicalverify.h" #include #include #include DWIDGET_USE_NAMESPACE class UT_SettingDialog : public ::testing::Test { protected: void SetUp() { dialog = new SettingDialog; dialog->show(); } void TearDown() { delete dialog; } private: SettingDialog *dialog; }; TEST_F(UT_SettingDialog, createProceedDefenderSafetyLabel_Pass) { QWidget *w = SettingDialog::createProceedDefenderSafetyLabel(nullptr); DLabel *label = qobject_cast(w); ASSERT_NE(label, nullptr); EXPECT_TRUE(label->text().contains("href='localtest.com'")); delete w; } static bool g_trigger = false; void stub_proceedDefenderSafetyPage() { g_trigger = true; } TEST_F(UT_SettingDialog, linkActivated_Trigger_Pass) { QWidget *w = SettingDialog::createProceedDefenderSafetyLabel(nullptr); DLabel *label = qobject_cast(w); ASSERT_NE(label, nullptr); Stub stub; stub.set(ADDR(HierarchicalVerify, proceedDefenderSafetyPage), stub_proceedDefenderSafetyPage); g_trigger = false; Q_EMIT label->linkActivated(""); EXPECT_TRUE(g_trigger); } TEST_F(UT_SettingDialog, switchHierarchicalNotify_Enable_Pass) { dialog->switchHierarchicalNotify(true); DLabel *label = dialog->findChild("OptionProceedLabel"); ASSERT_NE(label, nullptr); EXPECT_TRUE(label->isVisible()); EXPECT_TRUE(label->text().contains("Security Center")); } TEST_F(UT_SettingDialog, switchHierarchicalNotify_Disable_Pass) { dialog->switchHierarchicalNotify(false); DLabel *label = dialog->findChild("OptionProceedLabel"); ASSERT_NE(label, nullptr); EXPECT_FALSE(label->isVisible()); EXPECT_TRUE(label->text().contains("Security Center")); } deepin-deb-installer-6.5.5/tests/src/view/pages/ut_singleinstallpage.cpp000066400000000000000000000444111474340456100264550ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "../deb-installer/view/pages/singleinstallpage.h" #include "../deb-installer/model/deblistmodel.h" #include "../deb-installer/manager/packagesmanager.h" #include "../deb-installer/manager/PackageDependsStatus.h" #include "../deb-installer/view/widgets/workerprogress.h" #include "../deb-installer/view/widgets/ShowInstallInfoTextEdit.h" #include #include #include #include using namespace QApt; void stud_installPackages() { return; } bool stud_singleinit() { return true; } QString stud_singlepackageName() { return "test"; } QString stud_singleversion() { return "1.0.0"; } QString stud_singlelongDescription() { return "this is test"; } QString stud_singlearchitecture() { return "x86"; } QString stud_singlefilePath() { return "/home"; } QString stud_singleshortDescription() { return "this is a short test"; } PackageDependsStatus stud_singlegetPackageDependsStatus(const int index) { Q_UNUSED(index); PackageDependsStatus m_status; m_status.status = 1; return m_status; } int stud_singlepackageInstallStatus(const int index) { Q_UNUSED(index); return 1; } void stud_singleuninstallPackage(const int idx) { Q_UNUSED(idx); } int stud_successtoInt(bool *ok = nullptr) { Q_UNUSED(ok); return 2; } int stud_failedtoInt(bool *ok = nullptr) { Q_UNUSED(ok); return 3; } bool stud_recheckPackagePath(QString) { return true; } PackageDependsStatus stud_getPackageDependsStatus(const int) { return PackageDependsStatus::_break("package"); } class UT_SingleInstallpage : public UT_HEAD { public: // 添加日志 static void SetUpTestCase() { qDebug() << "SetUpTestCase"; } static void TearDownTestCase() { qDebug() << "TearDownTestCase"; } void SetUp() // TEST跑之前会执行SetUp { qDebug() << "SetUp"; } void TearDown() // TEST跑完之后会执行TearDown { delete page; delete model; } SingleInstallPage *page; DebListModel *model; }; QVariant stu_data() { return Pkg::DependsStatus::DependsOk; } QVariant stu_data1() { return Pkg::PackageOperationStatus::Success; } TEST_F(UT_SingleInstallpage, UT_SingleInstallpage_total) { Stub stub; stub.set(ADDR(Backend, init), stud_singleinit); stub.set(ADDR(DebFile, packageName), stud_singlepackageName); stub.set(ADDR(DebFile, version), stud_singleversion); stub.set(ADDR(DebFile, longDescription), stud_singlelongDescription); stub.set(ADDR(DebFile, filePath), stud_singlefilePath); stub.set(ADDR(DebFile, architecture), stud_singlearchitecture); stub.set(ADDR(DebFile, shortDescription), stud_singleshortDescription); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stud_singlegetPackageDependsStatus); stub.set(ADDR(PackagesManager, packageInstallStatus), stud_singlepackageInstallStatus); stub.set(decltype (&stud_installPackages)(&DebListModel::slotInstallPackages), stud_installPackages); stub.set(decltype (&stud_singleuninstallPackage)(&DebListModel::slotUninstallPackage), stud_singleuninstallPackage); stub.set(ADDR(DebListModel, recheckPackagePath), stud_recheckPackagePath); model = new DebListModel(); model->m_packagesManager->m_preparedPackages.append("test"); model->m_packagesManager->m_preparedPackages.append("test1"); page = new SingleInstallPage(model); page->slotReinstall(); EXPECT_FALSE(page->m_reinstallButton->hasFocus()); EXPECT_EQ("Show details", page->m_infoControlButton->m_expandTips); EXPECT_FALSE(page->m_installButton->isVisible()); EXPECT_FALSE(page->m_uninstallButton->isVisible()); EXPECT_FALSE(page->m_backButton->isVisible()); EXPECT_FALSE(page->m_reinstallButton->isVisible()); EXPECT_FALSE(page->m_progressFrame->isVisible()); EXPECT_EQ("Show details", page->m_infoControlButton->m_expandTips); EXPECT_EQ(SingleInstallPage::Reinstall, page->m_operate); EXPECT_EQ(DebListModel::WorkerPrepare, page->m_packagesModel->m_workerStatus); EXPECT_EQ(page->initLabelWidth(11), 260); EXPECT_EQ(page->initLabelWidth(12), 255); EXPECT_EQ(page->initLabelWidth(13), 250); EXPECT_EQ(page->initLabelWidth(14), 250); EXPECT_EQ(page->initLabelWidth(15), 240); EXPECT_EQ(page->initLabelWidth(16), 240); EXPECT_EQ(page->initLabelWidth(18), 230); EXPECT_EQ(page->initLabelWidth(20), 220); EXPECT_EQ(page->initLabelWidth(22), 220); page->slotInstall(); EXPECT_FALSE(page->m_installButton->hasFocus()); EXPECT_EQ("Show details", page->m_infoControlButton->m_expandTips); EXPECT_FALSE(page->m_installButton->isVisible()); EXPECT_FALSE(page->m_progressFrame->isVisible()); page->slotUninstallCurrentPackage(); EXPECT_FALSE(page->m_tipsLabel->isVisible()); EXPECT_FALSE(page->m_uninstallButton->isVisible()); EXPECT_FALSE(page->m_backButton->isVisible()); EXPECT_FALSE(page->m_reinstallButton->isVisible()); EXPECT_FALSE(page->m_progressFrame->isVisible()); EXPECT_EQ("Show details", page->m_infoControlButton->m_expandTips); EXPECT_EQ(SingleInstallPage::Uninstall, page->m_operate); EXPECT_EQ(DebListModel::WorkerPrepare, page->m_packagesModel->m_workerStatus); page->slotShowInfomation(); EXPECT_FALSE(page->m_upDown); EXPECT_FALSE(page->m_installProcessView->isVisible()); EXPECT_FALSE(page->m_itemInfoFrame->isVisible()); page->slotHideInfomation(); EXPECT_TRUE(page->m_upDown); EXPECT_FALSE(page->m_installProcessView->isVisible()); EXPECT_FALSE(page->m_itemInfoFrame->isVisible()); page->slotShowInfo(); EXPECT_FALSE(page->m_uninstallButton->isVisible()); EXPECT_FALSE(page->m_backButton->isVisible()); EXPECT_FALSE(page->m_reinstallButton->isVisible()); EXPECT_FALSE(page->m_installButton->isVisible()); EXPECT_FALSE(page->m_doneButton->isVisible()); EXPECT_FALSE(page->m_progressFrame->isVisible()); EXPECT_FALSE(page->m_showDependsButton->isVisible()); EXPECT_FALSE(page->m_infoControlButton->isVisible()); EXPECT_FALSE(page->m_confirmButton->isVisible()); EXPECT_EQ("", page->m_tipsLabel->text()); page->slotOutputAvailable(""); EXPECT_TRUE(page->m_installProcessView->m_editor->toPlainText().isEmpty()); EXPECT_FALSE(page->m_infoControlButton->isVisible()); page->m_progress->setValue(0); EXPECT_EQ(0, page->m_progress->value()); EXPECT_TRUE(page->m_workerStarted); page->m_upDown = false; page->slotWorkerFinished(); EXPECT_FALSE(page->m_uninstallButton->isVisible()); EXPECT_FALSE(page->m_backButton->isVisible()); EXPECT_FALSE(page->m_reinstallButton->isVisible()); EXPECT_FALSE(page->m_progressFrame->isVisible()); EXPECT_EQ(0, page->m_progress->value()); EXPECT_FALSE(page->m_infoControlButton->isVisible()); EXPECT_FALSE(page->m_upDown); Stub stub1; stub1.set(ADDR(QModelIndex, data), stu_data1); page->m_operate = SingleInstallPage::Unknown; page->slotWorkerFinished(); page->slotWorkerProgressChanged(100); EXPECT_EQ(100, page->m_progress->value()); page->m_progress->setValue(60); page->slotWorkerProgressChanged(50); page->setEnableButton(false); page->setEnableButton(true); EXPECT_TRUE(page->m_uninstallButton->isEnabled()); EXPECT_TRUE(page->m_reinstallButton->isEnabled()); EXPECT_TRUE(page->m_installButton->isEnabled()); page->afterGetAutherFalse(); EXPECT_FALSE(page->m_uninstallButton->isVisible()); EXPECT_FALSE(page->m_reinstallButton->isVisible()); page->setAuthConfirm("test"); EXPECT_FALSE(page->m_pLoadingLabel->isVisible()); EXPECT_FALSE(page->m_uninstallButton->isVisible()); EXPECT_FALSE(page->m_backButton->isVisible()); EXPECT_FALSE(page->m_reinstallButton->isVisible()); EXPECT_FALSE(page->m_installButton->isVisible()); EXPECT_FALSE(page->m_confirmButton->isVisible()); EXPECT_FALSE(page->m_infoControlButton->isVisible()); page->setAuthBefore(); EXPECT_FALSE(page->m_uninstallButton->isVisible()); EXPECT_FALSE(page->m_backButton->isVisible()); EXPECT_FALSE(page->m_reinstallButton->isVisible()); page->setCancelAuthOrAuthDependsErr(); stub.set(ADDR(QModelIndex, data), stu_data); page->setCancelAuthOrAuthDependsErr(); EXPECT_FALSE(page->m_pLoadingLabel->isVisible()); EXPECT_FALSE(page->m_pDSpinner->isVisible()); page->DealDependResult(1, "test"); EXPECT_EQ(1, page->dependAuthStatu); page->m_operate = SingleInstallPage::Install; page->setEnableButton(true); page->setAuthBefore(); page->afterGetAutherFalse(); page->m_operate = SingleInstallPage::Reinstall; page->setAuthBefore(); page->afterGetAutherFalse(); EXPECT_FALSE(page->m_uninstallButton->isEnabled()); EXPECT_FALSE(page->m_reinstallButton->isEnabled()); EXPECT_FALSE(page->m_installButton->isEnabled()); } TEST_F(UT_SingleInstallpage, UT_SingleInstallpage_onWorkFinishedFailed) { Stub stub; stub.set(ADDR(Backend, init), stud_singleinit); stub.set(ADDR(DebFile, packageName), stud_singlepackageName); stub.set(ADDR(DebFile, version), stud_singleversion); stub.set(ADDR(DebFile, longDescription), stud_singlelongDescription); stub.set(ADDR(DebFile, filePath), stud_singlefilePath); stub.set(ADDR(DebFile, architecture), stud_singlearchitecture); stub.set(ADDR(DebFile, shortDescription), stud_singleshortDescription); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stud_singlegetPackageDependsStatus); stub.set(ADDR(PackagesManager, packageInstallStatus), stud_singlepackageInstallStatus); stub.set((decltype(&stud_installPackages))ADDR(DebListModel, slotInstallPackages), stud_installPackages); stub.set((decltype(&stud_singleuninstallPackage))ADDR(DebListModel, slotUninstallPackage), stud_singleuninstallPackage); stub.set(ADDR(DebListModel, recheckPackagePath), stud_recheckPackagePath); model = new DebListModel(); usleep(100 * 1000); model->m_packagesManager->m_preparedPackages.append("test"); model->m_packagesManager->m_preparedPackages.append("test1"); page = new SingleInstallPage(model); usleep(100 * 1000); stub.set(ADDR(QVariant, toInt), stud_failedtoInt); page->m_operate = SingleInstallPage::Uninstall; page->slotWorkerFinished(); page->m_operate = SingleInstallPage::Install; page->slotWorkerFinished(); EXPECT_FALSE(page->m_uninstallButton->isVisible()); EXPECT_FALSE(page->m_backButton->isVisible()); EXPECT_FALSE(page->m_reinstallButton->isVisible()); EXPECT_FALSE(page->m_progressFrame->isVisible()); EXPECT_EQ(0, page->m_progress->value()); EXPECT_FALSE(page->m_infoControlButton->isVisible()); EXPECT_TRUE(page->m_upDown); } TEST_F(UT_SingleInstallpage, UT_SingleInstallpage_onWorkFinishedSuccees) { Stub stub; stub.set(ADDR(Backend, init), stud_singleinit); stub.set(ADDR(DebFile, packageName), stud_singlepackageName); stub.set(ADDR(DebFile, version), stud_singleversion); stub.set(ADDR(DebFile, longDescription), stud_singlelongDescription); stub.set(ADDR(DebFile, filePath), stud_singlefilePath); stub.set(ADDR(DebFile, architecture), stud_singlearchitecture); stub.set(ADDR(DebFile, shortDescription), stud_singleshortDescription); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stud_singlegetPackageDependsStatus); stub.set(ADDR(PackagesManager, packageInstallStatus), stud_singlepackageInstallStatus); stub.set((decltype(&stud_installPackages))ADDR(DebListModel, slotInstallPackages), stud_installPackages); stub.set((decltype(&stud_singleuninstallPackage))ADDR(DebListModel, slotUninstallPackage), stud_singleuninstallPackage); stub.set(ADDR(QModelIndex, data), stu_data); stub.set(ADDR(DebListModel, recheckPackagePath), stud_recheckPackagePath); model = new DebListModel(); usleep(100 * 1000); model->m_packagesManager->m_preparedPackages.append("test"); model->m_packagesManager->m_preparedPackages.append("test1"); page = new SingleInstallPage(model); usleep(100 * 1000); page->showPackageInfo(); stub.set(ADDR(QVariant, toInt), stud_successtoInt); page->slotWorkerFinished(); page->m_operate = SingleInstallPage::Install; page->slotWorkerFinished(); page->m_operate = SingleInstallPage::Uninstall; page->setAuthBefore(); EXPECT_FALSE(page->m_uninstallButton->isVisible()); EXPECT_FALSE(page->m_backButton->isVisible()); EXPECT_FALSE(page->m_reinstallButton->isVisible()); EXPECT_FALSE(page->m_progressFrame->isVisible()); EXPECT_EQ(0, page->m_progress->value()); EXPECT_FALSE(page->m_infoControlButton->isVisible()); EXPECT_TRUE(page->m_upDown); page->DealDependResult(3, "test"); EXPECT_EQ(3, page->dependAuthStatu); page->DealDependResult(2, "test"); EXPECT_EQ(2, page->dependAuthStatu); page->DealDependResult(5, "test"); EXPECT_EQ(5, page->dependAuthStatu); page->DealDependResult(4, "test"); EXPECT_EQ(4, page->dependAuthStatu); page->DealDependResult(6, "test"); EXPECT_EQ(6, page->dependAuthStatu); page->DealDependResult(0, "test"); EXPECT_EQ(0, page->dependAuthStatu); } TEST_F(UT_SingleInstallpage, UT_SingleInstallpage_initTabOrder) { Stub stub; stub.set(ADDR(Backend, init), stud_singleinit); stub.set(ADDR(DebFile, packageName), stud_singlepackageName); stub.set(ADDR(DebFile, version), stud_singleversion); stub.set(ADDR(DebFile, longDescription), stud_singlelongDescription); stub.set(ADDR(DebFile, filePath), stud_singlefilePath); stub.set(ADDR(DebFile, architecture), stud_singlearchitecture); stub.set(ADDR(DebFile, shortDescription), stud_singleshortDescription); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stud_singlegetPackageDependsStatus); stub.set(ADDR(PackagesManager, packageInstallStatus), stud_singlepackageInstallStatus); stub.set((decltype(&stud_installPackages))ADDR(DebListModel, slotInstallPackages), stud_installPackages); stub.set((decltype(&stud_singleuninstallPackage))ADDR(DebListModel, slotUninstallPackage), stud_singleuninstallPackage); stub.set(ADDR(QModelIndex, data), stu_data); stub.set(ADDR(DebListModel, recheckPackagePath), stud_recheckPackagePath); model = new DebListModel(); usleep(100 * 1000); model->m_packagesManager->m_preparedPackages.append("test"); model->m_packagesManager->m_preparedPackages.append("test1"); page = new SingleInstallPage(model); usleep(100 * 1000); page->m_installButton->setVisible(true); page->m_backButton->setVisible(true); page->m_uninstallButton->setVisible(true); page->initTabOrder(); EXPECT_FALSE(page->m_doneButton->isVisible()); EXPECT_FALSE(page->m_uninstallButton->isVisible()); EXPECT_FALSE(page->m_confirmButton->isVisible()); EXPECT_FALSE(page->m_installButton->isVisible()); page->slotHideDependsInfo(); EXPECT_TRUE(page->m_upDown); page->slotShowDependsInfo(); EXPECT_TRUE(page->m_upDown); EXPECT_FALSE(page->m_installProcessView->isVisible()); EXPECT_FALSE(page->m_itemInfoFrame->isVisible()); } TEST_F(UT_SingleInstallpage, UT_SingleInstallpage_paintEvent) { Stub stub; stub.set(ADDR(Backend, init), stud_singleinit); stub.set(ADDR(DebFile, packageName), stud_singlepackageName); stub.set(ADDR(DebFile, version), stud_singleversion); stub.set(ADDR(DebFile, longDescription), stud_singlelongDescription); stub.set(ADDR(DebFile, filePath), stud_singlefilePath); stub.set(ADDR(DebFile, architecture), stud_singlearchitecture); stub.set(ADDR(DebFile, shortDescription), stud_singleshortDescription); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stud_singlegetPackageDependsStatus); stub.set(ADDR(PackagesManager, packageInstallStatus), stud_singlepackageInstallStatus); stub.set((decltype(&stud_installPackages))ADDR(DebListModel, slotInstallPackages), stud_installPackages); stub.set((decltype(&stud_singleuninstallPackage))ADDR(DebListModel, slotUninstallPackage), stud_singleuninstallPackage); stub.set(ADDR(QModelIndex, data), stu_data); stub.set(ADDR(DebListModel, recheckPackagePath), stud_recheckPackagePath); model = new DebListModel(); usleep(100 * 1000); model->m_packagesManager->m_preparedPackages.append("test"); model->m_packagesManager->m_preparedPackages.append("test1"); page = new SingleInstallPage(model); usleep(100 * 1000); QPaintEvent paint(QRect(page->rect())); page->paintEvent(&paint); } TEST_F(UT_SingleInstallpage, UT_SingleInstallpage_slotDependPackages) { Stub stub; stub.set(ADDR(Backend, init), stud_singleinit); stub.set(ADDR(DebFile, packageName), stud_singlepackageName); stub.set(ADDR(DebFile, version), stud_singleversion); stub.set(ADDR(DebFile, longDescription), stud_singlelongDescription); stub.set(ADDR(DebFile, filePath), stud_singlefilePath); stub.set(ADDR(DebFile, architecture), stud_singlearchitecture); stub.set(ADDR(DebFile, shortDescription), stud_singleshortDescription); stub.set(ADDR(PackagesManager, getPackageDependsStatus), stud_singlegetPackageDependsStatus); stub.set(ADDR(PackagesManager, packageInstallStatus), stud_singlepackageInstallStatus); stub.set((decltype(&stud_installPackages))ADDR(DebListModel, slotInstallPackages), stud_installPackages); stub.set((decltype(&stud_singleuninstallPackage))ADDR(DebListModel, slotUninstallPackage), stud_singleuninstallPackage); stub.set(ADDR(QModelIndex, data), stu_data); stub.set(ADDR(DebListModel, recheckPackagePath), stud_recheckPackagePath); model = new DebListModel(); usleep(100 * 1000); model->m_packagesManager->m_preparedPackages.append("test"); model->m_packagesManager->m_preparedPackages.append("test1"); page = new SingleInstallPage(model); usleep(100 * 1000); // QMap, QList>> dependPackages; Pkg::DependInfo info; info.packageName = "libopencl1"; info.version = "1.0"; QList list; list.append(info); QPair, QList> pair; pair.first.append(list); pair.second.append(list); // dependPackages.insert("deb", pair); page->slotDependPackages(pair, false); EXPECT_EQ(1, pair.first.size()); EXPECT_FALSE(page->m_showDependsButton->isVisible()); } deepin-deb-installer-6.5.5/tests/src/view/pages/ut_uninstallconfirmpage.cpp000066400000000000000000000025021474340456100271670ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "../deb-installer/view/pages/uninstallconfirmpage.h" #include "../deb-installer/view/pages/debinstaller.h" #include #include #include #include #include using namespace QApt; QEvent::Type stud_uninstalltype() { return QEvent::MouseButtonRelease; } class UnInstallConfirmPage_UT : public UT_HEAD { public: // 添加日志 static void SetUpTestCase() { qDebug() << "SetUpTestCase"; } static void TearDownTestCase() { qDebug() << "TearDownTestCase"; } void SetUp() // TEST跑之前会执行SetUp { uninstallPage = new UninstallConfirmPage(); usleep(100 * 1000); qDebug() << "SetUp"; } void TearDown() // TEST跑完之后会执行TearDown { delete uninstallPage; } UninstallConfirmPage *uninstallPage; }; TEST_F(UnInstallConfirmPage_UT, total_UT) { Stub stub; stub.set(ADDR(QEvent, type), stud_uninstalltype); uninstallPage->installEventFilter(uninstallPage); uninstallPage->slotShowDetail(); uninstallPage->slotHideDetail(); EXPECT_FALSE(uninstallPage->m_infoWrapperWidget->isVisible()); EXPECT_FALSE(uninstallPage->m_dependsInfomation->isVisible()); } deepin-deb-installer-6.5.5/tests/src/view/widgets/000077500000000000000000000000001474340456100220775ustar00rootroot00000000000000deepin-deb-installer-6.5.5/tests/src/view/widgets/ut_choosefilebutton.cpp000066400000000000000000000015501474340456100266700ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "../deb-installer/view/widgets/choosefilebutton.h" #include "utils/utils.h" #include #include class ut_chooseFileButton_TEST : public ::testing::Test { // Test interface protected: void SetUp() { m_choosFileBtn = new ChooseFileButton(""); } void TearDown() { delete m_choosFileBtn; } ChooseFileButton *m_choosFileBtn = nullptr; }; TEST_F(ut_chooseFileButton_TEST, ChooseFileButton_UT_setFamily) { m_choosFileBtn->setText("1"); ASSERT_EQ("1", m_choosFileBtn->text()); } TEST_F(ut_chooseFileButton_TEST, ChooseFileButton_UT_keyPressEvent) { QKeyEvent keyPressEvent(QEvent::KeyPress, Qt::Key_Space, Qt::NoModifier); QCoreApplication::sendEvent(m_choosFileBtn, &keyPressEvent); } deepin-deb-installer-6.5.5/tests/src/view/widgets/ut_coloredprogressbar.cpp000066400000000000000000000046441474340456100272240ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "../deb-installer/view/widgets/coloredprogressbar.h" #include #include "utils/utils.h" #include #include #include #include #include DGuiApplicationHelper::ColorType stub_themeType() { return DGuiApplicationHelper::DarkType; } class ut_coloredProgressBar_Test : public ::testing::Test { // Test interface protected: void SetUp() { m_colorProcessBar = new ColoredProgressBar; } void TearDown() { delete m_colorProcessBar; } ColoredProgressBar *m_colorProcessBar = nullptr; }; DGuiApplicationHelper::ColorType ut_themeType() { return DGuiApplicationHelper::DarkType; } DGuiApplicationHelper::ColorType ut_themeType01() { return DGuiApplicationHelper::LightType; } TEST_F(ut_coloredProgressBar_Test, ColoredProgressBar_UT_themeChanged) { Stub stub; stub.set(ADDR(DGuiApplicationHelper, themeType), ut_themeType01); m_colorProcessBar->themeChanged(); ASSERT_EQ(DGuiApplicationHelper::LightType, m_colorProcessBar->m_themeType); // m_colorProcessBar->d_d_ptr.get() } TEST_F(ut_coloredProgressBar_Test, ColoredProgressBar_UT_themeChanged_01) { Stub stub; stub.set(ADDR(DGuiApplicationHelper, themeType), ut_themeType); m_colorProcessBar->themeChanged(); ASSERT_EQ(DGuiApplicationHelper::DarkType, m_colorProcessBar->m_themeType); } TEST_F(ut_coloredProgressBar_Test, ColoredProgressBar_UT_addThreshold) { m_colorProcessBar->addThreshold(0, QBrush(nullptr)); EXPECT_EQ(1, m_colorProcessBar->threshmap.size()); } TEST_F(ut_coloredProgressBar_Test, ColoredProgressBar_UT_removeThreshold) { m_colorProcessBar->removeThreshold(1); EXPECT_TRUE(m_colorProcessBar->threshmap.isEmpty()); } TEST_F(ut_coloredProgressBar_Test, ColoredProgressBar_UT_thresholds) { EXPECT_TRUE(m_colorProcessBar->thresholds().isEmpty()); } TEST_F(ut_coloredProgressBar_Test, ColoredProgressBar_UT_paintEvent_Light) { QPaintEvent paint(QRect(m_colorProcessBar->rect())); m_colorProcessBar->paintEvent(&paint); } TEST_F(ut_coloredProgressBar_Test, ColoredProgressBar_UT_paintEvent_Dark) { Stub stub; stub.set(ADDR(DGuiApplicationHelper, themeType), stub_themeType); QPaintEvent paint(QRect(m_colorProcessBar->rect())); m_colorProcessBar->paintEvent(&paint); } deepin-deb-installer-6.5.5/tests/src/view/widgets/ut_debinfolabel.cpp000066400000000000000000000051121474340456100257200ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include "../deb-installer/view/widgets/debinfolabel.h" #include class UT_DebInfoLabel_TEST : public ::testing::Test { // Test interface protected: void SetUp() { m_label = new DebInfoLabel; } void TearDown() { delete m_label; } DebInfoLabel *m_label = nullptr; }; TEST_F(UT_DebInfoLabel_TEST, DebInfoLabel_UT_setCustomQPalette) { m_label->setCustomQPalette(QPalette::WindowText); ASSERT_EQ(QPalette::WindowText, m_label->m_colorRole); ASSERT_FALSE(m_label->m_bUserColorType); } TEST_F(UT_DebInfoLabel_TEST, DebInfoLabel_UT_setCustomQPalette_01) { m_label->setCustomQPalette(QPalette::BrightText); ASSERT_EQ(QPalette::BrightText, m_label->m_colorRole); ASSERT_FALSE(m_label->m_bUserColorType); } TEST_F(UT_DebInfoLabel_TEST, DebInfoLabel_UT_setCustomDPalette) { m_label->setCustomDPalette(); ASSERT_TRUE(m_label->m_bMultiIns); ASSERT_TRUE(m_label->m_bUserColorType); } TEST_F(UT_DebInfoLabel_TEST, DebInfoLabel_UT_setCustomDPalette_01) { m_label->setCustomDPalette(DPalette::TextLively); ASSERT_EQ(DPalette::TextLively, m_label->m_colorType); ASSERT_FALSE(m_label->m_bMultiIns); ASSERT_TRUE(m_label->m_bUserColorType); } TEST_F(UT_DebInfoLabel_TEST, DebInfoLabel_UT_PaintEvent) { m_label->m_bUserColorType = true; m_label->m_bMultiIns = true; QPaintEvent paint(QRect(m_label->rect())); m_label->paintEvent(&paint); ASSERT_TRUE(m_label->m_bUserColorType); ASSERT_TRUE(m_label->m_bMultiIns); } TEST_F(UT_DebInfoLabel_TEST, DebInfoLabel_UT_PaintEvent_01) { m_label->m_bUserColorType = true; m_label->m_bMultiIns = false; QPaintEvent paint1(QRect(m_label->rect())); m_label->paintEvent(&paint1); ASSERT_TRUE(m_label->m_bUserColorType); ASSERT_FALSE(m_label->m_bMultiIns); } TEST_F(UT_DebInfoLabel_TEST, DebInfoLabel_UT_PaintEvent_02) { m_label->m_colorRole = QPalette::WindowText; m_label->m_bUserColorType = false; QPaintEvent paint2(QRect(m_label->rect())); m_label->paintEvent(&paint2); ASSERT_FALSE(m_label->m_bUserColorType); ASSERT_EQ(QPalette::WindowText, m_label->m_colorRole); } TEST_F(UT_DebInfoLabel_TEST, DebInfoLabel_UT_PaintEvent_03) { m_label->m_colorRole = QPalette::BrightText; m_label->m_bUserColorType = false; QPaintEvent paint2(QRect(m_label->rect())); m_label->paintEvent(&paint2); ASSERT_FALSE(m_label->m_bUserColorType); ASSERT_EQ(QPalette::BrightText, m_label->m_colorRole); } deepin-deb-installer-6.5.5/tests/src/view/widgets/ut_droundbgframe.cpp000066400000000000000000000016721474340456100261400ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "../deb-installer/view/widgets/droundbgframe.h" #include #include #include #include #include class DRoundBgFrame_UT : public UT_HEAD { public: // 添加日志 static void SetUpTestCase() { qDebug() << "SetUpTestCase"; } static void TearDownTestCase() { qDebug() << "TearDownTestCase"; } void SetUp() // TEST跑之前会执行SetUp { qDebug() << "SetUp"; } void TearDown() // TEST跑完之后会执行TearDown { } DRoundBgFrame *frame; }; TEST_F(DRoundBgFrame_UT, paintEvent_UT) { frame = new DRoundBgFrame(nullptr, 10, 10); QPaintEvent paint(QRect(frame->rect())); frame->paintEvent(&paint); ASSERT_EQ(10, frame->m_bgOffsetTop); ASSERT_EQ(10, frame->m_bgOffsetBottom); delete frame; } deepin-deb-installer-6.5.5/tests/src/view/widgets/ut_filechoosewidget.cpp000066400000000000000000000017711474340456100266450ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "../deb-installer/view/widgets/filechoosewidget.h" #include #include #include typedef int (*DFileDialogfptr)(QDialog *); DFileDialogfptr DDialog_exec = (DFileDialogfptr)(&QDialog::exec); int stub_exec() { return 0; } TEST(FileChooseWidget_TEST, FileChooseWidget_UT_themeChanged) { FileChooseWidget *fchooseWidget = new FileChooseWidget; fchooseWidget->themeChanged(); ASSERT_EQ(QSize(160, 160), fchooseWidget->m_iconImage->size()); delete fchooseWidget; } TEST(FileChooseWidget_TEST, FileChooseWidget_UT_chooseFiles) { FileChooseWidget *fchooseWidget = new FileChooseWidget; fchooseWidget->m_settings.setValue("history_dir", "/"); Stub stub; stub.set(DDialog_exec, stub_exec); fchooseWidget->chooseFiles(); ASSERT_EQ("/", fchooseWidget->m_settings.value("history_dir")); delete fchooseWidget; } deepin-deb-installer-6.5.5/tests/src/view/widgets/ut_infoCommandLinkButton.cpp000066400000000000000000000014721474340456100275630ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "../deb-installer/view/widgets/InfoCommandLinkButton.h" #include "utils/utils.h" #include #include TEST(InfoCommandLinkButton_TEST, InfoCommandLinkButton_UT_setFamily) { InfoCommandLinkButton *btn = new InfoCommandLinkButton(""); btn->setFocusPolicy(Qt::TabFocus); EXPECT_EQ(Qt::TabFocus, btn->focusPolicy()); delete btn; } TEST(InfoCommandLinkButton_TEST, InfoCommandLinkButton_UT_keyPressEvent) { InfoCommandLinkButton *btn = new InfoCommandLinkButton(""); QKeyEvent keyPressEvent(QEvent::KeyPress, Qt::Key_Space, Qt::NoModifier); QCoreApplication::sendEvent(btn, &keyPressEvent); EXPECT_FALSE(btn->hasFocus()); delete btn; } deepin-deb-installer-6.5.5/tests/src/view/widgets/ut_infocontrolbutton.cpp000066400000000000000000000051751474340456100271130ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "../deb-installer/view/widgets/infocontrolbutton.h" #include "../deb-installer/view/widgets/InfoCommandLinkButton.h" #include #include #include #include #include class InfoControlButton_Test : public UT_HEAD { public: virtual void SetUp() { m_infoControlBtn = new InfoControlButton("", ""); } void TearDown() { delete m_infoControlBtn; } InfoControlButton *m_infoControlBtn; }; TEST_F(InfoControlButton_Test, InfoControlButton_UT_setExpandTips) { m_infoControlBtn->setExpandTips("/"); ASSERT_EQ("/", m_infoControlBtn->m_expandTips); ASSERT_EQ("/", m_infoControlBtn->m_tipsText->text()); } TEST_F(InfoControlButton_Test, InfoControlButton_UT_setShrinkTips) { m_infoControlBtn->setShrinkTips("/"); ASSERT_EQ("/", m_infoControlBtn->m_shrinkTips); ASSERT_EQ("/", m_infoControlBtn->m_tipsText->text()); } TEST_F(InfoControlButton_Test, InfoControlButton_UT_onMouseRelease) { m_infoControlBtn->m_expand = false; m_infoControlBtn->m_shrinkTips = "shrink"; m_infoControlBtn->onMouseRelease(); EXPECT_TRUE(m_infoControlBtn->m_expand); ASSERT_EQ("shrink", m_infoControlBtn->m_tipsText->text()); } TEST_F(InfoControlButton_Test, InfoControlButton_UT_onMouseRelease_01) { m_infoControlBtn->m_expand = true; m_infoControlBtn->m_expandTips = "expand"; m_infoControlBtn->onMouseRelease(); EXPECT_FALSE(m_infoControlBtn->m_expand); ASSERT_EQ("expand", m_infoControlBtn->m_tipsText->text()); } TEST_F(InfoControlButton_Test, InfoControlButton_UT_themeChanged) { m_infoControlBtn->themeChanged(); EXPECT_FALSE(m_infoControlBtn->m_expand) << "false"; m_infoControlBtn->m_expand = true; m_infoControlBtn->themeChanged(); EXPECT_TRUE(m_infoControlBtn->m_expand) << "true"; } TEST_F(InfoControlButton_Test, InfoControlButton_UT_mouseReleaseEvent) { m_infoControlBtn->m_expand = true; m_infoControlBtn->m_expandTips = "expand"; QMouseEvent mouseReleaseEvent(QEvent::MouseButtonRelease, QPoint(10, 10), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier); m_infoControlBtn->mouseReleaseEvent(&mouseReleaseEvent); EXPECT_FALSE(m_infoControlBtn->m_expand); ASSERT_EQ("expand", m_infoControlBtn->m_tipsText->text()); } TEST_F(InfoControlButton_Test, InfoControlButton_UT_keyPressEvent) { QKeyEvent keyPressEvent(QEvent::KeyPress, Qt::Key_Space, Qt::NoModifier); QCoreApplication::sendEvent(m_infoControlBtn, &keyPressEvent); EXPECT_FALSE(m_infoControlBtn->hasFocus()); } deepin-deb-installer-6.5.5/tests/src/view/widgets/ut_installprocessinfoview.cpp000066400000000000000000000047141474340456100301350ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "../deb-installer/view/widgets/installprocessinfoview.h" #include "../deb-installer/view/widgets/ShowInstallInfoTextEdit.h" #include #include #include class ut_installProcessInfoView_Test : public ::testing::Test { // Test interface protected: void SetUp() { m_infoView = new InstallProcessInfoView(100, 50); } void TearDown() { delete m_infoView; } InstallProcessInfoView *m_infoView = nullptr; }; TEST_F(ut_installProcessInfoView_Test, InstallProcessInfoView_UT_setTextColor) { m_infoView->setTextColor(DPalette::TextTitle); ASSERT_EQ(DPalette::TextTitle, m_infoView->m_colorType); } TEST_F(ut_installProcessInfoView_Test, InstallProcessInfoView_UT_appendText) { m_infoView->appendText(""); m_infoView->repaint(); EXPECT_EQ("", m_infoView->m_editor->toPlainText()); } TEST_F(ut_installProcessInfoView_Test, InstallProcessInfoView_UT_clearText) { m_infoView->clearText(); EXPECT_EQ("", m_infoView->m_editor->toPlainText()); } DGuiApplicationHelper::ColorType ut_view_themeType() { return DGuiApplicationHelper::DarkType; } DGuiApplicationHelper::ColorType ut_view_themeType1() { return DGuiApplicationHelper::UnknownType; } DGuiApplicationHelper::ColorType ut_view_themeType2() { return DGuiApplicationHelper::LightType; } TEST_F(ut_installProcessInfoView_Test, InstallProcessInfoView_UT_paintEvent) { Stub stub; stub.set(ADDR(DGuiApplicationHelper, themeType), ut_view_themeType2); QPaintEvent paint(QRect(m_infoView->rect())); m_infoView->paintEvent(&paint); ASSERT_EQ(QColor(96, 157, 200), m_infoView->m_editor->palette().text().color()); } TEST_F(ut_installProcessInfoView_Test, InstallProcessInfoView_UT_paintEvent_01) { Stub stub; stub.set(ADDR(DGuiApplicationHelper, themeType), ut_view_themeType); QPaintEvent paint1(QRect(m_infoView->rect())); m_infoView->paintEvent(&paint1); ASSERT_EQ(QColor(109, 124, 136), m_infoView->m_editor->palette().text().color()); } TEST_F(ut_installProcessInfoView_Test, InstallProcessInfoView_UT_paintEvent_02) { Stub stub1; stub1.set(ADDR(DGuiApplicationHelper, themeType), ut_view_themeType1); QPaintEvent paint2(QRect(m_infoView->rect())); m_infoView->paintEvent(&paint2); ASSERT_EQ(QColor(96, 157, 200), m_infoView->m_editor->palette().text().color()); } deepin-deb-installer-6.5.5/tests/src/view/widgets/ut_noprocesswidget.cpp000066400000000000000000000015601474340456100265340ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include #include #define private public #include "../deb-installer/view/widgets/noprocesswidget.h" class ut_noprocesswidget_TEST : public ::testing::Test { // Test interface protected: void SetUp() { w = new NoProcessWidget; } void TearDown() { delete w; } private: NoProcessWidget *w; }; TEST_F(ut_noprocesswidget_TEST, Noprocesswidget_UT_setActionTest) { w->setActionText("123321"); ASSERT_EQ(w->actionTextLabel->text() == "123321", true); } TEST_F(ut_noprocesswidget_TEST, Noprocesswidget_UT_startAndStop) { ASSERT_EQ(w->spinner->isPlaying(), false); w->start(); ASSERT_EQ(w->spinner->isPlaying(), true); w->stop(); ASSERT_EQ(w->spinner->isPlaying(), false); } deepin-deb-installer-6.5.5/tests/src/view/widgets/ut_packageselectitem.cpp000066400000000000000000000056211474340456100267710ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include #include #include #include #include "../deb-installer/model/packageanalyzer.h" #define private public #include "../deb-installer/view/widgets/packageselectitem.h" QPair packageInstallStatus_earilier(const DebIr &ir) { Q_UNUSED(ir) return {Pkg::InstalledEarlierVersion, "123"}; } QPair packageInstallStatus_same(const DebIr &ir) { Q_UNUSED(ir) return {Pkg::InstalledSameVersion, "321"}; } QPair packageInstallStatus_later(const DebIr &ir) { Q_UNUSED(ir) return {Pkg::InstalledLaterVersion, "123321"}; } QPair packageInstallStatus_none(const DebIr &ir) { Q_UNUSED(ir) return {Pkg::NotInstalled, "1234567"}; } class ut_packageselectitem_TEST : public ::testing::Test { // Test interface protected: void SetUp() { w = new PackageSelectItem; } void TearDown() { delete w; } private: PackageSelectItem *w; }; TEST_F(ut_packageselectitem_TEST, PackageSelectItem_UT_setDebIRTest_0) { Stub stub; stub.set(ADDR(PackageAnalyzer, packageInstallStatus), packageInstallStatus_earilier); DebIr ir; ir.archMatched = true; w->setDebIR(ir); ASSERT_EQ(w->checkBox->isChecked(), true); } TEST_F(ut_packageselectitem_TEST, PackageSelectItem_UT_setDebIRTest_1) { Stub stub; stub.set(ADDR(PackageAnalyzer, packageInstallStatus), packageInstallStatus_same); DebIr ir; ir.archMatched = true; w->setDebIR(ir); ASSERT_EQ(w->checkBox->isChecked(), false); } TEST_F(ut_packageselectitem_TEST, PackageSelectItem_UT_setDebIRTest_2) { Stub stub; stub.set(ADDR(PackageAnalyzer, packageInstallStatus), packageInstallStatus_later); DebIr ir; ir.archMatched = true; w->setDebIR(ir); ASSERT_EQ(w->checkBox->isChecked(), false); } TEST_F(ut_packageselectitem_TEST, PackageSelectItem_UT_setDebIRTest_4) { Stub stub; stub.set(ADDR(PackageAnalyzer, packageInstallStatus), packageInstallStatus_none); DebIr ir; ir.archMatched = true; w->setDebIR(ir); ASSERT_EQ(w->checkBox->isChecked(), true); } TEST_F(ut_packageselectitem_TEST, PackageSelectItem_UT_setDebIRTest_5) { DebIr ir; ir.archMatched = false; w->setDebIR(ir); ASSERT_EQ(w->checkBox->isChecked(), false); ASSERT_EQ(w->checkBox->isEnabled(), false); } TEST_F(ut_packageselectitem_TEST, PackageSelectItem_UT_checkEnableTest) { w->setChecked(false); ASSERT_EQ(w->checkBox->isChecked(), false); w->checkBox->setChecked(true); ASSERT_EQ(w->isChecked(), true); w->checkBox->setEnabled(false); ASSERT_EQ(w->isEnabled(), false); w->checkBox->setEnabled(true); ASSERT_EQ(w->isEnabled(), true); } deepin-deb-installer-6.5.5/tests/src/view/widgets/ut_processwidget.cpp000066400000000000000000000025771474340456100262100ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include #include #define private public #include "../deb-installer/view/widgets/processwidget.h" class ut_processwidget_TEST : public ::testing::Test { // Test interface protected: void SetUp() { w = new ProcessWidget; } void TearDown() { delete w; } private: ProcessWidget *w; }; TEST_F(ut_processwidget_TEST, Processwidget_UT_setIcon) { QIcon icon; w->setIcon(icon); #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) ASSERT_EQ(w->mainIcon->pixmap()->width(), 0); ASSERT_EQ(w->mainIcon->pixmap()->height(), 0); #else ASSERT_EQ(w->mainIcon->pixmap().width(), 0); ASSERT_EQ(w->mainIcon->pixmap().height(), 0); #endif } TEST_F(ut_processwidget_TEST, Processwidget_UT_setMainText) { w->setMainText("123321"); ASSERT_EQ(w->mainLabel->text() == "123321", true); } TEST_F(ut_processwidget_TEST, Processwidget_UT_setProcessText) { w->setProcessText("321123"); ASSERT_EQ(w->processText == "321123", true); } TEST_F(ut_processwidget_TEST, Processwidget_UT_setProgress) { w->setProcessText("321123, %1, %2"); w->setProgress(1, 10); ASSERT_EQ(w->processBar->value(), 1); ASSERT_EQ(w->processBar->maximum(), 10); ASSERT_EQ(w->processTextLabel->text(), "321123, 1, 10"); } deepin-deb-installer-6.5.5/tests/src/view/widgets/ut_showinstallinfotextedit.cpp000066400000000000000000000100711474340456100303100ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "../deb-installer/view/widgets/ShowInstallInfoTextEdit.h" #include #include #include #include #include Qt::MouseEventSource stud_source() { return Qt::MouseEventSynthesizedByQt; } class ut_showInstallInfoTextEdit_Test : public ::testing::Test { // Test interface protected: void SetUp() { m_infoTextEdit = new ShowInstallInfoTextEdit; } void TearDown() { delete m_infoTextEdit; } ShowInstallInfoTextEdit *m_infoTextEdit = nullptr; }; TEST_F(ut_showInstallInfoTextEdit_Test, ShowInstallInfoTextEdit_UT_slideGesture) { int value = m_infoTextEdit->verticalScrollBar()->value(); m_infoTextEdit->slideGesture(5); EXPECT_EQ(0 + value, m_infoTextEdit->verticalScrollBar()->value()); } QString ut_selectedText() { return "//"; } TEST_F(ut_showInstallInfoTextEdit_Test, ShowInstallInfoTextEdit_UT_onSelectionArea) { m_infoTextEdit->m_gestureAction = ShowInstallInfoTextEdit::GA_tap; Stub stub; stub.set(ADDR(QTextCursor, selectedText), ut_selectedText); m_infoTextEdit->onSelectionArea(); EXPECT_EQ(ShowInstallInfoTextEdit::GA_tap, m_infoTextEdit->m_gestureAction); EXPECT_EQ("//", m_infoTextEdit->textCursor().selectedText()); } TEST(FlashTween_TEST, FlashTween_UT_start) { FlashTween flash; EXPECT_EQ(flash.sinusoidalEaseOut(1.0, 1.0, 1.0, 1.0), 1.0 * sin(1.0 / 1.0 * (3.14 / 2)) + 1.0); flash.start(0, 0, 1, 0, 0); flash.start(0, 0, 1, 1, 0); flash.m_timer->start(5); usleep(5000); flash.m_timer->stop(); } int states = 1; int state() { return states; } TEST_F(ut_showInstallInfoTextEdit_Test, ShowInstallInfoTextEdit_UT_tapGestureTriggered) { Stub stub; stub.set(ADDR(QGesture, state), state); QTapGesture *tap = new QTapGesture; tap->setPosition(QPointF(0, 0)); QTapAndHoldGesture *tapAndHold = new QTapAndHoldGesture; while (states <= 4) { m_infoTextEdit->tapGestureTriggered(tap); if (states != 2 && states != 4) m_infoTextEdit->tapAndHoldGestureTriggered(tapAndHold); states++; } EXPECT_FALSE(m_infoTextEdit->m_slideContinue); EXPECT_EQ(ShowInstallInfoTextEdit::GA_slide, m_infoTextEdit->m_gestureAction); delete tap; delete tapAndHold; } TEST_F(ut_showInstallInfoTextEdit_Test, ShowInstallInfoTextEdit_UT_gestureEvent) { QGesture *gesture = new QGesture(); QGestureEvent gestureEvent(QList{gesture, gesture}); EXPECT_TRUE(m_infoTextEdit->gestureEvent(&gestureEvent)); delete gesture; } TEST_F(ut_showInstallInfoTextEdit_Test, ShowInstallInfoTextEdit_UT_mouseReleaseEvent) { QMouseEvent releaseEvent(QEvent::MouseButtonRelease, QPoint(0, 0), QPoint(0, 0), QPoint(0, 0), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier, Qt::MouseEventSynthesizedByQt); m_infoTextEdit->m_gestureAction = ShowInstallInfoTextEdit::GA_slide; m_infoTextEdit->mouseReleaseEvent(&releaseEvent); EXPECT_EQ(ShowInstallInfoTextEdit::GA_null, m_infoTextEdit->m_gestureAction); } TEST_F(ut_showInstallInfoTextEdit_Test, ShowInstallInfoTextEdit_UT_mouseMoveEvent) { QMouseEvent moveEvent(QEvent::MouseMove, QPoint(0, 0), QPoint(10, 0), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier); m_infoTextEdit->mouseMoveEvent(&moveEvent); ASSERT_EQ(0.0, m_infoTextEdit->m_lastMousepos); } TEST_F(ut_showInstallInfoTextEdit_Test, ShowInstallInfoTextEdit_UT_mouseMoveEvent_source) { Stub stub; stub.set(ADDR(QMouseEvent, source), stud_source); m_infoTextEdit->m_gestureAction = ShowInstallInfoTextEdit::GA_slide; QMouseEvent moveEvent(QEvent::MouseMove, QPoint(0, 0), QPoint(10, 0), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier); m_infoTextEdit->mouseMoveEvent(&moveEvent); ASSERT_EQ(0.0, m_infoTextEdit->m_lastMousepos); } deepin-deb-installer-6.5.5/tests/test-prj-running.sh000066400000000000000000000020631474340456100224530ustar00rootroot00000000000000# SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. # # SPDX-License-Identifier: CC0-1.0 #!/bin/bash builddir=build reportdir=build-ut rm -r $builddir rm -r ../$builddir rm -r $reportdir rm -r ../$reportdir mkdir ../$builddir mkdir ../$reportdir cd ../$builddir #编译 cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_SAFETYTEST_ARG="CMAKE_SAFETYTEST_ARG_ON" .. make -j8 #生成asan日志和ut测试xml结果 ./tests/deepin-deb-installer-test --gtest_output=xml:./report/report_deepin-deb-installer.xml workdir=$(cd ../$(dirname $0)/$builddir; pwd) mkdir -p report #统计代码覆盖率并生成html报告 lcov -d $workdir -c -o ./coverage.info lcov --extract ./coverage.info '*/src/*' -o ./coverage.info lcov --remove ./coverage.info '*/tests/*' '*/process/*' -o ./coverage.info genhtml -o ./html ./coverage.info mv ./html/index.html ./html/cov_deepin-deb-installer.html #对asan、ut、代码覆盖率结果收集至指定文件夹 cp -r html ../$reportdir/ cp -r report ../$reportdir/ cp -r asan*.log* ../$reportdir/asan_deepin-deb-installer.log exit 0 deepin-deb-installer-6.5.5/translations/000077500000000000000000000000001474340456100202475ustar00rootroot00000000000000deepin-deb-installer-6.5.5/translations/CMakeLists.txt000066400000000000000000000021101474340456100230010ustar00rootroot00000000000000# Copyright (C) 2019 ~ 2020 Uniontech Software Technology Co.,Ltd. # # Author: cuizhen # # Maintainer: cuizhen # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . file(GLOB APP_TS_FILES LIST_DIRECTORIES false *.ts) qt5_add_translation(APP_QM_FILES ${APP_TS_FILES}) file(GLOB QM_FILES "${CMAKE_SOURCE_DIR}/*.qm") install(FILES ${APP_QM_FILES} DESTINATION share/deepin-deb-installer/translations) add_custom_target(QMFILES ALL DEPENDS ${APP_QM_FILES}) add_subdirectory(policy) deepin-deb-installer-6.5.5/translations/deepin-deb-installer.ts000066400000000000000000001011521474340456100246060ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Enter the number to configure: OK button OK BackendProcessPage Loading packages... Loading packages... %1/%2 loaded %1/%2 loaded Initializing... Initializing... DdimErrorPage OK OK DebInstaller Package Installer Package Installer Settings Settings Installing other packages... Please open it later. Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. No deb packages found. Please check the folder. The %1 package may be broken You can only install local %1 packages No permission to access this folder The deb package may be broken The deb package may be broken You can only install local deb packages You can only install local deb packages Already Added Already Added %1 does not exist, please reselect %1 does not exist, please reselect Bulk Install Bulk Install DebListModel Installation failed, please check your network connection Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Installation failed, insufficient disk space No digital signature No digital signature Invalid digital signature Invalid digital signature The administrator has set policies to prevent installation of this package The administrator has set policies to prevent installation of this package Installation Failed Installation Failed current system %2 has been installed in %1, please uninstall this package before installing it Broken dependencies, try installing the app in compatibility mode Failed to install %1 Failed to install %1 Failed to install %1: no valid digital singature Failed to install %1: no valid digital singature Unable to install - no digital signature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Please go to Control Center to enable developer mode and try again. Proceed? Cancel button Cancel Proceed button Proceed OK button OK Failed to install %1: no valid digital signature This package does not have a valid digital signature. Continue with the installation? This package does not have a valid digital signature. Continue with the installation? Cancel Cancel Continue button Continue Unable to install Unable to install This package does not have a valid digital signature This package does not have a valid digital signature Broken dependencies: %1 Broken dependencies: %1 Authentication failed Authentication failed Unmatched package architecture Unmatched package architecture FileChooseWidget Drag deb packages here Drag deb packages here Select File Select File MultipleInstallPage Show details Show details Collapse button Collapse Install button Install Done button Done Back button Back Install %1 will remove: Dependencies in the repository Dependencies in the repository Missing dependencies Missing dependencies Installing dependencies: %1 Installing dependencies: %1 PackageSelectItem Same version installed Same version installed Earlier version installed: %1 Earlier version installed: %1 Later version installed: %1 Later version installed: %1 Unmatched package architecture Unmatched package architecture PackageSelectView Select all Select all Install button Install PackagesListDelegate Installing Installing Installed Installed Failed Failed Waiting Waiting Same version installed Same version installed Later version installed: %1 Later version installed: %1 Earlier version installed: %1 Earlier version installed: %1 PackagesListView Delete Delete QApplication Collapse button Collapse QObject Basic Basic Check digital signatures if the developer mode is enabled Check digital signatures if the developer mode is enabled To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Security Center > Tools > App Security The system has not installed Linglong environment, please install it first Unable to install Unable to install This package does not have a valid digital signature and has been blocked from installing/running. Go to Security Center > Tools > App Security to change the settings. Cancel button Cancel Proceed button Proceed Will remove: SingleInstallPage Collapse Collapse Reinstall Reinstall Later version installed: %1 Later version installed: %1 Downgrade Downgrade Earlier version installed: %1 Earlier version installed: %1 Installing dependencies: %1 Installing dependencies: %1 Failed to install %1 Failed to install %1 Version: Version: Select a compatibility mode: Install button Install Remove button Remove OK button OK Back button Back Done button Done Trying to install %2 in %1 compatibility mode Uninstalling %2 from %1 compatibility mode %2 was successfully installed to %1 compatibility mode Installed successfully Installed successfully %2 has been successfully uninstalled from %1 compatibility mode Uninstalled successfully Uninstalled successfully Uninstall Failed Uninstall Failed Install %1 will remove: Dependencies in the repository Dependencies in the repository Missing dependencies Missing dependencies Update button Update Invalid digital signature Invalid digital signature Name: Name: Same version installed Same version installed SingleInstallPage_Install Show details Show details Show dependencies Show dependencies SingleInstallPage_Uninstall Show details Show details Uab::UabPackageListModel Installation Failed Installation Failed UninstallConfirmPage Show related packages Show related packages Collapse button Collapse Cancel button Cancel Confirm Confirm Are you sure you want to uninstall %1? All dependencies will also be removed Are you sure you want to uninstall %1? All dependencies will also be removed Are you sure you want to uninstall %1? The system or other applications may not work properly Are you sure you want to uninstall %1? The system or other applications may not work properly Are you sure you want to uninstall %2 from %1 compatibility mode? main Package Installer Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. Package Installer helps users install and remove local packages, and supports bulk installation. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_am_ET.ts000066400000000000000000000644231474340456100256640ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button እሺ BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK እሺ DebInstaller Package Installer Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken You can only install local deb packages Already Added %1 does not exist, please reselect Bulk Install መግጠሚያ DebListModel Installation failed, please check your network connection መግጠም አልተቻለም: እባክዎን የ ኔትዎርክ ግንኙነት ይመርምሩ Installation failed, please check for updates in Control Center Installation failed, insufficient disk space መግጠም አልተቻለም: በቂ ነፃ የ ዲስክ ቦታ የለም No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed መግጠሙ አልተሳካም Failed to install %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button መሰረዣ Proceed button OK button እሺ This package does not have a valid digital signature. Continue with the installation? Cancel መሰረዣ Continue button Unable to install This package does not have a valid digital signature Broken dependencies: %1 Authentication failed Unmatched package architecture የ ማይመሳሰል ጥቅል ግንባታ FileChooseWidget Drag deb packages here Select File ፋይል ይምረጡ MultipleInstallPage Show details Collapse button ማሳነሻ Install button መግጠሚያ Done button Back button ወደ ኋላ Dependencies in the repository Missing dependencies Installing dependencies: %1 PackageSelectItem Same version installed ተመሳሳይ እትም ተገጥሟል Earlier version installed: %1 Later version installed: %1 Unmatched package architecture የ ማይመሳሰል ጥቅል ግንባታ PackageSelectView Select all Install button መግጠሚያ PackagesListDelegate Installing በ መግጠም ላይ Installed ተገጥሟል Failed ወድቋል Waiting Same version installed ተመሳሳይ እትም ተገጥሟል Later version installed: %1 Earlier version installed: %1 PackagesListView Delete QApplication Collapse button ማሳነሻ QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Collapse ማሳነሻ Reinstall እንደገና መግጠሚያ Later version installed: %1 Downgrade Earlier version installed: %1 Installing dependencies: %1 Failed to install %1 Version: እትም: Install button መግጠሚያ Remove button ማስወገጃ OK button እሺ Back button ወደ ኋላ Done button Installed successfully ተሳክቶ ተገጥሟል Uninstalled successfully ተሳክቶ ጠፍቷል Uninstall Failed ማጥፋት አልተቻለም Dependencies in the repository Missing dependencies Update button Name: ስም: Same version installed ተመሳሳይ እትም ተገጥሟል SingleInstallPage_Install Show details Show dependencies SingleInstallPage_Uninstall Show details UninstallConfirmPage Show related packages Collapse button ማሳነሻ Cancel button መሰረዣ Confirm ማረጋገጫ Are you sure you want to uninstall %1? All dependencies will also be removed Are you sure you want to uninstall %1? The system or other applications may not work properly main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_ar.ts000066400000000000000000000653151474340456100253020ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button حسناً BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK حسناً DebInstaller Package Installer مثبّت الحزم Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken You can only install local deb packages Already Added تم إضافته مسبقاً %1 does not exist, please reselect Bulk Install تثبيت جماعي DebListModel Installation failed, please check your network connection تعذر التثبيت، يرجى التحقق من الاتصال بالشبكة Installation failed, please check for updates in Control Center تعذر التثبيت، يرجى التحقق من التحديثات في مركز التحكم Installation failed, insufficient disk space تعذر التثبيت، مساحة القرص غير كافية No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed تعذر التثبيت Failed to install %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button إلغاء Proceed button OK button حسناً This package does not have a valid digital signature. Continue with the installation? Cancel إلغاء Continue button Unable to install غير قادر على التثبيت This package does not have a valid digital signature Broken dependencies: %1 الاعتماديات المعطوبة : %1 Authentication failed Unmatched package architecture معمارية الحزمة غير مطابقة FileChooseWidget Drag deb packages here اسحب حزم deb وأسقطها هنا Select File تحديد ملف MultipleInstallPage Show details إظهار التفاصيل Collapse button طي Install button تثبيت Done button تم Back button رجوع Dependencies in the repository Missing dependencies Installing dependencies: %1 PackageSelectItem Same version installed الإصدار نفسه مثبت Earlier version installed: %1 Later version installed: %1 Unmatched package architecture معمارية الحزمة غير مطابقة PackageSelectView Select all Install button تثبيت PackagesListDelegate Installing يتم التثبيت Installed مثبت Failed فشل Waiting جاي الإنتظار Same version installed الإصدار نفسه مثبت Later version installed: %1 Earlier version installed: %1 PackagesListView Delete حذف QApplication Collapse button طي QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Collapse طي Reinstall إعادة التثبيت Later version installed: %1 Downgrade Earlier version installed: %1 Installing dependencies: %1 Failed to install %1 Version: الإصدار : Install button تثبيت Remove button إزالة OK button حسناً Back button رجوع Done button تم Installed successfully تم التثبيت بنجاح Uninstalled successfully تم إلغاء التثبيت بنجاح Uninstall Failed فشل إزالة التثبيت Dependencies in the repository Missing dependencies Update button Name: الاسم: Same version installed الإصدار نفسه مثبت SingleInstallPage_Install Show details إظهار التفاصيل Show dependencies SingleInstallPage_Uninstall Show details إظهار التفاصيل UninstallConfirmPage Show related packages عرض الحزم المرتبطة Collapse button طي Cancel button إلغاء Confirm تأكيد Are you sure you want to uninstall %1? All dependencies will also be removed هل أنت متأكد من إزالة %1؟ ستزال جميع الملحقات معه Are you sure you want to uninstall %1? The system or other applications may not work properly هل أنت متأكد من إزالة تثبيت %1؟ ربما لا يعمل النظام والتطبيقات الأخرى بشكل جيد main Package Installer مثبّت الحزم Package Installer helps users install and remove local packages, and supports bulk installation. مثبت الحزم: يساعد المستخدمين على تثبيت وإزالة الحزم المحلية، ويدعم أيضاً الثبيت الجماعي للحزم. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_ast.ts000066400000000000000000000641471474340456100254710ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button Aceutar BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK Aceutar DebInstaller Package Installer Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken You can only install local deb packages Already Added %1 does not exist, please reselect Bulk Install Instalación masiva DebListModel Installation failed, please check your network connection Falló la instalación, comprueba la to conexón d'internet Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Falló la instalación, espaciu insuficiente en discu No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed Falló la instalación Failed to install %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button Encaboxar Proceed button OK button Aceutar This package does not have a valid digital signature. Continue with the installation? Cancel Encaboxar Continue button Unable to install This package does not have a valid digital signature Broken dependencies: %1 Authentication failed Unmatched package architecture Arquitectura de paquete que nun concasa FileChooseWidget Drag deb packages here Select File Esbillar ficheru MultipleInstallPage Show details Collapse button Contrayer Install button Instalar Done button Fecho Back button Atrás Dependencies in the repository Missing dependencies Installing dependencies: %1 PackageSelectItem Same version installed Instalada la mesma versión Earlier version installed: %1 Instalóse una versión anterior: %1 Later version installed: %1 Unmatched package architecture Arquitectura de paquete que nun concasa PackageSelectView Select all Install button Instalar PackagesListDelegate Installing Instalando Installed Instalóse Failed Falló Waiting Same version installed Instalada la mesma versión Later version installed: %1 Earlier version installed: %1 Instalóse una versión anterior: %1 PackagesListView Delete QApplication Collapse button Contrayer QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Collapse Contrayer Reinstall Reinstalar Later version installed: %1 Downgrade Earlier version installed: %1 Instalóse una versión anterior: %1 Installing dependencies: %1 Failed to install %1 Version: Versión: Install button Instalar Remove button Desaniciar OK button Aceutar Back button Atrás Done button Fecho Installed successfully Instalóse con ésitu Uninstalled successfully Desinstalóse con ésitu Uninstall Failed Falló la desinstalación Dependencies in the repository Missing dependencies Update button Name: Nome: Same version installed Instalada la mesma versión SingleInstallPage_Install Show details Show dependencies SingleInstallPage_Uninstall Show details UninstallConfirmPage Show related packages Collapse button Contrayer Cancel button Encaboxar Confirm Confirmar Are you sure you want to uninstall %1? All dependencies will also be removed Are you sure you want to uninstall %1? The system or other applications may not work properly main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_az.ts000066400000000000000000000711671474340456100253140ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Konfiqurasiya nömrəsini daxil edin: OK button OK BackendProcessPage Loading packages... Paketlər yüklənir... %1/%2 loaded %1%2 yükləndi Initializing... Başladılır... DdimErrorPage OK OK DebInstaller Package Installer Paket quraşdırıcısı Settings Ayarlar Installing other packages... Please open it later. Digər paketlər quraşdırılır... Bunu sonra açın. Parsing failed: An illegal file structure was found in the manifest file! Təhlil etmək mümkün olmadı: MANİFEST faylında səhv quruluşa malik fayl tapıldı! Parsing failed: An illegal version number was found in the manifest file! Təhlil etmək mümkün olmadı: MANİFEST faylında səhv versiya nömrəsi tapıldı! No deb packages found. Please check the folder. DEB paket tapılmadı. Qovluğu yoxlayın. The deb package may be broken DEB paket pozula bilər You can only install local deb packages Siz yalnız yerli deb paketləri quraşdıra bilərsiniz Already Added Artıq əlavə olunub %1 does not exist, please reselect %1 mövcud deyil, lütfən, yenidən seçin Bulk Install Toplu quraşdırmaq DebListModel Installation failed, please check your network connection Quraşdırılma alınmadı, lütfən internet bağlantısını yoxlayın Installation failed, please check for updates in Control Center Quraşdırılma alınmadı, İdarəetmə Mərkəzində yenilənmələri yoxlayın Installation failed, insufficient disk space Quraşdırma alınmadı, qeyri-kafi disk sahəsi No digital signature Rəqəmsal imza yoxdur Invalid digital signature Rəqəmsal imza səhvdir The administrator has set policies to prevent installation of this package İnzibatçı, bu paketin quraşdırılmasının qarşçısını almaq üçün qaydalar təyin edib Installation Failed Quraşdırma baş tutmadı Failed to install %1 %1 quraşdırılması baş tutmadı This package does not have a valid digital signature and has been blocked from installing/running. Go to Security Center > Tools > App Security to change the settings. Failed to install %1: no valid digital singature %1 quraşdırmaq mümkün olmadı: etibarlı elektron imza yoxdur Unable to install - no digital signature Quraşdırılma mümkün deyil - rəqəmsal imza yoxdur Please go to Control Center to enable developer mode and try again. Proceed? Lütfən, İdarəetmə Mərkəzinə keçin və tərtibatçı rejimini açın və yenidən cəhd edin. İcra olunsun? Cancel button İmtina Proceed button Davam edin OK button OK Failed to install %1: no valid digital signature %1 quraşdırmaq mümkün olmadı: etibarlı rəqəmsal imza yoxdur This package does not have a valid digital signature. Continue with the installation? Paketin elektron imzası etibarlı deyil. Quraşdırmaya davam edilsin? Cancel İmtina Continue button Davam edin Unable to install Quraşdırıla bilmədi This package does not have a valid digital signature Bu paketdə etibarlı rəqəmsal imza yoxdur Broken dependencies: %1 Korlanmış asılılıqlar: %1 Authentication failed Doğrulama alınmadı Unmatched package architecture Uyğunsuz paket arxitekturaları FileChooseWidget Drag deb packages here Deb paketləri buraya atın Select File Faylı seçin MultipleInstallPage Show details Təfərrüatları göstərmək Collapse button Yığmaq Install button Quraşdırmaq Done button İcra olundu Back button Geriyə Dependencies in the repository Bu repozitoriyadakı asılılıqlar Missing dependencies Çatışmayan asılılıqlar Installing dependencies: %1 Asılılıqlar quraşdırılır: %1 PackageSelectItem Same version installed Eyni versiya quraşdırıldı Earlier version installed: %1 Əvvəlki versiya quraşdırıldı: %1 Later version installed: %1 Sonrakı versiya quraşdırıldı: %1 Unmatched package architecture Uyğunsuz paket arxitekturaları PackageSelectView Select all Hamısını seçin Install button Quraşdırmaq PackagesListDelegate Installing Quraşdırılır Installed Quraşdırıldı Failed Alınmadı Waiting Gözləyir Same version installed Eyni versiya quraşdırıldı Later version installed: %1 Sonrakı versiya quraşdırıldı: %1 Earlier version installed: %1 Əvvəlki versiya quraşdırıldı: %1 PackagesListView Delete Silmək QApplication Collapse button Yığmaq QObject Basic Əsas Check digital signatures if the developer mode is enabled Əgər tərtibatçı rejimi aktivdirsə elektron imzaları yoxlayın To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Security Center > Tools > App Security SingleInstallPage Collapse Yığmaq Reinstall Yenidən quraşdırmaq Later version installed: %1 Sonrakı versiya quraşdırıldı: %1 Downgrade Bir versiya geriyə Earlier version installed: %1 Əvvəlki versiya quraşdırıldı: %1 Installing dependencies: %1 Asılılıqlar quraşdırılır: %1 Failed to install %1 %1 quraşdırılması baş tutmadı Version: Versiya: Install button Quraşdırmaq Remove button Silmək OK button OK Back button Geriyə Done button İcra olundu Installed successfully Uğurla quraşdırıldı Uninstalled successfully Uğurla silindi Uninstall Failed Silinə bilmədi Dependencies in the repository Bu repozitoriyadakı asılılıqlar Missing dependencies Çatışmayan asılılıqlar Update button Yeniləmək Invalid digital signature Rəqəmsal imza səhvdir Name: Adı: Same version installed Eyni versiya quraşdırıldı SingleInstallPage_Install Show details Təfərrüatları göstərmək Show dependencies Asılılıqları göstərmək SingleInstallPage_Uninstall Show details Təfərrüatları göstərmək UninstallConfirmPage Show related packages Əlaqəli paketləri göstərmək Collapse button Yığmaq Cancel button İmtina Confirm Təsdiqləmək Are you sure you want to uninstall %1? All dependencies will also be removed %1 silmək istədiyinizə əminsiniz? Həmçinin bütün asılılıqlar da silinəcək Are you sure you want to uninstall %1? The system or other applications may not work properly %1 silmək istəfiyinizə əminsiniz? Sistem və başqa tətbiqlər düzgün işləməyə bilər main Package Installer Paket quraşdırıcısı Package Installer helps users install and remove local packages, and supports bulk installation. Paket quraşdırıcısı, istifadəçilərə paketləri quraşdırmağa və silməyə imkan verir, həmçinin toplu quraşdırmanı dəstəkləyir. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_bg.ts000066400000000000000000000652741474340456100252740ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button ОК BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK ОК DebInstaller Package Installer Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken You can only install local deb packages Already Added %1 does not exist, please reselect Bulk Install Групова инсталация DebListModel Installation failed, please check your network connection Инсталацията е неуспешна, моля, проверете вашата връзка към мрежата Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Инсталацията е неуспешна, няма достатъчно място на диска No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed Инсталацията е неуспешна Failed to install %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button Отказ Proceed button OK button ОК This package does not have a valid digital signature. Continue with the installation? Cancel Отказ Continue button Unable to install This package does not have a valid digital signature Broken dependencies: %1 Authentication failed Unmatched package architecture Неподходяща архитектура на пакета FileChooseWidget Drag deb packages here Select File Избор на файл MultipleInstallPage Show details Collapse button Сриване Install button Инсталиране Done button Завършено Back button Назад Dependencies in the repository Missing dependencies Installing dependencies: %1 PackageSelectItem Same version installed Същата версия е инсталирана Earlier version installed: %1 Later version installed: %1 Unmatched package architecture Неподходяща архитектура на пакета PackageSelectView Select all Install button Инсталиране PackagesListDelegate Installing Инсталиране Installed Инсталирано Failed Неуспешно Waiting Same version installed Същата версия е инсталирана Later version installed: %1 Earlier version installed: %1 PackagesListView Delete QApplication Collapse button Сриване QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Collapse Сриване Reinstall Преинсталиране Later version installed: %1 Downgrade Earlier version installed: %1 Installing dependencies: %1 Failed to install %1 Version: Версия: Install button Инсталиране Remove button Премахване OK button ОК Back button Назад Done button Завършено Installed successfully Инсталирането е успешно Uninstalled successfully Деинсталирането е успешно Uninstall Failed Деинсталирането е неуспешно Dependencies in the repository Missing dependencies Update button Name: Име: Same version installed Същата версия е инсталирана SingleInstallPage_Install Show details Show dependencies SingleInstallPage_Uninstall Show details UninstallConfirmPage Show related packages Collapse button Сриване Cancel button Отказ Confirm Потвърждение Are you sure you want to uninstall %1? All dependencies will also be removed Сигурен ли сте, че искате да деинсталирате %1? Всички зависимости също ще бъдат премахнати Are you sure you want to uninstall %1? The system or other applications may not work properly main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_bo.ts000066400000000000000000001103431474340456100252700ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: གོ་རིམ་ཨང་གྲངས་འཇུག་ནས་བགོ་སྒྲིག་བྱ་རྒྱུ། OK button ཆོག BackendProcessPage Loading packages... སྒྲིག་སྦྱོར་ཁུག་མ་སྣོན་འཇུག་བཞིན་པ། %1/%2 loaded %1/%2སྣོན་འཇུག་བྱས་ཟིན། Initializing... འགོ་འཛུགས་བཞིན་པ། DdimErrorPage OK ཆོག DebInstaller Package Installer མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས། Settings སྒྲིག་བཀོད། Installing other packages... Please open it later. སྒྲིག་སྦྱོར་བྱ་རིམ་ལག་བསྟར་བྱེད་བཞིན་པས། ཁ་ཕྱེ་ཐབས་མེད། Parsing failed: An illegal file structure was found in the manifest file! མཉེན་ཆས་ཁུག་མ་དབྱེ་ཞིབ་མི་ཐུབ་པས། མཉེན་ཆས་ཁུག་ནང་སྒྲིག་བརྒལ་ཡིག་ཆ་འདུས་ཡོད། Parsing failed: An illegal version number was found in the manifest file! མཉེན་ཆས་ཁུག་མ་དབྱེ་ཞིབ་མི་ཐུབ་པས། མཉེན་ཆས་ཁུག་ནང་སྒྲིག་བརྒལ་གྱི་པར་ཨང་འདུས་ཡོད། No deb packages found. Please check the folder. སྒྲིག་སྦྱོར་ཁུག་མ་ཪྙེད་མ་བྱུང་བས། སྒྲིག་སྦྱོར་དཀར་ཆག་ལ་བརྟག་བཤེར་གནང་རོགས། The deb package may be broken debཁུག་གནོད་སྐྱོན་ཤོར་ཡོད་མེད་ཞིབ་བཤེར་གནང་རོགས། You can only install local deb packages རང་སའི་debཁུག་གཅིག་པུ་སྒྲིག་འཇུག་ཆོག Already Added སྣོན་ཟིན། %1 does not exist, please reselect %1ཡིག་ཆ་མི་འདུག་པས། ཡང་བསྐྱར་འདེམས་རོགས། Bulk Install མང་པོ་མཉམ་དུ་སྒྲིག་སྦྱོར་བྱེད་པ། DebListModel Installation failed, please check your network connection སྒྲིག་སྦྱོར་མི་ཐུབ། ཁྱེད་ཀྱི་དྲ་བ་མཐུད་ཡོད་མེད་ཞིབ་བཤེར་གནང་དང་། Installation failed, please check for updates in Control Center སྒྲིག་སྦྱོར་མི་ཐུབ། ཚོད་འཛིན་ལྟེ་གནས་སུ་གསར་སྒྱུར་ཞིབ་བཤེར་གནང་རོགས། Installation failed, insufficient disk space སྒྲིག་སྦྱོར་མི་ཐུབ། སྡུད་སྡེར་གྱི་བར་སྣང་འདང་གི་མིན་འདུག No digital signature གྲངས་ཀའི་མིང་རྟགས་མེད། Invalid digital signature གྲངས་ཀའི་མིང་རྟགས་ཕན་མེད། The administrator has set policies to prevent installation of this package དོ་དམ་པས་བཀག་སྡོམ་བྱས་ཡོད་པས་མཉེན་ཆས་འདི་ཉིད་སྒྲིག་འཇུག་བྱེད་མི་ཆོག Installation Failed སྒྲིག་སྦྱོར་མི་ཐུབ། Failed to install %1 %1སྒྲིག་སྦྱོར་མི་ཐུབ། This package does not have a valid digital signature and has been blocked from installing/running. Go to Security Center > Tools > App Security to change the settings. སྒྲིག་སྦྱོར་ཁུག་མའི་ནང་དུ་གོ་ཆོད་པའི་མཚན་རྟགས་ཨང་ཀི་མེད་པས། སྒྲིག་སྦྱོར་/བཀོལ་སྤྱོད་བཀག་སྡོམ་བྱས་ཟིན། བདེ་འཇགས་ལྟེ་གནས།-བདེ་འཇགས་ཡོ་བྱད།-ཉེར་སྤྱོད་བདེ་འཇགས་ནས་ལེགས་སྒྲིག་གནང་རྒྱུ། Failed to install %1: no valid digital singature %1སྒྲིག་སྦྱོར་བྱེད་ཐབས་མི་འདུག སྒྲིག་སྦྱོར་ཁུག་མའི་ནང་དུ་གོ་ཆོད་པའི་ཨང་ཀིའི་མཚན་རྟགས་མེད། Unable to install - no digital signature སྒྲིག་འཇུག་བྱེད་ཐབས་བྲལ། སྒྲིག་འཇུག་ཁུག་མར་གྲངས་ཀའི་མིང་རྟགས་མེད། Please go to Control Center to enable developer mode and try again. Proceed? ཚོད་འཛིན་ལྟེ་གནས་སུ་མཛུལ་ཏེ། གསར་སྤེལ་བའི་དཔེ་རྣམ་ཕྱེ་རྗེས་ཡང་བསྐྱར་ཚོད་ལྟ་བྱས་ནས་སྒྲིག་འཇུག་བྱེད། མུ་མཐུད་ཡིན་ནམ། Cancel button འདོར་བ། Proceed button མུ་མཐུད། OK button ཆོག Failed to install %1: no valid digital signature %1སྒྲིག་སྦྱོར་བྱེད་ཐབས་མི་འདུག སྒྲིག་སྦྱོར་ཁུག་མའི་ནང་དུ་གོ་ཆོད་པའི་ཨང་ཀིའི་མཚན་རྟགས་མེད། This package does not have a valid digital signature. Continue with the installation? སྒྲིག་འཇུག་ཁུག་མའི་ནང་གོ་ཆོད་པའི་ཨང་ཀིའི་མཚན་རྟགས་མེད་པས། མུ་མཐུད་ནང་འཇུག་བྱེད་དམ། Cancel འདོར་བ། Continue button མུ་མཐུད། Unable to install སྒྲིག་སྦྱོར་བྱེད་ཐབས་མེད། This package does not have a valid digital signature སྒྲིག་སྦྱོར་ཁུག་འདིར་ནང་དུ་ཕན་ནུས་ལྡན་པའི་ཨང་ཀིའི་མཚན་རྟགས་མེད། Broken dependencies: %1 བརྟེན་པའི་འབྲེལ་བ་མི་འདང་། %1 Authentication failed བགོ་སྒྲིག་དབང་བརྩལ་བྱེད་མི་ཐུབ། Unmatched package architecture མཉེན་ཆས་ཁུག་གི་གཞི་སྒྲོམ་སྙོམ་འགྲིག་མི་ཐུབ། FileChooseWidget Drag deb packages here མཉེན་ཆས་ཁུག་འདི་རུ་འཇོག་དང་། Select File ཡིག་ཆ་འདེམས་པ། MultipleInstallPage Show details ཞིབ་ཕྲའི་ཆ་འཕྲིན་འཆར་བ། Collapse button བསྡུ་བ། Install button སྒྲིག་སྦྱོར། Done button ལེགས་གྲུབ། Back button ཕྱིར་ལོག Dependencies in the repository མཛོད་ནང་ཡོད་པའི་རྟེན་ཁུག Missing dependencies མཛོད་ནང་མེད་པའི་རྟེན་ཁུག Installing dependencies: %1 བརྟེན་པའི་འབྲེལ་བ་བཙུགས་བཞིན་པ། %1 PackageSelectItem Same version installed པར་གཞི་འདྲ་མཚུངས་སྒྲིག་སྦྱོར་བྱས་ཟིན། Earlier version installed: %1 ཅུང་སྔ་བའི་པར་གཞི་%1སྒྲིག་སྦྱོར་བྱས་ཟིན། Later version installed: %1 ཅུང་གསར་པའི་པར་གཞི་%1སྒྲིག་སྦྱོར་བྱས་ཟིན། Unmatched package architecture མཉེན་ཆས་ཁུག་གི་གཞི་སྒྲོམ་སྙོམ་འགྲིག་མི་ཐུབ། PackageSelectView Select all ཡོངས་འདེམ། Install button སྒྲིག་སྦྱོར། PackagesListDelegate Installing སྒྲིག་སྦྱོར་བྱེད་བཞིན་པ། Installed སྒྲིག་སྦྱོར་བྱས་ཟིན། Failed སྒྲིག་སྦྱོར་མི་ཐུབ། Waiting སྒྲིག་སྦྱོར་སྒུག་བཞིན་པ། Same version installed པར་གཞི་འདྲ་མཚུངས་སྒྲིག་སྦྱོར་བྱས་ཟིན། Later version installed: %1 ཅུང་གསར་པའི་པར་གཞི་%1སྒྲིག་སྦྱོར་བྱས་ཟིན། Earlier version installed: %1 ཅུང་སྔ་བའི་པར་གཞི་%1སྒྲིག་སྦྱོར་བྱས་ཟིན། PackagesListView Delete སུབ་པ། QApplication Collapse button བསྡུ་བ། QObject Basic རྨང་གཞིའི་སྒྲིག་བཀོད། Check digital signatures if the developer mode is enabled གསར་སྤེལ་བའི་རྣམ་པའི་འོག སྒྲིག་འཇུག་ཁུག་མའི་མིང་རྟགས་ལ་ཞིབ་བཤེར་བྱེད། To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. མཚན་རྟགས་བཀོད་མེད་པའི་ཉེར་སྤྱོད་སྒྲིག་སྦྱོར་བྱ་དགོས་ན། བདེ་འཇགས་ལྟེ་གནས།-བདེ་འཇགས་ཡོ་བྱད།-ཉེར་སྤྱོད་བདེ་འཇགས་ནས་སྒྲིག་སྦྱོར་རུང་བའི་ཉེར་སྤྱོད་རིགས་ཁག་སྒྲིག་བཀོད་བྱ་དགོས། Security Center > Tools > App Security བདེ་འཇགས་ལྟེ་གནས།-བདེ་འཇགས་ཡོ་བྱད།-ཉེར་སྤྱོད་བདེ་འཇགས། SingleInstallPage Collapse བསྡུ་བ། Reinstall ཡང་བསྐྱར་སྒྲིག་སྦྱོར། Later version installed: %1 ཅུང་གསར་པའི་པར་གཞི་%1སྒྲིག་སྦྱོར་བྱས་ཟིན། Downgrade པར་གཞི་རྙིང་པ་སྒྲིག་འཇུག་བྱེད་པ། Earlier version installed: %1 ཅུང་སྔ་བའི་པར་གཞི་%1སྒྲིག་སྦྱོར་བྱས་ཟིན། Installing dependencies: %1 བརྟེན་པའི་འབྲེལ་བ་བཙུགས་བཞིན་པ། %1 Failed to install %1 %1སྒྲིག་སྦྱོར་མི་ཐུབ། Version: པར་གཞི། Install button སྒྲིག་སྦྱོར། Remove button བཤིག་འདོན། OK button ཆོག Back button ཕྱིར་ལོག Done button ལེགས་གྲུབ། Installed successfully སྒྲིག་སྦྱོར་ཐུབ་སོང་། Uninstalled successfully བཤིག་འདོན་ཐུབ་སོང་། Uninstall Failed བཤིག་འདོན་མི་ཐུབ། Dependencies in the repository མཛོད་ནང་ཡོད་པའི་རྟེན་ཁུག Missing dependencies མཛོད་ནང་མེད་པའི་རྟེན་ཁུག Update button གསར་སྒྱུར། Invalid digital signature གྲངས་ཀའི་མིང་རྟགས་ཕན་མེད། Name: མིང་། Same version installed པར་གཞི་འདྲ་མཚུངས་སྒྲིག་སྦྱོར་བྱས་ཟིན། SingleInstallPage_Install Show details ཞིབ་ཕྲའི་ཆ་འཕྲིན་འཆར་བ། Show dependencies རྟེན་ཁུག་དབར་གྱི་འབྲེལ་བ་མངོན་པ། SingleInstallPage_Uninstall Show details བཤིག་འདོན་བྱེད་རིམ་འཆར་བ། UninstallConfirmPage Show related packages འབྲེལ་ཡོད་མཉེན་ཆས་ཁུག་འཆར་བ། Collapse button བསྡུ་བ། Cancel button འདོར་བ། Confirm བཤིག་འདོན་གཏན་འཁེལ་བ། Are you sure you want to uninstall %1? All dependencies will also be removed ཁྱེད་ཀྱིས་%1བཤིག་འདོན་བྱ་རྒྱུ་གཏན་འཁེལ་ལམ། བརྟེན་པའི་འབྲེལ་བ་ཚང་མ་མཉམ་དུ་སྤོ་འབུད་བྱེད་སྲིད། Are you sure you want to uninstall %1? The system or other applications may not work properly ཁྱེད་ཀྱིས་%1བཤིག་འདོན་བྱ་རྒྱུ་གཏན་འཁེལ་ལམ། མཉེན་ཆས་འདི་བཤིག་འདོན་བྱས་ཚེ་མ་ལག་གམ་མཉེན་ཆས་གཞན་དག་རྒྱུན་གཏན་ལྟར་སྤྱོད་ཐབས་མེད་པར་གྱུར་སྲིད། main Package Installer མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས། Package Installer helps users install and remove local packages, and supports bulk installation. མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས་ནི་སྤྱོད་མཁན་ལ་རང་སའི་མཉེན་ཆས་སྒྲིག་སྦྱོར་དང་བཤིག་འདོན་བྱེད་རོགས་བྱེད་པའི་ཡོ་བྱད་ཅིག་རེད་ལ། ཉེར་སྤྱོད་མང་པོ་མཉམ་དུ་སྒྲིག་སྦྱོར་བྱ་ཐུབ། deepin-deb-installer-6.5.5/translations/deepin-deb-installer_br.ts000066400000000000000000000644031474340456100253000ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button Mat eo BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK Mat eo DebInstaller Package Installer Stalier pakadoù Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken You can only install local deb packages Already Added Ouzhpennet endeo %1 does not exist, please reselect Bulk Install Lies-staliañ DebListModel Installation failed, please check your network connection Staliadur c'hwitet, gwirit ho kevreadenn ouzh ar genrouedad eta Installation failed, please check for updates in Control Center Staliadur c'hwitet, sellit hag-eñ n'eus hizivadur ebet er Greizenn Verañ Installation failed, insufficient disk space Staliadur c'hwitet, n'eus ket trawalc'h a blas war an disk No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed Staliadur c'hwitet Failed to install %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button Nullañ Proceed button OK button Mat eo This package does not have a valid digital signature. Continue with the installation? Cancel Nullañ Continue button Unable to install N'heller ket distaliañ This package does not have a valid digital signature N'eus ket ur sinadur niverel dereat gant ar pakad-mañ Broken dependencies: %1 Dalc'hoù torret: %1 Authentication failed Unmatched package architecture Arkitektouriezh ar pakadoù disheñvel FileChooseWidget Drag deb packages here Rinklit ho pakadoù deb amañ Select File Diuzañ ur restr MultipleInstallPage Show details Diskouez ar munudoù Collapse button Bihanaat Install button Staliañ Done button Echuet Back button Kent Dependencies in the repository Missing dependencies Installing dependencies: %1 O staliañ an dalc'hioù: %1 PackageSelectItem Same version installed Hevelep stumm staliet Earlier version installed: %1 Stumm kent staliet: %1 Later version installed: %1 Stumm war-lerc'h staliet: %1 Unmatched package architecture Arkitektouriezh ar pakadoù disheñvel PackageSelectView Select all Install button Staliañ PackagesListDelegate Installing O staliañ Installed Staliet Failed C'hwitadenn Waiting O c'hortoz Same version installed Hevelep stumm staliet Later version installed: %1 Stumm war-lerc'h staliet: %1 Earlier version installed: %1 Stumm kent staliet: %1 PackagesListView Delete Dilemel QApplication Collapse button Bihanaat QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Collapse Bihanaat Reinstall Adstaliañ Later version installed: %1 Stumm war-lerc'h staliet: %1 Downgrade Earlier version installed: %1 Stumm kent staliet: %1 Installing dependencies: %1 O staliañ an dalc'hioù: %1 Failed to install %1 Version: Stumm: Install button Staliañ Remove button Dilemel OK button Mat eo Back button Kent Done button Echuet Installed successfully Staliet gant berzh Uninstalled successfully Distaliet gant berzh Uninstall Failed Distaliañ c'hwitet Dependencies in the repository Missing dependencies Update button Name: Anv: Same version installed Hevelep stumm staliet SingleInstallPage_Install Show details Diskouez ar munudoù Show dependencies SingleInstallPage_Uninstall Show details Diskouez ar munudoù UninstallConfirmPage Show related packages Diskouez ar pakadoù kevelet Collapse button Bihanaat Cancel button Nullañ Confirm Kadarnat Are you sure you want to uninstall %1? All dependencies will also be removed Ha sur oc'h da gaout c'hoant da zilemel %1? An holl dalc'hioù a vo dilamet ivez Are you sure you want to uninstall %1? The system or other applications may not work properly Ha c'hoant ho peus da zilemel %1? Ar sistem pe aplikasionoù all a vo diaes dezho mont en-dro mat main Package Installer Stalier pakadoù Package Installer helps users install and remove local packages, and supports bulk installation. Ar stalier pakadoù a sikour an implijaderien da staliañ ha da zilemel ar pakadoù lec'hel, hag e kemer e kont ar staliadur a-vloc'had. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_ca.ts000066400000000000000000000714521474340456100252620ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Escriviu el número per a la configuració: OK button D'acord BackendProcessPage Loading packages... Es carreguen els paquets... %1/%2 loaded %1 / %2 carregats Initializing... S'inicia... DdimErrorPage OK D'acord DebInstaller Package Installer Instal·lador de paquets Settings Paràmetres Installing other packages... Please open it later. S'instal·len altres paquets... Si us plau, obriu-ho més tard. Parsing failed: An illegal file structure was found in the manifest file! S'ha produït un error a l'anàlisi: s'ha trobat una estructura de fitxer il·legal al fitxer de manifest! Parsing failed: An illegal version number was found in the manifest file! S'ha produït un error a l'anàlisi: s'ha trobat un número de versió il·legal al fitxer de manifest! No deb packages found. Please check the folder. No s'han trobat paquets deb. Si us plau, comproveu-ne la carpeta. The deb package may be broken El paquet deb potser està trencat. You can only install local deb packages Només podeu instal·lar paquets deb locals. Already Added Ja s'ha afegit %1 does not exist, please reselect %1 no existeix. Si us plau, refeu la selecció. Bulk Install Instal·lació massiva DebListModel Installation failed, please check your network connection Ha fallat la instal·lació. Si us plau, comproveu la connexió de xarxa. Installation failed, please check for updates in Control Center La instal·lació ha fallat, comproveu si hi ha actualitzacions al Centre de control. Installation failed, insufficient disk space Ha fallat la instal·lació. Espai de disc insuficient. No digital signature Sense signatura digital Invalid digital signature Signatura digital no vàlida The administrator has set policies to prevent installation of this package L'administrador ha establert polítiques per prevenir la instal·lació d'aquest paquet. Installation Failed Ha fallat la instal·lació. Failed to install %1 Ha fallat instal·lar %1 This package does not have a valid digital signature and has been blocked from installing/running. Go to Security Center > Tools > App Security to change the settings. Failed to install %1: no valid digital singature No s'ha pogut instal·lar %1: la signatura digital no és vàlida. Unable to install - no digital signature No es pot instal·lar. No té signatura digital. Please go to Control Center to enable developer mode and try again. Proceed? Si us plau, aneu al Centre de control per habilitar el mode de desenvolupament i torneu-ho a intentar. Voleu continuar? Cancel button Cancel·la Proceed button Continua OK button D'acord Failed to install %1: no valid digital signature Ha fallat instal·lar %1: la signatura digital no és vàlida. This package does not have a valid digital signature. Continue with the installation? Aquest paquet no té una signatura digital vàlida. Voleu continuar-ne la instal·lació? Cancel Cancel·la Continue button Continua Unable to install No es pot instal·lar This package does not have a valid digital signature Aquest paquet no té una signatura digital vàlida. Broken dependencies: %1 Dependències trencades: %1 Authentication failed Ha fallat l'autenticació. Unmatched package architecture L'arquitectura del paquet no coincideix. FileChooseWidget Drag deb packages here Arrossegueu paquets deb aquí. Select File Selecciona el fitxer MultipleInstallPage Show details Mostra'n els detalls Collapse button Replega Install button Instal·la Done button Fet Back button Enrere Dependencies in the repository Dependències al repositori Missing dependencies Dependències que manquen Installing dependencies: %1 S'instal·len dependències: %1 PackageSelectItem Same version installed N'hi ha instal·lada la mateixa versió. Earlier version installed: %1 Versió instal·lada abans: %1 Later version installed: %1 Darrera versió instal·lada: %1 Unmatched package architecture L'arquitectura del paquet no coincideix. PackageSelectView Select all Selecciona-ho tot Install button Instal·la PackagesListDelegate Installing S'instal·la Installed Instal·lat Failed Ha fallat Waiting S'espera Same version installed N'hi ha instal·lada la mateixa versió. Later version installed: %1 Darrera versió instal·lada: %1 Earlier version installed: %1 Versió instal·lada abans: %1 PackagesListView Delete Elimina QApplication Collapse button Replega QObject Basic Bàsic Check digital signatures if the developer mode is enabled Comproveu les signatures digitals si el mode de desenvolupador està habilitat. To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Security Center > Tools > App Security SingleInstallPage Collapse Replega Reinstall Reinstal·la Later version installed: %1 Darrera versió instal·lada: %1 Downgrade Degrada Earlier version installed: %1 Versió instal·lada abans: %1 Installing dependencies: %1 S'instal·len dependències: %1 Failed to install %1 Ha fallat instal·lar %1 Version: Versió: Install button Instal·la Remove button Elimina OK button D'acord Back button Enrere Done button Fet Installed successfully Instal·lació correcta Uninstalled successfully Desinstal·lació correcta Uninstall Failed Ha fallat la instal·lació. Dependencies in the repository Dependències al repositori Missing dependencies Dependències que manquen Update button Actualitza Invalid digital signature Signatura digital no vàlida Name: Nom: Same version installed N'hi ha instal·lada la mateixa versió. SingleInstallPage_Install Show details Mostra'n els detalls Show dependencies Mostra'n les dependències SingleInstallPage_Uninstall Show details Mostra'n els detalls UninstallConfirmPage Show related packages Mostra els paquets que s'hi relacionen. Collapse button Replega Cancel button Cancel·la Confirm Confirmeu-ho Are you sure you want to uninstall %1? All dependencies will also be removed Segur que voleu desinstal·lar %1? També se n'eliminaran totes les dependències. Are you sure you want to uninstall %1? The system or other applications may not work properly Segur que voleu desinstal·lar %1? Pot ser que el sistema o altres aplicacions no funcionin correctament. main Package Installer Instal·lador de paquets Package Installer helps users install and remove local packages, and supports bulk installation. L'Instal·lador de paquets ajuda els usuaris a instal·lar i eliminar paquets locals i admet la instal·lació massiva. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_cs.ts000066400000000000000000000712561474340456100253060ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Zadejte číslo pro nastavení: OK button OK BackendProcessPage Loading packages... Načítání balíčků... %1/%2 loaded %1 z %2 načteno Initializing... Spouštění... DdimErrorPage OK OK DebInstaller Package Installer Instalátor balíčků Settings Nastavení Installing other packages... Please open it later. Probíhá instalace jiných balíčků, prosím počkejte Parsing failed: An illegal file structure was found in the manifest file! Rozbor se nezdařil: V souboru manifestu byla nalezena nesprávná struktura souboru! Parsing failed: An illegal version number was found in the manifest file! Rozbor se nezdařil: V souboru manifestu bylo nalezeno nesprávné číslo verze! No deb packages found. Please check the folder. Žádné balíčky .deb nebyly nalezeny. Prosím zknotrolujte složku The deb package may be broken Tento deb balíček může být poškozený You can only install local deb packages Je možné instalovat pouze lokální deb balíčky Already Added Už přidáno %1 does not exist, please reselect %1 neexistuje, vyberte Bulk Install Hromadná instalace DebListModel Installation failed, please check your network connection Instalace se nezdařila. Zkontrolujte připojení k síti Installation failed, please check for updates in Control Center Instalace se nezdařila. Jděte do Ovládacích panelů a proveďte kontrolu aktualizací Installation failed, insufficient disk space Instalace se nezdařila, protože na disku není dost místa No digital signature Bez digitálního podpisu Invalid digital signature Neplatný digitální podpis The administrator has set policies to prevent installation of this package Správce nastavil zásady pro zabránění v instalaci tohoto balíčku Installation Failed Instalace se nezdařila Failed to install %1 Nepodařilo se nainstalovat %1 This package does not have a valid digital signature and has been blocked from installing/running. Go to Security Center > Tools > App Security to change the settings. Failed to install %1: no valid digital singature Nepodařilo se nainstalovat %1: neplatný digitální podpis Unable to install - no digital signature Nedaří se nainstalovat – chybí digitální podpis Please go to Control Center to enable developer mode and try again. Proceed? Přejděte do Ovládacích panelů, zde zapněte režim pro pro vývojáře a zkuste to znovu. Pokračovat? Cancel button Zrušit Proceed button Pokračovat OK button OK Failed to install %1: no valid digital signature Nepodařilo se nainstalovat %1: neplatný digitální podpis This package does not have a valid digital signature. Continue with the installation? Tento balíček nemá platný digitální podpis. Pokračovat v jeho instalaci? Cancel Zrušit Continue button Pokračovat Unable to install Nelze nainstalovat This package does not have a valid digital signature Tento balíček nemá platný digitální podpis Broken dependencies: %1 Nejsou k dispozici další balíčky, na kterých závisí: %1 Authentication failed Ověření se nezdařilo Unmatched package architecture Nehodící se architektura balíčku FileChooseWidget Drag deb packages here Sem přetáhněte DEB balíčky Select File Vybrat soubor MultipleInstallPage Show details Zobrazit podrobnosti Collapse button Sbalit Install button Nainstalovat Done button Hotovo Back button Zpět Dependencies in the repository Závislosti v repozitáři Missing dependencies Chybějící závislosti Installing dependencies: %1 Instalují se součásti, na kterých závisí: %1 PackageSelectItem Same version installed Stejná verze už je nainstalovaná Earlier version installed: %1 Dříve nainstalovaná verze: %1 Later version installed: %1 Později nainstalovaná verze: %1 Unmatched package architecture Nehodící se architektura balíčku PackageSelectView Select all Vybrat vše Install button Nainstalovat PackagesListDelegate Installing Instaluje se Installed Nainstalováno Failed Nezdařilo se Waiting Čeká se Same version installed Stejná verze už je nainstalovaná Later version installed: %1 Později nainstalovaná verze: %1 Earlier version installed: %1 Dříve nainstalovaná verze: %1 PackagesListView Delete Smazat QApplication Collapse button Sbalit QObject Basic Základní Check digital signatures if the developer mode is enabled Kontrolovat digitální podpisy při zapnutém režimu pro vývojáře To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Security Center > Tools > App Security SingleInstallPage Collapse Sbalit Reinstall Přeinstalovat Later version installed: %1 Později nainstalovaná verze: %1 Downgrade Vrátit se zpět ke starší verzi Earlier version installed: %1 Dříve nainstalovaná verze: %1 Installing dependencies: %1 Instalují se součásti, na kterých závisí: %1 Failed to install %1 Nepodařilo se nainstalovat %1 Version: Verze: Install button Nainstalovat Remove button Odebrat OK button OK Back button Zpět Done button Hotovo Installed successfully Úspěšně nainstalováno Uninstalled successfully Úspěšně odinstalováno Uninstall Failed Odinstalace se nezdařila Dependencies in the repository Závislosti v repozitáři Missing dependencies Chybějící závislosti Update button Aktualizovat Invalid digital signature Neplatný digitální podpis Name: Název: Same version installed Stejná verze už je nainstalovaná SingleInstallPage_Install Show details Zobrazit podrobnosti Show dependencies Zobrazit závislosti SingleInstallPage_Uninstall Show details Zobrazit podrobnosti UninstallConfirmPage Show related packages Zobrazit související balíčky Collapse button Sbalit Cancel button Zrušit Confirm Potvrdit Are you sure you want to uninstall %1? All dependencies will also be removed Opravdu chcete %1? odinstalovat? Budou odstraněny také všechny další balíčky, na kterých záviselo a které už nejsou jinak potřeba Are you sure you want to uninstall %1? The system or other applications may not work properly Opravdu chcete %1 odinstalovat? Systém nebo ostatní aplikace by tím nemusely fungovat tak, jak mají main Package Installer Instalátor balíčků Package Installer helps users install and remove local packages, and supports bulk installation. Instalátor balíčků slouží uživateli jako pomůcka pro instalaci a odebírání místních balíčků (tj. nepocházejících z repozitářů). Podporuje také hromadnou instalaci. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_da.ts000066400000000000000000000645121474340456100252620ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button OK BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK OK DebInstaller Package Installer Pakkeinstallationsprogram Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken You can only install local deb packages Already Added Allerede tilføjet %1 does not exist, please reselect Bulk Install Masseinstallation DebListModel Installation failed, please check your network connection Installation mislykkedes, tjek venligst din netværksforbindelse Installation failed, please check for updates in Control Center Installation mislykkedes, tjek venligst efter opdateringer i kontrolcenter Installation failed, insufficient disk space Installation mislykkedes, utilstrækkelig diskplads No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed Installation mislykkedes Failed to install %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button Annuller Proceed button OK button OK This package does not have a valid digital signature. Continue with the installation? Cancel Annuller Continue button Unable to install Kan ikke installere This package does not have a valid digital signature Broken dependencies: %1 Ødelagte afhængigheder: %1 Authentication failed Unmatched package architecture Ikke-matchet pakkearkitektur FileChooseWidget Drag deb packages here Træk deb-pakker her Select File Vælg fil MultipleInstallPage Show details Vis detaljer Collapse button Sammenfold Install button Installer Done button Færdig Back button Tilbage Dependencies in the repository Missing dependencies Installing dependencies: %1 PackageSelectItem Same version installed Samme version installeret Earlier version installed: %1 Tidligere version installeret: %1 Later version installed: %1 Unmatched package architecture Ikke-matchet pakkearkitektur PackageSelectView Select all Install button Installer PackagesListDelegate Installing Installerer Installed Installeret Failed Mislykkedes Waiting Venter Same version installed Samme version installeret Later version installed: %1 Earlier version installed: %1 Tidligere version installeret: %1 PackagesListView Delete Slet QApplication Collapse button Sammenfold QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Collapse Sammenfold Reinstall Geninstaller Later version installed: %1 Downgrade Earlier version installed: %1 Tidligere version installeret: %1 Installing dependencies: %1 Failed to install %1 Version: Version: Install button Installer Remove button Fjern OK button OK Back button Tilbage Done button Færdig Installed successfully Installeret Uninstalled successfully Afinstalleret Uninstall Failed Afinstallation mislykkedes Dependencies in the repository Missing dependencies Update button Name: Navn: Same version installed Samme version installeret SingleInstallPage_Install Show details Vis detaljer Show dependencies SingleInstallPage_Uninstall Show details Vis detaljer UninstallConfirmPage Show related packages Vis relaterede pakker Collapse button Sammenfold Cancel button Annuller Confirm Bekræft Are you sure you want to uninstall %1? All dependencies will also be removed Er du sikker på, at du vil afinstallere %1? Alle afhængigheder vil også blive fjernet Are you sure you want to uninstall %1? The system or other applications may not work properly Er du sikker på, at du vil afinstallere %1? Systemet og andre programmer virker måske ikke korrekt main Package Installer Pakkeinstallationsprogram Package Installer helps users install and remove local packages, and supports bulk installation. Pakkeinstallationsprogram hjælpe brugere med at installere og fjerne lokale pakker, med understøttelse af masseinstallation. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_de.ts000066400000000000000000000660111474340456100252620ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Geben Sie die zu konfigurierende Nummer ein: OK button OK BackendProcessPage Loading packages... Pakete werden geladen... %1/%2 loaded %1/%2 geladen Initializing... Wird initialisiert... DdimErrorPage OK OK DebInstaller Package Installer Paket-Installationsprogramm Settings Einstellungen Installing other packages... Please open it later. Andere Pakete werden installiert... Bitte öffnen Sie es später. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken Das deb-Paket könnte beschädigt sein You can only install local deb packages Sie können nur lokale deb-Pakete installieren Already Added Bereits hinzugefügt %1 does not exist, please reselect %1 existiert nicht, bitte wählen Sie erneut Bulk Install Masseninstallation DebListModel Installation failed, please check your network connection Installation fehlgeschlagen, bitte überprüfen Sie Ihre Netzwerkverbindung Installation failed, please check for updates in Control Center Installation fehlgeschlagen, bitte prüfen Sie in der Systemverwaltung auf Updates Installation failed, insufficient disk space Installation fehlgeschlagen, zu wenig Speicherplatz No digital signature Keine digitale Signatur Invalid digital signature Ungültige digitale Signatur The administrator has set policies to prevent installation of this package Der Administrator hat Richtlinien festgelegt, um die Installation dieses Pakets zu verhindern Installation Failed Installation fehlgeschlagen Failed to install %1 Konnte %1 nicht installieren Failed to install %1: no valid digital singature Unable to install - no digital signature Kann nicht installiert werden - keine digitale Signatur Please go to Control Center to enable developer mode and try again. Proceed? Bitte aktivieren Sie im Kontrollzentrum den Entwicklermodus und versuchen Sie es erneut. Fortfahren? Cancel button Abbrechen Proceed button Fortfahren OK button OK This package does not have a valid digital signature. Continue with the installation? Dieses Paket verfügt nicht über eine gültige digitale Signatur. Mit der Installation fortfahren? Cancel Abbrechen Continue button Weiter Unable to install Kann nicht installiert werden This package does not have a valid digital signature Dieses Paket verfügt nicht über eine gültige digitale Signatur Broken dependencies: %1 Kaputte Abhängigkeiten: %1 Authentication failed Authentifizierung fehlgeschlagen Unmatched package architecture Unpassende Paket-Architektur FileChooseWidget Drag deb packages here deb-Pakete hierher ziehen Select File Datei auswählen MultipleInstallPage Show details Details anzeigen Collapse button Einklappen Install button Installieren Done button Fertig Back button Zurück Dependencies in the repository Abhängigkeiten im Repositorium Missing dependencies Fehlende Abhängigkeiten Installing dependencies: %1 Abhängigkeiten werden installiert: %1 PackageSelectItem Same version installed Gleiche Version installiert Earlier version installed: %1 Ältere Version installiert: %1 Later version installed: %1 Neuere Version installiert: %1 Unmatched package architecture Unpassende Paket-Architektur PackageSelectView Select all Alles auswählen Install button Installieren PackagesListDelegate Installing Wird installiert Installed Installiert Failed Fehlgeschlagen Waiting Warte Same version installed Gleiche Version installiert Later version installed: %1 Neuere Version installiert: %1 Earlier version installed: %1 Ältere Version installiert: %1 PackagesListView Delete Löschen QApplication Collapse button Einklappen QObject Basic Check digital signatures if the developer mode is enabled Digitale Signaturen überprüfen, wenn der Entwicklermodus aktiviert ist SingleInstallPage Collapse Einklappen Reinstall Neu installieren Later version installed: %1 Neuere Version installiert: %1 Downgrade Herabstufen Earlier version installed: %1 Ältere Version installiert: %1 Installing dependencies: %1 Abhängigkeiten werden installiert: %1 Failed to install %1 Konnte %1 nicht installieren Version: Version: Install button Installieren Remove button Entfernen OK button OK Back button Zurück Done button Fertig Installed successfully Erfolgreich installiert Uninstalled successfully Erfolgreich deinstalliert Uninstall Failed Deinstallation fehlgeschlagen Dependencies in the repository Abhängigkeiten im Repositorium Missing dependencies Fehlende Abhängigkeiten Update button Aktualisieren Invalid digital signature Ungültige digitale Signatur Name: Name: Same version installed Gleiche Version installiert SingleInstallPage_Install Show details Details anzeigen Show dependencies Abhängigkeiten anzeigen SingleInstallPage_Uninstall Show details Details anzeigen UninstallConfirmPage Show related packages Zugehörige Pakete anzeigen Collapse button Einklappen Cancel button Abbrechen Confirm Bestätigen Are you sure you want to uninstall %1? All dependencies will also be removed Möchten Sie %1 wirklich deinstallieren? Alle Abhängigkeiten werden ebenfalls entfernt Are you sure you want to uninstall %1? The system or other applications may not work properly Sind Sie sicher, dass Sie %1 deinstallieren möchten? Das System oder andere Anwendungen funktionieren dann möglicherweise nicht richtig main Package Installer Paket-Installationsprogramm Package Installer helps users install and remove local packages, and supports bulk installation. Das Paket-Installationsprogramm hilft Benutzern bei der Installation und Entfernung lokaler Pakete und unterstützt die Masseninstallation. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_en_AU.ts000066400000000000000000000634671474340456100256750ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK DebInstaller Package Installer Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken You can only install local deb packages Already Added %1 does not exist, please reselect Bulk Install Bulk Install DebListModel Installation failed, please check your network connection Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed Failed to install %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button Proceed button OK button This package does not have a valid digital signature. Continue with the installation? Cancel Continue button Unable to install This package does not have a valid digital signature Broken dependencies: %1 Authentication failed Unmatched package architecture FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Dependencies in the repository Missing dependencies Installing dependencies: %1 PackageSelectItem Same version installed Earlier version installed: %1 Later version installed: %1 Unmatched package architecture PackageSelectView Select all Install button PackagesListDelegate Installing Installed Failed Waiting Same version installed Later version installed: %1 Earlier version installed: %1 PackagesListView Delete QApplication Collapse button QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Collapse Reinstall Later version installed: %1 Downgrade Earlier version installed: %1 Installing dependencies: %1 Failed to install %1 Version: Install button Remove button OK button Back button Done button Installed successfully Uninstalled successfully Uninstall Failed Dependencies in the repository Missing dependencies Update button Name: Same version installed SingleInstallPage_Install Show details Show dependencies SingleInstallPage_Uninstall Show details UninstallConfirmPage Show related packages Collapse button Cancel button Confirm Are you sure you want to uninstall %1? All dependencies will also be removed Are you sure you want to uninstall %1? The system or other applications may not work properly main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_en_US.ts000066400000000000000000000634261474340456100257120ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK DebInstaller Package Installer Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken You can only install local deb packages Already Added %1 does not exist, please reselect Bulk Install DebListModel Authentication failed Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Failed to install %1 Broken dependencies: %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button Proceed button OK button This package does not have a valid digital signature. Continue with the installation? Cancel Continue button Unable to install This package does not have a valid digital signature FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Dependencies in the repository Missing dependencies Installing dependencies: %1 PackageSelectItem Same version installed Earlier version installed: %1 Later version installed: %1 Unmatched package architecture PackageSelectView Select all Install button PackagesListDelegate Installing Installed Waiting Failed Same version installed Later version installed: %1 Earlier version installed: %1 PackagesListView Delete QApplication Collapse button QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Name: Version: Reinstall Install button Remove button OK button Back button Done button Installed successfully Uninstalled successfully Uninstall Failed Collapse Dependencies in the repository Missing dependencies Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show details Show dependencies SingleInstallPage_Uninstall Show details UninstallConfirmPage Show related packages Collapse button Cancel button Confirm Are you sure you want to uninstall %1? All dependencies will also be removed Are you sure you want to uninstall %1? The system or other applications may not work properly main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_es.ts000066400000000000000000000706771474340456100253160ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Ingrese el número para configurar: OK button Aceptar BackendProcessPage Loading packages... Cargando paquetes... %1/%2 loaded %1/%2 cargado Initializing... Inicializando... DdimErrorPage OK Aceptar DebInstaller Package Installer Instalador de paquetes Settings Ajustes Installing other packages... Please open it later. Instalando otros paquetes... Por favor, ábralo más tarde. Parsing failed: An illegal file structure was found in the manifest file! Error de análisis: Se ha encontrado una estructura de archivo ilegal en el archivo de manifiesto. Parsing failed: An illegal version number was found in the manifest file! Error de análisis: Se ha encontrado un número de versión ilegal en el archivo de manifiesto. No deb packages found. Please check the folder. No se han encontrado paquetes deb. Por favor, compruebe la carpeta. The deb package may be broken El paquete deb puede estar roto You can only install local deb packages Solo puedes instalar paquetes deb descargados Already Added Ya agregado %1 does not exist, please reselect %1 aún no existe, vuelva a seleccionar Bulk Install Instalación en masa DebListModel Installation failed, please check your network connection La instalación falló, compruebe su conexión de red Installation failed, please check for updates in Control Center La instalación falló: compruebe las actualizaciones en el centro de control Installation failed, insufficient disk space La instalación falló, espacio insuficiente en disco No digital signature Sin firma digital Invalid digital signature Firma digital inválida The administrator has set policies to prevent installation of this package El administrador ha establecido políticas para evitar la instalación de este paquete. Installation Failed La instalación falló Failed to install %1 La instalación de %1 falló This package does not have a valid digital signature and has been blocked from installing/running. Go to Security Center > Tools > App Security to change the settings. Failed to install %1: no valid digital singature Fallo al instalar %1: no hay firma digital válida Unable to install - no digital signature No se puede instalar, no tiene firma digital Please go to Control Center to enable developer mode and try again. Proceed? Por favor active el moda desarrollador en el Centro de control e intente de nuevo. ¿Continuar? Cancel button Cancelar Proceed button Continuar OK button Aceptar Failed to install %1: no valid digital signature Error al instalar %1: no hay firma digital válida This package does not have a valid digital signature. Continue with the installation? Este paquete no tiene una firma digital válida. ¿Continuar con la instalación? Cancel Cancelar Continue button Continuar Unable to install Incapaz de instalar This package does not have a valid digital signature Este paquete no tiene una firma digital válida Broken dependencies: %1 Dependencias rotas: %1 Authentication failed La autenticación falló Unmatched package architecture Difiere la arquitectura del paquete FileChooseWidget Drag deb packages here Arrastre los paquetes deb aquí Select File Seleccionar archivo MultipleInstallPage Show details Mostrar detalles Collapse button Colapsar Install button Instalar Done button Finalizar Back button Atrás Dependencies in the repository Dependencias en el repositorio Missing dependencies Dependencias que faltan Installing dependencies: %1 Instalando dependencias: %1 PackageSelectItem Same version installed La misma versión está instalada Earlier version installed: %1 Una versión anterior está instalada: %1 Later version installed: %1 Una versión más nueva está instalada: %1 Unmatched package architecture Difiere la arquitectura del paquete PackageSelectView Select all Seleccionar todos Install button Instalar PackagesListDelegate Installing Instalando Installed Instalado Failed Ha fallado Waiting Esperando Same version installed La misma versión está instalada Later version installed: %1 Una versión más nueva está instalada: %1 Earlier version installed: %1 Una versión anterior está instalada: %1 PackagesListView Delete Borrar QApplication Collapse button Colapsar QObject Basic Básico Check digital signatures if the developer mode is enabled Comprobar las firmas digitales si el modo desarrollador está activado To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Security Center > Tools > App Security SingleInstallPage Collapse Colapsar Reinstall Reinstalar Later version installed: %1 Una versión más nueva está instalada: %1 Downgrade Degradar Earlier version installed: %1 Una versión anterior está instalada: %1 Installing dependencies: %1 Instalando dependencias: %1 Failed to install %1 La instalación de %1 falló Version: Versión: Install button Instalar Remove button Quitar OK button Aceptar Back button Atrás Done button Finalizar Installed successfully Instalación exitosa Uninstalled successfully Desinstalación exitosa Uninstall Failed La desinstalación falló Dependencies in the repository Dependencias en el repositorio Missing dependencies Dependencias que faltan Update button Actualizar Invalid digital signature Firma digital inválida Name: Nombre: Same version installed La misma versión está instalada SingleInstallPage_Install Show details Mostrar detalles Show dependencies Mostrar las dependencias SingleInstallPage_Uninstall Show details Mostrar detalles UninstallConfirmPage Show related packages Mostrar paquetes relacionados Collapse button Colapsar Cancel button Cancelar Confirm Confirmar Are you sure you want to uninstall %1? All dependencies will also be removed ¿Está seguro de desinstalar %1? Todas las dependencias también se eliminarán Are you sure you want to uninstall %1? The system or other applications may not work properly ¿Está seguro de que quiere desinstalar %1? El sistema u otras aplicaciones tal vez no funcionen correctamente main Package Installer Instalador de paquetes Package Installer helps users install and remove local packages, and supports bulk installation. Instalador de paquetes de Deepin ayuda a instalar y eliminar paquetes locales, y admite instalación en masa. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_et.ts000066400000000000000000000637231474340456100253110ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button OK BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK OK DebInstaller Package Installer Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken You can only install local deb packages Already Added %1 does not exist, please reselect Bulk Install Hulgi paigaldamine DebListModel Installation failed, please check your network connection Paigaldamine ebaõnnestus. Palun kontroli internetiühendust Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Paigaldamine ebaõnnestus, kettal pole piisavalt vaba ruumi No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed Paigaldamine ebaõnnestus Failed to install %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button Loobu Proceed button OK button OK This package does not have a valid digital signature. Continue with the installation? Cancel Loobu Continue button Unable to install This package does not have a valid digital signature Broken dependencies: %1 Authentication failed Unmatched package architecture Sobimatu paki arhidektuur FileChooseWidget Drag deb packages here Select File Vali fail MultipleInstallPage Show details Collapse button Sulge Install button Paigalda Done button Valmis Back button Tagasi Dependencies in the repository Missing dependencies Installing dependencies: %1 PackageSelectItem Same version installed Sama versioon on juba paigaldatud Earlier version installed: %1 Later version installed: %1 Unmatched package architecture Sobimatu paki arhidektuur PackageSelectView Select all Install button Paigalda PackagesListDelegate Installing Paigaldamine Installed Paigaldatud Failed Ebaõnnestus Waiting Same version installed Sama versioon on juba paigaldatud Later version installed: %1 Earlier version installed: %1 PackagesListView Delete QApplication Collapse button Sulge QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Collapse Sulge Reinstall Paigalda uuesti Later version installed: %1 Downgrade Earlier version installed: %1 Installing dependencies: %1 Failed to install %1 Version: Versioon: Install button Paigalda Remove button Eemalda OK button OK Back button Tagasi Done button Valmis Installed successfully Paigaldatud Uninstalled successfully Eemaldatud Uninstall Failed Eemaldamine ebaõnnestus Dependencies in the repository Missing dependencies Update button Name: Nimi: Same version installed Sama versioon on juba paigaldatud SingleInstallPage_Install Show details Show dependencies SingleInstallPage_Uninstall Show details UninstallConfirmPage Show related packages Collapse button Sulge Cancel button Loobu Confirm Kinnita Are you sure you want to uninstall %1? All dependencies will also be removed Are you sure you want to uninstall %1? The system or other applications may not work properly main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_fi.ts000066400000000000000000000702711474340456100252730ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Anna määritettävä numero: OK button OK BackendProcessPage Loading packages... Ladataan paketteja... %1/%2 loaded %1/%2 ladattu Initializing... Alustetaan... DdimErrorPage OK OK DebInstaller Package Installer Ohjelma-asentaja Settings Asetukset Installing other packages... Please open it later. Asennetaan muita paketteja... Avaa se myöhemmin. Parsing failed: An illegal file structure was found in the manifest file! Jäsentäminen epäonnistui: Kokoonpanotiedostosta löytyi laiton tiedostorakenne! Parsing failed: An illegal version number was found in the manifest file! Jäsentäminen epäonnistui: Kokoonpanotiedostosta löytyi laiton versionumero! No deb packages found. Please check the folder. Deb-paketteja ei löytynyt. Tarkista kansio. The deb package may be broken Paketti .deb voi olla rikki You can only install local deb packages Voit asentaa vain paikallisia deb-paketteja Already Added Jo lisätty %1 does not exist, please reselect %1 ei ole, valitse uudelleen Bulk Install Suora-asennus DebListModel Installation failed, please check your network connection Asennus epäonnistui, tarkista verkkoyhteys Installation failed, please check for updates in Control Center Asennus epäonnistui, tarkista päivitykset ohjauspaneelista Installation failed, insufficient disk space Asennus epäonnistui, levytilaa ei ollut riittävästi No digital signature Ei digitaalista allekirjoitusta Invalid digital signature Virheellinen digitaalinen allekirjoitus The administrator has set policies to prevent installation of this package Järjestelmänvalvoja on määrittänyt käytännöt estämään tämän paketin asentamisen Installation Failed Asennus epäonnistui Failed to install %1 Kohteen %1 asentaminen epäonnistui This package does not have a valid digital signature and has been blocked from installing/running. Go to Security Center > Tools > App Security to change the settings. Failed to install %1: no valid digital singature Asennus epäonnistui %1: Ei ole kelvollista digitaalista allekirjoitusta Unable to install - no digital signature Asennusta ei voi tehdä - digitaalinen allekirjoitus puuttuu Please go to Control Center to enable developer mode and try again. Proceed? Ota kehittäjätila käyttöön Ohjauspaneelissa ja yritä uudelleen. Hyväksy? Cancel button Peru Proceed button Hyväksy OK button OK Failed to install %1: no valid digital signature Asennus epäonnistui %1: ei kelvollista digitaalista allekirjoitusta This package does not have a valid digital signature. Continue with the installation? Tällä paketilla ei ole kelvollista digitaalista allekirjoitusta. Jatketaanko asennusta? Cancel Peru Continue button Jatka Unable to install Ei voi asentaa This package does not have a valid digital signature Tällä paketilla ei ole kelvollista digitaalista allekirjoitusta Broken dependencies: %1 Rikkoutuneet riippuvuudet: %1 Authentication failed Todennus epäonnistui Unmatched package architecture Ei yhteensopiva pakettijärjestelmä FileChooseWidget Drag deb packages here Vedä deb-paketteja tänne Select File Valitse tiedosto MultipleInstallPage Show details Näytä tiedot Collapse button Pudotus Install button Asenna Done button Valmis Back button Takaisin Dependencies in the repository Pakettivaraston riippuvuudet Missing dependencies Puuttuvat riippuvuudet Installing dependencies: %1 Riippuvuuksien asentaminen: %1 PackageSelectItem Same version installed Sama versio on asennettu Earlier version installed: %1 Aiempi versio asennettu: %1 Later version installed: %1 Uudempi versio asennettu: %1 Unmatched package architecture Ei yhteensopiva pakettijärjestelmä PackageSelectView Select all Valitse kaikki Install button Asenna PackagesListDelegate Installing Asentaa Installed Asennettu Failed Epäonnistui Waiting Odotetaan Same version installed Sama versio on asennettu Later version installed: %1 Uudempi versio asennettu: %1 Earlier version installed: %1 Aiempi versio asennettu: %1 PackagesListView Delete Poista QApplication Collapse button Pudotus QObject Basic Normaali Check digital signatures if the developer mode is enabled Tarkista digitaaliset allekirjoitukset, jos kehittäjätila on käytössä To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Security Center > Tools > App Security SingleInstallPage Collapse Pudotus Reinstall Uudelleen Later version installed: %1 Uudempi versio asennettu: %1 Downgrade Aiempi vesio Earlier version installed: %1 Aiempi versio asennettu: %1 Installing dependencies: %1 Riippuvuuksien asentaminen: %1 Failed to install %1 Kohteen %1 asentaminen epäonnistui Version: Versio: Install button Asenna Remove button Poista OK button OK Back button Takaisin Done button Valmis Installed successfully Asennettu onnistuneesti Uninstalled successfully Asennuksen poisto onnistui Uninstall Failed Poisto epäonnistui Dependencies in the repository Pakettivaraston riippuvuudet Missing dependencies Puuttuvat riippuvuudet Update button Päivitys Invalid digital signature Virheellinen digitaalinen allekirjoitus Name: Nimi: Same version installed Sama versio on asennettu SingleInstallPage_Install Show details Näytä tiedot Show dependencies Näytä riippuvuudet SingleInstallPage_Uninstall Show details Näytä tiedot UninstallConfirmPage Show related packages Näytä liittyvät paketit Collapse button Pudotus Cancel button Peru Confirm Vahvista Are you sure you want to uninstall %1? All dependencies will also be removed Haluatko varmasti poistaa %1? Kaikki riippuvuudet poistetaan myös Are you sure you want to uninstall %1? The system or other applications may not work properly Haluatko varmasti poistaa %1? Järjestelmä tai muut sovellukset eivät välttämättä toimi oikein main Package Installer Asentaja Package Installer helps users install and remove local packages, and supports bulk installation. Ohjelma-asentaja auttaa käyttäjiä asentamaan ja poistamaan ohjelmia. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_fr.ts000066400000000000000000000665211474340456100253070ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Entrer le numéro à configurer : OK button OK BackendProcessPage Loading packages... Chargement des paquets... %1/%2 loaded %1/%2 chargé Initializing... Initialisation... DdimErrorPage OK OK DebInstaller Package Installer Installateur de paquets Settings Paramètres Installing other packages... Please open it later. Installation d'autres paquets... Veuillez l'ouvrir plus tard. Parsing failed: An illegal file structure was found in the manifest file! Échec de la lecture: Une structure de fichier illégale a été trouvée dans le manifeste. Parsing failed: An illegal version number was found in the manifest file! Échec de la lecture: Une numéro de version illégal a été trouvé dans le manifeste. No deb packages found. Please check the folder. Pas de paquet DEB trouvé. Vérifiez le dossier. The deb package may be broken Le paquet deb est peut-être cassé You can only install local deb packages Vous ne pouvez installer que des paquets deb locaux Already Added Déjà ajouté %1 does not exist, please reselect %1 n'existe pas, veuillez resélectionner Bulk Install Installation Multiple DebListModel Installation failed, please check your network connection Échec de l'installation, veuillez vérifier votre connexion réseau Installation failed, please check for updates in Control Center L'installation a échoué, veuillez vérifier les mises à jour dans le centre de contrôle Installation failed, insufficient disk space Échec de l'installation, espace disque insuffisant No digital signature Pas de signature numérique Invalid digital signature Signature numérique non valide The administrator has set policies to prevent installation of this package L'administrateur a défini des politiques pour empêcher l'installation de ce paquet Installation Failed Échec de l'installation Failed to install %1 Échec de l'installation de %1 Failed to install %1: no valid digital singature Échec de l'installation de %1 : pas de signature digitale valide Unable to install - no digital signature Impossible d'installer - pas de signature numérique Please go to Control Center to enable developer mode and try again. Proceed? Veuillez accéder au centre de contrôle pour activer le mode développeur et réessayer. Procéder ? Cancel button Annuler Proceed button Procéder OK button OK This package does not have a valid digital signature. Continue with the installation? Ce paquet n'a pas de signature numérique valide. Continuer l'installation ? Cancel Annuler Continue button Continuer Unable to install Impossible d'installer This package does not have a valid digital signature Ce paquet n'a pas de signature numérique valide Broken dependencies: %1 Dépendances cassée : %1 Authentication failed Authentification échouée Unmatched package architecture Architecture de paquet différente FileChooseWidget Drag deb packages here Faites glisser les paquets deb ici Select File Sélectionner un fichier MultipleInstallPage Show details Afficher les détails Collapse button Réduire Install button Installer Done button Terminé Back button Précédent Dependencies in the repository Dépendances dans le dépôt Missing dependencies Dépendances manquantes Installing dependencies: %1 Installation des dépendances : %1 PackageSelectItem Same version installed Version identique installée Earlier version installed: %1 Version antérieure installée : %1 Later version installed: %1 Version ultérieure installée : %1 Unmatched package architecture Architecture de paquet différente PackageSelectView Select all Tout sélectionner Install button Installer PackagesListDelegate Installing Installation Installed Installé Failed Échec Waiting En attente Same version installed Version identique installée Later version installed: %1 Version ultérieure installée : %1 Earlier version installed: %1 Version antérieure installée : %1 PackagesListView Delete Supprimer QApplication Collapse button Réduire QObject Basic Basique Check digital signatures if the developer mode is enabled Vérifier les signatures numériques si le mode développeur est activé SingleInstallPage Collapse Réduire Reinstall Réinstaller Later version installed: %1 Version ultérieure installée : %1 Downgrade Rétrograder Earlier version installed: %1 Version antérieure installée : %1 Installing dependencies: %1 Installation des dépendances : %1 Failed to install %1 Échec de l'installation de %1 Version: Version : Install button Installer Remove button Supprimer OK button OK Back button Précédent Done button Terminé Installed successfully Installé avec succès Uninstalled successfully Désinstallé avec succès Uninstall Failed Échec de la désinstallation Dependencies in the repository Dépendances dans le dépôt Missing dependencies Dépendances manquantes Update button Mettre à jour Invalid digital signature Signature numérique non valide Name: Nom : Same version installed Version identique installée SingleInstallPage_Install Show details Afficher les détails Show dependencies Afficher les dépendances SingleInstallPage_Uninstall Show details Afficher les détails UninstallConfirmPage Show related packages Afficher les paquets associés Collapse button Réduire Cancel button Annuler Confirm Confirmer Are you sure you want to uninstall %1? All dependencies will also be removed Êtes-vous sûr de vouloir désinstaller %1 ? Toutes les dépendances seront également supprimées. Are you sure you want to uninstall %1? The system or other applications may not work properly Voulez-vous vraiment désinstaller %1? Le système ou d'autres applications peuvent ne pas fonctionner correctement main Package Installer Installateur de paquets Package Installer helps users install and remove local packages, and supports bulk installation. L'installateur de paquets aide les utilisateurs à installer et à supprimer des paquets locaux, prend aussi en charge l'installation multiple. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_gl_ES.ts000066400000000000000000000643111474340456100256640ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button Aceptar BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK Aceptar DebInstaller Package Installer Instalador do paquete Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken You can only install local deb packages Already Added Xa se engadiu %1 does not exist, please reselect Bulk Install Instalar en bloque DebListModel Installation failed, please check your network connection Fallo ao instalar, verifica a conexión de rede Installation failed, please check for updates in Control Center Fallo ao instalar, comprobe se hai actualizacións no Centro de Control Installation failed, insufficient disk space Fallo ao instalar, sen espazo abondo no disco No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed Fallo ao instalar Failed to install %1 Erro ao instalar %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button Cancelar Proceed button OK button Aceptar This package does not have a valid digital signature. Continue with the installation? Cancel Cancelar Continue button Unable to install Activar a instalación This package does not have a valid digital signature Este paquete non ten unha sinatura dixital válida Broken dependencies: %1 Dependencias que non funcionan: %1 Authentication failed Unmatched package architecture A arquitectura do paquete non coincide FileChooseWidget Drag deb packages here Arrastre paquetes deb aquí Select File Seleccionar ficheiro MultipleInstallPage Show details Amosar detalles Collapse button Colapsou Install button Instalar Done button Feito Back button Volver Dependencies in the repository Missing dependencies Installing dependencies: %1 Instalando dependencias; %1 PackageSelectItem Same version installed Mesma versión instalada Earlier version installed: %1 Versión máis recente instalada: %1 Later version installed: %1 Versión máis recente instalada: %1 Unmatched package architecture A arquitectura do paquete non coincide PackageSelectView Select all Install button Instalar PackagesListDelegate Installing Instalando Installed Instalado Failed Fallo Waiting Agardando Same version installed Mesma versión instalada Later version installed: %1 Versión máis recente instalada: %1 Earlier version installed: %1 Versión máis recente instalada: %1 PackagesListView Delete Eliminar QApplication Collapse button Colapsou QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Collapse Colapsou Reinstall Reinstalar Later version installed: %1 Versión máis recente instalada: %1 Downgrade Earlier version installed: %1 Versión máis recente instalada: %1 Installing dependencies: %1 Instalando dependencias; %1 Failed to install %1 Erro ao instalar %1 Version: Versión: Install button Instalar Remove button Eliminar OK button Aceptar Back button Volver Done button Feito Installed successfully Instalado con éxito Uninstalled successfully Desinstalado con éxito Uninstall Failed Fallo ao desinstalar Dependencies in the repository Missing dependencies Update button Name: Nome: Same version installed Mesma versión instalada SingleInstallPage_Install Show details Amosar detalles Show dependencies SingleInstallPage_Uninstall Show details Amosar detalles UninstallConfirmPage Show related packages Amosar paquetes semellantes Collapse button Colapsou Cancel button Cancelar Confirm Confirmar Are you sure you want to uninstall %1? All dependencies will also be removed Está seguro de que desexa desinstalar% 1? Tamén se eliminarán todas as dependencias Are you sure you want to uninstall %1? The system or other applications may not work properly Está seguro de que desexa desinstalar% 1? O sistema ou outros aplicativos poden non funcionar correctamente main Package Installer Instalador do paquete Package Installer helps users install and remove local packages, and supports bulk installation. O instalador do paquete axuda aos usuarios a instalar e eliminar paquetes locais e admite a instalación masiva. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_he.ts000066400000000000000000000643511474340456100252730ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button אישור BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK אישור DebInstaller Package Installer Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken You can only install local deb packages Already Added %1 does not exist, please reselect Bulk Install התקנה קבוצתית DebListModel Installation failed, please check your network connection ההתקנה נכשלה, נא לבדוק את החיבור שלך לרשת Installation failed, please check for updates in Control Center Installation failed, insufficient disk space ההתקנה נכשלה, אין מספיק מקום בכונן No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed ההתקנה נכשלה Failed to install %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button ביטול Proceed button OK button אישור This package does not have a valid digital signature. Continue with the installation? Cancel ביטול Continue button Unable to install This package does not have a valid digital signature Broken dependencies: %1 Authentication failed Unmatched package architecture ארכיטקטורת החבילה אינה תואמת FileChooseWidget Drag deb packages here Select File בחירת קובץ MultipleInstallPage Show details Collapse button צמצום Install button התקנה Done button Back button חזרה Dependencies in the repository Missing dependencies Installing dependencies: %1 PackageSelectItem Same version installed אותה הגרסה מותקנת Earlier version installed: %1 הותקנה גרסה מוקדמת יותר: %1 Later version installed: %1 Unmatched package architecture ארכיטקטורת החבילה אינה תואמת PackageSelectView Select all Install button התקנה PackagesListDelegate Installing בהתקנה Installed מותקן Failed נכשל Waiting Same version installed אותה הגרסה מותקנת Later version installed: %1 Earlier version installed: %1 הותקנה גרסה מוקדמת יותר: %1 PackagesListView Delete QApplication Collapse button צמצום QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Collapse צמצום Reinstall התקנה מחדש Later version installed: %1 Downgrade Earlier version installed: %1 הותקנה גרסה מוקדמת יותר: %1 Installing dependencies: %1 Failed to install %1 Version: גרסה: Install button התקנה Remove button הסרה OK button אישור Back button חזרה Done button Installed successfully הותקן בהצלחה Uninstalled successfully הוסר בהצלחה Uninstall Failed ההסרה נכשלה Dependencies in the repository Missing dependencies Update button Name: שם: Same version installed אותה הגרסה מותקנת SingleInstallPage_Install Show details Show dependencies SingleInstallPage_Uninstall Show details UninstallConfirmPage Show related packages Collapse button צמצום Cancel button ביטול Confirm אישור Are you sure you want to uninstall %1? All dependencies will also be removed Are you sure you want to uninstall %1? The system or other applications may not work properly main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_hi_IN.ts000066400000000000000000000737051474340456100256700ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: विन्यास हेतु अंक दर्ज करें : OK button ठीक है BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK ठीक है DebInstaller Package Installer पैकेज इंस्टॉलर Settings सेटिंग्स Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken संभवतः DEB पैकेज विकृत है You can only install local deb packages केवल लोकल पैकेज इंस्टॉल करना संभव है Already Added पहले से ही शामिल %1 does not exist, please reselect %1 मौजूद नहीं है, कृपया पुनः चुनें Bulk Install सामूहिक इंस्टॉल DebListModel Installation failed, please check your network connection इंस्टॉल विफल रहा, कृपया अपना नेटवर्क कनेक्शन जाँचें Installation failed, please check for updates in Control Center इंस्टॉल विफल रहा, कृपया अपडेट हेतु नियंत्रण केंद्र जाँचें Installation failed, insufficient disk space इंस्टॉल विफल रहा, अपर्याप्त डिस्क स्पेस No digital signature कोई डिजिटल हस्ताक्षर नहीं Invalid digital signature अमान्य डिजिटल हस्ताक्षर The administrator has set policies to prevent installation of this package प्रशासक द्वारा निर्धारित नीतियों के कारण इस पैकेज का इंस्टॉल बाधित है Installation Failed इंस्टॉल विफल रहा Failed to install %1 %1 इंस्टॉल विफल Failed to install %1: no valid digital singature Unable to install - no digital signature इंस्टॉल विफल - कोई डिजिटल हस्ताक्षर नहीं Please go to Control Center to enable developer mode and try again. Proceed? कृपया नियंत्रण केंद्र द्वारा विकासकर्ता मोड सक्रिय कर पुनः प्रयास करें। जारी रखें? Cancel button रद्द करें Proceed button जारी रखें OK button ठीक है This package does not have a valid digital signature. Continue with the installation? इस पैकेज का डिजिटल हस्ताक्षर अमान्य है। इंस्टॉल प्रक्रिया जारी रखें? Cancel रद्द करें Continue button जारी रखें Unable to install इंस्टॉल करने में अक्षम This package does not have a valid digital signature इस पैकेज का डिजिटल हस्ताक्षर अमान्य है Broken dependencies: %1 खंडित आश्रित पैकेज : %1 Authentication failed प्रमाणीकरण विफल Unmatched package architecture पैकेज संरचना मेल नहीं खाती FileChooseWidget Drag deb packages here माउस द्वारा DEB पैकेज ड्रैग कर यहाँ लायें Select File फ़ाइल चुनें MultipleInstallPage Show details विवरण दिखाएँ Collapse button संक्षिप्त करें Install button इंस्टॉल करें Done button पूर्ण हुआ Back button वापस Dependencies in the repository पैकेज-संग्रह में मौजूद आश्रित पैकेज Missing dependencies अनुपलब्ध आश्रित पैकेज Installing dependencies: %1 आश्रित पैकेज इंस्टॉल हो रहे हैं : %1 PackageSelectItem Same version installed समान संस्करण पहले से इंस्टॉल है Earlier version installed: %1 पूर्व संस्करण इंस्टॉल है : %1 Later version installed: %1 नवीन संस्करण इंस्टॉल है : %1 Unmatched package architecture पैकेज संरचना मेल नहीं खाती PackageSelectView Select all Install button इंस्टॉल करें PackagesListDelegate Installing इंस्टॉल हो रहा है Installed इंस्टॉल हो गया Failed विफल रहा Waiting प्रतीक्षा में Same version installed समान संस्करण पहले से इंस्टॉल है Later version installed: %1 नवीन संस्करण इंस्टॉल है : %1 Earlier version installed: %1 पूर्व संस्करण इंस्टॉल है : %1 PackagesListView Delete हटाएँ QApplication Collapse button संक्षिप्त करें QObject Basic सामान्य Check digital signatures if the developer mode is enabled विकासकर्ता मोड सक्रिय होने की स्थिति में डिजिटल हस्ताक्षर जाँचें SingleInstallPage Collapse संक्षिप्त करें Reinstall पुनः इंस्टॉल करें Later version installed: %1 नवीन संस्करण इंस्टॉल है : %1 Downgrade डाउनग्रेड Earlier version installed: %1 पूर्व संस्करण इंस्टॉल है : %1 Installing dependencies: %1 आश्रित पैकेज इंस्टॉल हो रहे हैं : %1 Failed to install %1 %1 इंस्टॉल विफल Version: संस्करण : Install button इंस्टॉल करें Remove button हटाएँ OK button ठीक है Back button वापस Done button पूर्ण हुआ Installed successfully इंस्टॉल सफल रहा Uninstalled successfully इंस्टॉल हटाना सफल रहा Uninstall Failed इंस्टॉल हटाना विफल रहा Dependencies in the repository पैकेज-संग्रह में मौजूद आश्रित पैकेज Missing dependencies अनुपलब्ध आश्रित पैकेज Update button अपडेट Invalid digital signature अमान्य डिजिटल हस्ताक्षर Name: नाम : Same version installed समान संस्करण पहले से इंस्टॉल है SingleInstallPage_Install Show details विवरण दिखाएँ Show dependencies आश्रित पैकेज दिखाएँ SingleInstallPage_Uninstall Show details विवरण दिखाएँ UninstallConfirmPage Show related packages संबंधित पैकेज दिखाएँ Collapse button संक्षिप्त करें Cancel button रद्द करें Confirm पुष्टि करें Are you sure you want to uninstall %1? All dependencies will also be removed क्या आप %1 को हटाना चाहते हैं? सभी आश्रित पैकेज भी हटा दिए जायेंगे। Are you sure you want to uninstall %1? The system or other applications may not work properly क्या आप %1 को हटाना चाहते हैं? संभवतः सिस्टम व अन्य अनुप्रयोग सुचारु रूप से कार्य न कर पाएँ। main Package Installer पैकेज इंस्टॉलर Package Installer helps users install and remove local packages, and supports bulk installation. पैकेज इंस्टॉलर द्वारा उपयोक्ता लोकल पैकेज इंस्टॉल व हटा सकते हैं, यह सामूहिक इंस्टॉल की सुविधा भी प्रदान करता है। deepin-deb-installer-6.5.5/translations/deepin-deb-installer_hr.ts000066400000000000000000000643651474340456100253150ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button U redu BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK U redu DebInstaller Package Installer Instaler paketa Settings Postavke Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken Deb paket je možda slomljen You can only install local deb packages Možete instalirati samo lokalne deb pakete Already Added Već je dodan %1 does not exist, please reselect Bulk Install Skupno instaliranje DebListModel Installation failed, please check your network connection Neuspjela instalacija, molim provjerite vašu mrežnu vezu Installation failed, please check for updates in Control Center Neuspjela instalacija, molim provjerite za ažuriranja u Kontrolnom centru Installation failed, insufficient disk space Neuspjela instalacija, nedovoljno slobodnog prostor na disku No digital signature Nema digitalnog potpisa Invalid digital signature Neispravni digitalni potpis The administrator has set policies to prevent installation of this package Installation Failed Neuspjela instalacija Failed to install %1 Nespjela instalacija %1 Failed to install %1: no valid digital singature Unable to install - no digital signature NIje moguće instalirati - nema digitalnog potpisa Please go to Control Center to enable developer mode and try again. Proceed? Cancel button Otkaži Proceed button Nastavi OK button U redu This package does not have a valid digital signature. Continue with the installation? Cancel Otkaži Continue button Nastavi Unable to install Nije moguće instalirati This package does not have a valid digital signature Ovaj paket nema ispravan digitalni potpis Broken dependencies: %1 Slomljene međuzavisnosti: %1 Authentication failed Neuspjela ovjera Unmatched package architecture Nepodudaranje arhitekture paketa FileChooseWidget Drag deb packages here Povuci deb datoteke ovdje Select File Odaberi datoteku MultipleInstallPage Show details Pokaži pojedinosti Collapse button Install button Instaliraj Done button Učinjeno Back button Natrag Dependencies in the repository Zavisnosti u repozitoriju Missing dependencies Zavisnosti koje nedostaju Installing dependencies: %1 Instaliram međuzavisnosti: %1 PackageSelectItem Same version installed Instalirana je ista inačica Earlier version installed: %1 Instalirana je ranija inačica: %1 Later version installed: %1 Instalirana je kasnija inačica: %1 Unmatched package architecture Nepodudaranje arhitekture paketa PackageSelectView Select all Install button Instaliraj PackagesListDelegate Installing Instaliram Installed Instalirano Failed Neuspjelo Waiting Čekam Same version installed Instalirana je ista inačica Later version installed: %1 Instalirana je kasnija inačica: %1 Earlier version installed: %1 Instalirana je ranija inačica: %1 PackagesListView Delete Izbriši QApplication Collapse button QObject Basic Osnovno Check digital signatures if the developer mode is enabled SingleInstallPage Collapse Reinstall Ponovno instaliraj Later version installed: %1 Instalirana je kasnija inačica: %1 Downgrade Earlier version installed: %1 Instalirana je ranija inačica: %1 Installing dependencies: %1 Instaliram međuzavisnosti: %1 Failed to install %1 Nespjela instalacija %1 Version: Inačica: Install button Instaliraj Remove button Ukloni OK button U redu Back button Natrag Done button Učinjeno Installed successfully Uspješno instalirano Uninstalled successfully Uspješno deinstalirano Uninstall Failed Neuspjela deinstalacija Dependencies in the repository Međuzavisnosti u repozitoriju Missing dependencies Međuzavisnosti koje nedostaju Update button Ažuriraj Invalid digital signature Neispravni digitalni potpis Name: Ime: Same version installed Instalirana je ista inačica SingleInstallPage_Install Show details Pokaži pojedinosti Show dependencies Pokaži međuzavisnosti SingleInstallPage_Uninstall Show details Pokaži pojedinosti UninstallConfirmPage Show related packages Collapse button Cancel button Otkaži Confirm Potvrdi Are you sure you want to uninstall %1? All dependencies will also be removed Jeste li sigurni da želite deinstalirati %1? Sve zavisnosti će biti uklonjene Are you sure you want to uninstall %1? The system or other applications may not work properly Jeste li sigurni da želite deinstalirati %1? Sustav ili ostale aplikacije možda neće ispravno raditi main Package Installer Instaler paketa Package Installer helps users install and remove local packages, and supports bulk installation. Instaler paketa pomaže korisnicima instalaciju i uklanjanje lokalnih paketa kao i skupno instaliranje. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_hu.ts000066400000000000000000000721751474340456100253160ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Írja be a számot a konfiguráláshoz: OK button OK BackendProcessPage Loading packages... Csomagok betöltése... %1/%2 loaded %1/%2 betöltve Initializing... Inicializálás... DdimErrorPage OK OK DebInstaller Package Installer Csomagtelepítő Settings Beállítások Installing other packages... Please open it later. Más csomagok telepítése folyamatban... Kérjük nyissa meg később. Parsing failed: An illegal file structure was found in the manifest file! Az elemzés sikertelen. Nem megengedett fájlstruktúra található a jegyzékfájlban! Parsing failed: An illegal version number was found in the manifest file! Az elemzés sikertelen. Nem megengedett verziószám található a jegyzékfájlban! No deb packages found. Please check the folder. Nem található .deb csomag. Kérjük ellenőrizze a mappát. The deb package may be broken A deb csomag vélhetően sérült You can only install local deb packages Csak helyi deb csomagokat telepíthet Already Added Már hozzáadva %1 does not exist, please reselect A %1 nem létezik, kérjük válassza ki újra Bulk Install Csoportos telepítés DebListModel Installation failed, please check your network connection A telepítés sikertelen, kérjük ellenőrizze a hálózati kapcsolatot Installation failed, please check for updates in Control Center A telepítés sikertelen, kérjük ellenőrizze a frissítéseket a Vezérlőpultban Installation failed, insufficient disk space A telepítés sikertelen, nincs elég hely a lemezen No digital signature Nincs digitális aláírás Invalid digital signature Érvénytelen digitális aláírás The administrator has set policies to prevent installation of this package Az rendszergazda házirendeket állított be a csomag telepítésének megakadályozására Installation Failed A telepítés sikertelen Failed to install %1 A %1 telepítése sikertelen This package does not have a valid digital signature and has been blocked from installing/running. Go to Security Center > Tools > App Security to change the settings. Ez a csomag nem rendelkezik érvényes digitális aláírással, és le van tiltva a telepítéstől/futtatástól. A beállítások módosításához lépjen a Biztonsági Központ > Eszközök > Alkalmazásbiztonság menüpontra. Failed to install %1: no valid digital singature A %1 telepítés nem lehetséges: nincs érvényes digitális aláírás Unable to install - no digital signature A telepítés nem lehetséges - nincs digitális aláírás Please go to Control Center to enable developer mode and try again. Proceed? Kérjük lépjen be a Vezérlőpultba, engedélyezze a fejlesztői módot, majd próbálja újra. Folytassuk? Cancel button Mégsem Proceed button Folytassa OK button OK Failed to install %1: no valid digital signature A %1 telepítés nem lehetséges: nincs érvényes digitális aláírás This package does not have a valid digital signature. Continue with the installation? Ennek a csomagnak nincs érvényes digitális aláírása. Folytatja a telepítést? Cancel Mégsem Continue button Folytatás Unable to install A telepítés nem lehetséges This package does not have a valid digital signature Ennek a csomagnak nincs érvényes digitális aláírása Broken dependencies: %1 Hibás függőségek: %1 Authentication failed A hitelesítés sikertelen Unmatched package architecture Nem megfelelő csomag architektúra FileChooseWidget Drag deb packages here Húzzon ide .deb csomagokat Select File Fájl kiválasztása MultipleInstallPage Show details Részletek mutatása Collapse button Összecsukás Install button Telepítés Done button Kész Back button Vissza Dependencies in the repository Függőségek a tárolóban Missing dependencies Hiányzó függőségek Installing dependencies: %1 Telepítési függőségek: %1 PackageSelectItem Same version installed Ez a verzió már telepítve van Earlier version installed: %1 Korábbi verzió telepítve: %1 Later version installed: %1 Újabb verzió telepítve: %1 Unmatched package architecture Nem megfelelő csomag architektúra PackageSelectView Select all Összes kiválasztása Install button Telepítés PackagesListDelegate Installing Telepítés Installed Telepítve Failed Sikertelen Waiting Várakozás Same version installed Ez a verzió már telepítve van Later version installed: %1 Újabb verzió telepítve: %1 Earlier version installed: %1 Korábbi verzió telepítve: %1 PackagesListView Delete Törlés QApplication Collapse button Összecsukás QObject Basic Alapvető Check digital signatures if the developer mode is enabled Ellenőrizze a digitális aláírásokat, ha a fejlesztői mód engedélyezett To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Aláíratlan alkalmazások telepítéséhez lépjen a Biztonsági Központ > Eszközök > Alkalmazásbiztonság menüpontra, és válassza ki a telepíthető alkalmazástípusokat. Security Center > Tools > App Security Biztonsági Központ > Eszközök > Alkalmazásbiztonság SingleInstallPage Collapse Összecsukás Reinstall Újratelepítés Later version installed: %1 Újabb verzió telepítve: %1 Downgrade Visszaminősítés Earlier version installed: %1 Korábbi verzió telepítve: %1 Installing dependencies: %1 Telepítési függőségek: %1 Failed to install %1 A %1 telepítése sikertelen Version: Verzió: Install button Telepítés Remove button Eltávolítás OK button OK Back button Vissza Done button Kész Installed successfully Sikeresen telepítve Uninstalled successfully Sikeresen eltávolítva Uninstall Failed Az eltávolítás sikertelen Dependencies in the repository Függőségek a tárolóban Missing dependencies Hiányzó függőségek Update button Frissítés Invalid digital signature Érvénytelen digitális aláírás Name: Név: Same version installed Ez a verzió már telepítve van SingleInstallPage_Install Show details Részletek mutatása Show dependencies Függőségek megjelenítése SingleInstallPage_Uninstall Show details Részletek mutatása UninstallConfirmPage Show related packages Kapcsolódó csomagok megjelenítése Collapse button Összecsukás Cancel button Mégsem Confirm Megerősítés Are you sure you want to uninstall %1? All dependencies will also be removed Biztosan el kívánja távolítani %1-t? Minden csomagfüggősége szintén eltávolításra kerül Are you sure you want to uninstall %1? The system or other applications may not work properly Biztosan el kívánja távolítani %1-t? A rendszer, illetve más alkalmazások esetleg nem megfelelően fognak működni main Package Installer Csomagtelepítő Package Installer helps users install and remove local packages, and supports bulk installation. A Csomagtelepítő segít a felhasználóknak különféle csomagok telepítésében és eltávolításában, valamint támogatja a kötegelt telepítést. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_id.ts000066400000000000000000000646351474340456100253000ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Masukkan jumlah yang akan dikonfigurasi: OK button OK BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK OK DebInstaller Package Installer Pemasang Paket Settings Setelan Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken Paket deb mungkin rusak You can only install local deb packages Anda hanya dapat memasang paket deb lokal Already Added Telah ditambahkan %1 does not exist, please reselect %1 tidak ada, silakan pilih ulang Bulk Install Pasang massal DebListModel Installation failed, please check your network connection Pemasangan gagal, mohon periksa koneksi jaringan Anda Installation failed, please check for updates in Control Center Pemasangan gagal, silakan cek pembaruan di Pusat Kontrol Installation failed, insufficient disk space Pemasangan gagal, ruang diska tidak mencukupi No digital signature Tidak ada tanda tangan digital Invalid digital signature Tanda tangan digital tidak valid The administrator has set policies to prevent installation of this package Administrator telah mengatur kebijakan untuk mencegah pemasangan paket ini. Installation Failed Pemasangan Gagal Failed to install %1 Gagal memasang %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Tidak dapat memasang - tidak ada tanda tangan digital Please go to Control Center to enable developer mode and try again. Proceed? Silakan menuju Pusat Kontrol untuk mengaktifkan Mode Pengembang dan coba lagi. Lanjutkan? Cancel button Batal Proceed button Lanjutkan OK button OK This package does not have a valid digital signature. Continue with the installation? Paket tidak memiliki tanda tangan digital yang valid. Lanjutkan pemasangan? Cancel Batal Continue button Lanjutkan Unable to install Tidak dapat memasang This package does not have a valid digital signature Paket ini tidak memiliki tanda tangan digital Broken dependencies: %1 Dependensi rusak: %1 Authentication failed Autentikasi gagal Unmatched package architecture Paket arsitektur tidak cocok FileChooseWidget Drag deb packages here Seret paket debian ke sini Select File Pilih Berkas MultipleInstallPage Show details Tampilkan detail Collapse button Jatuhkan Install button Pasang Done button Selesai Back button Kembali Dependencies in the repository Dependensi di repositori Missing dependencies Dependensi hilang Installing dependencies: %1 Memasang dependensi: %1 PackageSelectItem Same version installed Versi sama terpasang Earlier version installed: %1 Versi sebelumnya terpasang: %1 Later version installed: %1 Versi yang lebih baru terpasang: %1 Unmatched package architecture Paket arsitektur tidak cocok PackageSelectView Select all Install button Pasang PackagesListDelegate Installing Memasang Installed Terpasang Failed Gagal Waiting Menunggu Same version installed Versi sama terpasang Later version installed: %1 Versi yang lebih baru terpasang: %1 Earlier version installed: %1 Versi sebelumnya terpasang: %1 PackagesListView Delete Hapus QApplication Collapse button Jatuhkan QObject Basic Dasar Check digital signatures if the developer mode is enabled Periksa tanda tangan digital jika mode pengembang diaktifkan SingleInstallPage Collapse Jatuhkan Reinstall Pasang ulang Later version installed: %1 Versi yang lebih baru terpasang: %1 Downgrade Turunkan versi Earlier version installed: %1 Versi sebelumnya terpasang: %1 Installing dependencies: %1 Memasang dependensi: %1 Failed to install %1 Gagal memasang %1 Version: Versi: Install button Pasang Remove button Hapus OK button OK Back button Kembali Done button Selesai Installed successfully Pemasangan berhasil Uninstalled successfully Pelepasan berhasil Uninstall Failed Pelepasan gagal Dependencies in the repository Dependensi di repositori Missing dependencies Dependensi hilang Update button Perbarui Invalid digital signature Tanda tangan digital tidak valid Name: Nama: Same version installed Versi sama terpasang SingleInstallPage_Install Show details Tampilkan detail Show dependencies Tampilkan dependensi SingleInstallPage_Uninstall Show details Tampilkan detail UninstallConfirmPage Show related packages Tampilkan paket terkait Collapse button Jatuhkan Cancel button Batal Confirm Konfirmasi Are you sure you want to uninstall %1? All dependencies will also be removed Apakah Anda yakin ingin mencopot pemasangan %1? Semua dependensi juga akan dihapus Are you sure you want to uninstall %1? The system or other applications may not work properly Apakah Anda yakin ingin mencopot pemasangan %1? Sistem atau aplikasi lain mungkin tidak berfungsi dengan baik main Package Installer Pemasang Paket Package Installer helps users install and remove local packages, and supports bulk installation. Pemasang Paket membantu pengguna memasang dan menghapus paket lokal, dan mendukung instalasi massal. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_it.ts000066400000000000000000000654021474340456100253110ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Inserisci il numero da configurare: OK button OK BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK OK DebInstaller Package Installer Gestore pacchetti Settings Impostazioni Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken Il pacchetto Deb potrebbe essere corrotto You can only install local deb packages Puoi installare solo pacchetti Deb locali Already Added Già aggiunto %1 does not exist, please reselect %1 non esiste, per cortesia riprova Bulk Install Installazione di massa DebListModel Installation failed, please check your network connection Installazione fallita, controlla la connessione ad internet Installation failed, please check for updates in Control Center Installazione fallita, controlla gli aggiornamenti dal Control Center Installation failed, insufficient disk space Installazione fallita, spazio libero insufficiente No digital signature Nessuna firma digitale Invalid digital signature Firma digitale non valida The administrator has set policies to prevent installation of this package L'Admin ha impostato una policy che nega la possibilità di installare il pacchetto in questione Installation Failed Installazione fallita Failed to install %1 Installazione fallita per %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Installazione non riuscita - Nessuna firma digitale Please go to Control Center to enable developer mode and try again. Proceed? Per cortesia vai nel Centro di Controllo per abilitare le opzioni da sviluppatore e riprova. Procedere? Cancel button Annulla Proceed button Procedi OK button OK This package does not have a valid digital signature. Continue with the installation? Questo pacchetto non ha una firma digitale valida. Continuare con l'installazione? Cancel Annulla Continue button Continua Unable to install Impossibile installare This package does not have a valid digital signature Questo pacchetto non ha una firma digitale valida Broken dependencies: %1 Dipendenze danneggiate: %1 Authentication failed Autenticazione fallita Unmatched package architecture Architettura pacchetti non compatibile FileChooseWidget Drag deb packages here Trascina i pacchetti Deb qui Select File Seleziona i file manualmente MultipleInstallPage Show details Mostra dettagli Collapse button Collassa Install button Installa Done button Fatto Back button Indietro Dependencies in the repository Dipendenze nel repository Missing dependencies Dipendenze mancanti Installing dependencies: %1 Installazione dipendenze: %1 PackageSelectItem Same version installed Medesima versione installata Earlier version installed: %1 Versione precedente installata: %1 Later version installed: %1 Versione successiva già installata: %1 Unmatched package architecture Architettura pacchetti non compatibile PackageSelectView Select all Install button Installa PackagesListDelegate Installing Installazione.. Installed Installato Failed Fallita Waiting Attendere Same version installed Medesima versione installata Later version installed: %1 Versione successiva già installata: %1 Earlier version installed: %1 Versione precedente installata: %1 PackagesListView Delete Elimina QApplication Collapse button Collassa QObject Basic Semplice Check digital signatures if the developer mode is enabled Controlla la firma digitale se la modalità sviluppatore viene abilitata SingleInstallPage Collapse Collassa Reinstall Aggiorna Later version installed: %1 Versione successiva già installata: %1 Downgrade Ripristina alla versione precedente Earlier version installed: %1 Versione precedente installata: %1 Installing dependencies: %1 Installazione dipendenze: %1 Failed to install %1 Installazione fallita per %1 Version: Versione: Install button Installa Remove button Rimuovi OK button OK Back button Indietro Done button Fatto Installed successfully Installazione riuscita Uninstalled successfully Disinstallazione riuscita Uninstall Failed Disinstallazione fallita Dependencies in the repository Dipendenze nel repository Missing dependencies Dipendenze mancanti Update button Aggiorna Invalid digital signature Firma digitale non valida Name: Nome: Same version installed Medesima versione installata SingleInstallPage_Install Show details Mostra dettagli Show dependencies Mostra le dipendenze SingleInstallPage_Uninstall Show details Mostra dettagli UninstallConfirmPage Show related packages Mostra pacchetti collegati Collapse button Collassa Cancel button Annulla Confirm Conferma Are you sure you want to uninstall %1? All dependencies will also be removed Sicuro di voler disinstallare %1? Tutte le dipendenze saranno rimosse Are you sure you want to uninstall %1? The system or other applications may not work properly Sicuro di voler disinstallare %1? Il sistema o eventuali App potrebbero non funzionare correttamente main Package Installer Gestore pacchetti Package Installer helps users install and remove local packages, and supports bulk installation. Il Gestore pacchetti è utile per installare e rimuovere software in locale, supporta inoltre l'installazione massiva. Localizzazione italiana a cura di Massimo A. Carofano. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_ja.ts000066400000000000000000000663521474340456100252740ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: 構成する番号を入力してください: OK button OK BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK OK DebInstaller Package Installer パッケージ インストーラー Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken debパッケージが破損している可能性があります You can only install local deb packages Already Added 既に追加されています %1 does not exist, please reselect Bulk Install 一括インストール DebListModel Installation failed, please check your network connection インストールに失敗しました。ネットワーク接続を確認してください Installation failed, please check for updates in Control Center インストールに失敗しました。コントロールセンターでアップデートを確認してください Installation failed, insufficient disk space インストールに失敗しました。ディスクの空き領域が足りません No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed インストール失敗 Failed to install %1 %1のインストールに失敗しました Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button キャンセル Proceed button OK button OK This package does not have a valid digital signature. Continue with the installation? Cancel キャンセル Continue button Unable to install インストールできません This package does not have a valid digital signature このパッケージには有効なデジタル署名がありません Broken dependencies: %1 不正な依存関係: %1 Authentication failed 認証に失敗しました Unmatched package architecture パッケージのアーキテクチャが一致しません FileChooseWidget Drag deb packages here ここにdebパッケージをドラッグ Select File ファイルの選択 MultipleInstallPage Show details 詳細を表示 Collapse button 折りたたむ Install button インストール Done button 完了 Back button 戻る Dependencies in the repository Missing dependencies Installing dependencies: %1 依存関係をインストール中: %1 PackageSelectItem Same version installed 同じバージョンがインストールされています Earlier version installed: %1 古いバージョンがインストールされています: %1 Later version installed: %1 新しいバージョンがインストールされています: %1 Unmatched package architecture パッケージのアーキテクチャが一致しません PackageSelectView Select all Install button インストール PackagesListDelegate Installing インストール中 Installed インストール済み Failed 失敗 Waiting 待機中 Same version installed 同じバージョンがインストールされています Later version installed: %1 新しいバージョンがインストールされています: %1 Earlier version installed: %1 古いバージョンがインストールされています: %1 PackagesListView Delete 削除 QApplication Collapse button 折りたたむ QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Collapse 折りたたむ Reinstall 再インストール Later version installed: %1 新しいバージョンがインストールされています: %1 Downgrade Earlier version installed: %1 古いバージョンがインストールされています: %1 Installing dependencies: %1 依存関係をインストール中: %1 Failed to install %1 %1のインストールに失敗しました Version: バージョン: Install button インストール Remove button 消去 OK button OK Back button 戻る Done button 完了 Installed successfully インストールが完了しました Uninstalled successfully アンインストールが完了しました Uninstall Failed アンインストール失敗 Dependencies in the repository Missing dependencies Update button Name: 名前: Same version installed 同じバージョンがインストールされています SingleInstallPage_Install Show details 詳細を表示 Show dependencies SingleInstallPage_Uninstall Show details 詳細を表示 UninstallConfirmPage Show related packages 関連するパッケージを表示 Collapse button 折りたたむ Cancel button キャンセル Confirm 確定 Are you sure you want to uninstall %1? All dependencies will also be removed %1をアンインストールしてもよろしいですか? すべての依存関係も消去されます Are you sure you want to uninstall %1? The system or other applications may not work properly %1をアンインストールしてもよろしいですか? システムや他のアプリケーションが正常に動作しなくなる可能性があります main Package Installer パッケージ インストーラー Package Installer helps users install and remove local packages, and supports bulk installation. パッケージ インストーラーは、ユーザーがローカル パッケージをインストールおよび削除するのに役立ちます。一括インストールにも対応しています。 deepin-deb-installer-6.5.5/translations/deepin-deb-installer_ko.ts000066400000000000000000000642001474340456100253010ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button 확인 BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK 확인 DebInstaller Package Installer 패키지 관리자 Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken You can only install local deb packages Already Added 이미 추가됨 %1 does not exist, please reselect Bulk Install 일괄 설치 DebListModel Installation failed, please check your network connection 설치 실패. 네트워크 연결을 확인하십시오 Installation failed, please check for updates in Control Center 설치 실패. 제어 센터에서 업데이트를 확인하십시오 Installation failed, insufficient disk space 설치 실패, 디스크 공간 부족 No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed 설치 실패 Failed to install %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button 취소 Proceed button OK button 확인 This package does not have a valid digital signature. Continue with the installation? Cancel 취소 Continue button Unable to install 설치할 수 없음 This package does not have a valid digital signature 이 패키지에는 유효한 디지털 서명이 없습니다. Broken dependencies: %1 깨진 종속성: %1 Authentication failed Unmatched package architecture 최고의 패키지 아키텍처 FileChooseWidget Drag deb packages here deb 패키지를 여기로 끌어다 놓으십시오 Select File 파일 선택 MultipleInstallPage Show details 상세 정보 표시 Collapse button 축소 Install button 설치 Done button 완료 Back button 뒤로 Dependencies in the repository Missing dependencies Installing dependencies: %1 종속성 설치 중: %1 PackageSelectItem Same version installed 동일한 버전 설치됨 Earlier version installed: %1 이전 버전 설치: %1 Later version installed: %1 이후 버전 설치: %1 Unmatched package architecture 최고의 패키지 아키텍처 PackageSelectView Select all Install button 설치 PackagesListDelegate Installing 설치중 Installed 설치됨 Failed 실패함 Waiting 기다리는 중 Same version installed 동일한 버전 설치됨 Later version installed: %1 이후 버전 설치: %1 Earlier version installed: %1 이전 버전 설치: %1 PackagesListView Delete 삭제 QApplication Collapse button 축소 QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Collapse 축소 Reinstall 재설치 Later version installed: %1 이후 버전 설치: %1 Downgrade Earlier version installed: %1 이전 버전 설치: %1 Installing dependencies: %1 종속성 설치 중: %1 Failed to install %1 Version: 버전: Install button 설치 Remove button 제거 OK button 확인 Back button 뒤로 Done button 완료 Installed successfully 설치 성공 Uninstalled successfully 제거 성공 Uninstall Failed 제거 실패 Dependencies in the repository Missing dependencies Update button Name: 이름: Same version installed 동일한 버전 설치됨 SingleInstallPage_Install Show details 상세 정보 표시 Show dependencies SingleInstallPage_Uninstall Show details 상세 정보 표시 UninstallConfirmPage Show related packages 관련 패키지 표시 Collapse button 축소 Cancel button 취소 Confirm 확인 Are you sure you want to uninstall %1? All dependencies will also be removed %1을(를) 제거하시겠습니까? 모든 종속성도 제거됩니다 Are you sure you want to uninstall %1? The system or other applications may not work properly %1을(를) 제거하시겠습니까? 시스템 또는 다른 응용 프로그램이 제대로 작동하지 않을 수 있습니다. main Package Installer 패키지 관리자 Package Installer helps users install and remove local packages, and supports bulk installation. 패키지 설치 관리자는 사용자가 로컬 패키지를 설치하고, 제거할 수 있도록 지원하고 일괄 설치를 지원합니다. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_lt.ts000066400000000000000000000644311474340456100253150ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button Gerai BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK Gerai DebInstaller Package Installer Paketų diegimo programa Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken You can only install local deb packages Already Added Jau pridėta %1 does not exist, please reselect Bulk Install Masinis įdiegimas DebListModel Installation failed, please check your network connection Įdiegimas nepavyko, prašome patikrinti savo tinklo ryšį Installation failed, please check for updates in Control Center Įdiegimas nepavyko, patikrinkite Valdymo centre ar nėra atnaujinimų Installation failed, insufficient disk space Įdiegimas nepavyko, trūksta vietos diske No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed Įdiegimas nepavyko Failed to install %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button Atsisakyti Proceed button OK button Gerai This package does not have a valid digital signature. Continue with the installation? Cancel Atsisakyti Continue button Unable to install Nepavyko įdiegti This package does not have a valid digital signature Broken dependencies: %1 Sugadintos priklausomybės: %1 Authentication failed Unmatched package architecture Neatitinkanti paketo architektūra FileChooseWidget Drag deb packages here Vilkite čia deb paketus Select File Pasirinkti failą MultipleInstallPage Show details Rodyti išsamiau Collapse button Suskleisti Install button Įdiegti Done button Atlikta Back button Atgal Dependencies in the repository Missing dependencies Installing dependencies: %1 PackageSelectItem Same version installed Įdiegta ta pati versija Earlier version installed: %1 Later version installed: %1 Unmatched package architecture Neatitinkanti paketo architektūra PackageSelectView Select all Install button Įdiegti PackagesListDelegate Installing Įdiegiama Installed Įdiegta Failed Nepavyko Waiting Laukiama Same version installed Įdiegta ta pati versija Later version installed: %1 Earlier version installed: %1 PackagesListView Delete Ištrinti QApplication Collapse button Suskleisti QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Collapse Suskleisti Reinstall Įdiegti iš naujo Later version installed: %1 Downgrade Earlier version installed: %1 Installing dependencies: %1 Failed to install %1 Version: Versija: Install button Įdiegti Remove button Šalinti OK button Gerai Back button Atgal Done button Atlikta Installed successfully Sėkmingai įdiegta Uninstalled successfully Sėkmingai pašalinta Uninstall Failed Šalinimas nepavyko Dependencies in the repository Missing dependencies Update button Name: Pavadinimas: Same version installed Įdiegta ta pati versija SingleInstallPage_Install Show details Rodyti išsamiau Show dependencies SingleInstallPage_Uninstall Show details Rodyti išsamiau UninstallConfirmPage Show related packages Rodyti susijusius paketus Collapse button Suskleisti Cancel button Atsisakyti Confirm Patvirtinti Are you sure you want to uninstall %1? All dependencies will also be removed Ar tikrai norite pašalinti %1? Tuo pačiu bus pašalintos ir visos priklausomybės Are you sure you want to uninstall %1? The system or other applications may not work properly Ar tikrai norite pašalinti %1? Sistema arba kitos programos gali tinkamai neveikti main Package Installer Paketų diegimo programa Package Installer helps users install and remove local packages, and supports bulk installation. Paketų diegimo programa padeda naudotojams įdiegti ir šalinti vietinius paketus bei palaiko masinį įdiegimą. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_mn.ts000066400000000000000000000647241474340456100253150ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button ОК BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK ОК DebInstaller Package Installer Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken You can only install local deb packages Already Added %1 does not exist, please reselect Bulk Install Багц суулгац DebListModel Installation failed, please check your network connection Суулгалт амжилтгүй боллоо, өөрийн сүлжээний холболтоо шалгана уу Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Суулгалт амжилтгүй боллоо, дискийн зай хангалтгүй No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed Суулгалт амжилтгүй боллоо Failed to install %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button Цуцлах Proceed button OK button ОК This package does not have a valid digital signature. Continue with the installation? Cancel Цуцлах Continue button Unable to install This package does not have a valid digital signature Broken dependencies: %1 Authentication failed Unmatched package architecture Багцын архитектур тохирсонгүй FileChooseWidget Drag deb packages here Select File Файл сонгох MultipleInstallPage Show details Collapse button Дэлгэх Install button Суулгах Done button Дууссан Back button Буцах Dependencies in the repository Missing dependencies Installing dependencies: %1 PackageSelectItem Same version installed Адил хувилбар суулгагдсан Earlier version installed: %1 Later version installed: %1 Unmatched package architecture Багцын архитектур тохирсонгүй PackageSelectView Select all Install button Суулгах PackagesListDelegate Installing Суулгаж байна Installed Суулгагдсан Failed Амжилтгүй Waiting Same version installed Адил хувилбар суулгагдсан Later version installed: %1 Earlier version installed: %1 PackagesListView Delete QApplication Collapse button Дэлгэх QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Collapse Дэлгэх Reinstall Дахин суулгах Later version installed: %1 Downgrade Earlier version installed: %1 Installing dependencies: %1 Failed to install %1 Version: Хувилбар: Install button Суулгах Remove button Устгах OK button ОК Back button Буцах Done button Дууссан Installed successfully Амжилттай суулгагдлаа Uninstalled successfully Амжилттай устгагдлаа Uninstall Failed Устгах ажиллагаа амжилтгүй болсон Dependencies in the repository Missing dependencies Update button Name: Нэр: Same version installed Адил хувилбар суулгагдсан SingleInstallPage_Install Show details Show dependencies SingleInstallPage_Uninstall Show details UninstallConfirmPage Show related packages Collapse button Дэлгэх Cancel button Цуцлах Confirm Баталгаажуулах Are you sure you want to uninstall %1? All dependencies will also be removed Are you sure you want to uninstall %1? The system or other applications may not work properly main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_ms.ts000066400000000000000000000676671474340456100253330ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Masukkan bilangan konfigur: OK button OK BackendProcessPage Loading packages... Memuatkan pakej... %1/%2 loaded %1/%2 dimuatkan Initializing... Memulakan... DdimErrorPage OK OK DebInstaller Package Installer Pemasang Pakej Settings Tetapan Installing other packages... Please open it later. Memasang pakej lain... Sila buka ia kemudian. Parsing failed: An illegal file structure was found in the manifest file! Gagal dihurai: Satu struktur fail tidak sah telah ditemui dalam fail manifes! Parsing failed: An illegal version number was found in the manifest file! Gagal dihurai: Satu nombor versi tidak sah telah ditemui dalam fail manife! No deb packages found. Please check the folder. Tiada pakej deb ditemui. Sila periksa folder. The deb package may be broken Pakej deb mungkin rosak You can only install local deb packages Anda hanya boleh pasang pakej deb setempat Already Added Sudah Ditambah %1 does not exist, please reselect %1 tidak wujud, sila pilih semula Bulk Install Pasang Pukal DebListModel Installation failed, please check your network connection Pemasangan gagal, sila periksa sambungan rangkaian anda Installation failed, please check for updates in Control Center Pemasangan gagal, sila periksa kemas kini dalam Pusat Kawalan Installation failed, insufficient disk space Pemasangan gagal, ruang cakera tidak mencukupi No digital signature Tiada tandatangan digital Invalid digital signature Tandatangan digital tidak sah The administrator has set policies to prevent installation of this package Pentadbir telah menetapkan dasar yang menghalang pemasangan pakej ini Installation Failed Pemasangan Gagal Failed to install %1 Gagal memasang %1 This package does not have a valid digital signature and has been blocked from installing/running. Go to Security Center > Tools > App Security to change the settings. Failed to install %1: no valid digital singature Unable to install - no digital signature Tidak dapat pasang - tiada tandatangan digital Please go to Control Center to enable developer mode and try again. Proceed? Sila pergi ke Pusat Kawalan untuk membenarkan mod pembangun dan cuba sekali lagi. Teruskan? Cancel button Batal Proceed button Teruskan OK button OK Failed to install %1: no valid digital signature Gagal memasang %1: tiada tandatangan digital yang sah This package does not have a valid digital signature. Continue with the installation? Pakej ini tidak memiliki tandatangan digital yang sah. Teruskan pemasangan? Cancel Batal Continue button Teruskan Unable to install Tidak boleh memasang This package does not have a valid digital signature Pakej ini tidak memiliki tandatangan digital yang sah Broken dependencies: %1 Dependensi rosak: %1 Authentication failed Pengesahihan gagal Unmatched package architecture Senibina pakej tidak sepadan FileChooseWidget Drag deb packages here Seret pakej-pakej deb di sini Select File Pilih Fail MultipleInstallPage Show details Tunjuk perincian Collapse button Kuncup Install button Pasang Done button Selesai Back button Undur Dependencies in the repository Dependensi dalam repositori Missing dependencies Dependensi hilang Installing dependencies: %1 Memasang dependensi: %1 PackageSelectItem Same version installed Versi serupa telah dipasang Earlier version installed: %1 Versi lebih awal dipasang: %1 Later version installed: %1 Versi terkemudian dipasang: %1 Unmatched package architecture Senibina pakej tidak sepadan PackageSelectView Select all Pilih semua Install button Pasang PackagesListDelegate Installing Memasang Installed Dipasang Failed Gagal Waiting Menunggu Same version installed Versi serupa telah dipasang Later version installed: %1 Versi terkemudian dipasang: %1 Earlier version installed: %1 Versi lebih awal dipasang: %1 PackagesListView Delete Padam QApplication Collapse button Kuncup QObject Basic Asas Check digital signatures if the developer mode is enabled Periksa tandatangan digital jika mod pembangun dibenarkan To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Security Center > Tools > App Security SingleInstallPage Collapse Kuncup Reinstall Pasang Semula Later version installed: %1 Versi terkemudian dipasang: %1 Downgrade Nyahtatar Earlier version installed: %1 Versi lebih awal dipasang: %1 Installing dependencies: %1 Memasang dependensi: %1 Failed to install %1 Gagal memasang %1 Version: Versi: Install button Pasang Remove button Buang OK button OK Back button Undur Done button Selesai Installed successfully Berjaya dipasang Uninstalled successfully Berjaya dinyahpasang Uninstall Failed Nyahpasang Gagal Dependencies in the repository Dependensi dalam repositori Missing dependencies Dependensi hilang Update button Kemas kini Invalid digital signature Tandatangan digital tidak sah Name: Nama: Same version installed Versi serupa telah dipasang SingleInstallPage_Install Show details Tunjuk perincian Show dependencies Tunjuk dependensi SingleInstallPage_Uninstall Show details Tunjuk perincian UninstallConfirmPage Show related packages Tunjuk pakej-pakej berkaitan Collapse button Kuncup Cancel button Batal Confirm Sahkan Are you sure you want to uninstall %1? All dependencies will also be removed Anda pasti mahu menyahpasang %1? Semua dependensinya juga akan dibuang Are you sure you want to uninstall %1? The system or other applications may not work properly Anda pasti mahu menyahpasang %1? Sistem atau lain-lain aplikasi mungkin tidak berfungsi dengan baik main Package Installer Pemasang Pakej Package Installer helps users install and remove local packages, and supports bulk installation. Pemasang pakej dapat membantu pengguna dan membuang pakej-pakej setempat, dan juga menyokong pemasangan pukal. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_ne.ts000066400000000000000000000703641474340456100253020ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button ठिक छ BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK ठिक छ DebInstaller Package Installer प्याकेज स्थापनाकर्ता Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken You can only install local deb packages Already Added पहिले नै थपिएको %1 does not exist, please reselect Bulk Install बल्क स्थापना DebListModel Installation failed, please check your network connection स्थापना असफल भयो, कृपया तपाइँको नेटवर्क जडान जाँच्नुहोस् Installation failed, please check for updates in Control Center स्थापना असफल भयो, कृपया नियन्त्रण केन्द्रमा अद्यावधिकहरू जाँच गर्नुहोस् Installation failed, insufficient disk space स्थापना विफल भयो, अपर्याप्त डिस्क स्पेस No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed स्थापना असफल भयो Failed to install %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button रद्द गर्नुहोस् Proceed button OK button ठिक छ This package does not have a valid digital signature. Continue with the installation? Cancel रद्द गर्नुहोस् Continue button Unable to install स्थापना गर्न असमर्थ This package does not have a valid digital signature Broken dependencies: %1 टुक्रिएको निर्भरता:% 1 Authentication failed Unmatched package architecture बेमेल प्याकेज वास्तुकला FileChooseWidget Drag deb packages here यहाँ डेब प्याकेजहरू तान्नुहोस् Select File फाइल चयन गर्नुहोस् MultipleInstallPage Show details विवरण देखाऊ Collapse button संक्षिप्त गर्नुहोस् Install button स्थापना Done button भयो Back button पछाडि Dependencies in the repository Missing dependencies Installing dependencies: %1 PackageSelectItem Same version installed एउटै संस्करण स्थापित Earlier version installed: %1 Later version installed: %1 Unmatched package architecture बेमेल प्याकेज वास्तुकला PackageSelectView Select all Install button स्थापना PackagesListDelegate Installing स्थापना गर्दै Installed स्थापित Failed असफल भयो Waiting पर्खँदै Same version installed एउटै संस्करण स्थापित Later version installed: %1 Earlier version installed: %1 PackagesListView Delete हटाउनुहोस् QApplication Collapse button संक्षिप्त गर्नुहोस् QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Collapse संक्षिप्त गर्नुहोस् Reinstall पुन: स्थापना गर्नुहोस् Later version installed: %1 Downgrade Earlier version installed: %1 Installing dependencies: %1 Failed to install %1 Version: संस्करण Install button स्थापना Remove button हटाउनुहोस् OK button ठिक छ Back button पछाडि Done button भयो Installed successfully सफलतापूर्वक स्थापित भयो Uninstalled successfully सफलतापूर्वक स्थापना रद्द गरियो Uninstall Failed स्थापना रद्द गरियो Dependencies in the repository Missing dependencies Update button Name: नाम Same version installed एउटै संस्करण स्थापित SingleInstallPage_Install Show details विवरण देखाऊ Show dependencies SingleInstallPage_Uninstall Show details विवरण देखाऊ UninstallConfirmPage Show related packages सम्बन्धित प्याकेजहरू देखाउनुहोस् Collapse button संक्षिप्त गर्नुहोस् Cancel button रद्द गर्नुहोस् Confirm पक्का गर्नु Are you sure you want to uninstall %1? All dependencies will also be removed के तपाईँ% 1 लाई अनस्टल गर्न निश्चित हुनुहुन्छ? सबै निर्भरताहरू हटाइनेछ Are you sure you want to uninstall %1? The system or other applications may not work properly के तपाईं पक्का% 1 स्थापना हटाउन चाहनुहुन्छ? प्रणाली वा अन्य अनुप्रयोगहरू ठीकसँग काम नगर्न सक्छ main Package Installer प्याकेज स्थापनाकर्ता Package Installer helps users install and remove local packages, and supports bulk installation. प्याकेज स्थापनाकर्ताले प्रयोगकर्ताहरूलाई स्थानीय प्याकेजहरू स्थापना र हटाउन मद्दत गर्दछ, र बल्क स्थापनालाई समर्थन गर्दछ। deepin-deb-installer-6.5.5/translations/deepin-deb-installer_nl.ts000066400000000000000000000707411474340456100253100ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Voer het nummer in om in te stellen: OK button Oké BackendProcessPage Loading packages... Bezig met laden van pakketten… %1/%2 loaded %1/%2 geladen Initializing... Bezig met inlezen… DdimErrorPage OK Oké DebInstaller Package Installer Pakketinstallatie Settings Instellingen Installing other packages... Please open it later. Bezig met installeren van andere pakketten… Keer later terug. Parsing failed: An illegal file structure was found in the manifest file! Verwerking mislukt: onjuiste bestandsstructuur aangetroffen in manifestbestand! Parsing failed: An illegal version number was found in the manifest file! Verwerking mislukt: ongeldig versienummer aangetroffen in manifestbestand! No deb packages found. Please check the folder. Er zijn geen deb-pakketten aangetroffen - controleer de map. The deb package may be broken Het deb-pakket is mogelijk beschadigd You can only install local deb packages Je kunt alleen lokale deb-pakketten installeren Already Added Reeds toegevoegd %1 does not exist, please reselect %1 bestaat niet - kies een ander bestand Bulk Install Alles installeren DebListModel Installation failed, please check your network connection Installatie mislukt: controleer je internetverbinding. Installation failed, please check for updates in Control Center Installatie mislukt: controleer op updates in het instellingencentrum. Installation failed, insufficient disk space Installatie mislukt: onvoldoende schijfruimte. No digital signature Geen digitale handtekening Invalid digital signature Ongeldige digitale handtekening The administrator has set policies to prevent installation of this package De beheerder voert een beleid wat voorkomt dat dit pakket geïnstalleerd mag worden Installation Failed Installatie mislukt Failed to install %1 %1 kan niet worden geïnstalleerd This package does not have a valid digital signature and has been blocked from installing/running. Go to Security Center > Tools > App Security to change the settings. Failed to install %1: no valid digital singature Kan %1 niet installeren: geen digitale handtekening Unable to install - no digital signature Kan niet installeren: geen digitale handtekening Please go to Control Center to enable developer mode and try again. Proceed? Ga naar de systeeminstellingen, schakel de ontwikkelaarsmodus in en probeer het opnieuw. Wil je doorgaan? Cancel button Annuleren Proceed button Doorgaan OK button Oké Failed to install %1: no valid digital signature Kan %1 niet installeren: geen digitale handtekening This package does not have a valid digital signature. Continue with the installation? Dit pakket bevat geen geldige ondertekening. Weet je zeker dat je wilt doorgaan? Cancel Annuleren Continue button Doorgaan Unable to install Installeren niet mogelijk This package does not have a valid digital signature Dit pakket bevat geen geldige ondertekening Broken dependencies: %1 Niet-voldane afhankelijkheden: %1 Authentication failed Authenticatie mislukt Unmatched package architecture Pakketarchitectuur komt niet overeen FileChooseWidget Drag deb packages here Sleep deb-bestanden hierheen Select File Bestand selecteren MultipleInstallPage Show details Informatie tonen Collapse button Inklappen Install button Installeren Done button Klaar Back button Terug Dependencies in the repository Afhankelijkheden in de pakketbron Missing dependencies Ontbrekende afhankelijkheden Installing dependencies: %1 Bezig met installeren van afhankelijkheden: %1 PackageSelectItem Same version installed Dezelfde versie is geïnstalleerd Earlier version installed: %1 Oudere versie geïnstalleerd: %1 Later version installed: %1 Nieuwere versie geïnstalleerd: %1 Unmatched package architecture Pakketarchitectuur komt niet overeen PackageSelectView Select all Alles selecteren Install button Installeren PackagesListDelegate Installing Bezig met installeren Installed Geïnstalleerd Failed Mislukt Waiting Bezig met wachten Same version installed Dezelfde versie is geïnstalleerd Later version installed: %1 Nieuwere versie geïnstalleerd: %1 Earlier version installed: %1 Oudere versie geïnstalleerd: %1 PackagesListView Delete Verwijderen QApplication Collapse button Inklappen QObject Basic Algemeen Check digital signatures if the developer mode is enabled Ondertekeningen controleren als ontwikkelaarsmodus is ingeschakeld To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Security Center > Tools > App Security SingleInstallPage Collapse Inklappen Reinstall Opnieuw installeren Later version installed: %1 Nieuwere versie geïnstalleerd: %1 Downgrade Afwaarderen Earlier version installed: %1 Oudere versie geïnstalleerd: %1 Installing dependencies: %1 Bezig met installeren van afhankelijkheden: %1 Failed to install %1 %1 kan niet worden geïnstalleerd Version: Versie: Install button Installeren Remove button Verwijderen OK button Oké Back button Terug Done button Klaar Installed successfully Installatie voltooid Uninstalled successfully Verwijderd Uninstall Failed Opnieuw installeren mislukt Dependencies in the repository Afhankelijkheden in de pakketbron Missing dependencies Ontbrekende afhankelijkheden Update button Bijwerken Invalid digital signature Ongeldige digitale handtekening Name: Naam: Same version installed Dezelfde versie is geïnstalleerd SingleInstallPage_Install Show details Informatie tonen Show dependencies Afhankelijkheden tonen SingleInstallPage_Uninstall Show details Informatie tonen UninstallConfirmPage Show related packages Gerelateerde pakketten tonen Collapse button Inklappen Cancel button Annuleren Confirm Verwijderen Are you sure you want to uninstall %1? All dependencies will also be removed Weet je zeker dat je %1 wilt verwijderen? Alle afhankelijkheden worden eveneens verwijderd. Are you sure you want to uninstall %1? The system or other applications may not work properly Weet je zeker dat je %1 wilt verwijderen? Het systeem of andere programma's werken dan mogelijk niet goed meer. main Package Installer Pakketinstallatie Package Installer helps users install and remove local packages, and supports bulk installation. Pakketinstallatie is een programma dat gebruikers helpt bij het installeren van lokale software. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_pa.ts000066400000000000000000000645021474340456100252750ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button ਠੀਕ ਹੈ BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK ਠੀਕ ਹੈ DebInstaller Package Installer Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken You can only install local deb packages Already Added %1 does not exist, please reselect Bulk Install DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed Failed to install %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button Proceed button OK button ਠੀਕ ਹੈ This package does not have a valid digital signature. Continue with the installation? Cancel Continue button Unable to install This package does not have a valid digital signature Broken dependencies: %1 Authentication failed Unmatched package architecture FileChooseWidget Drag deb packages here Select File ਫਾਇਲ ਚੁਣੋ MultipleInstallPage Show details Collapse button Install button ਇੰਸਟਾਲ ਕਰੋ Done button ਮੁਕੰਮਲ Back button ਪਿੱਛੇ Dependencies in the repository Missing dependencies Installing dependencies: %1 PackageSelectItem Same version installed ਉਹੀ ਵਰਜ਼ਨ ਇੰਸਟਾਲ ਹੈ Earlier version installed: %1 Later version installed: %1 Unmatched package architecture PackageSelectView Select all Install button ਇੰਸਟਾਲ ਕਰੋ PackagesListDelegate Installing ਇੰਸਟਾਲ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ Installed ਇੰਸਟਾਲ ਹੈ Failed ਅਸਫ਼ਲ ਹੈ Waiting Same version installed ਉਹੀ ਵਰਜ਼ਨ ਇੰਸਟਾਲ ਹੈ Later version installed: %1 Earlier version installed: %1 PackagesListView Delete QApplication Collapse button QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Collapse Reinstall ਮੁੜ-ਇੰਸਟਾਲ ਕਰੋ Later version installed: %1 Downgrade Earlier version installed: %1 Installing dependencies: %1 Failed to install %1 Version: ਵਰਜ਼ਨ: Install button ਇੰਸਟਾਲ ਕਰੋ Remove button ਹਟਾਓ OK button ਠੀਕ ਹੈ Back button ਪਿੱਛੇ Done button ਮੁਕੰਮਲ Installed successfully ਕਾਮਯਾਬੀ ਨਾਲ ਇੰਸਟਾਲ ਕੀਤਾ Uninstalled successfully ਅਣ-ਇੰਸਟਾਲ ਕਰਨਾ ਕਾਮਯਾਬ ਰਿਹਾ Uninstall Failed ਅਣ-ਇੰਸਟਾਲ ਕਰਨਾ ਅਸਫ਼ਲ ਹੈ Dependencies in the repository Missing dependencies Update button Name: Same version installed ਉਹੀ ਵਰਜ਼ਨ ਇੰਸਟਾਲ ਹੈ SingleInstallPage_Install Show details Show dependencies SingleInstallPage_Uninstall Show details UninstallConfirmPage Show related packages Collapse button Cancel button Confirm Are you sure you want to uninstall %1? All dependencies will also be removed Are you sure you want to uninstall %1? The system or other applications may not work properly main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_pl.ts000066400000000000000000000705721474340456100253140ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Wprowadź numer do skonfigurowania: OK button OK BackendProcessPage Loading packages... Wczytywanie pakietów... %1/%2 loaded %1/%2 wczytano Initializing... Inicjowanie... DdimErrorPage OK OK DebInstaller Package Installer Instalator pakietów Settings Ustawienia Installing other packages... Please open it later. Instalacja innych pakietów w trakcie... Otwórz później. Parsing failed: An illegal file structure was found in the manifest file! Parsowanie nie powiodło się: W pliku manifest znaleziono nieprawidłową strukturę! Parsing failed: An illegal version number was found in the manifest file! Parsowanie nie powiodło się: W pliku manifest znaleziono nieprawidłowy numer wersji! No deb packages found. Please check the folder. Nie znaleziono pakietów deb. Sprawdź folder, w którym się znajduje. The deb package may be broken Pakiet deb może być uszkodzony You can only install local deb packages Możesz zainstalować tylko pakiety deb przechowywane lokalnie Already Added Już dodano %1 does not exist, please reselect %1 nie istnieje, zaznacz ponownie Bulk Install Instalacja zbiorcza DebListModel Installation failed, please check your network connection Błąd instalacji, sprawdź połączenie sieciowe Installation failed, please check for updates in Control Center Instalacja nie powiodła się, sprawdź aktualizacje w Centrum Kontroli Installation failed, insufficient disk space Błąd instalacji: za mało miejsca na dysku No digital signature Brak certyfikatu Invalid digital signature Nieprawidłowa sygnatura certyfikatu The administrator has set policies to prevent installation of this package Administrator ustalił reguły, aby zapobiec instalacji tego pakietu Installation Failed Błąd instalacji Failed to install %1 Nie udało się zainstalować %1 This package does not have a valid digital signature and has been blocked from installing/running. Go to Security Center > Tools > App Security to change the settings. Failed to install %1: no valid digital singature Nie udało się zainstalować %1: brak ważnej sygnatury cyfrowej Unable to install - no digital signature Nie można zainstalować - brak podpisu cyfrowego Please go to Control Center to enable developer mode and try again. Proceed? Przejdź do Centrum Kontroli, aby włączyć tryb dewelopera i spróbuj ponownie. Kontynuować? Cancel button Anuluj Proceed button Kontynuuj OK button OK Failed to install %1: no valid digital signature Nie udało się zainstalować %1: brak ważnej sygnatury cyfrowej This package does not have a valid digital signature. Continue with the installation? Pakiet nie posiada ważnego podpisu cyfrowego. Kontynuować instalację? Cancel Anuluj Continue button Kontynuuj Unable to install Nie można zainstalować This package does not have a valid digital signature Ten pakiet nie ma prawidłowego podpisu cyfrowego Broken dependencies: %1 Zerwane zależności: %1 Authentication failed Uwierzytelnienie nie powiodło się Unmatched package architecture Niepasująca architektura pakietów FileChooseWidget Drag deb packages here Przeciągnij pakiety deb tutaj Select File Wybierz plik MultipleInstallPage Show details Pokaż szczegóły Collapse button Zwiń Install button Zainstaluj Done button Gotowe Back button Wstecz Dependencies in the repository Zależności w repozytorium Missing dependencies Brakujące zależności Installing dependencies: %1 Instalowanie zależności: %1 PackageSelectItem Same version installed Zainstalowana ta sama wersja Earlier version installed: %1 Wcześniejsza wersja zainstalowana: %1 Later version installed: %1 Nowsza wersja zainstalowana: %1 Unmatched package architecture Niepasująca architektura pakietu PackageSelectView Select all Zaznacz wszystko Install button Zainstaluj PackagesListDelegate Installing Instalowanie Installed Zainstalowano Failed Wystąpił błąd Waiting Oczekiwanie Same version installed Zainstalowana ta sama wersja Later version installed: %1 Nowsza wersja zainstalowana: %1 Earlier version installed: %1 Wcześniejsza wersja zainstalowana: %1 PackagesListView Delete Usuń QApplication Collapse button Zwiń QObject Basic Podstawowe Check digital signatures if the developer mode is enabled Sprawdź podpisy cyfrowe, jeśli tryb dewelopera jest włączony. To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Security Center > Tools > App Security SingleInstallPage Collapse Zwiń Reinstall Przeinstaluj Later version installed: %1 Nowsza wersja zainstalowana: %1 Downgrade Downgrade Earlier version installed: %1 Wcześniejsza wersja zainstalowana: %1 Installing dependencies: %1 Instalowanie zależności: %1 Failed to install %1 Nie udało się zainstalować %1 Version: Wersja: Install button Zainstaluj Remove button Usuń OK button OK Back button Wstecz Done button Gotowe Installed successfully Zainstalowano pomyślnie Uninstalled successfully Odinstalowano pomyślnie Uninstall Failed Błąd odinstalowania Dependencies in the repository Zależności w repozytorium Missing dependencies Brakujące zależności Update button Aktualizuj Invalid digital signature Nieprawidłowa sygnatura certyfikatu Name: Nazwa: Same version installed Zainstalowana ta sama wersja SingleInstallPage_Install Show details Pokaż szczegóły Show dependencies Pokaż zależności SingleInstallPage_Uninstall Show details Pokaż szczegóły UninstallConfirmPage Show related packages Pokaż powiązane pakiety Collapse button Zwiń Cancel button Anuluj Confirm Potwierdź Are you sure you want to uninstall %1? All dependencies will also be removed Czy na pewno chcesz odinstalować %1? Wszystkie zależności zostaną również usunięte Are you sure you want to uninstall %1? The system or other applications may not work properly Czy na pewno chcesz odinstalować% 1? System lub inne aplikacje mogą nie działać poprawnie main Package Installer Instalator pakietów Package Installer helps users install and remove local packages, and supports bulk installation. Instalator pakietów pomaga użytkownikom instalować i usuwać pakiety lokalne oraz obsługuje instalację zbiorczą. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_pt.ts000066400000000000000000000705771474340456100253310ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Introduza o número a configurar: OK button Aceitar BackendProcessPage Loading packages... A carregar pacotes... %1/%2 loaded %1/%2 carregado Initializing... A inicializar... DdimErrorPage OK Aceitar DebInstaller Package Installer Instalador de Pacotes Settings Definições Installing other packages... Please open it later. A instalar outros pacotes... Abrir mais tarde. Parsing failed: An illegal file structure was found in the manifest file! Falha ao analisar: Foi encontrada uma estrutura de ficheiro ilegal no ficheiro de manifesto! Parsing failed: An illegal version number was found in the manifest file! Falha ao analisar: Foi encontrado um número de versão ilegal no ficheiro de manifesto! No deb packages found. Please check the folder. Não foram encontrados pacotes deb. Verificar a pasta. The deb package may be broken O pacote deb pode estar corrompido You can only install local deb packages Apenas pode instalar pacotes "deb" localmente Already Added Já adicionado %1 does not exist, please reselect %1 não existe, selecione novamente Bulk Install Instalação em massa DebListModel Installation failed, please check your network connection Falha na instalação, verifique a sua ligação à Internet Installation failed, please check for updates in Control Center Falha na instalação, verifique se há atualizações no Centro de Controlo Installation failed, insufficient disk space Falha na instalação, espaço em disco insuficiente No digital signature Sem assinatura digital Invalid digital signature Assinatura digital inválida The administrator has set policies to prevent installation of this package O administrador definiu normas para impedir a instalação deste pacote Installation Failed Falha na instalação Failed to install %1 Falha ao instalar %1 This package does not have a valid digital signature and has been blocked from installing/running. Go to Security Center > Tools > App Security to change the settings. Failed to install %1: no valid digital singature Falha ao instalar %1: nenhuma assinatura digital válida Unable to install - no digital signature Incapaz de instalar - sem assinatura digital Please go to Control Center to enable developer mode and try again. Proceed? Vá ao Centro de Controlo para ativar o modo de programador e tente novamente. Continuar? Cancel button Cancelar Proceed button Continuar OK button Aceitar Failed to install %1: no valid digital signature Falha ao instalar %1: nenhuma assinatura digital válida This package does not have a valid digital signature. Continue with the installation? Este pacote não possui uma assinatura digital válida. Continuar com a instalação? Cancel Cancelar Continue button Continuar Unable to install Incapaz de instalar This package does not have a valid digital signature Este pacote não tem uma assinatura digital válida Broken dependencies: %1 Dependências com problemas: %1 Authentication failed Falha na autenticação Unmatched package architecture Arquitetura do pacote não compatível FileChooseWidget Drag deb packages here Arraste os pacotes deb para aqui Select File Selecionar ficheiro MultipleInstallPage Show details Mostrar detalhes Collapse button Ocultar Install button Instalar Done button Concluído Back button Anterior Dependencies in the repository Dependências no repositório Missing dependencies Dependências em falta Installing dependencies: %1 A instalar dependências: %1 PackageSelectItem Same version installed A mesma versão já está instalada Earlier version installed: %1 Versão anterior instalada: %1 Later version installed: %1 Versão posterior instalada: %1 Unmatched package architecture Arquitetura do pacote não compatível PackageSelectView Select all Selecionar tudo Install button Instalar PackagesListDelegate Installing A Instalar Installed Instalado Failed Falhou Waiting Aguardar Same version installed A mesma versão já está instalada Later version installed: %1 Versão posterior instalada: %1 Earlier version installed: %1 Versão anterior instalada: %1 PackagesListView Delete Eliminar QApplication Collapse button Ocultar QObject Basic Básico Check digital signatures if the developer mode is enabled Verificar as assinaturas digitais se o modo de programador estiver ativo To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Security Center > Tools > App Security SingleInstallPage Collapse Ocultar Reinstall Reinstalar Later version installed: %1 Versão posterior instalada: %1 Downgrade Desatualizar Earlier version installed: %1 Versão anterior instalada: %1 Installing dependencies: %1 A instalar dependências: %1 Failed to install %1 Falha ao instalar %1 Version: Versão: Install button Instalar Remove button Remover OK button Aceitar Back button Anterior Done button Concluído Installed successfully Instalado com sucesso Uninstalled successfully Desinstalado com sucesso Uninstall Failed Falha na desinstalação Dependencies in the repository Dependências no repositório Missing dependencies Dependências em falta Update button Atualizar Invalid digital signature Assinatura digital inválida Name: Nome: Same version installed A mesma versão já está instalada SingleInstallPage_Install Show details Mostrar detalhes Show dependencies Mostrar dependências SingleInstallPage_Uninstall Show details Mostrar detalhes UninstallConfirmPage Show related packages Mostrar pacotes relacionados Collapse button Ocultar Cancel button Cancelar Confirm Confirmar Are you sure you want to uninstall %1? All dependencies will also be removed Tem a certeza que deseja desinstalar %1? Também serão removidas todas as dependências Are you sure you want to uninstall %1? The system or other applications may not work properly Tem a certeza que deseja desinstalar %1? O sistema ou outras aplicações podem não funcionar corretamente main Package Installer Instalador de Pacotes Package Installer helps users install and remove local packages, and supports bulk installation. O Instalador de Pacotes ajuda os utilizadores a instalar e remover pacotes locais e suporta a instalação em massa. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_pt_BR.ts000066400000000000000000000651131474340456100257020ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Insira o número para configurar: OK button Ok BackendProcessPage Loading packages... Carregando pacotes... %1/%2 loaded %1/%2 carregado Initializing... Inicializando... DdimErrorPage OK Ok DebInstaller Package Installer Instalador de Pacotes Settings Configurações Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken O pacote .deb pode estar quebrado You can only install local deb packages É possível instalar apenas os pacotes .deb locais Already Added Já adicionado %1 does not exist, please reselect %1 não existe; selecione-o novamente Bulk Install Instalação em massa DebListModel Installation failed, please check your network connection A instalação falhou; verifique a conexão de rede Installation failed, please check for updates in Control Center A instalação falhou; verifique se há atualizações disponíveis Installation failed, insufficient disk space A instalação falhou; espaço insuficiente em disco No digital signature Nenhuma assinatura digital Invalid digital signature Assinatura digital inválida The administrator has set policies to prevent installation of this package O administrador definiu políticas para impedir a instalação deste pacote Installation Failed A instalação falhou Failed to install %1 Falha ao instalar %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Impossível instalar - nenhuma assinatura digital Please go to Control Center to enable developer mode and try again. Proceed? Acesse a Central de Controle para ativar o modo de desenvolvedor. Continuar? Cancel button Cancelar Proceed button Continuar OK button Ok This package does not have a valid digital signature. Continue with the installation? Este pacote não possuí uma assinatura digital válida. Continuar com a instalação? Cancel Cancelar Continue button Continuar Unable to install Impossível instalar This package does not have a valid digital signature Este pacote não possui uma assinatura digital válida Broken dependencies: %1 Dependências quebradas: %1 Authentication failed A autenticação falhou Unmatched package architecture Arquitetura do pacote incompatível FileChooseWidget Drag deb packages here Arraste e solte os pacotes .deb aqui Select File Selecionar Arquivo MultipleInstallPage Show details Exibir detalhes Collapse button Recolher Install button Instalar Done button Concluído Back button Voltar Dependencies in the repository Dependências no repositório Missing dependencies Dependências ausentes Installing dependencies: %1 Instalando dependências: %1 PackageSelectItem Same version installed Mesma versão instalada Earlier version installed: %1 Versão anterior instalada: %1 Later version installed: %1 Última versão instalada: %1 Unmatched package architecture A arquitetura do pacote é incompatível PackageSelectView Select all Selecionar tudo Install button Instalar PackagesListDelegate Installing Instalando... Installed Instalado Failed Falhou Waiting Aguardando... Same version installed Mesma versão instalada Later version installed: %1 Última versão instalada: %1 Earlier version installed: %1 Versão anterior instalada: %1 PackagesListView Delete Excluir QApplication Collapse button Recolher QObject Basic Básico Check digital signatures if the developer mode is enabled Verificar as assinaturas digitais se o modo desenvolvedor estiver ativo SingleInstallPage Collapse Recolher Reinstall Reinstalar Later version installed: %1 Última versão instalada: %1 Downgrade Downgrade Earlier version installed: %1 Versão anterior instalada: %1 Installing dependencies: %1 Instalando dependências: %1 Failed to install %1 Falha ao instalar %1 Version: Versão: Install button Instalar Remove button Remover OK button Ok Back button Voltar Done button Concluído Installed successfully Instalado Uninstalled successfully Desinstalado Uninstall Failed A desinstalação falhou Dependencies in the repository Dependências no repositório Missing dependencies Dependências ausentes Update button Atualizar Invalid digital signature Assinatura digital inválida Name: Nome: Same version installed Mesma versão instalada SingleInstallPage_Install Show details Exibir detalhes Show dependencies Exibir dependências SingleInstallPage_Uninstall Show details Exibir detalhes UninstallConfirmPage Show related packages Exibir os pacotes relacionados Collapse button Recolher Cancel button Cancelar Confirm Confirmar Are you sure you want to uninstall %1? All dependencies will also be removed Desinstalar %1? Todas as dependências serão removidas Are you sure you want to uninstall %1? The system or other applications may not work properly Desinstalar %1? O sistema e/ou outros aplicativos podem não funcionar corretamente main Package Installer Instalador de Pacotes Package Installer helps users install and remove local packages, and supports bulk installation. O Instalador de Pacotes auxilia os usuários a instalar e remover pacotes, e permite a instalação em massa. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_ru.ts000066400000000000000000000710301474340456100253150ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Введите номер чтобы сконфигурировать OK button OK BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK OK DebInstaller Package Installer Установщик пакетов Settings Настройки Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken Пакет deb может быть поврежден You can only install local deb packages Вы можете установить только локальные deb пакеты Already Added Уже добавлен %1 does not exist, please reselect %1 не существует, перевыбрать Bulk Install Массовая Установка DebListModel Installation failed, please check your network connection Установка не удалась, проверьте ваше интернет соединение Installation failed, please check for updates in Control Center Установка не удалась, проверьте обновления в Центре Управления Installation failed, insufficient disk space Установка не удалась, недостаточно места на диске No digital signature Нет цифровой подписи Invalid digital signature Неверная цифровая подпись The administrator has set policies to prevent installation of this package Администратор установил политики для предотвращения установки этого пакета Installation Failed Установка не удалась Failed to install %1 Не удалось установить %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Невозможно установить - нет цифровой подписи Please go to Control Center to enable developer mode and try again. Proceed? Перейдите в Центр управления, чтобы включить режим разработчика, и повторите попытку. Продолжить? Cancel button Отмена Proceed button Продолжить OK button OK This package does not have a valid digital signature. Continue with the installation? Этот пакет не имеет действительной цифровой подписи. Продолжить установку? Cancel Отмена Continue button Продолжить Unable to install Невозможно установить This package does not have a valid digital signature Пакет не имеет действующей цифровой подписи Broken dependencies: %1 Нарушены Зависимости: %1 Authentication failed Аутентификация не удалась Unmatched package architecture Архитектура пакета некорректна FileChooseWidget Drag deb packages here Перетащите пакеты deb сюда Select File Выберите Файл MultipleInstallPage Show details Показать подробности Collapse button Свернуть Install button Установить Done button Готово Back button Назад Dependencies in the repository Зависимости в репозитории Missing dependencies Отсутствующие зависимости Installing dependencies: %1 Установка зависимостей: %1 PackageSelectItem Same version installed Эта версия уже установлена Earlier version installed: %1 Установлена более ранняя версия: %1 Later version installed: %1 Более поздняя версия уже установлена: %1 Unmatched package architecture Архитектура пакета некорректна PackageSelectView Select all Install button Установить PackagesListDelegate Installing Установка Installed Установлено Failed Не удалось Waiting Ожидание Same version installed Эта версия уже установлена Later version installed: %1 Более поздняя версия уже установлена: %1 Earlier version installed: %1 Установлена более ранняя версия: %1 PackagesListView Delete Удалить QApplication Collapse button Провал QObject Basic Базовый Check digital signatures if the developer mode is enabled Проверьте цифровые подписи, если режим разработчика включен SingleInstallPage Collapse Свернуть Reinstall Переустановить Later version installed: %1 Более поздняя версия уже установлена: %1 Downgrade Понизить Earlier version installed: %1 Установлена более ранняя версия: %1 Installing dependencies: %1 Установка зависимостей: %1 Failed to install %1 Не удалось установить %1 Version: Версия: Install button Установить Remove button Удалить OK button OK Back button Назад Done button Готово Installed successfully Установка успешно завершена Uninstalled successfully Удаление успешно завершено Uninstall Failed Ошибка Удаления Dependencies in the repository Зависимости в репозитории Missing dependencies Отсутствующие зависимости Update button Обновить Invalid digital signature Неверная цифровая подпись Name: Наименование: Same version installed Эта версия уже установлена SingleInstallPage_Install Show details Показать подробности Show dependencies Показать зависимости SingleInstallPage_Uninstall Show details Показать подробности UninstallConfirmPage Show related packages Показать связанные пакеты Collapse button Свернуть Cancel button Отмена Confirm Подтвердить Are you sure you want to uninstall %1? All dependencies will also be removed Вы действительно хотите удалить %1? Все зависимости также будут удалены. Are you sure you want to uninstall %1? The system or other applications may not work properly Вы действительно хотите удалить %1? Это может привести к неправильной работе системы и других приложений. main Package Installer Установщик Пакетов Package Installer helps users install and remove local packages, and supports bulk installation. Установщик Пакетов используется для установки и удаления программного обеспечения и поддерживает массовую установку приложений. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_sk.ts000066400000000000000000000642531474340456100253150ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button OK BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK OK DebInstaller Package Installer Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken You can only install local deb packages Already Added %1 does not exist, please reselect Bulk Install Hromadná inštalácia DebListModel Installation failed, please check your network connection Inštalácia zlyhala, skontrolujte pripojenie k sieti Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Inštalácia zlyhala, nedostatočné miesto na disku No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed Inštalácia zlyhala Failed to install %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button Zrušiť Proceed button OK button OK This package does not have a valid digital signature. Continue with the installation? Cancel Zrušiť Continue button Unable to install This package does not have a valid digital signature Broken dependencies: %1 Authentication failed Unmatched package architecture Nezabezpečená architektúra balíčkov FileChooseWidget Drag deb packages here Select File Vybrať súbor MultipleInstallPage Show details Collapse button Zbaliť Install button Inštalovať Done button Hotovo Back button Späť Dependencies in the repository Missing dependencies Installing dependencies: %1 PackageSelectItem Same version installed Rovnaká verzia je nainštalovaná Earlier version installed: %1 Nainštalovaná skoršia verzia: %1 Later version installed: %1 Unmatched package architecture Nezabezpečená architektúra balíčkov PackageSelectView Select all Install button Inštalovať PackagesListDelegate Installing Inštalujem Installed Nainštalované Failed Neúspešné Waiting Same version installed Rovnaká verzia je nainštalovaná Later version installed: %1 Earlier version installed: %1 Nainštalovaná skoršia verzia: %1 PackagesListView Delete QApplication Collapse button Zbaliť QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Collapse Zbaliť Reinstall Reinštalovať Later version installed: %1 Downgrade Earlier version installed: %1 Nainštalovaná skoršia verzia: %1 Installing dependencies: %1 Failed to install %1 Version: Verzia: Install button Inštalovať Remove button Odstrániť OK button OK Back button Späť Done button Hotovo Installed successfully Úspešne nainštalované Uninstalled successfully Úspešne odinštalované Uninstall Failed Odinštalovanie zlyhalo Dependencies in the repository Missing dependencies Update button Name: Názov: Same version installed Rovnaká verzia je nainštalovaná SingleInstallPage_Install Show details Show dependencies SingleInstallPage_Uninstall Show details UninstallConfirmPage Show related packages Collapse button Zbaliť Cancel button Zrušiť Confirm Potvrdiť Are you sure you want to uninstall %1? All dependencies will also be removed Naozaj chcete odinštalovať %1? Všetky závislosti budú tiež odstránené Are you sure you want to uninstall %1? The system or other applications may not work properly main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_sl.ts000066400000000000000000000637721474340456100253230ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button V redu BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK V redu DebInstaller Package Installer Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken You can only install local deb packages Already Added %1 does not exist, please reselect Bulk Install Bulk namestitev DebListModel Installation failed, please check your network connection Namestitev ni uspela, prosim preverite vašo omrežno povezavo Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Namestitev ni uspela, ni dovolj prostora na disku No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed Namestitev ni uspela Failed to install %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button Prekliči Proceed button OK button V redu This package does not have a valid digital signature. Continue with the installation? Cancel Prekliči Continue button Unable to install This package does not have a valid digital signature Broken dependencies: %1 Authentication failed Unmatched package architecture Neskladna paketna arhitektura FileChooseWidget Drag deb packages here Select File Izberi datoteko MultipleInstallPage Show details Collapse button Skrij Install button Namesti Done button Opravljeno Back button Nazaj Dependencies in the repository Missing dependencies Installing dependencies: %1 PackageSelectItem Same version installed Ista različica že nameščena Earlier version installed: %1 Later version installed: %1 Unmatched package architecture Neskladna paketna arhitektura PackageSelectView Select all Install button Namesti PackagesListDelegate Installing Nameščam Installed Nameščeno Failed Ni uspelo Waiting Same version installed Ista različica že nameščena Later version installed: %1 Earlier version installed: %1 PackagesListView Delete QApplication Collapse button Skrij QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Collapse Skrij Reinstall Ponovno namesti Later version installed: %1 Downgrade Earlier version installed: %1 Installing dependencies: %1 Failed to install %1 Version: Različica: Install button Namesti Remove button Odstrani OK button V redu Back button Nazaj Done button Opravljeno Installed successfully Uspešno nameščeno Uninstalled successfully Uspešno odstranjeno Uninstall Failed Odstranjevanje neuspešno Dependencies in the repository Missing dependencies Update button Name: Ime: Same version installed Ista različica že nameščena SingleInstallPage_Install Show details Show dependencies SingleInstallPage_Uninstall Show details UninstallConfirmPage Show related packages Collapse button Skrij Cancel button Prekliči Confirm Potrdi Are you sure you want to uninstall %1? All dependencies will also be removed Are you sure you want to uninstall %1? The system or other applications may not work properly main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_sq.ts000066400000000000000000000706501474340456100253210ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Jepni numrin për formësim: OK button OK BackendProcessPage Loading packages... Po ngarkohen paketa… %1/%2 loaded Ngarkuar %1/%2 Initializing... Po gatitet… DdimErrorPage OK OK DebInstaller Package Installer Instalues Paketash Settings Rregullime Installing other packages... Please open it later. Po instalohen paketa të tjera… Ju lutemi, hapeni më vonë. Parsing failed: An illegal file structure was found in the manifest file! Analizimi dështoi: Te kartela manifest u gjet një strukturë jo e ligjshme kartelash! Parsing failed: An illegal version number was found in the manifest file! Analizimi dështoi: Te kartela manifest u gjet një numër jo i ligjshëm versioni! No deb packages found. Please check the folder. S’u gjetën paketa deb. Ju lutemi, kontrolloni dosjen. The deb package may be broken Paketa deb mund të jetë e dëmtuar You can only install local deb packages Mund të instaloni vetëm paketa deb vendore Already Added E shtuar Tashmë %1 does not exist, please reselect %1 s’ekziston, ju lutemi, ripërzgjidhni Bulk Install Instalim Në Masë DebListModel Installation failed, please check your network connection Instalimi dështoi, ju lutemi, kontrolloni lidhjen tuaj në rrjet Installation failed, please check for updates in Control Center Instalimi dështoi, ju lutemi, kontrolloni te Qendër Kontrolli për përditësime Installation failed, insufficient disk space Instalimi dështoi, hapësirë disku e pamjaftueshme No digital signature Pa nënshkrim dixhital Invalid digital signature Nënshkrim dixhital i pavlefshëm The administrator has set policies to prevent installation of this package Përgjegjësi ka ujdisur rregulla për të penguar instalimin e kësaj pakete Installation Failed Instalimi Dështoi Failed to install %1 S’u arrit të instalohej %1 This package does not have a valid digital signature and has been blocked from installing/running. Go to Security Center > Tools > App Security to change the settings. Failed to install %1: no valid digital singature S’u arrit të instalohet %1: s’ka nënshkrim dixhital të vlefshëm Unable to install - no digital signature Nënshkrim dixhital i pavlefshëm Please go to Control Center to enable developer mode and try again. Proceed? Që të aktivizohet mënyra zhvillues dhe të riprovohet, ju lutemi, kaloni te Qendra e Kontrollit. Të vazhdohet? Cancel button Anuloje Proceed button Vazhdo OK button OK Failed to install %1: no valid digital signature S’u arrit të instalohet %1: s’ka nënshkrim dixhital të vlefshëm This package does not have a valid digital signature. Continue with the installation? Kjo paketë s’ka një nënshkrim dixhital të vlefshëm. Të vazhdohet me instalimin? Cancel Anuloje Continue button Vazhdo Unable to install S’arrihet të instalohet This package does not have a valid digital signature Kjo paketë s’ka një nënshkrim dixhital të vlefshëm Broken dependencies: %1 Varësi të papërmbushura: %1 Authentication failed Mirëfilltësimi dështoi Unmatched package architecture Arkitekturë paketash e papërputhshme FileChooseWidget Drag deb packages here Tërhiqini këtu paketa deb Select File Përzgjidhni Kartelë MultipleInstallPage Show details Shfaq hollësi Collapse button Tkurre Install button Instaloje Done button U bë Back button Mbrapsht Dependencies in the repository Varësi te depoja Missing dependencies Mungojnë varësi Installing dependencies: %1 Po instalohen varësi: %1 PackageSelectItem Same version installed Version i njëjtë i instaluar Earlier version installed: %1 Version më i hershëm i instaluar: %1 Later version installed: %1 Version më i vonshëm i instaluar: %1 Unmatched package architecture Arkitekturë paketash pa përputhje PackageSelectView Select all Përzgjidhni krejt Install button Instaloje PackagesListDelegate Installing Po instalohet Installed E instaluar Failed Dështoi Waiting Po pritet Same version installed Version i njëjtë i instaluar Later version installed: %1 Version më i vonshëm i instaluar: %1 Earlier version installed: %1 Version më i hershëm i instaluar: %1 PackagesListView Delete Fshije QApplication Collapse button Tkurre QObject Basic Elementar Check digital signatures if the developer mode is enabled Kontrollo nënshkrime dixhitale, nëse është aktivizuar mënyra zhvillues To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Security Center > Tools > App Security SingleInstallPage Collapse Tkurre Reinstall Riinstaloje Later version installed: %1 Version më i vonshëm i instaluar: %1 Downgrade Kaloje në versionin e mëparshëm Earlier version installed: %1 Version më i hershëm i instaluar: %1 Installing dependencies: %1 Po instalohen varësi: %1 Failed to install %1 S’u arrit të instalohej %1 Version: Version: Install button Instaloje Remove button Hiqe OK button OK Back button Mbrapsht Done button U bë Installed successfully U instalua me sukses Uninstalled successfully U çinstalua me sukses Uninstall Failed Çinstalimi Dështoi Dependencies in the repository Varësi te depoja Missing dependencies Mungojnë varësi Update button Përditësoje Invalid digital signature Nënshkrim dixhital i pavlefshëm Name: Emër: Same version installed Version i njëjtë i instaluar SingleInstallPage_Install Show details Shfaq hollësi Show dependencies Shfaqi varësitë SingleInstallPage_Uninstall Show details Shfaq hollësi UninstallConfirmPage Show related packages Shfaq paketa të afërta Collapse button Tkurre Cancel button Anuloje Confirm Ripohojeni Are you sure you want to uninstall %1? All dependencies will also be removed Jeni i sigurt se doni të çinstalohet %1? Do të hiqen krejt varësitë Are you sure you want to uninstall %1? The system or other applications may not work properly Jeni i sigurt se doni të çinstalohet %1? Sistemi ose aplikacione të tjera mund të mos punojnë si duhet main Package Installer Instalues Paketash Package Installer helps users install and remove local packages, and supports bulk installation. Instaluesi i Paketave i ndihmon përdoruesit të instalojnë dhe heqin paketa vendore, dhe mbulon instalime në masë. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_sr.ts000066400000000000000000000702051474340456100253160ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Унесите број да прилагодите: OK button У реду BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK У реду DebInstaller Package Installer Инсталатер Пакета Settings Подешавања Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken deb пакет је можда оштећен You can only install local deb packages Можете инсталирати само локалне deb пакете Already Added Већ додато %1 does not exist, please reselect %1 не постоји, поново изаберите Bulk Install Групно инсталирање DebListModel Installation failed, please check your network connection Неуспешна инсталација, молимо проверите везу са мрежом Installation failed, please check for updates in Control Center Неуспешна инсталација, молимо проверите ажурирања у Контролном Центру Installation failed, insufficient disk space Неуспашна инсталација, недовољно простора на диску No digital signature Нема дигиталног потписа Invalid digital signature Неважећи дигитални потпис The administrator has set policies to prevent installation of this package Администратор је поставио правила која спречавају инсталирање овог пакета Installation Failed Неуспашна инсталација Failed to install %1 Неуспешна инсталација %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Неуспешна инсталација - нема дигиталног потписа Please go to Control Center to enable developer mode and try again. Proceed? Идите у Контролни Центар да омогућите режим програмера, затим поново покушајте. Наставити? Cancel button Откажи Proceed button Настави OK button У реду This package does not have a valid digital signature. Continue with the installation? Пакет нема важећи дигитални потпис. Наставити са инсталирањем? Cancel Откажи Continue button Настави Unable to install Не могу да инсталирам This package does not have a valid digital signature Пакет нема важећи дигитални потпис Broken dependencies: %1 Незадовољене зависности: %1 Authentication failed Неуспешна идентификација Unmatched package architecture Неподударна архитектура пакета FileChooseWidget Drag deb packages here Превуци deb датотеку овде Select File Изабери датотеку MultipleInstallPage Show details Детаљи Collapse button Скупи Install button Инсталирај Done button Готово Back button Назад Dependencies in the repository Зависности у ризници Missing dependencies Недостајуће зависности Installing dependencies: %1 Инсталирање зависности: %1 PackageSelectItem Same version installed Иста верзија је инсталирана Earlier version installed: %1 Старија верзија је инсталирана: %1 Later version installed: %1 Новија верзија је инсталирана: %1 Unmatched package architecture Неподударна архитектура пакета PackageSelectView Select all Install button Инсталирај PackagesListDelegate Installing Инсталирање Installed Инсталирано Failed Неуспешно Waiting Чекам Same version installed Иста верзија је инсталирана Later version installed: %1 Новија верзија је инсталирана: %1 Earlier version installed: %1 Старија верзија је инсталирана: %1 PackagesListView Delete Обриши QApplication Collapse button Скупи QObject Basic Основно Check digital signatures if the developer mode is enabled Провери дигиталне потписе ако је режим програмера омогућен SingleInstallPage Collapse Скупи Reinstall Инсталирај Later version installed: %1 Новија верзија је инсталирана: %1 Downgrade Снизи верзију Earlier version installed: %1 Старија верзија је инсталирана: %1 Installing dependencies: %1 Инсталирање зависности: %1 Failed to install %1 Неуспешна инсталација %1 Version: Верзија: Install button Инсталирај Remove button Уклони OK button У реду Back button Назад Done button Готово Installed successfully Успешно инсталирано Uninstalled successfully Успешно уклоњено Uninstall Failed Неуспешно уклањање Dependencies in the repository Зависности у ризници Missing dependencies Недостајуће зависности Update button Ажурирај Invalid digital signature Неважећи дигитални потпис Name: Име: Same version installed Иста верзија је инсталирана SingleInstallPage_Install Show details Детаљи Show dependencies Прикажи зависности SingleInstallPage_Uninstall Show details Детаљи UninstallConfirmPage Show related packages Прикажи повезане пакете Collapse button Скупи Cancel button Откажи Confirm Потврди Are you sure you want to uninstall %1? All dependencies will also be removed Заиста желите да уклоните %1? Биће уклоњене и све зависности Are you sure you want to uninstall %1? The system or other applications may not work properly Заиста желита да уклоните %1? Систем и програми можда неће радити исправно main Package Installer Инсталатер Пакета Package Installer helps users install and remove local packages, and supports bulk installation. Инсалатер пакета помаже корисницима да инсталирају и уклањају локалне пакете. Подржава групну инсталацију. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_tr.ts000066400000000000000000000647051474340456100253270ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Yapılandırılacak numarayı gir: OK button Tamam BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK Tamam DebInstaller Package Installer Paket Kurucu Settings Ayarlar Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken Deb paketi bozulmuş olabilir You can only install local deb packages Yalnızca diskteki deb paketlerini kurabilirsiniz Already Added Zaten Eklenmiş %1 does not exist, please reselect %1 mevcut değil, lütfen yeniden seçin Bulk Install Toplu Kurulum DebListModel Installation failed, please check your network connection Kurulum tamamlanamadı, lütfen ağ bağlantınızı denetleyin Installation failed, please check for updates in Control Center Kurulum başarısız, lütfen Kontrol Merkezindeki güncellemeleri kontrol edin Installation failed, insufficient disk space Kurulum tamamlanamadı, disk alanı yetersiz No digital signature Dijital imza yok Invalid digital signature Geçersiz dijital imza The administrator has set policies to prevent installation of this package Yönetici, bu paketin yüklenmesini önlemek için politikalar belirledi Installation Failed Kurulum tamamlanamadı Failed to install %1 %1 Kurulamadı Failed to install %1: no valid digital singature Unable to install - no digital signature Yüklenemiyor - dijital imza yok Please go to Control Center to enable developer mode and try again. Proceed? Geliştirici kipini etkinleştirmek için lütfen Kontrol Merkezi'ne gidin ve tekrar deneyin. İlerle? Cancel button İptal Proceed button İlerle OK button Tamam This package does not have a valid digital signature. Continue with the installation? Bu paketin geçerli bir dijital imzası yok. Kuruluma devam edilsin mi? Cancel İptal Continue button Devam et Unable to install Kurulamıyor This package does not have a valid digital signature Bu paketin geçerli bir dijital imzası yok Broken dependencies: %1 Bozuk bağımlılıklar: %1 Authentication failed Kimlik doğrulama başarısız Unmatched package architecture Paket mimarisi uyumsuz FileChooseWidget Drag deb packages here Deb paketlerini buraya sürükle Select File Dosya Seç MultipleInstallPage Show details Ayrıntıları göster Collapse button Daralt Install button Kur Done button Bitti Back button Geri Dependencies in the repository Depodaki bağımlılıklar Missing dependencies Eksik bağımlılıklar Installing dependencies: %1 Bağımlılıklar kuruluyor: %1 PackageSelectItem Same version installed Aynı sürüm kurulu Earlier version installed: %1 Önceki sürüm kurulu: %1 Later version installed: %1 Daha sonraki sürüm kurulu: %1 Unmatched package architecture Paket mimarisi uyumsuz PackageSelectView Select all Install button Kur PackagesListDelegate Installing Kuruluyor Installed Kuruldu Failed Başarısız Waiting Bekleniyor Same version installed Aynı sürüm kurulu Later version installed: %1 Daha sonraki sürüm kurulu: %1 Earlier version installed: %1 Önceki sürüm kurulu: %1 PackagesListView Delete Sil QApplication Collapse button Daralt QObject Basic Temel Check digital signatures if the developer mode is enabled Geliştirici modu etkinse dijital imzaları kontrol edin SingleInstallPage Collapse Daralt Reinstall Yeniden kur Later version installed: %1 Daha sonraki sürüm kurulu: %1 Downgrade Düşür Earlier version installed: %1 Önceki sürüm kurulu: %1 Installing dependencies: %1 Bağımlılıklar kuruluyor: %1 Failed to install %1 %1 Kurulamadı Version: Sürüm: Install button Kur Remove button Kaldır OK button Tamam Back button Geri Done button Bitti Installed successfully Kuruldu Uninstalled successfully Kaldırıldı Uninstall Failed Kaldırılamadı Dependencies in the repository Depodaki bağımlılıklar Missing dependencies Eksik bağımlılıklar Update button Yükselt Invalid digital signature Geçersiz dijital imza Name: Ad: Same version installed Aynı sürüm kurulu SingleInstallPage_Install Show details Ayrıntıları göster Show dependencies Bağımlılıkları göster SingleInstallPage_Uninstall Show details Ayrıntıları göster UninstallConfirmPage Show related packages İlgili paketleri göster Collapse button Daralt Cancel button İptal Confirm Onayla Are you sure you want to uninstall %1? All dependencies will also be removed %1 uygulamasını kaldırmak istediğinize emin misiniz? Tüm bağımlılıklar da kaldırılacak Are you sure you want to uninstall %1? The system or other applications may not work properly %1 uygulamasını kaldırmak istediğinizden emin misiniz? Sistem veya diğer uygulamalar düzgün çalışmayabilir main Package Installer Paket Kurucu Package Installer helps users install and remove local packages, and supports bulk installation. Paket Kurucu, kullanıcıların yerel paketleri kurmasına ve kaldırmasına yardımcı olur ve toplu kurulumu destekler. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_ug.ts000066400000000000000000000762661474340456100253220ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: تەڭشەش ئۈچۈن نومۇرنى كىرگۈزۈڭ: OK button تامام BackendProcessPage Loading packages... قاچىلاش بولىقى يۈكلىنىۋاتىدۇ... %1/%2 loaded %1/%2 يۈكلەندى Initializing... دەسلىپىگە كەلتۈرۈۋاتىدۇ... DdimErrorPage OK تامام DebInstaller Package Installer بوغچا قاچىلىغۇچ Settings تەڭشەك Installing other packages... Please open it later. قاچىلاش باسقۇچى ئىجرا بولۇۋاتىدۇ، سەل تۇرۇپ ئېچىڭ Parsing failed: An illegal file structure was found in the manifest file! يۇمشاق دېتال بولىقىنى يېشەلمىدى، يۇمشاق دېتال بولىقى تىزىملىكىدە قانۇنسىز ھۆججەت قۇرۇلمىسى مەۋجۇت! Parsing failed: An illegal version number was found in the manifest file! يۇمشاق دېتال بولىقىنى يېشەلمىدى، يۇمشاق دېتال بولىقى تىزىملىكىدە قانۇنسىز نەشر نومۇرى مەۋجۇت! No deb packages found. Please check the folder. قاچىلاش بولىقىنى تاپالمىدى، قاچىلاش مۇندەرىجىسىنى تەكشۈرۈڭ! The deb package may be broken deb بوغچىسى بۇزۇلغان بولۇشى مۇمكىن You can only install local deb packages يەرلىكتىكى deb بولىقىنىلا قاچىلىيالايسىز Already Added بۇرۇنلا قوشۇلغان %1 does not exist, please reselect %1 ھۆججەت مەۋجۇت ئەمەس، باشقىسىنى تاللاڭ Bulk Install توپ قاچىلاش DebListModel Installation failed, please check your network connection قاچىلاش مەغلۇپ بولدى ، تور ئۇلىنىشىڭىزنى تەكشۈرۈپ بېقىڭ Installation failed, please check for updates in Control Center قاچىلاش مەغلۇپ بولدى ، كونترول مەركىزىدىكى يېڭىلانمىلارنى تەكشۈرۈپ بېقىڭ Installation failed, insufficient disk space قاچىلاش مەغلۇپ بولدى ، دىسكا بوشلۇقى يېتەرلىك ئەمەس No digital signature رەقەملىك ئىمزا يوق Invalid digital signature رەقەملىك ئىمزا ئىناۋەتسىز The administrator has set policies to prevent installation of this package باشقۇرغۇچى چەكلىگەن، بۇ يۇمشاق دېتالنى قاچىلاش چەكلىنىدۇ Installation Failed قاچىلاش مەغلۇب بولدى Failed to install %1 نى قاچىلىيالمىدى %1 This package does not have a valid digital signature and has been blocked from installing/running. Go to Security Center > Tools > App Security to change the settings. قاچىلاش بولىقىنىڭ ئىناۋەتلىك رەقەملىك ئىمزاسى بولمىغاچقا قاچىلاش/ئىجرا قىلىش مەنئى قىلىندى، ببىخەتەرلىك مەركىزى-بىخەتەرلىك قورالى-ئەپ بىخەتەرلىكىگە كىرىپ تەڭشەڭ. Failed to install %1: no valid digital singature %1 قاچىلانمىدى، بولاقنىڭ ئۈنۈملۈك رەقەملىك ئىمزاسى يوق Unable to install - no digital signature قاچىلانمىدى، قاچىلاش بولىقىنىڭ رەقەملىك ئىمزاسى يوق Please go to Control Center to enable developer mode and try again. Proceed? كونترول مەركىزىگە كىرىپ ، ئاچقۇچىلار ھالىتىنى ئېچىڭ ، ئاندىن قاچىلاشنى داۋاملاشتۇرۇڭ. كونترول مەركىزىگە كىرەمسىز؟ Cancel button ئەمەلدىن قالدۇرۇش Proceed button كىرىش OK button تامام Failed to install %1: no valid digital signature %1 قاچىلانمىدى، بولاقنىڭ ئۈنۈملۈك رەقەملىك ئىمزاسى يوق This package does not have a valid digital signature. Continue with the installation? بۇ بولاقنىڭ ئۈنۈملۈك رەقەملىك ئىمزاسى يوق، يەنىلا قاچىلامسىز؟ Cancel ئەمەلدىن قالدۇرۇش Continue button داۋاملاشتۇرۇش Unable to install قاچىلاشقا ئامالسىز This package does not have a valid digital signature بۇ بولاقنىڭ ئۈنۈملۈك رەقەملىك ئىمزاسى يوق Broken dependencies: %1 بۇزۇلغان بېقىنىشچانلىقى:%1 Authentication failed دەلىللەش مەغلۇپ بولدى Unmatched package architecture تەڭداشسىز يۈرۈشلۈك قۇرۇلما FileChooseWidget Drag deb packages here ئەپ بوغچىسىنى بۇ يەرگە سۆرەپ كىرىڭ Select File ھۆججەتنى تاللاڭ MultipleInstallPage Show details تەپسىلىي ئۇچۇرىنى كۆرسىتىش Collapse button يىمىرىش Install button قاچىلاش Done button تامام Back button قايتىش Dependencies in the repository ئىسكىلاتتا بار ياتانچ بولاق Missing dependencies ئىسكىلاتتا يوق تايانچ بولاق Installing dependencies: %1 بېقىنما %1 نى قاچىلاۋاتىدۇ PackageSelectItem Same version installed ئوخشاش نەشىرى قاچىلاندى Earlier version installed: %1 بۇرۇنقى نەشىرى قاچىلاندى %1 Later version installed: %1 ئەڭ يېڭى نەشىرى قاچىلاندى %1 Unmatched package architecture تەڭداشسىز يۈرۈشلۈك قۇرۇلما PackageSelectView Select all ھەممىنى تاللاش Install button قاچىلاش PackagesListDelegate Installing قاچىلاش Installed قاچىلاندى Failed مەغلۇب بولدى Waiting ساقلاڭ Same version installed ئوخشاش نەشىرى قاچىلاندى Later version installed: %1 ئەڭ يېڭى نەشىرى قاچىلاندى %1 Earlier version installed: %1 بۇرۇنقى نەشىرى قاچىلاندى %1 PackagesListView Delete ئۆچۈرۈش QApplication Collapse button يىمىرىش QObject Basic ئاساسىي تەڭشەك Check digital signatures if the developer mode is enabled ئاچقۇچىلار ھالىتىدە قاچىلاش بوغچىسىنىڭ ئىمزاسىنى تەكشۈرۈڭ To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. ئىمزاسىز ئەپنى قاچىلىماقچى بولسىڭىز بىخەتەرلىك مەركىزى-بىخەتەرلىك قورالى-ئەپ بىخەتەرلىكىگە كىرىپ قاچىلاشقا يول قويۇلىدىغان ئەپ تۈرىنى تەڭشەڭ. Security Center > Tools > App Security بىخەتەرلىك مەركىزى-بىخەتەرلىك قورالى-ئەپ بىخەتەرلىكى SingleInstallPage Collapse يىمىرىش Reinstall قايتا قاچىلاش Later version installed: %1 ئەڭ يېڭى نەشىرى قاچىلاندى %1 Downgrade كونا نەشرىنى قاچىلاش Earlier version installed: %1 بۇرۇنقى نەشىرى قاچىلاندى %1 Installing dependencies: %1 بېقىنما %1 نى قاچىلاۋاتىدۇ Failed to install %1 نى قاچىلىيالمىدى %1 Version: نەشىرى: Install button قاچىلاش Remove button ئۆچۈرۈڭ OK button تامام Back button قايتىش Done button تامام Installed successfully قاچىلاش تاماملاندى Uninstalled successfully ئۆچۈرۋېتىش تاماملاندى Uninstall Failed ئۆچۈرۈش مەغلۇپ بولدى Dependencies in the repository ئىسكىلاتتا بار ياتانچ بولاق Missing dependencies ئىسكىلاتتا يوق تايانچ بولاق Update button يېڭىلاش Invalid digital signature رەقەملىك ئىمزا ئىناۋەتسىز Name: ئىسمى: Same version installed ئوخشاش نەشىرى قاچىلاندى SingleInstallPage_Install Show details تەپسىلىي ئۇچۇرىنى كۆرسىتىش Show dependencies كۆرۈنگەن تايانچ بولاق SingleInstallPage_Uninstall Show details تەپسىلىي ئۇچۇرىنى كۆرسىتىش UninstallConfirmPage Show related packages مۇناسىۋەتلىك بوغچىنى كۆرسىتىش Collapse button يىمىرىش Cancel button ئەمەلدىن قالدۇرۇش Confirm جەزملەشتۈرۈڭ Are you sure you want to uninstall %1? All dependencies will also be removed %1 نى ئۆچۈرمەكچىمۇ؟ بارلىق بېقىنىشلارمۇ چىقىرىۋېتىلىدۇ Are you sure you want to uninstall %1? The system or other applications may not work properly %1 نى ئۆچۈرمەكچىمۇ؟ سىستېما ياكى باشقا قوللىنىشچان پروگراممىلار نورمال ئىشلىمەسلىكى مۇمكىن main Package Installer بوغچا قاچىلىغۇچ Package Installer helps users install and remove local packages, and supports bulk installation. ئورالما ئورناتقۇچ ئىشلەتكۈچىلەرنىڭ يەرلىك ئورالمىلارنى ئورنىتىشى ۋە ئۆچۈرۈشىگە ياردەم بېرىدۇ ھەمدە توپ قاچىلاشنى قوللايدۇ. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_uk.ts000066400000000000000000000766751474340456100253320ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Введіть число для налаштовування: OK button Гаразд BackendProcessPage Loading packages... Завантажуємо пакунки… %1/%2 loaded Завантажено %1 з %2 Initializing... Ініціалізуємо… DdimErrorPage OK Гаразд DebInstaller Package Installer Встановлювач пакунків Settings Параметри Installing other packages... Please open it later. Встановлюємо інші пакунки… Будь ласка, відкрийте пізніше. Parsing failed: An illegal file structure was found in the manifest file! Не вдалося обробити: у файлі маніфесту виявлено некоректну структуру файлів! Parsing failed: An illegal version number was found in the manifest file! Не вдалося обробити: у файлі маніфесту виявлено некоректний номер версії! No deb packages found. Please check the folder. Не знайдено пакунків deb. Будь ласка, перевірте теку. The deb package may be broken Ймовірно, пакунок deb пошкоджено You can only install local deb packages Ви можете встановлювати лише локальні пакунки deb Already Added Вже додано %1 does not exist, please reselect %1 не існує. Будь ласка, виберіть щось інше Bulk Install Масова інсталяція DebListModel Installation failed, please check your network connection Не вдалося встановити, перевірте підключення до мережі Installation failed, please check for updates in Control Center Не вдалося встановити, перевірте оновлення в Центрі керування Installation failed, insufficient disk space Помилка встановлення, недостатньо місця на диску No digital signature Немає цифрового підпису Invalid digital signature Некоректний цифровий підпис The administrator has set policies to prevent installation of this package Адміністратором встановлено правила, які забороняють встановлення цього пакунка Installation Failed Не вдалося встановити Failed to install %1 Не вдалося встановити %1 This package does not have a valid digital signature and has been blocked from installing/running. Go to Security Center > Tools > App Security to change the settings. Цей пакунок не мав коректного цифрового підпису, тому його встановлення та виконання заблоковано. Перейдіть до сторінки «Центр безпеки > Інструменти > Захист програм», щоб змінити параметри. Failed to install %1: no valid digital singature Не вдалося встановити %1: немає коректного цифрового підпису Unable to install - no digital signature Не вдалося встановити — немає цифрового підпису Please go to Control Center to enable developer mode and try again. Proceed? Будь ласка, перейдіть до «Центру керування», щоб увімкнути режим розробника і повторіть спробу. Продовжити обробку? Cancel button Скасувати Proceed button Продовжити OK button Гаразд Failed to install %1: no valid digital signature Не вдалося встановити %1: немає чинного цифрового підпису This package does not have a valid digital signature. Continue with the installation? У цього пакунка немає коректного цифрового підпису. Продовжити встановлення? Cancel Скасувати Continue button Продовжити Unable to install Неможливо встановити This package does not have a valid digital signature Цей пакунок не має коректного цифрового підпису Broken dependencies: %1 Помилкові залежності: %1 Authentication failed Не вдалося пройти розпізнавання Unmatched package architecture Неперевершена архітектура пакету FileChooseWidget Drag deb packages here Перетягніть пакети deb сюди Select File Вибрати Файл MultipleInstallPage Show details Показати подробиці Collapse button Згорнути Install button Встановити Done button Завершити Back button Назад Dependencies in the repository Залежності у сховищі Missing dependencies Залежності, яких не вистачає Installing dependencies: %1 Встановлення залежностей: %1 PackageSelectItem Same version installed Одна і та сама версія встановлена Earlier version installed: %1 Встановлено старішу версію: %1 Later version installed: %1 Встановлено пізнішу версію: %1 Unmatched package architecture Неперевершена архітектура пакету PackageSelectView Select all Вибрати усе Install button Встановити PackagesListDelegate Installing Встановлення Installed Встановлено Failed Помилка Waiting Очікування Same version installed Одна і та сама версія встановлена Later version installed: %1 Встановлено пізнішу версію: %1 Earlier version installed: %1 Встановлено старішу версію: %1 PackagesListView Delete Вилучити QApplication Collapse button Згорнути QObject Basic Основне Check digital signatures if the developer mode is enabled Перевіряти цифрові підписи, якщо увімкнено режим розробника To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Щоб вилучити непідписані програми, скористайтеся сторінкою «Центр безпеки > Інструменти > Захист програм». Виберіть там типи програм, які може бути встановлено. Security Center > Tools > App Security Центр безпеки > Інструменти > Захист програм SingleInstallPage Collapse Згорнути Reinstall Перевстановити Later version installed: %1 Встановлено пізнішу версію: %1 Downgrade Знизити версію Earlier version installed: %1 Встановлено старішу версію: %1 Installing dependencies: %1 Встановлення залежностей: %1 Failed to install %1 Не вдалося встановити %1 Version: Версія: Install button Встановити Remove button Видалити OK button Гаразд Back button Назад Done button Завершити Installed successfully Встановлено успішно Uninstalled successfully Видалено успішно Uninstall Failed Не вдалося видалити  Dependencies in the repository Залежності у сховищі Missing dependencies Залежності, яких не вистачає Update button Оновити Invalid digital signature Некоректний цифровий підпис Name: Ім'я: Same version installed Одна і та сама версія встановлена SingleInstallPage_Install Show details Показати подробиці Show dependencies Показати залежності SingleInstallPage_Uninstall Show details Показати подробиці UninstallConfirmPage Show related packages Показати пов'язані пакунки Collapse button Згорнути Cancel button Скасувати Confirm Підтвердити Are you sure you want to uninstall %1? All dependencies will also be removed Ви впевнені що хочете видалити %1? Всі залежності також будуть видалені Are you sure you want to uninstall %1? The system or other applications may not work properly Ви справді хочете вилучити %1? Якщо цю програму буде вилучено, можливо, система або інші програми не зможуть працювати належним чином. main Package Installer Встановлювач пакунків Package Installer helps users install and remove local packages, and supports bulk installation. За допомогою засобу встановлення пакунків користувачі можуть встановлювати і вилучати локальні пакунки. Передбачено пакетне встановлення. deepin-deb-installer-6.5.5/translations/deepin-deb-installer_vi.ts000066400000000000000000000647571474340456100253270ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Nhập số để cấu hình: OK button OK BackendProcessPage Loading packages... %1/%2 loaded Initializing... DdimErrorPage OK OK DebInstaller Package Installer Trình cài đặt gói Settings Installing other packages... Please open it later. Parsing failed: An illegal file structure was found in the manifest file! Parsing failed: An illegal version number was found in the manifest file! No deb packages found. Please check the folder. The deb package may be broken Gói deb có thể bị lỗi You can only install local deb packages Already Added Đã thêm %1 does not exist, please reselect Bulk Install Cài đặt hàng loạt DebListModel Installation failed, please check your network connection Cài đặt thất bại, vui lòng kiểm tra lại mạng internet Installation failed, please check for updates in Control Center Cài đặt thất bại, vui lòng cập nhật Quản lý trung tâm Installation failed, insufficient disk space Cài đặt thất bại, không đủ dung lượng ổ dĩa No digital signature Invalid digital signature The administrator has set policies to prevent installation of this package Installation Failed Cài đặt thất bại Failed to install %1 Cài đặt thất bại %1 Failed to install %1: no valid digital singature Unable to install - no digital signature Please go to Control Center to enable developer mode and try again. Proceed? Cancel button Hủy Proceed button OK button OK This package does not have a valid digital signature. Continue with the installation? Cancel Hủy Continue button Unable to install Không thể cài đặt This package does not have a valid digital signature Gói này có thể sai chữ ký điện tử Broken dependencies: %1 Các phần phụ thuộc bị hỏng: %1 Authentication failed Xác thực thất bại Unmatched package architecture Không trùng kiến trúc gói FileChooseWidget Drag deb packages here Kéo gói deb vào đây Select File Chọn tệp MultipleInstallPage Show details Hiện chi tiết Collapse button Đóng lại Install button Cài dặt Done button Hoàn thành Back button Trở lại Dependencies in the repository Missing dependencies Installing dependencies: %1 Đang cài đặt các thư viện liên quan: %1 PackageSelectItem Same version installed Có một phiên bản tương tự đã được cài đặt Earlier version installed: %1 Phiên bản đã cài đặt trước đó: %1 Later version installed: %1 Unmatched package architecture Không trùng kiến trúc gói PackageSelectView Select all Install button Cài dặt PackagesListDelegate Installing Đang cài đặt Installed Đã cài đặt Failed Thất bại Waiting Đang đợi Same version installed Có một phiên bản tương tự đã được cài đặt Later version installed: %1 Phiên bản đã cài lần cuối: %1 Earlier version installed: %1 Phiên bản đã cài đặt trước đó: %1 PackagesListView Delete Xóa QApplication Collapse button Đóng lại QObject Basic Check digital signatures if the developer mode is enabled SingleInstallPage Collapse Đóng lại Reinstall Cài lại Later version installed: %1 Phiên bản mới nhất đã cài: %1 Downgrade Earlier version installed: %1 Phiên bản đã cài đặt trước đó: %1 Installing dependencies: %1 Đang cài đặt các thư viện liên quan: %1 Failed to install %1 Cài đặt thất bại %1 Version: Phiên bản: Install button Cài dặt Remove button Xóa OK button OK Back button Trở lại Done button Hoàn thành Installed successfully Đã cài đặt thành công Uninstalled successfully Gỡ cài đặt thành công Uninstall Failed Gỡ cài đặt thất bại Dependencies in the repository Missing dependencies Update button Name: Tên: Same version installed Có một phiên bản tương tự đã được cài đặt SingleInstallPage_Install Show details Hiện chi tiết Show dependencies SingleInstallPage_Uninstall Show details Hiện chi tiết UninstallConfirmPage Show related packages Hiện các gói liên quan Collapse button Đóng lại Cancel button Hủy Confirm Xác nhận Are you sure you want to uninstall %1? All dependencies will also be removed Bạn có chắc muốn gỡ %1? Tất cả các thư viện liên quan cũng sẽ bị gỡ Are you sure you want to uninstall %1? The system or other applications may not work properly Bạn có chắc muốn gỡ %1? Hệ thống hoặc phần mềm khác có thể không hoạt động main Package Installer Trình cài đặt gói Package Installer helps users install and remove local packages, and supports bulk installation. Trình cài đặt gói hỗ trợ người dùng cài đặt và xóa hàng loạt các gói phần mềm deepin-deb-installer-6.5.5/translations/deepin-deb-installer_zh_CN.ts000066400000000000000000001015261474340456100256740ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: 请输入序号进行配置: OK button 确 定 BackendProcessPage Loading packages... 正在加载安装包… %1/%2 loaded 已加载%1/%2 Initializing... 正在初始化… DdimErrorPage OK 确 定 DebInstaller Package Installer 软件包安装器 Settings 设置 Installing other packages... Please open it later. 正在执行安装流程,无法打开 Parsing failed: An illegal file structure was found in the manifest file! 软件包解析失败,软件包清单包含非法的文件结构! Parsing failed: An illegal version number was found in the manifest file! 软件包解析失败,软件包清单包含非法版本号! No deb packages found. Please check the folder. 未检测到安装包,请检查安装目录! The %1 package may be broken 请检查%1包是否损坏 You can only install local %1 packages 只能安装本地的%1包 No permission to access this folder 没有权限访问文件夹 The deb package may be broken 请检查deb包是否损坏 You can only install local deb packages 只能安装本地的deb包 Already Added 已添加 %1 does not exist, please reselect %1文件不存在,请重新选择文件 Bulk Install 批量安装 DebListModel Installation failed, please check your network connection 安装失败,请检查您的网络连接 Installation failed, please check for updates in Control Center 安装失败,请在控制中心检查更新 Installation failed, insufficient disk space 安装失败,磁盘空间不足 No digital signature 无数字签名 Invalid digital signature 数字签名无效 The administrator has set policies to prevent installation of this package 管理员已限制,该软件禁止安装 Installation Failed 安装失败 current system 当前系统环境 %2 has been installed in %1, please uninstall this package before installing it 已在%1中安装%2,请先卸载后再安装此包 Broken dependencies, try installing the app in compatibility mode 依赖关系不满足,请尝试使用兼容模式安装该应用 Failed to install %1 %1安装失败 Failed to install %1: no valid digital singature 无法安装%1,安装包无有效的数字签名 Unable to install - no digital signature 无法安装,安装包无数字签名 Please go to Control Center to enable developer mode and try again. Proceed? 请进入控制中心,开启开发者模式后,再尝试继续安装。是否前往? Cancel button 取 消 Proceed button 前 往 OK button 确 定 Failed to install %1: no valid digital signature 无法安装%1,安装包无有效的数字签名 This package does not have a valid digital signature. Continue with the installation? 此安装包没有有效的数字签名,是否继续安装? Cancel 取 消 Continue button 继续 Unable to install 无法安装 This package does not have a valid digital signature 此安装包没有有效的数字签名 Broken dependencies: %1 依赖关系不满足:%1 Authentication failed 配置授权失败 Unmatched package architecture 软件包架构不匹配 FileChooseWidget Drag deb packages here 拖拽软件包到此 Select File 选择文件 MultipleInstallPage Show details 显示详细信息 Collapse button 收 起 Install button 安 装 Done button 完 成 Back button 返 回 Install %1 will remove: 安装%1将会卸载: Dependencies in the repository 仓库中存在的依赖包 Missing dependencies 仓库中缺失的依赖包 Installing dependencies: %1 正在安装依赖:%1 PackageSelectItem Same version installed 已安装相同版本 Earlier version installed: %1 已安装较早的版本:%1 Later version installed: %1 已安装较新的版本:%1 Unmatched package architecture 软件包架构不匹配 PackageSelectView Select all 全选 Install button 安 装 PackagesListDelegate Installing 正在安装 Installed 已安装 Failed 安装失败 Waiting 等待安装 Same version installed 已安装相同版本 Later version installed: %1 已安装较新的版本:%1 Earlier version installed: %1 已安装较早的版本:%1 PackagesListView Delete 删除 QApplication Collapse button 收 起 QObject Basic 基础设置 Check digital signatures if the developer mode is enabled 开发者模式下,检测安装包的签名 To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. 如需安装未签名应用,前往安全中心-安全工具-应用安全设置允许安装的应用类型。 Security Center > Tools > App Security 安全中心-安全工具-应用安全 The system has not installed Linglong environment, please install it first 系统无玲珑环境,请先安装 Unable to install 无法安装 This package does not have a valid digital signature and has been blocked from installing/running. Go to Security Center > Tools > App Security to change the settings. 安装包没有有效的数字签名,已被禁止安装/运行,请前往安全中心-安全工具-应用安全进行调整。 Cancel button 取 消 Proceed button 前 往 Will remove: 将会卸载: SingleInstallPage Collapse 收起 Reinstall 重新安装 Later version installed: %1 已安装较新的版本:%1 Downgrade 安装旧版本 Earlier version installed: %1 已安装较早的版本:%1 Installing dependencies: %1 正在安装依赖:%1 Failed to install %1 %1安装失败 Version: 版本: Select a compatibility mode: 选择兼容模式: Install button 安 装 Remove button 卸 载 OK button 确 定 Back button 返 回 Done button 完 成 Trying to install %2 in %1 compatibility mode 正在尝试使用%1兼容模式安装%2 Uninstalling %2 from %1 compatibility mode 正在从%1兼容模式卸载%2 %2 was successfully installed to %1 compatibility mode %2已成功安装到%1兼容模式 Installed successfully 安装成功 %2 has been successfully uninstalled from %1 compatibility mode %2已从%1兼容模式成功卸载 Uninstalled successfully 卸载成功 Uninstall Failed 卸载失败 Install %1 will remove: 安装%1将会卸载: Dependencies in the repository 仓库中存在的依赖包 Missing dependencies 仓库中缺失的依赖包 Update button 更 新 Invalid digital signature 数字签名无效 Name: 名称: Same version installed 已安装相同版本 SingleInstallPage_Install Show details 显示详细信息 Show dependencies 显示依赖包关系 SingleInstallPage_Uninstall Show details 显示卸载进程 Uab::UabPackageListModel Installation Failed 安装失败 UninstallConfirmPage Show related packages 显示相关软件包 Collapse button 收 起 Cancel button 取 消 Confirm 确定卸载 Are you sure you want to uninstall %1? All dependencies will also be removed 您确定要卸载%1 吗? 所有依赖也会被一起移除 Are you sure you want to uninstall %1? The system or other applications may not work properly 您确定要卸载%1吗? 卸载此软件可能会导致系统或其他软件无法正常使用 Are you sure you want to uninstall %2 from %1 compatibility mode? 您确定要从%1兼容模式 卸载%2吗? main Package Installer 软件包安装器 Package Installer helps users install and remove local packages, and supports bulk installation. 软件包安装器用于帮助用户安装和卸载本地软件,支持批量安装。 deepin-deb-installer-6.5.5/translations/deepin-deb-installer_zh_HK.ts000066400000000000000000001015211474340456100256710ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: 請輸入序號進行配置: OK button 確 定 BackendProcessPage Loading packages... 正在加載安裝包… %1/%2 loaded 已加載%1/%2 Initializing... 正在初始化… DdimErrorPage OK 確 定 DebInstaller Package Installer 軟件包安裝器 Settings 設置 Installing other packages... Please open it later. 正在執行安裝流程,無法打開 Parsing failed: An illegal file structure was found in the manifest file! 軟件包解析失敗,軟件包清單包含非法的文件結構! Parsing failed: An illegal version number was found in the manifest file! 軟件包解析失敗,軟件包清單包含非法版本號! No deb packages found. Please check the folder. 未檢測到安裝包,請檢查安裝目錄! The %1 package may be broken 請檢查%1包是否損壞 You can only install local %1 packages 只能安裝本地的%1包 No permission to access this folder 沒有權限訪問文件夾 The deb package may be broken 請檢查deb包是否損壞 You can only install local deb packages 只能安裝本地的deb包 Already Added 已添加 %1 does not exist, please reselect %1文件不存在,請重新選擇文件 Bulk Install 批量安裝 DebListModel Installation failed, please check your network connection 安裝失敗,請檢查您的網絡連接 Installation failed, please check for updates in Control Center 安裝失敗,請在控制中心檢查更新 Installation failed, insufficient disk space 安裝失敗,磁盤空間不足 No digital signature 無數字簽名 Invalid digital signature 數字簽名無效 The administrator has set policies to prevent installation of this package 管理員已限制,該軟件禁止安裝 Installation Failed 安裝失敗 current system 當前系統環境 %2 has been installed in %1, please uninstall this package before installing it 已在%1中安裝%2,請先卸載後再安裝此包 Broken dependencies, try installing the app in compatibility mode 依賴關係不滿足,請嘗試使用兼容模式安裝該應用 Failed to install %1 %1安裝失敗 Failed to install %1: no valid digital singature 無法安裝%1,安裝包無有效的數字簽名 Unable to install - no digital signature 無法安裝,安裝包無數字簽名 Please go to Control Center to enable developer mode and try again. Proceed? 請進入控制中心,開啟開發者模式後,再嘗試繼續安裝。是否前往? Cancel button 取 消 Proceed button 前 往 OK button 確 定 Failed to install %1: no valid digital signature 無法安裝%1,安裝包無有效的數字簽名 This package does not have a valid digital signature. Continue with the installation? 此安裝包沒有有效的數字簽名,是否繼續安裝? Cancel 取 消 Continue button 繼續 Unable to install 無法安裝 This package does not have a valid digital signature 此安裝包沒有有效的數字簽名 Broken dependencies: %1 依賴關係不滿足:%1 Authentication failed 配置授權失敗 Unmatched package architecture 軟件包架構不匹配 FileChooseWidget Drag deb packages here 拖拽軟件包到此 Select File 選擇文件 MultipleInstallPage Show details 顯示詳細訊息 Collapse button 收 起 Install button 安 裝 Done button 完 成 Back button 返 回 Install %1 will remove: 安裝%1將會卸載: Dependencies in the repository 倉庫中存在的依賴包 Missing dependencies 倉庫中缺失的依賴包 Installing dependencies: %1 正在安裝依賴:%1 PackageSelectItem Same version installed 已安裝相同版本 Earlier version installed: %1 已安裝較早的版本:%1 Later version installed: %1 已安裝較新的版本:%1 Unmatched package architecture 軟件包架構不匹配 PackageSelectView Select all 全選 Install button 安 裝 PackagesListDelegate Installing 正在安裝 Installed 已安裝 Failed 安裝失敗 Waiting 等待安裝 Same version installed 已安裝相同版本 Later version installed: %1 已安裝較新的版本:%1 Earlier version installed: %1 已安裝較早的版本:%1 PackagesListView Delete 刪除 QApplication Collapse button 收 起 QObject Basic 基礎設置 Check digital signatures if the developer mode is enabled 開發者模式下,檢測安裝包的簽名 To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. 如需安裝未簽名應用,前往安全中心-安全工具-應用安全設定允許安裝的應用類型。 Security Center > Tools > App Security 安全中心-安全工具-應用安全 The system has not installed Linglong environment, please install it first 系統無玲瓏環境,請先安裝 Unable to install 無法安裝 This package does not have a valid digital signature and has been blocked from installing/running. Go to Security Center > Tools > App Security to change the settings. 安裝包沒有有效的數字簽名,已被禁止安裝/運行,請前往安全中心-安全工具-應用安全進行調整。 Cancel button 取 消 Proceed button 前 往 Will remove: 將會卸載: SingleInstallPage Collapse 收起 Reinstall 重新安裝 Later version installed: %1 已安裝較新的版本:%1 Downgrade 安裝舊版本 Earlier version installed: %1 已安裝較早的版本:%1 Installing dependencies: %1 正在安裝依賴:%1 Failed to install %1 %1安裝失敗 Version: 版本: Select a compatibility mode: 選擇兼容模式: Install button 安 裝 Remove button 卸 載 OK button 確 定 Back button 返 回 Done button 完 成 Trying to install %2 in %1 compatibility mode 正在嘗試使用%1兼容模式安裝%2 Uninstalling %2 from %1 compatibility mode 正在從%1兼容模式卸載%2 %2 was successfully installed to %1 compatibility mode %2已成功安裝到%1兼容模式 Installed successfully 安裝成功 %2 has been successfully uninstalled from %1 compatibility mode %2已從%1兼容模式成功卸載 Uninstalled successfully 卸載成功 Uninstall Failed 卸載失敗 Install %1 will remove: 安裝%1將會卸載: Dependencies in the repository 倉庫中存在的依賴包 Missing dependencies 倉庫中缺失的依賴包 Update button 更 新 Invalid digital signature 數字簽名無效 Name: 名稱: Same version installed 已安裝相同版本 SingleInstallPage_Install Show details 顯示詳細訊息 Show dependencies 顯示依賴包關係 SingleInstallPage_Uninstall Show details 顯示卸載進程 Uab::UabPackageListModel Installation Failed 安裝失敗 UninstallConfirmPage Show related packages 顯示相關軟件包 Collapse button 收 起 Cancel button 取 消 Confirm 確 定 Are you sure you want to uninstall %1? All dependencies will also be removed 您確定要卸載%1 嗎? 所有依賴也會被一起移除 Are you sure you want to uninstall %1? The system or other applications may not work properly 您確定要卸載%1嗎? 卸載此軟件可能會導致系統或其他軟件無法正常使用 Are you sure you want to uninstall %2 from %1 compatibility mode? 您確定要從%1兼容模式 卸載%2嗎? main Package Installer 軟件包安裝器 Package Installer helps users install and remove local packages, and supports bulk installation. 軟件包安裝器用於幫助用戶安裝和卸載本地軟件,支持批量安裝。 deepin-deb-installer-6.5.5/translations/deepin-deb-installer_zh_TW.ts000066400000000000000000001015301474340456100257210ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: 請輸入序號進行配置: OK button 確 定 BackendProcessPage Loading packages... 正在載入安裝包… %1/%2 loaded 已載入%1/%2 Initializing... 正在初始化… DdimErrorPage OK 確 定 DebInstaller Package Installer 軟體包安裝器 Settings 設定 Installing other packages... Please open it later. 正在執行安裝流程,無法打開 Parsing failed: An illegal file structure was found in the manifest file! 套裝軟體解析失敗,套裝軟體清單包含非法的文件結構! Parsing failed: An illegal version number was found in the manifest file! 套裝軟體解析失敗,套裝軟體清單包含非法版本號! No deb packages found. Please check the folder. 未檢測到安裝包,請檢查安裝目錄! The %1 package may be broken 請檢查%1包是否損壞 You can only install local %1 packages 只能安裝本機的%1包 No permission to access this folder 沒有權限訪問資料夾 The deb package may be broken 請檢查deb包是否損壞 You can only install local deb packages 只能安裝本機的deb包 Already Added 已添加 %1 does not exist, please reselect %1文件不存在,請重新選擇文件 Bulk Install 批次安裝 DebListModel Installation failed, please check your network connection 安裝失敗,請檢查網路連線 Installation failed, please check for updates in Control Center 安裝失敗,請於控制中心檢查更新 Installation failed, insufficient disk space 安裝失敗,磁碟機空間不足 No digital signature 無數位簽章 Invalid digital signature 數位簽章無效 The administrator has set policies to prevent installation of this package 管理員已限制,該軟體禁止安裝 Installation Failed 安裝失敗 current system 目前系統環境 %2 has been installed in %1, please uninstall this package before installing it 已在%1中安裝%2,請先移除後再安裝此包 Broken dependencies, try installing the app in compatibility mode 依賴關係不滿足,請嘗試使用相容模式安裝該應用 Failed to install %1 %1安裝失敗 Failed to install %1: no valid digital singature 無法安裝%1,安裝包無有效的數位簽章 Unable to install - no digital signature 無法安裝,安裝包無數位簽章 Please go to Control Center to enable developer mode and try again. Proceed? 請進入控制中心,開啟開發者模式後,再嘗試繼續安裝。是否前往? Cancel button 取 消 Proceed button 前 往 OK button 確 定 Failed to install %1: no valid digital signature 無法安裝%1,安裝包無有效的數位簽章 This package does not have a valid digital signature. Continue with the installation? 此安裝包沒有有效的數位簽章,是否繼續安裝? Cancel 取 消 Continue button 繼續 Unable to install 無法安裝 This package does not have a valid digital signature 此安裝包沒有有效的數位簽章 Broken dependencies: %1 缺少依賴軟體:%1 Authentication failed 配置授權失敗 Unmatched package architecture 軟體套件結構不符合規範 FileChooseWidget Drag deb packages here 拖曳軟體包到此 Select File 選擇檔案 MultipleInstallPage Show details 顯示詳細訊息 Collapse button 隱 藏 Install button 安 裝 Done button 完 成 Back button 返 回 Install %1 will remove: 安裝%1將會移除: Dependencies in the repository 倉庫中存在的依賴包 Missing dependencies 倉庫中缺失的依賴包 Installing dependencies: %1 正在安裝依賴:%1 PackageSelectItem Same version installed 已安裝相同版本 Earlier version installed: %1 已安裝舊版本:%1 Later version installed: %1 已安裝較新的版本:%1 Unmatched package architecture 軟體套件結構不符合規範 PackageSelectView Select all 全選 Install button 安 裝 PackagesListDelegate Installing 正在安裝 Installed 已安裝 Failed 安裝失敗 Waiting 等待安裝 Same version installed 已安裝相同版本 Later version installed: %1 已安裝較新的版本:%1 Earlier version installed: %1 已安裝舊版本:%1 PackagesListView Delete 刪除 QApplication Collapse button 隱 藏 QObject Basic 基礎設定 Check digital signatures if the developer mode is enabled 開發者模式下,檢測安裝包的簽名 To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. 如需安裝未簽名應用,前往安全中心-安全工具-應用安全設定允許安裝的應用類型。 Security Center > Tools > App Security 安全中心-安全工具-應用安全 The system has not installed Linglong environment, please install it first 系統無玲瓏環境,請先安裝 Unable to install 無法安裝 This package does not have a valid digital signature and has been blocked from installing/running. Go to Security Center > Tools > App Security to change the settings. 安裝包沒有有效的數位簽章,已被禁止安裝/執行,請前往安全中心-安全工具-應用安全進行調整。 Cancel button 取 消 Proceed button 前 往 Will remove: 將會移除: SingleInstallPage Collapse 隱藏 Reinstall 重 裝 Later version installed: %1 已安裝較新的版本:%1 Downgrade 安裝舊版本 Earlier version installed: %1 已安裝舊版本:%1 Installing dependencies: %1 正在安裝依賴:%1 Failed to install %1 %1安裝失敗 Version: 版本: Select a compatibility mode: 選擇相容模式: Install button 安 裝 Remove button 移 除 OK button 確 定 Back button 返 回 Done button 完 成 Trying to install %2 in %1 compatibility mode 正在嘗試使用%1相容模式安裝%2 Uninstalling %2 from %1 compatibility mode 正在從%1相容模式移除%2 %2 was successfully installed to %1 compatibility mode %2已成功安裝到%1相容模式 Installed successfully 安裝成功 %2 has been successfully uninstalled from %1 compatibility mode %2已從%1相容模式成功移除 Uninstalled successfully 解除安裝成功 Uninstall Failed 解除安裝失敗 Install %1 will remove: 安裝%1將會移除: Dependencies in the repository 倉庫中存在的依賴包 Missing dependencies 倉庫中缺失的依賴包 Update button 更 新 Invalid digital signature 數位簽章無效 Name: 名稱: Same version installed 已安裝相同版本 SingleInstallPage_Install Show details 顯示詳細訊息 Show dependencies 顯示依賴包關係 SingleInstallPage_Uninstall Show details 顯示卸載進程 Uab::UabPackageListModel Installation Failed 安裝失敗 UninstallConfirmPage Show related packages 顯示相關軟體包 Collapse button 隱 藏 Cancel button 取 消 Confirm 確 定 Are you sure you want to uninstall %1? All dependencies will also be removed 確定解除安裝 %1? 也會移除所有依賴 Are you sure you want to uninstall %1? The system or other applications may not work properly 您確定要移除%1嗎? 移除此軟體可能會導致系統或其他軟體無法正常使用 Are you sure you want to uninstall %2 from %1 compatibility mode? 您確定要從%1相容模式 移除%2嗎? main Package Installer 軟體包安裝器 Package Installer helps users install and remove local packages, and supports bulk installation. 軟體包安裝器用來幫助使用者安裝和移除本機軟體包。支援批次安裝。 deepin-deb-installer-6.5.5/translations/desktop/000077500000000000000000000000001474340456100217205ustar00rootroot00000000000000deepin-deb-installer-6.5.5/translations/desktop/deepin-deb-installer.desktop000066400000000000000000000253351474340456100273120ustar00rootroot00000000000000[Desktop Entry] Categories=System; Keywords=package;installer;deepin;dde;dpkg;apt; Comment=Package Installer helps users install and remove local packages, and supports bulk installation. Exec=deepin-deb-installer %F GenericName=Package Installer Icon=deepin-deb-installer MimeType=application/vnd.debian.binary-package;application/x-deb; Name=Package Installer StartupNotify=false Terminal=false Type=Application X-Deepin-Vendor=deepin # Translations: # Do not manually modify! Comment[ar]=مثبت الحزم: يساعد المستخدمين على تثبيت وإزالة الحزم المحلية، ويدعم أيضاً الثبيت الجماعي للحزم. Comment[bg]=Deepin Мениджър на пакети се използва, за да помогне на потребителите да инсталират и премахват локален пакет, поддръжка на групово инсталиране. Comment[bo]=མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས་ནི་སྤྱོད་མཁན་ལ་རང་སའི་མཉེན་ཆས་སྒྲིག་སྦྱོར་དང་བཤིག་འདོན་བྱེད་རོགས་བྱེད་པའི་ཡོ་བྱད་ཅིག་རེད་ལ། ཉེར་སྤྱོད་མང་པོ་མཉམ་དུ་སྒྲིག་སྦྱོར་བྱ་ཐུབ། Comment[br]=Ar stalier pakadoù a sikour an implijaderien da staliañ ha da zilemel ar pakadoù lec'hel, hag e kemer e kont ar staliadur a-vloc'had. Comment[ca]=L'Instal·lador de paquets ajuda els usuaris a instal·lar i eliminar paquets locals i admet la instal·lació massiva. Comment[cs]=Instalátor balíčků slouží uživateli jako pomůcka pro instalaci a odebírání místních balíčků (tj. nepocházejících z repozitářů). Podporuje také hromadnou instalaci. Comment[da]=Pakkeinstallationsprogram hjælpe brugere med at installere og fjerne lokale pakker, med understøttelse af masseinstallation. Comment[de]=Das Paket-Installationsprogramm hilft Benutzern bei der Installation und Entfernung lokaler Pakete und unterstützt die Masseninstallation. Comment[en_AU]=The Deepin Package Installer helps users install and remove local packages. It supports bulk package installation. Comment[es]=Instalador de paquetes de Deepin ayuda a instalar y eliminar paquetes locales, y admite instalación en masa. Comment[es_419]=El Gestor de Paquetes Deepin se usa para ayudar a los usuarios a instalar y eliminar paquetes locales, admite la instalación masiva. Comment[et]=Deepin pakihaldur on rakendus, millega kasutajad saavad arvutisse tarkvara paigaldada ja seda sealt eemaldada. Toetab ka hulgipaigaldamist. Comment[fi]=Ohjelmiston asentaja auttaa käyttäjiä asentamaan ja poistamaan ohjelmia. Comment[fr]=Installateur de paquets aide les utilisateurs à installer et supprimer des paquets locaux et prend en charge l'installation en bloc. Comment[gl_ES]=O instalador do paquete axuda aos usuarios a instalar e eliminar paquetes locais e admite a instalación masiva. Comment[hi_IN]=पैकेज इंस्टॉलर द्वारा उपयोक्ता लोकल पैकेज इंस्टॉल व हटा सकते हैं, यह सामूहिक इंस्टॉल की सुविधा भी प्रदान करता है। Comment[hu]=A Csomagtelepítő segít a felhasználóknak különféle csomagok telepítésében és eltávolításában, valamint támogatja a kötegelt telepítést. Comment[id]=Manajer Paket Deepin digunakan untuk menolong para pengguna install dan menghapus paket lokal, mendukung install massal Comment[it]=Il Gestore pacchetti è utile per installare e rimuovere software in locale, supporta inoltre l'installazione massiva. Localizzazione italiana a cura di Massimo A. Carofano. Comment[ja]=パッケージ インストーラーは、ユーザーがローカル パッケージをインストールしたり削除したりするのに役立ちます。一括インストールにも対応しています。 Comment[ko]=패키지 설치 관리자는 사용자가 로컬 패키지를 설치하고, 제거할 수 있도록 지원하고 일괄 설치를 지원합니다. Comment[lt]=Paketų diegimo programa padeda naudotojams įdiegti ir šalinti vietinius paketus bei palaiko masinį įdiegimą. Comment[mn]=Деепин Багц Зохицуулагч нь хэрэглэгчдэд програм суулгах устгахад туслахаас гадна бүлэг суулгалтыг дэмждэг. Comment[ms]=Pemasang pakej dapat membantu pengguna dan membuang pakej-pakej setempat, dan juga menyokong pemasangan pukal. Comment[ne]=प्याकेज स्थापनाकर्ताले प्रयोगकर्ताहरूलाई स्थानीय प्याकेजहरू स्थापना र हटाउन मद्दत गर्दछ, र बल्क स्थापनालाई समर्थन गर्दछ। Comment[nl]=Pakketinstallatie is een programma dat gebruikers helpt bij het installeren van lokale software. Comment[pl]=Instalator pakietów pomaga użytkownikom instalować i usuwać pakiety lokalne oraz obsługuje instalację zbiorczą. Comment[pt]=O Instalador de Pacotes ajuda os utilizadores a instalar e remover pacotes locais e suporta a instalação em massa. Comment[pt_BR]=O Instalador de Pacotes ajuda os usuários a instalar e remover pacotes locais e suporta a instalação em massa. Comment[ru]=Установщик Пакетов используется для установки и удаления программного обеспечения и поддерживает массовую установку приложений. Comment[sk]=Aplikácia Deepin Správca balíčkov slúži na pomoc používateľom pri inštalácii a odstraňovaní lokálnych balíčkov, podporuje hromadnú inštaláciu. Comment[sq]=Instaluesi i Paketave i ndihmon përdoruesit të instalojnë dhe heqin paketa vendore, dhe mbulon instalime në masë. Comment[sr]=Инсалатер пакета помаже корисницима да инсталирају и уклањају локалне пакете. Подржава групну инсталацију. Comment[tr]=Paket Kurucu, kullanıcıların yerel paketleri kurmasına ve kaldırmasına yardımcı olur ve toplu kurulumu destekler. Comment[ug]=ئورالما ئورناتقۇچ ئىشلەتكۈچىلەرنىڭ يەرلىك ئورالمىلارنى ئورنىتىشى ۋە ئۆچۈرۈشىگە ياردەم بېرىدۇ ھەمدە توپ قاچىلاشنى قوللايدۇ. Comment[uk]=За допомогою засобу встановлення пакунків користувачі можуть встановлювати і вилучати локальні пакунки. Передбачено пакетне встановлення. Comment[vi]=Trình cài đặt gói hỗ trợ người dùng cài đặt và xóa hàng loạt các gói phần mềm Comment[zh_CN]=软件包安装器用于帮助用户安装和卸载本地软件,支持批量安装。 Comment[zh_HK]=軟件包安裝器用於幫助用戶安裝和卸載本地軟件,支持批量安裝。 Comment[zh_TW]=軟體包安裝器用來幫助使用者安裝和移除本機軟體包。支援批次安裝。 GenericName[ar]=مثبّت الحزم GenericName[ast]=Xestor de paquetes GenericName[bg]=Мениджър на пакети GenericName[bo]=མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས། GenericName[br]=Stalier pakadoù GenericName[ca]=Instal·lador de paquets GenericName[cs]=Instalátor balíčků GenericName[da]=Pakkeinstallationsprogram GenericName[de]=Paket-Installationsprogramm GenericName[en_AU]=Package Installer GenericName[es]=Instalador de paquetes GenericName[es_419]=Gestor de Paquetes GenericName[et]=Pakihaldur GenericName[fi]=Ohjelmiston asentaja GenericName[fr]=Installateur de paquets GenericName[gl_ES]=Instalador do paquete GenericName[hi_IN]=पैकेज इंस्टॉलर GenericName[hu]=Csomagtelepítő GenericName[id]=Manajer Paket GenericName[it]=Gestore pacchetti GenericName[ja]=パッケージ インストーラー GenericName[ko]=패키지 관리자 GenericName[lt]=Paketų diegimo programa GenericName[mn]=Багц Зохицуулагч GenericName[ms]=Pemasang Pakej GenericName[ne]=प्याकेज स्थापनाकर्ता GenericName[nl]=Pakketinstallatie GenericName[pa]=ਪੈਕੇਜ ਮੈਨੇਜਰ GenericName[pl]=Instalator pakietów GenericName[pt]=Instalador de Pacotes GenericName[pt_BR]=Instalador de Pacotes GenericName[ru]=Установщик Пакетов GenericName[sk]=Správca balíčkov GenericName[sq]=Instalues Paketash GenericName[sr]=Инсталатер Пакета GenericName[tr]=Paket Kurucu GenericName[ug]=بوغچا قاچىلىغۇچ GenericName[uk]=Встановлювач пакунків GenericName[vi]=Trình cài đặt gói GenericName[zh_CN]=软件包安装器 GenericName[zh_HK]=軟件包安裝器 GenericName[zh_TW]=軟體包安裝器 Name[ar]=مثبّت الحزم Name[ast]=Xestor de paquetes Name[bg]=Мениджър на пакети Name[bo]=གཏིང་ཟབ་མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས། Name[br]=Stalier pakadoù Deepin Name[ca]=Instal·lador de paquets del Deepin Name[cs]=Deepin instalátor balíčků Name[da]=Pakkeinstallationsprogram Name[de]=Deepin Paket-Installationsprogramm Name[en_AU]=Package Installer Name[es]=Instalador de paquetes Name[es_419]=Gestor de Paquetes Name[et]=Pakihaldur Name[fi]=Deepin pakettien asentaja Name[fr]=Installateur de paquets Deepin Name[gl_ES]=Instalador do paquete de Deepin Name[hi_IN]=दीपिन पैकेज इंस्टॉलर Name[hu]=Deepin® Csomagtelepítő Name[id]=Manajer Paket Name[it]=Gestore pacchetti di Deepin Name[ja]=Deepin パッケージ インストーラー Name[ko]=Deepin 패키지 설치도구 Name[lt]=Paketų diegimo programa Name[mn]=Багц Зохицуулагч Name[ms]=Pemasang Pakej Name[ne]=प्याकेज स्थापनाकर्ता Name[nl]=Deepin Pakketinstallatie Name[pa]=ਪੈਕੇਜ ਮੈਨੇਜਰ Name[pl]=Instalator pakietu Deepin Name[pt]=Instalador de Pacotes Deepin Name[pt_BR]=deepin Instalador de Pacotes Name[ru]=Установщик Пакетов Deepin Name[sk]=Správca balíčkov Name[sq]=Instalues Paketash Deepin Name[sr]=Дипин Инсталатер Пакета Name[tr]=Deepin Paket Kurucu Name[ug]=Deepin بوغچا قاچىلىغۇچ Name[uk]=Засіб встановлення пакунків Deepin Name[vi]=Trình cài đặt gói Name[zh_CN]=深度软件包安装器 Name[zh_HK]=Deepin 軟件包安裝器 Name[zh_TW]=Deepin 軟體包安裝器 deepin-deb-installer-6.5.5/translations/desktop/desktop.ts000066400000000000000000000014121474340456100237370ustar00rootroot00000000000000 desktop Deepin Package InstallerDeepin Package Installer Package InstallerPackage Installer Package Installer helps users install and remove local packages, and supports bulk installation. Package Installer helps users install and remove local packages, and supports bulk installation. deepin-deb-installer-6.5.5/translations/desktop/desktop_ar.ts000066400000000000000000000014451474340456100244270ustar00rootroot00000000000000desktopPackage Installerمثبّت الحزمPackage Installerمثبّت الحزمPackage Installer helps users install and remove local packages, and supports bulk installation.مثبت الحزم: يساعد المستخدمين على تثبيت وإزالة الحزم المحلية، ويدعم أيضاً الثبيت الجماعي للحزم.deepin-deb-installer-6.5.5/translations/desktop/desktop_ast.ts000066400000000000000000000010511474340456100246050ustar00rootroot00000000000000 desktopPackage InstallerXestor de paquetesPackage Installer helps users install and remove local packages, and supports bulk installation. deepin-deb-installer-6.5.5/translations/desktop/desktop_az.ts000066400000000000000000000015101474340456100244300ustar00rootroot00000000000000 desktop Deepin Package InstallerDeepin Paket Quraşdırıcı Package InstallerPaket quraşdırıcısı Package Installer helps users install and remove local packages, and supports bulk installation. Paket quraşdırıcısı, istifadəçilərə paketləri quraşdırmağa və silməyə imkan verir, həmçinin toplu quraşdırmanı dəstəkləyir. deepin-deb-installer-6.5.5/translations/desktop/desktop_bg.ts000066400000000000000000000014661474340456100244200ustar00rootroot00000000000000 desktopPackage InstallerМениджър на пакетиPackage Installer helps users install and remove local packages, and supports bulk installation.Deepin Мениджър на пакети се използва, за да помогне на потребителите да инсталират и премахват локален пакет, поддръжка на групово инсталиране. deepin-deb-installer-6.5.5/translations/desktop/desktop_bo.ts000066400000000000000000000024341474340456100244240ustar00rootroot00000000000000 desktop Deepin Package Installerགཏིང་ཟབ་མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས། Package Installerམཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས། Package Installer helps users install and remove local packages, and supports bulk installation. མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས་ནི་སྤྱོད་མཁན་ལ་རང་སའི་མཉེན་ཆས་སྒྲིག་སྦྱོར་དང་བཤིག་འདོན་བྱེད་རོགས་བྱེད་པའི་ཡོ་བྱད་ཅིག་རེད་ལ། ཉེར་སྤྱོད་མང་པོ་མཉམ་དུ་སྒྲིག་སྦྱོར་བྱ་ཐུབ། deepin-deb-installer-6.5.5/translations/desktop/desktop_br.ts000066400000000000000000000014721474340456100244300ustar00rootroot00000000000000 desktop Deepin Package InstallerStalier pakadoù Deepin Package InstallerStalier pakadoù Package Installer helps users install and remove local packages, and supports bulk installation. Ar stalier pakadoù a sikour an implijaderien da staliañ ha da zilemel ar pakadoù lec'hel, hag e kemer e kont ar staliadur a-vloc'had. deepin-deb-installer-6.5.5/translations/desktop/desktop_ca.ts000066400000000000000000000014701474340456100244060ustar00rootroot00000000000000 desktop Deepin Package InstallerInstal·lador de paquets del Deepin Package InstallerInstal·lador de paquets Package Installer helps users install and remove local packages, and supports bulk installation. L'Instal·lador de paquets ajuda els usuaris a instal·lar i eliminar paquets locals i admet la instal·lació massiva. deepin-deb-installer-6.5.5/translations/desktop/desktop_cs.ts000066400000000000000000000015561474340456100244350ustar00rootroot00000000000000 desktop Deepin Package InstallerDeepin instalátor balíčků Package InstallerInstalátor balíčků Package Installer helps users install and remove local packages, and supports bulk installation. Instalátor balíčků slouží uživateli jako pomůcka pro instalaci a odebírání místních balíčků (tj. nepocházejících z repozitářů). Podporuje také hromadnou instalaci. deepin-deb-installer-6.5.5/translations/desktop/desktop_da.ts000066400000000000000000000013761474340456100244140ustar00rootroot00000000000000desktopPackage InstallerPakkeinstallationsprogramPackage InstallerPakkeinstallationsprogramPackage Installer helps users install and remove local packages, and supports bulk installation.Pakkeinstallationsprogram hjælpe brugere med at installere og fjerne lokale pakker, med understøttelse af masseinstallation.deepin-deb-installer-6.5.5/translations/desktop/desktop_de.ts000066400000000000000000000015111474340456100244070ustar00rootroot00000000000000 desktop Deepin Package InstallerDeepin Paket-Installationsprogramm Package InstallerPaket-Installationsprogramm Package Installer helps users install and remove local packages, and supports bulk installation. Das Paket-Installationsprogramm hilft Benutzern bei der Installation und Entfernung lokaler Pakete und unterstützt die Masseninstallation. deepin-deb-installer-6.5.5/translations/desktop/desktop_en_AU.ts000066400000000000000000000012271474340456100250120ustar00rootroot00000000000000 desktopPackage InstallerPackage InstallerPackage Installer helps users install and remove local packages, and supports bulk installation.The Deepin Package Installer helps users install and remove local packages. It supports bulk package installation. deepin-deb-installer-6.5.5/translations/desktop/desktop_es.ts000066400000000000000000000014321474340456100244300ustar00rootroot00000000000000 desktop Deepin Package InstallerInstalador de paquetes Package InstallerInstalador de paquetes Package Installer helps users install and remove local packages, and supports bulk installation. Instalador de paquetes de Deepin ayuda a instalar y eliminar paquetes locales, y admite instalación en masa. deepin-deb-installer-6.5.5/translations/desktop/desktop_es_419.ts000066400000000000000000000012541474340456100250270ustar00rootroot00000000000000 desktopPackage InstallerGestor de PaquetesPackage Installer helps users install and remove local packages, and supports bulk installation.El Gestor de Paquetes Deepin se usa para ayudar a los usuarios a instalar y eliminar paquetes locales, admite la instalación masiva. deepin-deb-installer-6.5.5/translations/desktop/desktop_et.ts000066400000000000000000000012461474340456100244340ustar00rootroot00000000000000 desktopPackage InstallerPakihaldurPackage Installer helps users install and remove local packages, and supports bulk installation.Deepin pakihaldur on rakendus, millega kasutajad saavad arvutisse tarkvara paigaldada ja seda sealt eemaldada. Toetab ka hulgipaigaldamist. deepin-deb-installer-6.5.5/translations/desktop/desktop_fi.ts000066400000000000000000000013571474340456100244250ustar00rootroot00000000000000 desktop Deepin Package InstallerDeepin ohjelma-asentaja Package InstallerOhjelma-asentaja Package Installer helps users install and remove local packages, and supports bulk installation. Ohjelma-asentaja auttaa käyttäjiä asentamaan ja poistamaan ohjelmia. deepin-deb-installer-6.5.5/translations/desktop/desktop_fil.ts000066400000000000000000000015111474340456100245710ustar00rootroot00000000000000 desktop Deepin Package InstallerDeepin Package Installer Package InstallerPackage Installer Package Installer helps users install and remove local packages, and supports bulk installation. Ang Package Installer ay nakakatulog sa pag install at pag-tanggal ng mga local packages, at sinusuportahan ito nang pag-install ng mga packages na maramihan. deepin-deb-installer-6.5.5/translations/desktop/desktop_fr.ts000066400000000000000000000015001474340456100244240ustar00rootroot00000000000000 desktop Deepin Package InstallerInstallateur de paquets Deepin Package InstallerInstallateur de paquets Package Installer helps users install and remove local packages, and supports bulk installation. Installateur de paquets aide les utilisateurs à installer et supprimer des paquets locaux et prend en charge l'installation en bloc. deepin-deb-installer-6.5.5/translations/desktop/desktop_gl_ES.ts000066400000000000000000000014501474340456100250120ustar00rootroot00000000000000 desktop Deepin Package InstallerInstalador do paquete de Deepin Package InstallerInstalador do paquete Package Installer helps users install and remove local packages, and supports bulk installation. O instalador do paquete axuda aos usuarios a instalar e eliminar paquetes locais e admite a instalación masiva. deepin-deb-installer-6.5.5/translations/desktop/desktop_hi_IN.ts000066400000000000000000000020171474340456100250070ustar00rootroot00000000000000 desktop Deepin Package Installerदीपिन पैकेज इंस्टॉलर Package Installerपैकेज इंस्टॉलर Package Installer helps users install and remove local packages, and supports bulk installation. पैकेज इंस्टॉलर द्वारा उपयोक्ता लोकल पैकेज इंस्टॉल व हटा सकते हैं, यह सामूहिक इंस्टॉल की सुविधा भी प्रदान करता है। deepin-deb-installer-6.5.5/translations/desktop/desktop_hr.ts000066400000000000000000000014151474340456100244330ustar00rootroot00000000000000 desktop Deepin Package InstallerDeepin instaler paketa Package InstallerInstaler paketa Package Installer helps users install and remove local packages, and supports bulk installation. Instaler paketa pomaže korisnicima instalaciju i uklanjanje lokalnih paketa kao i skupno instaliranje. deepin-deb-installer-6.5.5/translations/desktop/desktop_hu.ts000066400000000000000000000015051474340456100244360ustar00rootroot00000000000000 desktop Deepin Package InstallerDeepin® Csomagtelepítő Package InstallerCsomagtelepítő Package Installer helps users install and remove local packages, and supports bulk installation. A Csomagtelepítő segít a felhasználóknak különféle csomagok telepítésében és eltávolításában, valamint támogatja a kötegelt telepítést. deepin-deb-installer-6.5.5/translations/desktop/desktop_id.ts000066400000000000000000000014101474340456100244110ustar00rootroot00000000000000 desktop Deepin Package InstallerPemasang Paket Deepin Package InstallerPemasang Paket Package Installer helps users install and remove local packages, and supports bulk installation. Pemasang Paket membantu pengguna memasang dan menghapus paket lokal, dan mendukung instalasi massal. deepin-deb-installer-6.5.5/translations/desktop/desktop_it.ts000066400000000000000000000015371474340456100244430ustar00rootroot00000000000000 desktop Deepin Package InstallerGestore pacchetti di Deepin Package InstallerGestore pacchetti Package Installer helps users install and remove local packages, and supports bulk installation. Il Gestore pacchetti è utile per installare e rimuovere software in locale, supporta inoltre l'installazione massiva. Localizzazione italiana a cura di Massimo A. Carofano. deepin-deb-installer-6.5.5/translations/desktop/desktop_ja.ts000066400000000000000000000016511474340456100244160ustar00rootroot00000000000000 desktop Deepin Package InstallerDeepin パッケージ インストーラー Package Installerパッケージ インストーラー Package Installer helps users install and remove local packages, and supports bulk installation. パッケージ インストーラーは、ユーザーがローカル パッケージをインストールしたり削除したりするのに役立ちます。一括インストールにも対応しています。 deepin-deb-installer-6.5.5/translations/desktop/desktop_ko.ts000066400000000000000000000015041474340456100244320ustar00rootroot00000000000000 desktop Deepin Package InstallerDeepin 패키지 설치도구 Package Installer패키지 관리자 Package Installer helps users install and remove local packages, and supports bulk installation. 패키지 설치 관리자는 사용자가 로컬 패키지를 설치하고, 제거할 수 있도록 지원하고 일괄 설치를 지원합니다. deepin-deb-installer-6.5.5/translations/desktop/desktop_lt.ts000066400000000000000000000013601474340456100244400ustar00rootroot00000000000000desktopPackage InstallerPaketų diegimo programaPackage InstallerPaketų diegimo programaPackage Installer helps users install and remove local packages, and supports bulk installation.Paketų diegimo programa padeda naudotojams įdiegti ir šalinti vietinius paketus bei palaiko masinį įdiegimą.deepin-deb-installer-6.5.5/translations/desktop/desktop_mn.ts000066400000000000000000000013671474340456100244420ustar00rootroot00000000000000 desktopPackage InstallerБагц ЗохицуулагчPackage Installer helps users install and remove local packages, and supports bulk installation.Деепин Багц Зохицуулагч нь хэрэглэгчдэд програм суулгах устгахад туслахаас гадна бүлэг суулгалтыг дэмждэг. deepin-deb-installer-6.5.5/translations/desktop/desktop_ms.ts000066400000000000000000000014221474340456100244370ustar00rootroot00000000000000 desktop Deepin Package InstallerPemasang Pakej Deepin Package InstallerPemasang Pakej Package Installer helps users install and remove local packages, and supports bulk installation. Pemasang pakej dapat membantu pengguna dan membuang pakej-pakej setempat, dan juga menyokong pemasangan pukal. deepin-deb-installer-6.5.5/translations/desktop/desktop_ne.ts000066400000000000000000000020141474340456100244200ustar00rootroot00000000000000desktopPackage Installerप्याकेज स्थापनाकर्ताPackage Installerप्याकेज स्थापनाकर्ताPackage Installer helps users install and remove local packages, and supports bulk installation.प्याकेज स्थापनाकर्ताले प्रयोगकर्ताहरूलाई स्थानीय प्याकेजहरू स्थापना र हटाउन मद्दत गर्दछ, र बल्क स्थापनालाई समर्थन गर्दछ।deepin-deb-installer-6.5.5/translations/desktop/desktop_nl.ts000066400000000000000000000014121474340456100244300ustar00rootroot00000000000000 desktop Deepin Package InstallerDeepin Pakketinstallatie Package InstallerPakketinstallatie Package Installer helps users install and remove local packages, and supports bulk installation. Pakketinstallatie is een programma dat gebruikers helpt bij het installeren van lokale software. deepin-deb-installer-6.5.5/translations/desktop/desktop_pa.ts000066400000000000000000000010701474340456100244170ustar00rootroot00000000000000 desktopPackage Installerਪੈਕੇਜ ਮੈਨੇਜਰPackage Installer helps users install and remove local packages, and supports bulk installation. deepin-deb-installer-6.5.5/translations/desktop/desktop_pl.ts000066400000000000000000000014461474340456100244410ustar00rootroot00000000000000 desktop Deepin Package InstallerInstalator pakietów Deepin Package InstallerInstalator pakietów Package Installer helps users install and remove local packages, and supports bulk installation. Instalator pakietów pomaga użytkownikom instalować i usuwać pakiety lokalne oraz obsługuje instalację zbiorczą. deepin-deb-installer-6.5.5/translations/desktop/desktop_pt.ts000066400000000000000000000014461474340456100244510ustar00rootroot00000000000000 desktop Deepin Package InstallerInstalador de Pacotes Deepin Package InstallerInstalador de Pacotes Package Installer helps users install and remove local packages, and supports bulk installation. O Instalador de Pacotes ajuda os utilizadores a instalar e remover pacotes locais e suporta a instalação em massa. deepin-deb-installer-6.5.5/translations/desktop/desktop_pt_BR.ts000066400000000000000000000014421474340456100250300ustar00rootroot00000000000000 desktop Deepin Package Installerdeepin Instalador de Pacotes Package InstallerInstalador de Pacotes Package Installer helps users install and remove local packages, and supports bulk installation. O Instalador de Pacotes auxilia os usuários a instalar e remover pacotes, e permite a instalação em massa. deepin-deb-installer-6.5.5/translations/desktop/desktop_ru.ts000066400000000000000000000016771474340456100244620ustar00rootroot00000000000000 desktop Deepin Package InstallerУстановщик Пакетов Deepin Package InstallerУстановщик Пакетов Package Installer helps users install and remove local packages, and supports bulk installation. Установщик Пакетов используется для установки и удаления программного обеспечения и поддерживает массовую установку приложений. deepin-deb-installer-6.5.5/translations/desktop/desktop_sk.ts000066400000000000000000000013051474340456100244350ustar00rootroot00000000000000 desktopPackage InstallerSprávca balíčkovPackage Installer helps users install and remove local packages, and supports bulk installation.Aplikácia Deepin Správca balíčkov slúži na pomoc používateľom pri inštalácii a odstraňovaní lokálnych balíčkov, podporuje hromadnú inštaláciu. deepin-deb-installer-6.5.5/translations/desktop/desktop_sq.ts000066400000000000000000000014421474340456100244450ustar00rootroot00000000000000 desktop Deepin Package InstallerInstalues Paketash Deepin Package InstallerInstalues Paketash Package Installer helps users install and remove local packages, and supports bulk installation. Instaluesi i Paketave i ndihmon përdoruesit të instalojnë dhe heqin paketa vendore, dhe mbulon instalime në masë. deepin-deb-installer-6.5.5/translations/desktop/desktop_sr.ts000066400000000000000000000016241474340456100244500ustar00rootroot00000000000000 desktop Deepin Package InstallerДипин Инсталатер Пакета Package InstallerИнсталатер Пакета Package Installer helps users install and remove local packages, and supports bulk installation. Инсалатер пакета помаже корисницима да инсталирају и уклањају локалне пакете. Подржава групну инсталацију. deepin-deb-installer-6.5.5/translations/desktop/desktop_tr.ts000066400000000000000000000014311474340456100244450ustar00rootroot00000000000000 desktop Deepin Package InstallerDeepin Paket Kurucu Package InstallerPaket Kurucu Package Installer helps users install and remove local packages, and supports bulk installation. Paket Kurucu, kullanıcıların yerel paketleri kurmasına ve kaldırmasına yardımcı olur ve toplu kurulumu destekler. deepin-deb-installer-6.5.5/translations/desktop/desktop_ug.ts000066400000000000000000000016501474340456100244360ustar00rootroot00000000000000 desktop Deepin Package InstallerDeepin بوغچا قاچىلىغۇچ Package Installerبوغچا قاچىلىغۇچ Package Installer helps users install and remove local packages, and supports bulk installation. ئورالما ئورناتقۇچ ئىشلەتكۈچىلەرنىڭ يەرلىك ئورالمىلارنى ئورنىتىشى ۋە ئۆچۈرۈشىگە ياردەم بېرىدۇ ھەمدە توپ قاچىلاشنى قوللايدۇ. deepin-deb-installer-6.5.5/translations/desktop/desktop_uk.ts000066400000000000000000000017471474340456100244510ustar00rootroot00000000000000 desktop Deepin Package InstallerЗасіб встановлення пакунків Deepin Package InstallerВстановлювач пакунків Package Installer helps users install and remove local packages, and supports bulk installation. За допомогою засобу встановлення пакунків користувачі можуть встановлювати і вилучати локальні пакунки. Передбачено пакетне встановлення. deepin-deb-installer-6.5.5/translations/desktop/desktop_vi.ts000066400000000000000000000014311474340456100244360ustar00rootroot00000000000000 desktop Deepin Package InstallerTrình cài đặt gói Package InstallerTrình cài đặt gói Package Installer helps users install and remove local packages, and supports bulk installation. Trình cài đặt gói hỗ trợ người dùng cài đặt và xóa hàng loạt các gói phần mềm deepin-deb-installer-6.5.5/translations/desktop/desktop_zh_CN.ts000066400000000000000000000014051474340456100250220ustar00rootroot00000000000000 desktop Deepin Package Installer深度软件包安装器 Package Installer软件包安装器 Package Installer helps users install and remove local packages, and supports bulk installation. 软件包安装器用于帮助用户安装和卸载本地软件,支持批量安装。 deepin-deb-installer-6.5.5/translations/desktop/desktop_zh_HK.ts000066400000000000000000000014061474340456100250250ustar00rootroot00000000000000 desktop Deepin Package InstallerDeepin 軟件包安裝器 Package Installer軟件包安裝器 Package Installer helps users install and remove local packages, and supports bulk installation. 軟件包安裝器用於幫助用戶安裝和卸載本地軟件,支持批量安裝。 deepin-deb-installer-6.5.5/translations/desktop/desktop_zh_TW.ts000066400000000000000000000014141474340456100250540ustar00rootroot00000000000000 desktop Deepin Package InstallerDeepin 軟體包安裝器 Package Installer軟體包安裝器 Package Installer helps users install and remove local packages, and supports bulk installation. 軟體包安裝器用來幫助使用者安裝和移除本機軟體包。支援批次安裝。 deepin-deb-installer-6.5.5/translations/policy/000077500000000000000000000000001474340456100215465ustar00rootroot00000000000000deepin-deb-installer-6.5.5/translations/policy/CMakeLists.txt000066400000000000000000000022071474340456100243070ustar00rootroot00000000000000# Copyright (C) 2019 ~ 2020 Uniontech Software Technology Co.,Ltd. # # Author: cuizhen # # Maintainer: cuizhen # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . find_program(POLICY_TS_CONV deepin-policy-ts-convert REQUIRED) add_custom_target(APP_POLICY_FILE ALL COMMAND ${POLICY_TS_CONV} ts2policy ${CMAKE_CURRENT_SOURCE_DIR}/${POLICY_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/ ${POLICY_FILE}.tmp COMMAND mv ${POLICY_FILE}.tmp ${POLICY_FILE} ) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${POLICY_FILE} DESTINATION share/polkit-1/actions) deepin-deb-installer-6.5.5/translations/policy/com.deepin.pkexec.aptInstallDepend.policy000066400000000000000000000017731474340456100315300ustar00rootroot00000000000000 LinuxDeepin https://www.deepin.com/ authentication 认证 Authentication is required to continue the configuration 继续配置,需要授权 no no auth_admin_keep /usr/bin/deepin-deb-installer-dependsInstall true deepin-deb-installer-6.5.5/translations/policy/com.deepin.pkexec.aptInstallDepend.policy.tmp000066400000000000000000000017661474340456100323310ustar00rootroot00000000000000 LinuxDeepin https://www.deepin.com/ authentication 认证 Authentication is required to continue the configuration 继续配置,需要授权 no no auth_admin /usr/bin/deepin-deb-installer-dependsInstall true deepin-deb-installer-6.5.5/translations/policy/policy.ts000066400000000000000000000011421474340456100234130ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Authentication is required to continue the configuration authentication authentication deepin-deb-installer-6.5.5/translations/policy/policy_az.ts000066400000000000000000000011741474340456100241120ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Konfiqurasiyanı davam etdirmək üçün kimlik doğrulaması tələb olunur authentication kimlik doğrulaması deepin-deb-installer-6.5.5/translations/policy/policy_bo.ts000066400000000000000000000012701474340456100240750ustar00rootroot00000000000000 policy Authentication is required to continue the configuration མུ་མཐུད་བགོ་སྒྲིག་བྱ་དགོས་དབང་བརྩལ་བྱ་དགོས། authentication དཔང་དཔྱད། deepin-deb-installer-6.5.5/translations/policy/policy_ca.ts000066400000000000000000000011311474340456100240540ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Cal autenticació per continuar la configuració authentication autenticació deepin-deb-installer-6.5.5/translations/policy/policy_cs.ts000066400000000000000000000011541474340456100241030ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Aby bylo možné pokračovat v nastavování, je třeba se ověřit authentication ověření se deepin-deb-installer-6.5.5/translations/policy/policy_de.ts000066400000000000000000000011651474340456100240700ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Zum Fortsetzen der Konfiguration ist eine Authentifizierung erforderlich authentication Authentifizierung deepin-deb-installer-6.5.5/translations/policy/policy_es.ts000066400000000000000000000011521474340456100241030ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Se requiere autenticación para continuar con la configuración authentication autenticación deepin-deb-installer-6.5.5/translations/policy/policy_fi.ts000066400000000000000000000011241474340456100240710ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Määritysten jatkaminen edellyttää todennusta authentication todennus deepin-deb-installer-6.5.5/translations/policy/policy_fil.ts000066400000000000000000000011431474340456100242460ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Authentication ay kailangan upang magpatuloy sa pag-ayos authentication authentication deepin-deb-installer-6.5.5/translations/policy/policy_fr.ts000066400000000000000000000011571474340456100241100ustar00rootroot00000000000000 policy Authentication is required to continue the configuration L'authentification est requise pour continuer la configuration authentication authentification deepin-deb-installer-6.5.5/translations/policy/policy_hi_IN.ts000066400000000000000000000012621474340456100244640ustar00rootroot00000000000000 policy Authentication is required to continue the configuration विन्यास जारी रखने हेतु प्रमाणीकरण आवश्यक है authentication प्रमाणीकरण deepin-deb-installer-6.5.5/translations/policy/policy_hr.ts000066400000000000000000000011251474340456100241050ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Potrebna je ovjera da bi nastavili s konfiguracijom authentication ovjera deepin-deb-installer-6.5.5/translations/policy/policy_hu.ts000066400000000000000000000011431474340456100241100ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Hitelesítés szükséges a konfigurálás folytatásához authentication Hitelesítés deepin-deb-installer-6.5.5/translations/policy/policy_id.ts000066400000000000000000000011331474340456100240670ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Autentikasi diperlukan untuk melanjutkan konfigurasi authentication autentikasi deepin-deb-installer-6.5.5/translations/policy/policy_it.ts000066400000000000000000000011431474340456100241100ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Autenticazione richiesta per continuare la configurazione authentication autenticazione deepin-deb-installer-6.5.5/translations/policy/policy_ja.ts000066400000000000000000000011221474340456100240630ustar00rootroot00000000000000 policy Authentication is required to continue the configuration 構成を続行するには認証が必要です authentication 認証 deepin-deb-installer-6.5.5/translations/policy/policy_ms.ts000066400000000000000000000011341474340456100241130ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Pengesahihan diperlukan untuk meneruskan konfigurasi authentication pengesahihan deepin-deb-installer-6.5.5/translations/policy/policy_nl.ts000066400000000000000000000011321474340456100241030ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Voer je wachtwoord in om het instellen te voltooien authentication goedkeuring deepin-deb-installer-6.5.5/translations/policy/policy_pl.ts000066400000000000000000000011521474340456100241070ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Wymagane jest uwierzytelnienie, aby kontynuować konfigurację authentication uwierzytelnienie deepin-deb-installer-6.5.5/translations/policy/policy_pt.ts000066400000000000000000000011511474340456100241160ustar00rootroot00000000000000 policy Authentication is required to continue the configuration É necessária a autenticação para continuar a configuração authentication autenticação deepin-deb-installer-6.5.5/translations/policy/policy_pt_BR.ts000066400000000000000000000011601474340456100245010ustar00rootroot00000000000000 policy Authentication is required to continue the configuration A autenticação é necessária para continuar com a configuração authentication autenticação deepin-deb-installer-6.5.5/translations/policy/policy_ru.ts000066400000000000000000000012541474340456100241250ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Чтобы продолжить конфигурирование необходимо авторизоваться. authentication аутентификация deepin-deb-installer-6.5.5/translations/policy/policy_sq.ts000066400000000000000000000011371474340456100241220ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Që të vazhdohet formësimi, lypset mirëfilltësim authentication mirëfilltësim deepin-deb-installer-6.5.5/translations/policy/policy_sr.ts000066400000000000000000000012351474340456100241220ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Идентификација је неопходна за наставак прилагођавања authentication идентификација deepin-deb-installer-6.5.5/translations/policy/policy_tr.ts000066400000000000000000000011561474340456100241250ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Yapılandırmaya devam etmek için kimlik doğrulaması gerekiyor authentication kimlik doğrulama deepin-deb-installer-6.5.5/translations/policy/policy_ug.ts000066400000000000000000000011521474340456100241070ustar00rootroot00000000000000 policy Authentication is required to continue the configuration داۋاملىق تەڭشەش ئۈچۈن ھوقۇق بېرىڭ authentication دەلىللەش deepin-deb-installer-6.5.5/translations/policy/policy_uk.ts000066400000000000000000000012411474340456100241120ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Для продовження налаштовування слід пройти розпізнавання authentication розпізнавання deepin-deb-installer-6.5.5/translations/policy/policy_vi.ts000066400000000000000000000011271474340456100241140ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Cần xác thực để tiếp tục cấu hình authentication xác thực deepin-deb-installer-6.5.5/translations/policy/policy_zh_CN.ts000066400000000000000000000011001474340456100244660ustar00rootroot00000000000000 policy Authentication is required to continue the configuration 继续配置,需要授权 authentication 认证 deepin-deb-installer-6.5.5/translations/policy/policy_zh_HK.ts000066400000000000000000000011001474340456100244700ustar00rootroot00000000000000 policy Authentication is required to continue the configuration 繼續配置,需要授權 authentication 認證 deepin-deb-installer-6.5.5/translations/policy/policy_zh_TW.ts000066400000000000000000000011001474340456100245200ustar00rootroot00000000000000 policy Authentication is required to continue the configuration 繼續配置,需要授權 authentication 認證