pax_global_header00006660000000000000000000000064152474521410014517gustar00rootroot0000000000000052 comment=2d81c5857eaa7485feee437f032dd0d9f60ab054 deepin-deb-installer-6.5.51/000077500000000000000000000000001524745214100156045ustar00rootroot00000000000000deepin-deb-installer-6.5.51/.clang-format000066400000000000000000000164501524745214100201650ustar00rootroot00000000000000--- # 语言: 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.51/.clog.toml000066400000000000000000000002341524745214100175020ustar00rootroot00000000000000[clog] repository = "https://github.com/linuxdeepin/deepin-deb-installer" from-latest-tag = true changelog = "CHANGELOG.md" [sections] Others = ["chore"] deepin-deb-installer-6.5.51/.github/000077500000000000000000000000001524745214100171445ustar00rootroot00000000000000deepin-deb-installer-6.5.51/.github/workflows/000077500000000000000000000000001524745214100212015ustar00rootroot00000000000000deepin-deb-installer-6.5.51/.github/workflows/backup-to-gitlab.yml000066400000000000000000000005371524745214100250560ustar00rootroot00000000000000name: 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.51/.github/workflows/call-api-check.yml000066400000000000000000000004351524745214100244630ustar00rootroot00000000000000name: 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.51/.github/workflows/call-auto-tag.yml000066400000000000000000000005171524745214100243610ustar00rootroot00000000000000name: 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.51/.github/workflows/call-build-distribution.yml000066400000000000000000000004321524745214100264500ustar00rootroot00000000000000name: 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.51/.github/workflows/call-chatOps.yml000066400000000000000000000002421524745214100242340ustar00rootroot00000000000000name: chatOps on: issue_comment: types: [created] jobs: chatopt: uses: linuxdeepin/.github/.github/workflows/chatOps.yml@master secrets: inherit deepin-deb-installer-6.5.51/.github/workflows/call-clacheck.yml000066400000000000000000000005251524745214100243740ustar00rootroot00000000000000name: 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.51/.github/workflows/call-commitlint.yml000066400000000000000000000003641524745214100250170ustar00rootroot00000000000000name: 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.51/.github/workflows/call-debian-check.yml000066400000000000000000000004461524745214100251360ustar00rootroot00000000000000name: 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.51/.github/workflows/call-license-check.yml000066400000000000000000000005521524745214100253340ustar00rootroot00000000000000name: 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.51/.github/workflows/call-static-check.yml000066400000000000000000000004461524745214100252030ustar00rootroot00000000000000name: 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.51/.github/workflows/call-update-changelog.yml000066400000000000000000000027701524745214100260520ustar00rootroot00000000000000name: Call update changelog on: workflow_dispatch: inputs: version: description: "Target version; leave empty to auto bump" required: false type: string name: description: "Maintainer name used in debian/changelog" required: true type: string email: description: "Maintainer email used in debian/changelog" required: true type: string base_branch: description: "Base branch to read and target" required: false default: master type: string distribution: description: "Changelog distribution" required: false default: unstable type: string create_pr: description: "Create a pull request after generating changelog" required: false default: true type: boolean jobs: update_changelog: uses: linuxdeepin/.github/.github/workflows/update-changelog.yml@master with: version: ${{ inputs.version }} name: ${{ inputs.name }} email: ${{ inputs.email }} base_branch: ${{ inputs.base_branch }} distribution: ${{ inputs.distribution }} create_pr: ${{ inputs.create_pr }} secrets: inherit show_result: runs-on: ubuntu-latest needs: update_changelog steps: - name: Show update changelog result run: | echo "Version: ${{ needs.update_changelog.outputs.version }}" echo "Pull Request URL: ${{ needs.update_changelog.outputs.pr_url }}" deepin-deb-installer-6.5.51/.github/workflows/cppcheck.yml000066400000000000000000000014641524745214100235110ustar00rootroot00000000000000name: 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@v7 with: ref: refs/heads/${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} allow-unsafe-pr-checkout: true 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.51/.gitignore000066400000000000000000000010761524745214100176000ustar00rootroot00000000000000# 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 # AI configuration files .roo/ .ruru/ .roomodes AGENTS.md .claude .trellis deepin-deb-installer-6.5.51/.obs/000077500000000000000000000000001524745214100164455ustar00rootroot00000000000000deepin-deb-installer-6.5.51/.obs/workflows.yml000066400000000000000000000017321524745214100212300ustar00rootroot00000000000000test_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.51/.project.json000066400000000000000000000004161524745214100202240ustar00rootroot00000000000000 { "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.51/.reuse/000077500000000000000000000000001524745214100170055ustar00rootroot00000000000000deepin-deb-installer-6.5.51/.reuse/dep5000066400000000000000000000032751524745214100175740ustar00rootroot00000000000000Format: 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.51/.tx/000077500000000000000000000000001524745214100163155ustar00rootroot00000000000000deepin-deb-installer-6.5.51/.tx/config000066400000000000000000000014451524745214100175110ustar00rootroot00000000000000[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.51/.tx/deepin.conf000066400000000000000000000000311524745214100204220ustar00rootroot00000000000000[transifex] branch = m23 deepin-deb-installer-6.5.51/.tx/transifex.yaml000066400000000000000000000013641524745214100212100ustar00rootroot00000000000000# 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.51/.tx/ts2desktop000066400000000000000000000003551524745214100203450ustar00rootroot00000000000000DESKTOP_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.51/CHANGELOG.md000066400000000000000000000031121524745214100174120ustar00rootroot00000000000000 ## 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.51/CMakeLists.txt000066400000000000000000000026711524745214100203520ustar00rootroot00000000000000# SPDX-FileCopyrightText: 2022 - 2026 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) add_subdirectory(src/dfmplugin-debinstaller) 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.51/INTRODUCTION.md000066400000000000000000000215051524745214100200520ustar00rootroot00000000000000# 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.51/LICENSE000066400000000000000000001045131524745214100166150ustar00rootroot00000000000000 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.51/LICENSES/000077500000000000000000000000001524745214100170115ustar00rootroot00000000000000deepin-deb-installer-6.5.51/LICENSES/Apache-2.0.txt000066400000000000000000000240501524745214100212310ustar00rootroot00000000000000Apache 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.51/LICENSES/CC-BY-4.0.txt000066400000000000000000000411771524745214100206600ustar00rootroot00000000000000Creative 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.51/LICENSES/CC0-1.0.txt000066400000000000000000000156101524745214100204160ustar00rootroot00000000000000Creative 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.51/LICENSES/GPL-3.0-or-later.txt000066400000000000000000001035561524745214100222270ustar00rootroot00000000000000GNU 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.51/LICENSES/LGPL-2.0-or-later.txt000066400000000000000000000602541524745214100223370ustar00rootroot00000000000000GNU 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.51/LICENSES/LGPL-3.0-or-later.txt000066400000000000000000001221621524745214100223350ustar00rootroot00000000000000GNU 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.51/LICENSES/LLVM-exception.txt000066400000000000000000000066241524745214100223300ustar00rootroot00000000000000As 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.51/LICENSES/MIT.txt000066400000000000000000000020661524745214100202070ustar00rootroot00000000000000MIT 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.51/README.md000066400000000000000000000027751524745214100170760ustar00rootroot00000000000000# 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.51/README.zh_CN.md000066400000000000000000000027551524745214100200740ustar00rootroot00000000000000# 深度软件包安装器 深度软件包安装器帮助用户安装和卸载本地的软件包,它是一个有着简单界面且易用的包管理工具,它可以让用户安装没有在应用商店中的自己的软件包,同时它还支持批量安装、版本识别以及自动解决依赖。 ### 安装依赖包 - 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.51/assets/000077500000000000000000000000001524745214100171065ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/data/000077500000000000000000000000001524745214100200175ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/data/deepin-deb-installer.json000066400000000000000000000020371524745214100247030ustar00rootroot00000000000000{ "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.51/assets/deepin-deb-installer.cache.json000066400000000000000000000027101524745214100250320ustar00rootroot00000000000000{ "magic": "dsg.config.meta", "version": "1.0", "contents": { "autoUpdateBeforeInstall": { "value": true, "serial": 0, "flags": [ "global" ], "name": "Auto Update Before Install", "name[zh_CN]": "安装前自动更新软件源", "description": "Whether to refresh the apt package cache (apt update) before installing. When disabled, the installer skips refreshing the apt cache at startup.", "description[zh_CN]": "安装前是否刷新 apt 软件包缓存(apt update)。关闭后,安装器启动时不再刷新 apt 缓存。", "permissions": "readwrite", "visibility": "private" }, "oneTimeUpdateOnFirstPackage": { "value": true, "serial": 0, "flags": [ "global" ], "name": "One-time Update On First Launch", "name[zh_CN]": "首次启动时一次性刷新软件源", "description": "When true, force a single apt update on the first launch after install; auto-resets to false once that update completes (success or failure).", "description[zh_CN]": "为 true 时,安装后首次启动将强制执行一次 apt update;该次 update 完成(无论成功或失败)后自动置为 false。", "permissions": "readwrite", "visibility": "private" } } } deepin-deb-installer-6.5.51/assets/deepin-deb-installer.desktop000066400000000000000000000274611524745214100245020ustar00rootroot00000000000000[Desktop Entry] Categories=System; 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 Keywords=package;installer;deepin;dde;dpkg;apt; MimeType=application/vnd.debian.binary-package;application/x-deb;application/x-executable;application/x-ddim; Name=Package Installer StartupNotify=false Terminal=false Type=Application X-Deepin-Vendor=deepin # Translations: # Do not manually modify! Comment[ar]=مثبت الحزم: يساعد المستخدمين على تثبيت وإزالة الحزم المحلية، ويدعم أيضاً الثبيت الجماعي للحزم. Comment[az]=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. 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]=Ohjelma-asentaja auttaa käyttäjiä asentamaan ja poistamaan ohjelmia. Comment[fil]=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. 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[hr]=Instaler paketa pomaže korisnicima instalaciju i uklanjanje lokalnih paketa kao i skupno instaliranje. 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]=Pemasang Paket membantu pengguna memasang dan menghapus paket lokal, dan mendukung instalasi 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[pa]=ਪੈਕੇਜ ਇੰਸਟਾਲਰ ਲੋਕਲ ਪੈਕੇਜਾਂ ਨੂੰ ਇੰਸਟਾਲ ਅਤੇ ਹਟਾਉਣ ਲਈ ਮਦਦ ਕਰਦਾ ਹੈ, ਇਹ ਵੱਡੀ ਗਿਣਤੀ ਵਿੱਚ ਇੰਸਟਾਲੇਸ਼ਨ ਲਈ ਵੀ ਸਹਾਇਕ ਹੈ। 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 os pacotes; além de, permitir 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[lo]=ຕົວຕິດຕັ້ງແພັກເກດຊ່ວຍຜູ້ໃຊ້ຕິດຕັ້ງ ແລະ ຖອນແພັກເກດທ້ອງຖິ່ນ ແລະ ສະໜັບສະໜູນການຕິດຕັ້ງກຸ່ມ Comment[zh_CN]=软件包安装器用于帮助用户安装和卸载本地软件,支持批量安装。 Comment[zh_HK]=軟件包安裝器用於幫助用戶安裝和卸載本地軟件,支持批量安裝。 Comment[zh_TW]=軟體包安裝器用來幫助使用者安裝和移除本機軟體包。支援批次安裝。 GenericName[ar]=مثبّت الحزم GenericName[ast]=Xestor de paquetes GenericName[az]=Paket quraşdırıcısı 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]=Ohjelma-asentaja GenericName[fil]=Package Installer GenericName[fr]=Installateur de paquets GenericName[gl_ES]=Instalador do paquete GenericName[hi_IN]=पैकेज इंस्टॉलर GenericName[hr]=Instaler paketa GenericName[hu]=Csomagtelepítő GenericName[id]=Pemasang 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[lo]=ຕົວຕິດຕັ້ງແພັກເກດ GenericName[zh_CN]=软件包安装器 GenericName[zh_HK]=軟件包安裝器 GenericName[zh_TW]=軟體包安裝器 Name[ar]=مثبّت الحزم دبيان Name[ast]=Xestor de paquetes Name[az]=Deepin Paket Quraşdırıcı Name[bo]=གཏིང་ཟབ་མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས། Name[br]=Stalier pakadoù Deepin Name[ca]=Instal·lador de paquets del Deepin Name[cs]=Deepin instalátor balíčků Name[de]=Deepin Paket-Installationsprogramm Name[es]=Instalador de paquetes Name[es_419]=Gestor de Paquetes Name[fi]=Deepin ohjelma-asentaja Name[fil]=Deepin Package Installer Name[fr]=Installateur de paquets Deepin Name[gl_ES]=Instalador do paquete de Deepin Name[hi_IN]=दीपिन पैकेज इंस्टॉलर Name[hr]=Deepin instaler paketa Name[hu]=Deepin® Csomagtelepítő Name[id]=Pemasang Paket Deepin Name[it]=Gestore pacchetti di Deepin Name[ja]=Deepin パッケージ インストーラー Name[ko]=Deepin 패키지 설치도구 Name[ms]=Pemasang Pakej Deepin Name[nl]=Deepin Pakketinstallatie Name[pa]=ਡੀਪਿਨ ਪੈਕੇਜ ਇੰਸਟਾਲਰ Name[pl]=Instalator pakietów Deepin Name[pt]=Instalador de Pacotes Deepin Name[pt_BR]=Instalador de Pacotes Name[ru]=Установщик Пакетов Deepin 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[lo]=ຕົວຕິດຕັ້ງແພັກເກດ Name[zh_CN]=深度软件包安装器 Name[zh_HK]=Deepin 軟件包安裝器 Name[zh_TW]=Deepin 軟體包安裝器 deepin-deb-installer-6.5.51/assets/deepin-deb-installer.xml000066400000000000000000000005261524745214100236220ustar00rootroot00000000000000 deepin deb installer files deepin-deb-installer-6.5.51/assets/deepin-deb-installer/000077500000000000000000000000001524745214100230755ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/000077500000000000000000000000001524745214100264635ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/common/000077500000000000000000000000001524745214100277535ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/common/arrowdown_icon.svg000066400000000000000000000014311524745214100335250ustar00rootroot00000000000000 deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/common/arrowup_icon.svg000066400000000000000000000014231524745214100332030ustar00rootroot00000000000000 deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/common/attention.svg000066400000000000000000000020421524745214100324770ustar00rootroot00000000000000 attention deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/common/close_icon.svg000066400000000000000000000025111524745214100326100ustar00rootroot00000000000000 ]> deepin-deb-installer.svg000066400000000000000000000337231524745214100344140ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/common deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/common/down.svg000066400000000000000000000051171524745214100314470ustar00rootroot00000000000000 image/svg+xml next Created with Sketch. deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/common/icon_menu.svg000066400000000000000000000047771524745214100324670ustar00rootroot00000000000000 image/svg+xml img_upload img_upload Created with Sketch. deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/common/notes.svg000066400000000000000000000031531524745214100316260ustar00rootroot00000000000000 notes deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/common/tips.svg000066400000000000000000000030731524745214100314560ustar00rootroot00000000000000 tips deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/common/up.svg000066400000000000000000000050421524745214100311210ustar00rootroot00000000000000 image/svg+xml previous Created with Sketch. deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/en_US/000077500000000000000000000000001524745214100274745ustar00rootroot00000000000000d_package-installer.md000066400000000000000000000104031524745214100336260ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/en_US# Package Installer|deepin-deb-installer| ## Overview Package Installer is an easy-to-use .deb package and .uab 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 or a .uab 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 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 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. - Broken dependencies. ### Uninstall Package Installer is used to uninstall 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 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. To install unsigned applications, click **Security Center > Security Tools > Application Security** to jump to the Security Center app for configuration. ### 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.51/assets/deepin-deb-installer/package-installer/en_US/fig/000077500000000000000000000000001524745214100302415ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/en_US/fig/.DS_Store000066400000000000000000000140041524745214100317230ustar00rootroot00000000000000Bud1 t.jpgIl about.jpgIlocblob|add.jpgIlocblobbulk-install.jpgIlocblobhelp.jpgIlocblobp remove.jpgIlocblobsingle-install.jpgIlocblobd unable.jpgIlocblobJ  @ @ @ @ E DSDB ` @ @ @deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/en_US/fig/bulkinstall.png000066400000000000000000000655551524745214100333130ustar00rootroot00000000000000PNG  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_F`IDATxyeUy6Tթ颻Fшzi4-я+$&"H!1|9E Dň2+(@M==TUpYc5ϩSg~ֳu94+ 4hM4Mi4իȮV>?=55=݊^l7gM04-Bv:"vMgfѓaxәnFLӻZibjDO4HvMG}h};[ӭ Desӷ}tKM/M/_4TM413D:Jhwd_۪֕k6MYMk/Z04F葡M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M4Mi4 @i4 @h4 4^>4;:LZڤG0R```FmLLLرh0RZNk׮ 03M;v;J:ζmE@+Mt8z^h4FFF&&&h]t:;v );wt:h 0=.عsR1a8I)f޹sŋ40wxzffBM?}4jh-hiXIhF#y4Mqݧ.}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.51/assets/deepin-deb-installer/package-installer/en_US/fig/cant3.png000066400000000000000000000551351524745214100317700ustar00rootroot00000000000000PNG  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%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mg8NVcvf4 4birQ& + mTtt4\4b@Lb1 i@L 1 4 @Lbi@L Qi@L 1 i4 4bi@Lb1 i4 1 4b@Lbi@L 1 i4 4bi@Lb1 ibXPm4pIENDB`deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/en_US/fig/remove.png000066400000000000000000000507521524745214100322550ustar00rootroot00000000000000PNG  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ҥ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OwĜ ݸg?󏇇>u&WYRSEXOEuFo _{<^gN{CQM 3}' Oȧv%Fgmq7lsb}W+f7{S>뿎mrl×ߜ^̈́Mi^DPU,zjBΣhNs6gq\DDJEٹ݃maòNwykWG̙p˳^x]w #d*ijwٯȜ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.51/assets/deepin-deb-installer/package-installer/en_US/fig/success.png000066400000000000000000000577611524745214100324370ustar00rootroot00000000000000PNG  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;|r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[?0}OE"G,VoUK ~prF.N,k(25Rw3b43ϛy~yYi m~y;˴]~V$Ĥ\ '){\^^_0j2.;2\῱m3Hz3+`Yg}QE$=FhdJsnRvQI hi4@i4@i@i@M@MMM4&h4 # `4ιm2@c$L&t:eY>: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.md000066400000000000000000000106441524745214100336510ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/en_US# Package Installer|deepin-deb-installer| ## Overview Package Installer is an easy-to-use .deb package and .uab 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 or a .uab 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 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 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. - Broken dependencies. - No digital signature. - The installation package does not have a valid digital signature. Click **Go** to jump to the Security Center for settings. ### Uninstall Package Installer is used to uninstall 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 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. To install unsigned applications, click **Security Center > Security Tools > Application Security** to jump to the Security Center app for configuration. ### 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.51/assets/deepin-deb-installer/package-installer/zh_CN/000077500000000000000000000000001524745214100274645ustar00rootroot00000000000000d_package-installer.md000066400000000000000000000100141524745214100336140ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/zh_CN# 软件包安装器|deepin-deb-installer| ## 概述 软件包安装器是一款deb包和uab包管理工具,界面简单易用,支持批量安装、版本信息识别和依赖包自动补全等功能,帮助您快速的实现安装操作。 ![run](fig/run.png) ## 操作介绍 ### 打开方式 您可以使用以下方法打开软件包安装器: - 双击deb包或uab包,软件包安装器会自动启动并准备安装该软件包。 - 直接将deb包或uab包拖拽到软件包安装器的图标上打开应用。 ### 安装 软件包安装器可以安装单个应用,也可以批量安装多个应用。 #### 单个安装 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) #### 无法安装 软件包安装器可以自动识别无法安装的包,有效规避安装后无法使用的问题。 常见的原因有: - 软件包架构不匹配。 - 依赖关系不满足。 ### 卸载 当安装包已存在相同或其他版本时,可以使用软件包安装器执行卸载操作。 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)。d 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.51/assets/deepin-deb-installer/package-installer/zh_CN/fig/000077500000000000000000000000001524745214100302315ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/zh_CN/fig/cant1.png000066400000000000000000000466311524745214100317570ustar00rootroot00000000000000PNG  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{}M4?qBҡp=I 59ɼ4L.MDDŒFcƴR/B}Ji]V;5zLB !f)~UD$. 0C7-I I%3-^]+`$ Pg6%7k)D\vOc [ B>cEk~x"ĤƯD.eţKCB`Gg?RyN꒾=.#75[~ uR.gNJa|TO4<=-59C_RC2]Dx KCLXb44!, 1 `iiKQ 8ы44!, 1 `iiKCLXb44!, 1 `iiKCLXb44!, 1 `iiKCLXb44!, 1 `iiKCLXb44!, 1 `iiKCLXb44NDLǏ1FD4 $R2"RmfckOt2I)IJ)FBH!-Sq8gE28R"Nz餑F,5MK4b3IQl6isMI pCL' #RJM_3{j~ir_> rvn!Nz7w!UUj[WO֫:&e$5DxDJjq_)>.n$}ZɰV)n D,1?}L=ȅ> [ɂNChTUn8~x$)T5vKdR$u60EŽBbᘉmF@T'cHhٯMFX&K142RMjSOڣ')"Ɉ'IKj|qf+W}僣YYU2/tI02G%DU}-aRbxHL$J~S8d?_0 wJ ctdՈHjt82 #z3N"trDڦID(|OL¥$_JSԲsK>U7q#=??U!@պ?==u͔5o~h;.4#9xX=F: =Dtb."}eqọ<J4YJ|LÃtA /L>icW1gwuN"tRaiR&_$I6/IX{ŴKjѹ{{*i#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9̰Ms*۶CPw/\K"L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L4L|"Hw/ 6S.oIENDB`deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/zh_CN/fig/cant4.png000066400000000000000000000434601524745214100317570ustar00rootroot00000000000000PNG  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_F<]IDATxw|u?gfw{! )zGPJ@(!CDPϳ}O= (" "RB'EJBHٔMd|~L,hr~6}{G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^^> .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.51/assets/deepin-deb-installer/package-installer/zh_CN/fig/run.png000066400000000000000000000202271524745214100315460ustar00rootroot00000000000000PNG  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}MFuy3Wc?X?}}BEU|Ǜ?\۸>OrVz@). yT2oqgr휹5u΄7\R\c]86SʢJtsRskMKz/kW㕱tu,Dz/L&Pj1bxZC1u|@~z3 054v&Nw4de4Y01S2de4#Ĥ鎑K(+` Y2tggӘ"Φ((Q@1Q`ce8kR de7:F2ևU4F@52 iPLjdT-|OO%_ 8Nuuu"Qi`}}}b;)Pd3XzИ4F@52 iPLjdT#4F@52 iPLj\o 1/qWULaqvcL6RЌLCs<k*q]ZWoPhW]]m)1e:80)4<|%uѹ7_;z~Q:[-Eo0vD};;u]o?[ko;9{#5on;^zhAW.6?ٓrcxS!=|`{[y<Y\wցjntr{2~m5k1x9AK%a?/ܵef-Zruxݝkv_s;;+/I۶>z6F1[[v=Eb'l5bԷ}a{Gyz0r} qzI+[1n*n.\Z4LOܹ7w[/+g1离]/n99Гw_jC6dm'3>:Ҍmwx|3UݝpJo=577~d=W7glC?r~WLc%jryNկ^{DlfZUw!e>U}l߳ GowK#/"K/.8qnU=ߑ lwGvjc' ܱ.ƑUwʮZ] GMg1]PزP@N1ㄅ/칓;3ubBq&"lڱ@O2IG1td!Wոm\)tqPqc[,ymZwS/O:װW%oh,z~p[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a=9z" U>fI~¿Tiv[%1&${7mȏ;MwXwdSH66դGLZ A-?~׻=Ftk8zeJ F +% R8rJ܁7O{W./ٽXLKa=rmMw,7'<#n[kzχ6d&'wDD$5œϕuc+يiP 4t4f1Š刈RNw}eoouK.WJ'Jl=-oayi&=;񣁇gCÜ f_hI:BX j9JdUX0DD˲`A"GA8 e!,*2LER5p8Ys4~ 0Bꟼ 6b0<^k8QSߠlxS iך ei~SKC*ztE+:!OO+֏sTnVTa8gJJNβe&0sꪖ<|9,]PꓲAW.o>zxƽvӨDuALGMЛ&]d֔& ||V,;o2qS'_U.bgd,E_5vb_< Tw,GY5:[J9Nr G6CD|9-]Fkj^nДvf|X}F:sӛM.xAOi:~=mr ZnşV>!*D{hzdŝmmֿ5q=ir?u{RʾC%;vGb4BL+L}n1w0/ig/eYt67=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.51/assets/deepin-deb-installer/package-installer/zh_CN/fig/uninstall.png000066400000000000000000000561771524745214100327700ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ IDATxw`}76ޤ%R(jKֲl'vۉ؉3MI4MھYn43x[mmQHqアq<qAH>p{pxsN@!V[b tBc!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@سZs>V?Q 4W+YSy7~@/[Z%x:}EOYs:#Smx!=zSNJ[6s3P㘝cEaß?B^{`6ٳ#icx*:1o[ 0 oOya ;մ+'5ag:?G mCJWY5mk_v25whꚶ#G^[':.Z2%&'z_ֳnDC12䬡R$4yIԊCkAi#ԤRSnj}_|OgGN֪L(Qk[j>evywDah4诶UV/ۋ׮]y֨sYbLި-d7y} [+Yy"w;bcڈ=?孳n t>Ut͙jI\ &W$Nsաp.&K+4 iIZ硅v7"oX.:\ 1O9 j= jZ{BW._*PmT[ǯǬ '. n.멃GJJJwi'wQtil{Ŏ|`@6ni|HÔ仏1~UNCkDj/&EKg j[WvT+/R~[X,:/]naQCmm]5\\)6:Rp՞YICۓB$~v- *PwVm116*XC4 'r~+ėL6g7rѵy7'jSlf /:/kOJs^|&DŽ=͘^:=*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.md000066400000000000000000000102121524745214100336300ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/zh_CN# 软件包安装器|deepin-deb-installer| ## 概述 软件包安装器是一款deb包和uab包管理工具,界面简单易用,支持批量安装、版本信息识别和依赖包自动补全等功能,帮助您快速的实现安装操作。 ![run](fig/run.png) ## 操作介绍 ### 打开方式 您可以使用以下方法打开软件包安装器: - 双击deb包或uab包,软件包安装器会自动启动并准备安装该软件包。 - 直接将deb包或uab包拖拽到软件包安装器的图标上打开应用。 ### 安装 软件包安装器可以安装单个应用,也可以批量安装多个应用。 #### 单个安装 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) #### 无法安装 软件包安装器可以自动识别无法安装的包,有效规避安装后无法使用的问题。 常见的原因有: - 软件包架构不匹配。 - 依赖关系不满足。 - 安装包无数字签名。 - 安装包没有有效的数字签名。单击 **前往** 跳转安全中心进行设置。 ### 卸载 当安装包已存在相同或其他版本时,可以使用软件包安装器执行卸载操作。 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)。d 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.51/assets/deepin-deb-installer/package-installer/zh_HK/000077500000000000000000000000001524745214100274665ustar00rootroot00000000000000d_package-installer.md000066400000000000000000000100171524745214100336210ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/zh_HK# 軟件包安裝器|deepin-deb-installer| ## 概述 軟件包安裝器是一款deb包和uab包管理工具,界面簡單易用,支持批量安裝、版本訊息識別和依賴包自動補全等功能,以幫助您快速的實現安裝操作。 ![0|run](fig/run.png) ## 操作介紹 ### 打開方式 您可以使用以下方法打開軟件包安裝器: - 雙擊deb包或uab包,軟件包安裝器會自動啟動並準備安裝該軟件包。 - 直接將deb包或uab包拖拽到圖標上打開應用。 ### 安裝 軟件包安裝器可以安裝單個應用,也可以批量安裝多個應用。 #### 單個安裝 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) #### 無法安裝 軟件包安裝器可以自動識別無法安裝的包,有效規避安裝後無法使用的問題。 常見的原因有: - 軟件包架構不匹配。 - 依賴關係不滿足。 ### 卸載 當安裝包已存在相同或其他版本時,可以使用軟件包安裝器執行卸載操作。 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.51/assets/deepin-deb-installer/package-installer/zh_HK/fig/000077500000000000000000000000001524745214100302335ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/zh_HK/fig/cant1.png000066400000000000000000000471331524745214100317570ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ IDATxw`Dߝ<8;mtO`B yx{=e= -eMKi4ىt![g56!,K'|:I,77lDsݻ2@S44!, 1 `iiKCLXb4[R4U2tx|a;vg\y #)i)ΧI:a#5ɸ=|by|"@ND+bΧUZWU>! '.g*Nʢ*HL{eZ6iy|bZ)=T[C~Y,77- ?-%ڣ87eW/%ɧq46ۊ.6]\端KHPU:Ojg&;ZWXkkmhjślR4) 8PYYy-_lEmZY^^^VVxʚE#~DT[[Kfsv G/PG'u7NtMiB;k`} f;NbmڴΚG\.Ԧ 39I݊j,+yUn;--\4"B׫JD6핷?hYm/=ua~kVSUiiժۭHLNmܶj"&rXߏCӦi.Ɗ[78'"6ΕjvN G]-Dhؒ_p2{xώm8vs|葮zH) 'wVצ˪jWewrw=_ "RU(33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95/\WEGhm1)+^xuc7_683Wi7Ƽp 4b?(Os_gn{ۍsS01^?)RpKwUQSE{CND c\1ogIgt:D,.k."Ǵ}k!H# qۃ~jE>./%,Ky ) T=?wp[ﺼP?wμIM'E=FDOzDZ'0gVS${4q~cƌvȃ>8խF$34v,_n9G%I#g6qn`5Mi{޻# }U?%F2ػvRx\Rȫ}䢇HI$6VQOŧd'G$tI){Qypo{R{+3Zy`_~;lkw9BJ)IQJw+dURý"kV(/ybٳ(wIw)SnkXL-ݿ`$%; 4YGG_]Wܝq);/<nge?Dy$sOw%(=O>%'=nR0DѦe_W|x`Wijg;zY]1oRB=+)C;zg ='$6|)<8cIĘOGffIY?}a@*tKvwEY9;.f#b$+/Ի'wyTQ~}ah@LW?272fuS68ʼnzyүUU# i_Oni9:|Dsvv'".M֗KEIk!UMAP$-R<(B="" ^, "Z' TjT_D-y/;mjfs!?ٝ}mon ,KrMS/Ȧkؙ?8}G枽=~n$/jgmdH5ɨ5™7>~p5䝑\^y)[KtMMM<;w>_|'[&=vw,_>wxG5{޷ON~xvˁF0?SͿ_59s3 y֍I8S]~_}ٕK˫+aH6p};::Gܽ|m[pX>fIENDB`deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/zh_HK/fig/cant2.png000066400000000000000000000630421524745214100317550ustar00rootroot00000000000000PNG  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 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{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.51/assets/deepin-deb-installer/package-installer/zh_HK/fig/cant3.png000066400000000000000000000561111524745214100317550ustar00rootroot00000000000000PNG  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цؚLi4(B!y`l:Ť~y )eK(---% EQ!@@ӴBj!.HfzuifkFܻ/EQR@ (ꚚRjZmEfu_& Dzި6Mrά<}HH!R+Oնj.ԩ)FjՏW(z<-;ay[!(J%.wpidgW7!2Q.#T1转'cڜqHCJf}3"X$%@Úvm;S1gcbj=.wjpkvֆ3WB 7eC3bs6=5 WC@#y<;_{;e~m`6[j9Qk1M0*;ՆԠ7ks"{o$R |Ԛ`L[k#%1ꗜQ4b*4Qs{ZGGc1s"myC?/`Kg6B5BUXSi&mM7b~*@/|Mf.c j's 3l֋xzv51Սi]i$~Ohz d4jz1- ӯp 1Pϭ4^R7FM/qD _߸wM&ѨCIY8(PG ByjW .n2^kZI[4衭E٫Qj5f~e (8?ZL2.A dHa#g^mG7nj1]E7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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.51/assets/deepin-deb-installer/package-installer/zh_HK/fig/single.png000066400000000000000000000460741524745214100322350ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ IDATxu`Gwf̌!;q S))3iz]wW+6PaFF;v̌-Y;KbhzӼjGYRXX!J}] BnѾ.B`L#aL#aL#aL#aL#aL#aL#aL#aL#aL#Iěy97ea\*W( G=%!?݈iƠAgkNo6.3yFua#LJ9B]э֙z!h6.3M{x_Lg0ݫ#YYd2ӭF֮MLDØF.FVx+P%umvB9FL Z-̼:X[Bs݉imLWh`in2/H8N"LR*B;1-+ BT*R/Z*B76qN.^BJsGqIo+ntuGãVl6r?僼d+,B[Dʌ^Yöixg\јLr#\W=6-d2I9`0u!ƞ=S@K ^&]:>-nYwNAL,?qq'ؖcmڒμ<T*M#z8<,܃IݍZ\ؐ{R0fsbrrlFZZշ~tBLXYI{oVp)GPzGwJ ՅFDQQQku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[)c%'pơg8~vA%G.Y3ݼwmgȄ<!2e#vmK{w4P?1DDAؒ2,=/h~+d鍣@}bLCV%&t8VqLfϞ{ȹ?Nw}IléXR98ƀ]pQ NeTHQӍ-߿zGV_<sҢaS&}ˉƷItD*WC4ui&`e~qߛ9[wL I}FtA=ٛ~1Z"S_yy,Ͼ;孜=fC}#N \D' IUݕfV+B6m \k#@ )=7Jj8ktV D=:?WWe;zaVMgiۯu֬u+?GwI)Nj߭~AqT-Bbտo;0ޟk){fj҇$9r[J-hӉZ,XNm!7ܼlYI6Fv> `QEO~{4>ӍӜƚ~Dj?q蟮"f36W`/,TO.\(FK 3)ݫ\'{íMe/Z-:gsf4ȘRYg׻u]X~ڡ@:?TBJu:mN>g`+N"9GΖYg m7ӿ9w?;dav5f=v Ɏ@xRzض𞖗V~2&vYy`٢N2"E:ۚ_*,u21-F ˙p)z4l舾A8_n|/5z#Rf?.?3Dŵ8Ud  ]'WST˖ c¹;d0o벝ǖZMW!]G˜m@Mg%P5ͷ`.kYBa`e#v-5j a|N˜+:0Dzfbx!i1֧}AA5l b EOMLx|ȧWO??}|krbC⼨GG&[~4tyj]>dڋb />ߦ IW?޳kSBx}! wɁu۷,,IԱ)Qzeyc`c MS7j^'[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) #### 無法安裝 軟件包安裝器可以自動識別無法安裝的包,有效規避安裝後無法使用的問題。 常見的原因有: - 軟件包架構不匹配。 - 依賴關係不滿足。 - 安裝包無數字簽名。 - 安裝套件沒有有效的數碼簽署。點擊 **前往** 跳轉至安全中心進行設定。 ### 卸載 當安裝包已存在相同或其他版本時,可以使用軟件包安裝器執行卸載操作。 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.51/assets/deepin-deb-installer/package-installer/zh_TW/000077500000000000000000000000001524745214100275165ustar00rootroot00000000000000d_package-installer.md000066400000000000000000000103111524745214100336460ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/zh_TW# 軟體包安裝器|deepin-deb-installer| ## 概述 軟體包安裝器是一款deb包和uab包管理工具,介面簡單易用,支援批次安裝、版本訊息識別和依賴包自動補全等功能,以幫助您快速的實現安裝操作。 ![0|run](fig/main.png) ## 操作介紹 ### 開啟方式 您可以使用以下方法打開軟體包安裝器: - 雙擊deb包或uab包,軟體包安裝器會自動啟動並準備安裝該軟體包。 - 直接將deb包或uab包拖曳到軟體包安裝器的圖示上打開應用。 ### 安裝 軟體包安裝器可以安裝單個應用,也可以批次安裝多個應用。 #### 單個安裝 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) #### 無法安裝 軟體包安裝器可以自動識別無法安裝的包,有效規避安裝後無法使用的問題。 常見的原因有: - 軟體套件結構不符合規範。 - 缺少依賴軟體。 ### 移除 當一個安裝包在您的電腦上已存在相同或其他版本時,可以使用軟體包安裝器執行移除操作。 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.51/assets/deepin-deb-installer/package-installer/zh_TW/fig/000077500000000000000000000000001524745214100302635ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/zh_TW/fig/cant1.png000066400000000000000000000343151524745214100320050ustar00rootroot00000000000000PNG  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ܘvx kܮd6)a1-IRbB|{S#We4 'kχp44! 1 hiGCL8bQ8>5 hiGCL8bp44! 1 hiGCL8bp44! 1 hiGCL8bp44! 1 hiGCL8bp44! 1 hiGCL8bp44! 1 hiGSuZ'!zcDp8@LG$"rnՁ&#cTkb:$BpNs"瑅5q$$&˒, Ƙ$ !b:jDmYX0MnɲD$$&I$˒2E*)Jd9CLG #Buݪ>^aXtzsA%4(HjV15 nUU?TQ6*OABn;7 =eBCLG97  ?\in,0̟vU[rI$5@놘H,aV(/qxu8 %Z9=*I ЊazKԈt8ldF 6y(um[OвJ/߶bcC6WGk "Кi,n"%!(2.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q"%"s}AiV8ېˆ(BtH!#"aѮ ;Q_|yB~}<'LӚ=235Dg4g2ʴpqOteS|0⚚\ܿ hb'ؚ.^K\{( G!?Ϧ:;umɚo4ϝ#":~@S['|Vtezx]Y# "-R5Fg\3F ''N^\29K b =aY%!$(PCTy(_~ć d""Ha|ͿsAr#"| afg*XxrRe""sjϋ{i/yZЬpM04a<ʛ!<1K2"2K/x$':]ӓg؋|,M OQ}5aC{EV'532ۉN(^8*$QDN1}艋4\Ci*!] dMoKkiO+ $;ہ{kI#O^V H!u{.w_j^ˁ :*լ:z͛dSt3 gZ"rښF4srxmz5 1 ׂo<*Ol>vOE4Ē$˶^::vB𓆘yʏ|5鵤d 3#"2jy/ѳcŤf:֑ HN~f9 =ۅgѦ5}߬5 b|a[ xt!ՖK~i4 {%>51P[SuqwxpFi{v,fl'RI[-G7z ]n!M&"h'-b$Aਥ^?3H^|\s,Pz 7pvp6g?bHy7yDHa܁n#N4Z!|r%\rIrH K[tar"x@T_y#+N`4DB6]b2 }ad[уlԮt[]}Y7 DF2t2ɛW7rrKDDlD)D"`loT~y_ԕg]cdӏ-Z./'u/p-2[멹Zn5RO1M{iR/W;%t\CDD9 pAK7t籞9i#1=M\kDDIJCCCqjh5g4iudn:4 72P54!T 1 jiUCLb@P54!T 1 jiUCLb@P54!T 1 jiUCLb@P54!T 1 jiUCLb@P54!T 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.51/assets/deepin-deb-installer/package-installer/zh_TW/fig/main.png000066400000000000000000000162571524745214100317300ustar00rootroot00000000000000PNG  IHDR~/ pHYs+aIDATx{p\}߹}oE (z?,ɊȖ؉Tj;7V3i=u=֙:FlYU#%%Z7ŇDAIQX DX~w/ς/{W9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t4R999SeY, k(z 0Bm @GlnP(dR!Z p4͆۶:qiuH1B!4=O,,+w:]RJx|>_ ~QIENDB`deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/zh_TW/fig/single.png000066400000000000000000000440631524745214100322610ustar00rootroot00000000000000PNG  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_F=`IDATxw|\ՙ7;}QVeɖ& L% KndS?Mلnɒl:a@4c 6JeIVe{y>ɶ }y4;:3=J0]0 qt@Lb1 i@L 1 t@Յ p2Wn4bsRҘ_Մ)nZ$a6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/9ť3jf^<'nt:jT:T0ZRB++P4M2;6 i4gM7Zh"R+S]+[s21pLaB`!Ӏe0. ~10aL~E {SO4TpvvRu u]J9b;n|> |vb`(`w`Oιfuv[,t?ff a* j!(n[u9-B!Dp8, Ji@LÔl ϧi.ס>O0cd2Y,ٌ)f6Flփ3KjEQF#ދb 9j@wC4b@Lb1 i@L 1 4 @Lbi@L 1 i4 1 4bzzz0_#IENDB`deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/zh_TW/fig/success.png000066400000000000000000000344621524745214100324520ustar00rootroot00000000000000PNG  IHDR~/ pHYs+ IDATxwx5=!!Ы4AJPTTTTTDⵗkWĆ^ VQA(AQz/!I>3! !'&3gw6o9geddDDu ƁnALb054!L 1 `jiSCLTu5kZ]K(U2"I]+j:.uv=o6WY(0T$D5@M4u]/k@Ւ9 RbsH I p:5iƋݪծuy|^u_lc(]"PEMcZ ƫ&""Uvq誝A1W19NDJ頓{)SUU ;,VDP@}RmŸS%kz惇]6\״`tBnH8Ob o}HOO?vGJݹS ~)L<^ɩczkzHbYը sƌYY"d૷mٸ_4]g]7 :^h0 6@M y<(˲$QJL[zq=je!ïtU(]9 P5yz$%6&s6q 7>6sߞv.d`<ZB$fQ*gA&TS5&"5TӘkrR*x#I P5i,8*rBƘ(0wQӘZ=rX^Mwe;c,|Mjӂ DEF8 (ZB$"+9VK/054!L 1 `jiSCLb&f@PMb054!L 1 `jiSCLb054!L 1 `jiSCLb054!L 1 `jiSCLb054!L 1 `jiSCLb054!L 1 `jiSCLbԤn@9'"V#"^{;@LĹycl1y;@L8s]']5tzpejE3 1&s$5@~vUU%M>SL ( $˲ IHjz12s5Mu_+qgm ,4d}D+j%Ea,HCLFEwsU~ޒ!y %t5њv9!=tpNz(O$R.4umģ'$b:4=qUռ^áwND8Wsͱ0%djSݜDF+r]׫r]gg3Fk36jF[nSVyݙ!ACX4i0=ř(pNq\7 EMK{{}HGwv H-9wΌm76˝ǯnɋ ss2vX@Wn}& !"Kµ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.`"i`Pr ^Y31W! ĔQ':&-WT?4wmsHn2ʥŮ^jo@!9qȾ?G7(,xfQK?gcv3R9'Nǚ~E]ȄԘq΅WwI+%"cbB1͜&\-wios7*66cSFHa[_fi.}!4~狃*ǚQDBb{DB\runGlڍ~_!?S荏w(]81ӕ}2_rt=w<< 3_cȽwp+d䩋Zw]p"FkdE"))ÏE\>[:SgnNّh̛Ji-i4~`jyYZ{K*IEsҹ]ә(p"!!T]---ڭ12%וmTyKE~o`mڴM v`/0]v#3ͯ,{TW|1kd#p0Q7YҩQ#:GW/Xgޞz#C=SM^CktAksrz-<ܪ7bALCރf,8PҺwl^sgTU#ӁÇY 0#to%~a|q=xi.+< T*vƵj}anM;]˜?eOb,k7&arM;=mڭw}L)WoIX>X۷p0{ZȦ)l:o/;DC[O0{FQ|8{""&D G㿟+ S/i"[+N~wK:ޞƇ|Q#6\.WzzYΏ_˓Zjh?PΉ${tRRe]k{t:g)Qֺ#8&''1bvn۠i(IݨQ܉Q=c_::o}h] AhcT_AeI]%)gSp'T*b$|>QSUb D; 1PMkFi1 # 1bVpxo z{ITNnkrV+e}4M vAAacr!?FPb:V(\.Mӄ]]u];:22jL1 #81v]EI^>q|^a1$IRjZ,1:KAb:\,,%Xk) ,asq98F@ !L 1 `jiSCLb054!L 1 `jiSCLb054!L 1 `jiSCLb054!LM"nTGIIENDB`deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/zh_TW/fig/uninstall.png000066400000000000000000000317651524745214100330160ustar00rootroot00000000000000PNG  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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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.md000066400000000000000000000105151524745214100336700ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/deepin-deb-installer/package-installer/zh_TW# 軟體包安裝器|deepin-deb-installer| ## 概述 軟體包安裝器是一款deb包和uab包管理工具,介面簡單易用,支援批次安裝、版本訊息識別和依賴包自動補全等功能,以幫助您快速的實現安裝操作。 ![0|run](fig/main.png) ## 操作介紹 ### 開啟方式 您可以使用以下方法打開軟體包安裝器: - 雙擊deb包或uab包,軟體包安裝器會自動啟動並準備安裝該軟體包。 - 直接將deb包或uab包拖曳到軟體包安裝器的圖示上打開應用。 ### 安裝 軟體包安裝器可以安裝單個應用,也可以批次安裝多個應用。 #### 單個安裝 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) #### 無法安裝 軟體包安裝器可以自動識別無法安裝的包,有效規避安裝後無法使用的問題。 常見的原因有: - 軟體套件結構不符合規範。 - 缺少依賴軟體。 - 安裝包無數位簽章。 - 安裝套件沒有有效的數位簽章。點擊 **前往** 跳轉至安全中心進行設定。 ### 移除 當一個安裝包在您的電腦上已存在相同或其他版本時,可以使用軟體包安裝器執行移除操作。 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.51/assets/environments.h.in000066400000000000000000000001651524745214100224150ustar00rootroot00000000000000#ifndef __ENVIRONMENTS_H_ #define __ENVIRONMENTS_H_ #define VERSION "@VERSION@" #endif // __ENVIRONMENTS_H_ deepin-deb-installer-6.5.51/assets/icons/000077500000000000000000000000001524745214100202215ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/icons/deepin/000077500000000000000000000000001524745214100214655ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/000077500000000000000000000000001524745214100231335ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/dark/000077500000000000000000000000001524745214100240545ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/dark/icons/000077500000000000000000000000001524745214100251675ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/dark/icons/deepin-deb-installer.svg000066400000000000000000000332671524745214100317120ustar00rootroot00000000000000 di_active_tab_close_hover_16px.svg000066400000000000000000000026761524745214100336670ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/dark/icons active_tab_close_hover Created with Sketch. di_active_tab_close_normal_16px.svg000066400000000000000000000030551524745214100340240ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/dark/icons active_tab_close_normal Created with Sketch. di_active_tab_close_press_16px.svg000066400000000000000000000026261524745214100336730ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/dark/icons active_tab_close_press Created with Sketch. deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/dark/icons/di_arrow_down_25px.svg000066400000000000000000000020561524745214100314260ustar00rootroot00000000000000 icon_packup Created with Sketch. deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/dark/icons/di_arrow_up_25px.svg000066400000000000000000000026551524745214100311100ustar00rootroot00000000000000 icon_spread Created with Sketch. deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/dark/icons/di_dialog-warning_85px.svg000066400000000000000000000056121524745214100321560ustar00rootroot00000000000000 status/64/dialog-warning deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/dark/icons/di_fail_96px.png000066400000000000000000000127161524745214100301610ustar00rootroot00000000000000PNG  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)TsnCx`faڲ`_v4O7on쥷"_7Sh3qq08S$ᔄ=ljUo2'l|-!;%TcM "K!^NjkZef-fYz_J&CP3:jawW43In;7SyC‡ZH&M[ozgO"L'xnk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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.51/assets/icons/deepin/builtin/dark/icons/di_icon_install_160px.svg000066400000000000000000000060441524745214100320040ustar00rootroot00000000000000 icon_install_dark Created with Sketch. deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/dark/icons/di_ok_16px.svg000066400000000000000000000040131524745214100276510ustar00rootroot00000000000000 ok Created with Sketch. deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/dark/icons/di_popwarning_32px.svg000066400000000000000000000064651524745214100314370ustar00rootroot00000000000000 warning Created with Sketch. deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/dark/icons/di_split_line_214px.svg000066400000000000000000000003511524745214100314630ustar00rootroot00000000000000 deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/dark/icons/di_warning_16px.svg000066400000000000000000000042241524745214100307110ustar00rootroot00000000000000 warning 2 Created with Sketch. deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/light/000077500000000000000000000000001524745214100242425ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/light/icons/000077500000000000000000000000001524745214100253555ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/light/icons/deepin-deb-installer.svg000066400000000000000000000332671524745214100321000ustar00rootroot00000000000000 di_active_tab_close_hover_16px.svg000066400000000000000000000026761524745214100340550ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/light/icons active_tab_close_hover Created with Sketch. di_active_tab_close_normal_16px.svg000066400000000000000000000030551524745214100342120ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/light/icons active_tab_close_normal Created with Sketch. di_active_tab_close_press_16px.svg000066400000000000000000000026261524745214100340610ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/light/icons active_tab_close_press Created with Sketch. deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/light/icons/di_arrow_down_25px.svg000066400000000000000000000024541524745214100316160ustar00rootroot00000000000000 icon_packup Created with Sketch. deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/light/icons/di_arrow_up_25px.svg000066400000000000000000000026411524745214100312710ustar00rootroot00000000000000 icon_spread Created with Sketch. deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/light/icons/di_dialog-warning_85px.svg000066400000000000000000000056121524745214100323440ustar00rootroot00000000000000 status/64/dialog-warning deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/light/icons/di_fail_96px.png000066400000000000000000000127161524745214100303470ustar00rootroot00000000000000PNG  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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PR`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.51/assets/icons/deepin/builtin/light/icons/di_icon_install_160px.svg000066400000000000000000000060231524745214100321670ustar00rootroot00000000000000 icon_install Created with Sketch. deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/light/icons/di_ok_16px.svg000066400000000000000000000040131524745214100300370ustar00rootroot00000000000000 ok Created with Sketch. deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/light/icons/di_popwarning_32px.svg000066400000000000000000000064651524745214100316250ustar00rootroot00000000000000 warning Created with Sketch. deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/light/icons/di_split_line_220px.svg000066400000000000000000000014441524745214100316520ustar00rootroot00000000000000 Line Created with Sketch. deepin-deb-installer-6.5.51/assets/icons/deepin/builtin/light/icons/di_warning_16px.svg000066400000000000000000000042241524745214100310770ustar00rootroot00000000000000 warning 2 Created with Sketch. deepin-deb-installer-6.5.51/assets/icons/deepin/uab/000077500000000000000000000000001524745214100222345ustar00rootroot00000000000000deepin-deb-installer-6.5.51/assets/icons/deepin/uab/tips.dci000077500000000000000000000027711524745214100237060ustar00rootroot00000000000000DCI20normal.dark3k1.0.png.alpha8#../../normal.light/3/1.0.png.alpha8normal.lightf31.0.png.alpha8PNG  IHDR<< pHYsaa?iIDATH_hSW?Yvt`ຶBG vܸ0}) ܓ`{t1ƲaPPtuUR*Hr=sM5">w=6lauDX,Y1 c6wqx)ݪ^eo7 SISdFV}RZGG~(8:ͺ*J$k ZBKu.x8˹JM t',}~ak'6gLY$4_o s(4(r{<B|RcKr A6>03 Y(L{oOvpb_D|[+IpJ2h2ڞ->c$PX_ E w}~X{ŝޯ_}n8,g{XL{lxC, v96໿|he3tFƄ%~m@iB`[BR B+½a(0s_˵Xe1iaI1dP$YB'j*^xf[%b*lq&9稭:=ghW\S@k#x+? ;W9n sw=D)tU2zʿ?wf&[BrhJ,.v)K5zEh_rߪP^1dجNe$} "6Ru71\ր'g!ؿ8vi)0]=>vt#@􂭩0wn&|@[kgUwwZ348zjxc$O D}@/!wcMw@S=M[;*IENDB`deepin-deb-installer-6.5.51/assets/icons/deepin/uab/uos-application-bundle.dci000066400000000000000000001613031524745214100272770ustar00rootroot00000000000000DCI768snormal.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ˋ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՛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.51/assets/resources.qrc000066400000000000000000000045511524745214100216340ustar00rootroot00000000000000 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/uab/tips.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.51/assets/translate_generation.sh000077500000000000000000000003501524745214100236530ustar00rootroot00000000000000#!/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.51/assets/translate_ts2desktop.sh000077500000000000000000000005301524745214100236220ustar00rootroot00000000000000#!/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.51/cmake/000077500000000000000000000000001524745214100166645ustar00rootroot00000000000000deepin-deb-installer-6.5.51/cmake/translation-generate.cmake000066400000000000000000000026121524745214100240150ustar00rootroot00000000000000function(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.51/debian/000077500000000000000000000000001524745214100170265ustar00rootroot00000000000000deepin-deb-installer-6.5.51/debian/changelog000066400000000000000000000510061524745214100207020ustar00rootroot00000000000000deepin-deb-installer (6.5.51) unstable; urgency=medium * fix: update Arabic (ar) translations -- Liu Zhangjian Mon, 07 Sep 2026 11:30:58 +0800 deepin-deb-installer (6.5.50) unstable; urgency=medium * fix(immutable): support reinstall when same version installed -- liuzheng Mon, 24 Aug 2026 13:16:57 +0800 deepin-deb-installer (6.5.49) unstable; urgency=medium * [skip CI] Translate deepin-deb-installer.ts in ca * [skip CI] Translate deepin-deb-installer.ts in es * [skip CI] Translate deepin-deb-installer.ts in fi * [skip CI] Translate deepin-deb-installer.ts in pt_BR * chore: Sync by https://github.com/linuxdeepin/.github/commit/a300f8523d4876677112ed ab6a0772f7ad112976 * fix(depends): fix install loop when provider cannot satisfy versioned dep -- liuzheng Fri, 21 Aug 2026 14:56:49 +0800 deepin-deb-installer (6.5.48) unstable; urgency=medium * feat(dconfig): force one apt update on first launch * feat(i18n): update translations and add short compat-mode hint in batch list * chore: update version to 6.5.47 -- xiepengfei Thu, 16 Jul 2026 19:15:18 +0800 deepin-deb-installer (6.5.47) unstable; urgency=medium * feat(dconfig): add switch to skip apt cache refresh before install * chore: update version to 6.5.46 -- xiepengfei Thu, 02 Jul 2026 14:07:13 +0800 deepin-deb-installer (6.5.46) unstable; urgency=medium * fix(compat): show compat title on same-name pkg judgment view * chore: update version to 6.5.45 -- xiepengfei Thu, 25 Jun 2026 22:04:24 +0800 deepin-deb-installer (6.5.45) unstable; urgency=medium * fix(compat): check same-name pkg on right-click compat install * chore: update version to 6.5.44 -- xiepengfei Thu, 25 Jun 2026 19:47:50 +0800 deepin-deb-installer (6.5.44) unstable; urgency=medium * fix(compat): titlebar只在checkbox确认界面显示兼容模式安装 -- xiepengfei Wed, 24 Jun 2026 14:40:34 +0800 deepin-deb-installer (6.5.43) unstable; urgency=medium * refactor: restructure package cache update logic with signal-driven approach * fix: restore UI state properly after authorization check -- Liu Zhangjian Wed, 17 Jun 2026 15:35:32 +0800 deepin-deb-installer (6.5.42) unstable; urgency=medium * fix(compat): check arch mismatch before force compatible mode * fix(test): adapt unit tests for Qt6 compilation and runtime * chore: update version to 6.5.41 -- xiepengfei Thu, 04 Jun 2026 20:06:45 +0800 deepin-deb-installer (6.5.41) unstable; urgency=medium * fix(ui): fix compat mode reinstall failure after auth cancel * fix(ui): remove OS name prefix from compat mode uninstall hint * fix(ui): fix compat mode uninstall confirm text truncation * chore: update version to 6.5.40 -- xiepengfei Thu, 28 May 2026 17:46:45 +0800 deepin-deb-installer (6.5.40) unstable; urgency=medium * fix(ui): make compat mode hint icon follow system theme * fix(ui): show correct error on compat mode install failure * fix(ui): unify compat mode uninstall success message with normal mode * fix(i18n): simplify compat mode install success message * fix(ui): show correct error text and button on compat mode sig failure * chore: update version to 6.5.39 * fix(i18n): add missing translation for right-click compat install menu -- xiepengfei Thu, 21 May 2026 21:43:35 +0800 deepin-deb-installer (6.5.39) unstable; urgency=medium * fix(i18n): add missing translation for right-click compat install menu -- Liu Zheng Tue, 20 May 2026 17:47:00 +0800 deepin-deb-installer (6.5.38) unstable; urgency=medium * fix(ui): improve tooltip image hover detection in compat hint label * fix(ui): simplify compatible mode install progress text * fix(signature): keep package info visible on signature verify failure * fix(compatible): prevent UI reset on restore in compat confirm view * fix(compatible): update uninstall confirmation text and fix typo * feat(compatible): support reinstall and improve duplicate package hints * fix(context-menu): hide compatible install on multi-file selection * fix(install): abort installation when deb file no longer exists -- xiepengfei Wed, 20 May 2026 17:18:43 +0800 deepin-deb-installer (6.5.37) unstable; urgency=medium * fix(context-menu): avoid auto-activating installer service on state query -- Liu Zheng Fri, 15 May 2026 19:21:35 +0800 deepin-deb-installer (6.5.36) unstable; urgency=medium * fix(context-menu): hide compatible install in empty area right-click * feat(compat): hide settings menu in community edition * feat(compat): polish compatible mode UI styles * feat(compat): add --compatible flag and DBus-based plugin state management * feat(signature): redirect unsigned packages to security center * chore(i18n): update translation files for compatible mode UI * feat(signature): move digital signature verification before dependency check * feat(compat): remove rootfs combobox and redesign compatible install UI * refactor: decouple install backends via strategy pattern * feat: add DFM plugin for compatible mode deb installation * fix: disable DciIcon in Qt5 builds for 105x compatibility * fix: [build] cmake error at 105x env * fix(build): adapt cmake and source compatibility for v20/1050 * chore: update version to 6.5.35 -- xiepengfei Fri, 15 May 2026 17:04:37 +0800 deepin-deb-installer (6.5.35) unstable; urgency=medium * fix(packagesmanager): prioritize installed reverse providers -- Liu Zhangjian Thu, 23 Apr 2026 18:26:19 +0800 deepin-deb-installer (6.5.34) unstable; urgency=medium * feat: implement intelligent package cache update -- Liu Zhangjian Fri, 10 Apr 2026 16:29:59 +0800 deepin-deb-installer (6.5.33) unstable; urgency=medium * feat: add LoongArch compatible mode support -- Liu Zhangjian Thu, 09 Apr 2026 13:47:02 +0800 deepin-deb-installer (6.5.32) unstable; urgency=medium * fix: enhance package installation process for immutable systems -- dengzhongyuan Tue, 24 Mar 2026 19:45:22 +0800 deepin-deb-installer (6.5.31) unstable; urgency=medium * feat: add package cache update functionality -- Liu Zhangjian Thu, 29 Jan 2026 16:28:05 +0800 deepin-deb-installer (6.5.30) unstable; urgency=medium * Fix Qt5 build: disable compatible mode * fix: empty value check (#348) * fix: handle empty package version in conflict resolution (#346) - Add check for empty package version in replace logic - Fix potential issue when replace.packageVersion() is empty - Improve conflict resolution reliability * fix: [env] set user`s environment to QApt (#334) * fix: 双击ddim文件使用软件包安装器打开 * refactor: improve text wrapping and code formatting -- Liu Zhangjian Thu, 22 Jan 2026 16:14:13 +0800 deepin-deb-installer (6.5.29) unstable; urgency=medium * fix bugs -- Liu Zhangjian Thu, 23 Oct 2025 19:28:30 +0800 deepin-deb-installer (6.5.28) unstable; urgency=medium * fix: implement path transformation for package selection -- Liu Zhangjian Fri, 22 Aug 2025 13:05:57 +0800 deepin-deb-installer (6.5.27) unstable; urgency=medium * feat: Update translations for Lao locale (#350) -- dengzhongyuan Wed, 13 Aug 2025 18:01:51 +0800 deepin-deb-installer (6.5.26) unstable; urgency=medium * Update version to 6.5.26. -- Tian ShiLin Thu, 07 Aug 2025 17:46:18 +0800 deepin-deb-installer (6.5.25) unstable; urgency=medium * chore: Update the help manual -- Liu Zhangjian Thu, 10 Jul 2025 19:51:47 +0800 deepin-deb-installer (6.5.24) unstable; urgency=medium * update version to 6.5.24. -- Tian ShiLin Tue, 01 Jul 2025 20:34:52 +0800 deepin-deb-installer (6.5.23) unstable; urgency=medium * update translations. -- Liuyangming Thu, 26 Jun 2025 14:02:22 +0800 deepin-deb-installer (6.5.22) unstable; urgency=medium * chore: Update deepin-manual resources -- dengzhongyuan Mon, 23 Jun 2025 16:27:12 +0800 deepin-deb-installer (6.5.21) unstable; urgency=medium * update translations. -- Liuyangming Mon, 23 Jun 2025 13:40:31 +0800 deepin-deb-installer (6.5.20) unstable; urgency=medium * Add compiler flags. -- dengzhongyuan Wed, 18 Jun 2025 10:47:29 +0800 deepin-deb-installer (6.5.19) unstable; urgency=medium * Update version to 6.5.19. -- dengzhongyuan Tue, 17 Jun 2025 17:35:26 +0800 deepin-deb-installer (6.5.18) unstable; urgency=medium * Update version to 6.5.18. -- dengzhongyuan Thu, 08 May 2025 19:33:23 +0800 deepin-deb-installer (6.5.17) unstable; urgency=medium * fix: memory leak (#328)(Bug: 311727) -- renbin Tue, 29 Apr 2025 17:48:33 +0800 deepin-deb-installer (6.5.16) unstable; urgency=medium * fix: Remove outdated mimetype "application-x-uab" * fix: Add parent to QStandardItemModel * fix: Enhance remote file detection(Bug: 313783) -- renbin Thu, 24 Apr 2025 17:14:11 +0800 deepin-deb-installer (6.5.15) unstable; urgency=medium * chore: update translations. -- renbin Thu, 17 Apr 2025 09:39:21 +0800 deepin-deb-installer (6.5.14) unstable; urgency=medium * chore: update translations * fix: support url(Bug: 312003) * fix: Fix dependency removal in graph(Bug: 311897) -- renbin Thu, 10 Apr 2025 16:06:15 +0800 deepin-deb-installer (6.5.13) unstable; urgency=medium * chore: update desktop file * feat: adapt new black list config file path(Task: 374685) -- renbin Wed, 02 Apr 2025 15:44:58 +0800 deepin-deb-installer (6.5.12) unstable; urgency=medium * fix: wrong linked package name(Bug: 309051) * fix: optimize symbolic link file naming logic(Bug: 309051) -- renbin Thu, 27 Mar 2025 16:56:59 +0800 deepin-deb-installer (6.5.11) unstable; urgency=medium * i18n: Updates for project Deepin Package Installer (#306) * fix: remove duplicate package status detections.(Bug: 307921) * [skip CI] Translate deepin-deb-installer.ts in ja * fix: remove unnecessary check(Bug: 307705) * fix: skip first package check if cached.(Bug: 307705) -- renbin Thu, 20 Mar 2025 19:03:46 +0800 deepin-deb-installer (6.5.10) unstable; urgency=medium * fix: can not downgrades(Bug: 305705) * fix: get rootfs list incorrect(Bug: 306523) * chore: update translations.(Bug: 306531) -- renbin Thu, 06 Mar 2025 19:04:14 +0800 deepin-deb-installer (6.5.9) unstable; urgency=medium * feat: support uab mimetype -- renbin Fri, 28 Feb 2025 14:26:36 +0800 deepin-deb-installer (6.5.8) unstable; urgency=medium * i18n: Updates for project Deepin Package Installer (#298) * fix: app hangs when install uab without linglong(Bug: 292077) -- renbin Thu, 27 Feb 2025 19:13:38 +0800 deepin-deb-installer (6.5.7) unstable; urgency=medium * fix: init rootfs first -- renbin Thu, 20 Feb 2025 20:50:21 +0800 deepin-deb-installer (6.5.6) unstable; urgency=medium * fix: no install log output(Bug: 303125) * feat: Add app compatibility check and enhance compatible mode -- renbin Thu, 20 Feb 2025 19:36:26 +0800 deepin-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.51/debian/compat000066400000000000000000000000021524745214100202240ustar00rootroot000000000000009 deepin-deb-installer-6.5.51/debian/control000066400000000000000000000021611524745214100204310ustar00rootroot00000000000000Source: deepin-deb-installer Section: utils Priority: optional Maintainer: Deepin Packages Builder Build-Depends: debhelper (>= 9), pkg-config, cmake, qt6-5compat-dev, qt6-base-dev, qt6-tools-dev-tools, qt6-tools-dev, qt6-svg-dev, libdtk6widget-dev, libdtk6gui-dev, libdtk6core-dev, libqapt-qt6-dev, libpolkit-qt6-1-dev, libgtest-dev, deepin-gettext-tools, dde-file-manager-dev, Standards-Version: 4.3.0 Homepage: https://www.deepin.com/ Package: deepin-deb-installer Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libqapt3-qt6-runtime, libqapt3-qt6, # 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.51/debian/control.1000066400000000000000000000020761524745214100205750ustar00rootroot00000000000000Source: deepin-deb-installer Section: utils Priority: optional Maintainer: Deepin Packages Builder Build-Depends: debhelper (>= 9), pkg-config, cmake, qtbase5-dev, qttools5-dev-tools, qttools5-dev, libqt5svg5-dev, libdtkwidget-dev, libdtkgui-dev, libdtkcore-dev, libqapt-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}, libqapt-runtime, 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.51/debian/copyright000066400000000000000000000126541524745214100207710ustar00rootroot00000000000000Format: 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.51/debian/deepin-deb-installer-dependsInstall.1000066400000000000000000000021431524745214100260460ustar00rootroot00000000000000.\" 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.51/debian/deepin-deb-installer.1000066400000000000000000000032201524745214100230740ustar00rootroot00000000000000.\" 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.51/debian/deepin-deb-installer.lintian-overrides000066400000000000000000000001561524745214100263770ustar00rootroot00000000000000deepin-deb-installer: non-dev-pkg-with-shlib-symlink deepin-deb-installer: package-name-doesnt-match-sonames deepin-deb-installer-6.5.51/debian/manpages000066400000000000000000000001131524745214100205370ustar00rootroot00000000000000debian/deepin-deb-installer.1 debian/deepin-deb-installer-dependsInstall.1 deepin-deb-installer-6.5.51/debian/postinst000077500000000000000000000002541524745214100206400ustar00rootroot00000000000000#!/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.51/debian/rules000077500000000000000000000022271524745214100201110ustar00rootroot00000000000000#!/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.51/debian/source/000077500000000000000000000000001524745214100203265ustar00rootroot00000000000000deepin-deb-installer-6.5.51/debian/source/format000066400000000000000000000000151524745214100215350ustar00rootroot000000000000003.0 (native) deepin-deb-installer-6.5.51/src/000077500000000000000000000000001524745214100163735ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/AptInstallDepend/000077500000000000000000000000001524745214100215665ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/AptInstallDepend/CMakeLists.txt000066400000000000000000000035041524745214100243300ustar00rootroot00000000000000# 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") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIE") # 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.51/src/AptInstallDepend/installDebThread.cpp000066400000000000000000000474131524745214100255140ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022-2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "installDebThread.h" #include #include 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 kParamReinstall = "reinstall"; 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 kCompCheck = "check"; static const QString kCompApp = "app"; static const QString kCompRootfs = "rootfs"; static const QString kCompRootfsName = "--name"; static const QString kCompJsonFormat = "--json"; // current user(non root) static const QString kCompUser = "user"; // for disable DebConf static const QString kDebConfEnv = "DEBIAN_FRONTEND"; static const QString kDebConfDisable = "noninteractive"; InstallDebThread::InstallDebThread() { qDebug() << "Initializing 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() { qDebug() << "Destroying InstallDebThread"; if (m_proc) delete m_proc; } void InstallDebThread::setParam(const QStringList &arguments) { if (!m_listParam.isEmpty()) { qDebug() << "m_listParam is not empty, return"; return; } // normal command static QMap kParamMap{{kParamInstallWine, InstallWine}, {kParamInstallConfig, InstallConfig}, {kParamInstallComaptible, Compatible}, {kParamInstallImmutable, Immutable}, {kParamInstallUab, LinglongUab}, {kParamReinstall, Reinstall}, {kInstall, Install}, {kRemove, Remove}, {kCompCheck, AppCheck}}; for (auto itr = kParamMap.begin(); itr != kParamMap.end(); ++itr) { m_parser.addOption(QCommandLineOption(itr.key())); } QCommandLineOption rootfsOpt(kCompRootfs, "", "rootfsname"); m_parser.addOption(rootfsOpt); QCommandLineOption userOpt(kCompUser, "", "current user"); m_parser.addOption(userOpt); 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); qDebug() << "isSet rootfsOpt, m_rootfs:" << m_rootfs; } if (m_parser.isSet(userOpt)) { m_user = m_parser.value(userOpt); qDebug() << "isSet userOpt, m_user:" << m_user; } m_listParam = m_parser.positionalArguments(); qDebug() << "Set param end, m_listParam:" << m_listParam; } void InstallDebThread::getDescription(const QString &debPath) { qDebug() << "Get description:" << debPath; // system() 存在可控命令参数注入漏洞,即使拼接也存在命令分隔符(特殊字符)机制,因此更换方式去执行命令 QProcess process; process.start("dpkg", {"-e", debPath, TEMPLATE_DIR}); process.waitForFinished(-1); qDebug() << "Exec finished:" << "dpkg -e " << debPath << " " << TEMPLATE_DIR; 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(); } else { qDebug() << "Open file error:" << file.errorString(); } } void InstallDebThread::onReadoutput() { qDebug() << "onReadoutput"; QString tmp = m_proc->readAllStandardOutput().data(); qDebug() << "read output tmp:" << 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); qDebug() << "break, finished write input:" << str; break; } } } } void InstallDebThread::onFinished(int num, QProcess::ExitStatus exitStatus) { qDebug() << "onFinished:" << num << exitStatus; m_resultFlag = num; } void InstallDebThread::run() { qDebug() << "thread enter run >>"; if (m_listParam.isEmpty()) { qDebug() << "m_listParam is empty, return"; return; } if (m_cmds.testFlag(InstallWine)) { qDebug() << "cmd test flag: InstallWine"; installWine(); } else if (m_cmds.testFlag(Compatible)) { qDebug() << "cmd test flag: Compatible"; compatibleProcess(); } else if (m_cmds.testFlag(Immutable)) { qDebug() << "cmd test flag: Immutable"; immutableProcess(); } else if (m_cmds.testFlag(InstallConfig)) { qDebug() << "cmd test flag: InstallConfig"; // InstallConfig must last, Compatible and Immutable maybe set InstallConfig too. installConfig(); } else if (m_cmds.testFlag(LinglongUab)) { qDebug() << "cmd test flag: LinglongUab"; uabProcessCli(); } else { qDebug() << "other unknow cmd:" << m_cmds; } } /** * @brief Install the Wine dependency package, the incoming param is the wine package name. */ void InstallDebThread::installWine() { qDebug() << "InstallWine"; if (m_listParam.isEmpty()) { qDebug() << "m_listParam is empty, return"; return; } // Note: Notify the front-end installation to start, don't remove it. qDebug() << "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(); qDebug() << "Exec finished:" << "apt-get install " << m_listParam << "-y"; } /** @brief Install the package that contains DebConf. Work with deepin-deb-installer to handle the configuration process of Deb packages. */ void InstallDebThread::installConfig() { qDebug() << "InstallConfig"; if (m_listParam.isEmpty()) { qDebug() << "m_listParam is empty, return"; return; } QString debPath = m_listParam.first(); const QFileInfo info(debPath); const QFile debFile(debPath); qDebug() << "debPath:" << 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后缀 qDebug() << "StartInstallAptConfig"; getDescription(debPath); m_proc->setProgram("sudo", QStringList() << "-S" << "dpkg" << "-i" << debPath); m_proc->start(); m_proc->waitForFinished(-1); qDebug() << "Exec finished:" << "sudo dpkg -i " << debPath; QDir filePath(TEMPLATE_DIR); if (filePath.exists()) { qDebug() << "remove dir:" << TEMPLATE_DIR; filePath.removeRecursively(); } m_proc->close(); qDebug() << "EndInstallAptConfig"; } qDebug() << "EndInstallConfig"; } /** @brief Install / remove package in compatible mode. */ void InstallDebThread::compatibleProcess() { qDebug() << "CompatibleProcess"; if (m_listParam.isEmpty()) { qDebug() << "m_listParam is empty, return"; return; } QStringList params; if (m_cmds.testFlag(Install)) { // only one package support QString debPath = m_listParam.first(); qDebug() << "flag Install, debPath:" << debPath; if (debPath.contains(" ") || debPath.contains("&") || debPath.contains(";") || debPath.contains("|") || debPath.contains("`")) { debPath = SymbolicLink(debPath, "installPackage"); } if (m_cmds.testFlag(InstallConfig)) { qDebug() << "flag InstallConfig"; getDescription(debPath); } // e.g.: deepin-comptabile-ctl app --json install [deb file] [--name rootfsname] params << kCompApp << kCompJsonFormat << kInstall << debPath; } else if (m_cmds.testFlag(Remove)) { // e.g.: deepin-compatible-ctl app --json remove [package name] params << kCompApp << kCompJsonFormat << kRemove << m_listParam.first(); qDebug() << "flag Remove, package name:" << m_listParam.first(); } else if (m_cmds.testFlag(AppCheck)) { // e.g.: deepin-compatible-ctl app --json check [package name] params << kCompApp << kCompJsonFormat << kCompCheck << m_listParam.first(); qDebug() << "flag AppCheck, package name:" << m_listParam.first(); } else { qDebug() << "return, other unknow cmd:" << m_cmds; return; } if (!m_rootfs.isEmpty()) { qDebug() << "flag Compatible, rootfs name:" << m_rootfs; params << kCompRootfsName << m_rootfs; } if (!m_user.isEmpty()) { qDebug() << "flag Compatible, current user:" << m_user; auto env = QProcessEnvironment::systemEnvironment(); env.insert("SUDO_USER", m_user); m_proc->setProcessEnvironment(env); } m_proc->setProgram(kCompatibleBin, params); qInfo() << "Exec:" << qPrintable(m_proc->program().join(' ')); m_proc->start(); m_proc->waitForFinished(-1); m_proc->close(); qDebug() << "Exec finished:" << qPrintable(m_proc->program().join(' ')); QDir filePath(TEMPLATE_DIR); if (filePath.exists()) { qDebug() << "remove dir:" << TEMPLATE_DIR; filePath.removeRecursively(); } qDebug() << "EndCompatibleProcess"; } bool newImmutableVersion() { qDebug() << "Check new immutable version"; QProcess process; process.start("dpkg-query", {"-W", "-f='${Version}'", "deepin-immutable-ctl"}); process.waitForFinished(); QString versionStr = process.readAllStandardOutput(); qDebug() << "deepin-immutable-ctl version:" << versionStr; QVersionNumber version = QVersionNumber::fromString(versionStr.remove('\'')); return version >= QVersionNumber(0, 0, 28); } /** @brief Install / remove package in immutable system. */ void InstallDebThread::immutableProcess() { qDebug() << "ImmutableProcess"; if (m_listParam.isEmpty()) { qDebug() << "m_listParam is empty, return"; return; } // for immutable system static const QString kImmuEnvEnableWait = "DEEPIN_IMMUTABLE_CTL_WAIT_LOCK"; static const QString kImmuYes = "-y"; static const QString kImmuAllowDowngrades = "--allow-downgrades"; static const QString kImmuReinstall = "--reinstall"; QStringList params; if (m_cmds.testFlag(Install)) { // e.g.: deepin-compatible app install [deb file] // only one package support QString debPath = m_listParam.first(); qDebug() << "flag Install, debPath:" << debPath; if (debPath.contains(" ") || debPath.contains("&") || debPath.contains(";") || debPath.contains("|") || debPath.contains("`")) { debPath = SymbolicLink(debPath, "installPackage"); } if (m_cmds.testFlag(InstallConfig)) { getDescription(debPath); qDebug() << "flag InstallConfig, get description"; } else { // If current pacakge no DebConf config, disable DebConf m_proc->setEnv(kDebConfEnv, kDebConfDisable); qDebug() << "other flag, set Env"; } // Note: deepin-immutable-ctl actually use apt to install/uninstall. (params transport to deepin-immutable-ctl) // e.g.: apt install [deb file] -y (--allow-downgrades) (--reinstall) params << kInstall << debPath << kImmuYes; // FIXME: temporary code, check if current Immutable System need --allow-downgrades if (newImmutableVersion()) { qDebug() << "new immutable version, add --allow-downgrades"; params << kImmuAllowDowngrades; } // apt skips when the same version is already installed, force reinstall if (m_cmds.testFlag(Reinstall)) { qDebug() << "flag Reinstall, add --reinstall"; params << kImmuReinstall; } } else if (m_cmds.testFlag(Remove)) { // e.g.: apt remove [package name] -y params << kRemove << m_listParam.first() << kImmuYes; qDebug() << "flag Remove, package name:" << m_listParam.first(); // Disable DebConf while remove package m_proc->setEnv(kDebConfEnv, kDebConfDisable); } else { qDebug() << "return, other unknow cmd:" << m_cmds; return; } qDebug() << "params:" << params; // 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(); qDebug() << "Exec finished:" << qPrintable(m_proc->program().join(' ')); QDir filePath(TEMPLATE_DIR); if (filePath.exists()) { qDebug() << "remove dir:" << TEMPLATE_DIR; filePath.removeRecursively(); } qDebug() << "EndImmutableProcess"; } /** @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() { qDebug() << "UabProcessCli"; if (m_listParam.isEmpty()) { qDebug() << "m_listParam is empty, return"; 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(); qDebug() << "flag Install, uabPath:" << m_listParam.first(); } else if (m_cmds.testFlag(Remove)) { // e.g.: ll-cli uninstall --json [id/version] params << kUabUninstall << kUabJson << m_listParam.first(); qDebug() << "flag Remove, package name:" << m_listParam.first(); } else { qDebug() << "return, other unknow cmd:" << m_cmds; return; } m_proc->setProgram(kUabBin, params); qInfo() << "Exec:" << qPrintable(m_proc->program().join(' ')); m_proc->start(); m_proc->waitForFinished(-1); m_proc->close(); qDebug() << "Exec finished:" << qPrintable(m_proc->program().join(' ')); } /** * @brief PackagesManager::SymbolicLink 创建软连接 * @param previousName 原始路径 * @param packageName 软件包的包名 * @return 软链接的路径 */ QString InstallDebThread::SymbolicLink(const QString &previousName, const QString &packageName) { qDebug() << "SymbolicLink"; if (!mkTempDir()) { qWarning() << "Failed to create temporary folder, return:" << previousName; return previousName; } return link(previousName, packageName); } /** * @brief PackagesManager::mkTempDir 创建软链接存放的临时目录 * @return 创建目录的结果 */ bool InstallDebThread::mkTempDir() { qDebug() << "mkTempDir"; QDir tempPath(m_tempLinkDir); if (!tempPath.exists()) { qDebug() << "Create temporary folder:" << m_tempLinkDir; return tempPath.mkdir(m_tempLinkDir); } else { qDebug() << "Temporary folder already exists:" << m_tempLinkDir; return true; } } /** * @brief PackagesManager::rmTempDir 删除存放软链接的临时目录 * @return 删除临时目录的结果 */ bool InstallDebThread::rmTempDir() { qDebug() << "rmTempDir"; QDir tempPath(m_tempLinkDir); if (tempPath.exists()) { qDebug() << "Remove temporary folder:" << m_tempLinkDir; return tempPath.removeRecursively(); } else { qDebug() << "Temporary folder does not exist:" << m_tempLinkDir; 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 { qDebug() << "break, tempName:" << tempName; 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.51/src/AptInstallDepend/installDebThread.h000066400000000000000000000040351524745214100251520ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022-2026 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) AppCheck = 1 << 8, // compatible appcheck Reinstall = 1 << 9, // reinstall same version installed package }; 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 QString m_user; KProcess *m_proc; QStringList m_listParam; QList m_listDescribeData; int m_resultFlag = -1; }; #endif // INSTALLDEBTHREAD_H deepin-deb-installer-6.5.51/src/AptInstallDepend/main.cpp000066400000000000000000000030161524745214100232160ustar00rootroot00000000000000// 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()) { qWarning() << "Invalid invoker"; return 1; } InstallDebThread mThread; mThread.setParam(app.arguments()); mThread.run(); mThread.wait(); return mThread.retFlag(); } deepin-deb-installer-6.5.51/src/deb-installer/000077500000000000000000000000001524745214100211205ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/deb-installer/CMakeLists.txt000066400000000000000000000224251524745214100236650ustar00rootroot00000000000000# 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) # Qt5环境且QApt版本>=3.0.5.1-1-deepin1,支持setEnvVariable方法 add_definitions(-DENABLE_QAPT_SETENV) 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) # Qt5环境不支持兼容模式(QThreadPool::start不支持lambda) if (NOT QT_DESIRED_VERSION MATCHES 6) add_definitions(-DDISABLE_COMPATIBLE) message(STATUS "Qt5 environment detected, disabling compatible mode") endif() # 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}) if (QT_DESIRED_VERSION MATCHES 6) find_package(Dtk${DTK_VERSION_MAJOR} COMPONENTS Core Gui Widget REQUIRED) set(DTK_WIDGET_LIB Dtk${DTK_VERSION_MAJOR}::Widget) set(DTK_CORE_LIB Dtk${DTK_VERSION_MAJOR}::Core) set(DTK_GUI_LIB Dtk${DTK_VERSION_MAJOR}::Gui) else() find_package(DtkWidget REQUIRED) find_package(DtkGui REQUIRED) find_package(DtkCore REQUIRED) set(DTK_WIDGET_LIB ${DtkWidget_LIBRARIES}) set(DTK_CORE_LIB ${DtkCore_LIBRARIES}) if (DEFINED DtkGui_LIBRARIES) set(DTK_GUI_LIB ${DtkGui_LIBRARIES}) else() set(DTK_GUI_LIB ${DtkGUI_LIBRARIES}) endif() endif() set(DCONFIG_APPID deepin-deb-installer) set(DCONFIG_SCHEMA_FILE ${APP_RES_DIR}/deepin-deb-installer.cache.json) if (DEFINED DSG_DATA_DIR) message(STATUS "DConfig is supported by DTK, installing schema") if (QT_DESIRED_VERSION MATCHES 6) dtk_add_config_meta_files(APPID ${DCONFIG_APPID} FILES ${DCONFIG_SCHEMA_FILE}) else() dconfig_meta_files(APPID ${DCONFIG_APPID} FILES ${DCONFIG_SCHEMA_FILE}) endif() endif() set(DTK_INCLUDE_DIRS) foreach(dtk_include_dir_var DtkWidget_INCLUDE_DIRS DtkGui_INCLUDE_DIRS DtkGUI_INCLUDE_DIRS DtkCore_INCLUDE_DIRS) if (DEFINED ${dtk_include_dir_var}) list(APPEND DTK_INCLUDE_DIRS ${${dtk_include_dir_var}}) endif() endforeach() if(DEFINED DTK_INCLUDE_DIRS) list(REMOVE_DUPLICATES DTK_INCLUDE_DIRS) endif() 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_WIDGET_LIB} ${DTK_CORE_LIB} ${DTK_GUI_LIB} 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 ${DTK_INCLUDE_DIRS} ${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.51/src/deb-installer/compatible/000077500000000000000000000000001524745214100232375ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/deb-installer/compatible/compatible_backend.cpp000066400000000000000000000340231524745214100275330ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "compatible_backend.h" #include "compatible_json_parser.h" #include "utils/ddlog.h" #include #include #include #include #include #include #include namespace Compatible { // compatible controller params static const QString kCompatibleBin = "deepin-compatible-ctl"; static const QString kCompJsonFormat = "--json"; static const QString kCompList = "list"; static const QString kCompListAll = "-a"; 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"; static const QString kCompCheck = "check"; static const QString kCompPS = "ps"; CompatibleBackend::CompatibleBackend(QObject *parent) : QObject{parent} { recheckCompatibleExists(); } CompatibleBackend *CompatibleBackend::instance() { static CompatibleBackend ins; return &ins; } #ifndef DISABLE_COMPATIBLE bool CompatibleBackend::compatibleValid() const { // TODO: check rootfs list later, with `app check` return m_init /*&& !m_rootfsList.isEmpty()*/; } bool CompatibleBackend::compatibleInited() const { return m_init; } 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(); qCDebug(appLog) << "check compatible return: " << m_compatibleExists; return m_compatibleExists; } #endif QList CompatibleBackend::rootfsList() const { return m_rootfsList; } QString CompatibleBackend::osName(const QString &rootfsName) const { qCDebug(appLog) << "get os name for rootfs: " << rootfsName; auto findItr = std::find_if(m_rootfsList.begin(), m_rootfsList.end(), [&](const RootfsInfo::Ptr &rootfsPtr) { return rootfsPtr->name == rootfsName; }); if (findItr != m_rootfsList.end()) { auto osName = (*findItr)->osName; qCDebug(appLog) << "find os name: " << osName; return osName; } qCDebug(appLog) << "os name not found for rootfs: " << rootfsName; return {}; } CompPkgInfo::Ptr CompatibleBackend::containsPackage(const QString &packageName) { return m_packages.value(packageName); } void CompatibleBackend::packageInstalled(const CompPkgInfo::Ptr &appendPtr) { qCDebug(appLog) << "Adding installed package to list:" << appendPtr->name << appendPtr->version; if (!appendPtr) { qCDebug(appLog) << "appendPtr is null, return"; return; } appendPtr->rootfs = appendPtr->targetRootfs; m_packages.insert(appendPtr->name, appendPtr); qCDebug(appLog) << "Adding package to list:" << appendPtr->name << appendPtr->version; } void CompatibleBackend::packageRemoved(const CompPkgInfo::Ptr &removePtr) { qCDebug(appLog) << "Removing removed package from list:" << removePtr->name << removePtr->version; if (!removePtr) { qCDebug(appLog) << "removePtr is null, return"; return; } removePtr->rootfs.clear(); m_packages.remove(removePtr->name); qCDebug(appLog) << "Removing package from list:" << removePtr->name << removePtr->version; } #ifndef DISABLE_COMPATIBLE bool CompatibleBackend::supportAppCheck() const { return true; } bool CompatibleBackend::checkPackageSupportRootfs(const CompPkgInfo::Ptr &checkPtr) { qCDebug(appLog) << "Checking package support rootfs"; if (!checkPtr || checkPtr->filePath.isEmpty() || !supportAppCheck()) { qCDebug(appLog) << "checkPtr is null or empty, return false"; return false; } QString captureFilePath = checkPtr->filePath; captureFilePath.detach(); qCDebug(appLog) << "check package file path: " << captureFilePath; QThreadPool::globalInstance()->start( [=]() { #if 1 // This is a temporary change QList rootfs; QProcess queryProcess; queryProcess.setProgram(kCompatibleBin); // FIXME: we need init rootfs? queryProcess.setArguments({kCompApp, kCompPS}); queryProcess.start(); // 30s not enough for init, up to 20mins. if (queryProcess.waitForFinished(20 * 60 * 1000)) { queryProcess.setArguments({kCompRootFs, kCompList}); queryProcess.start(); if (queryProcess.waitForFinished()) { QByteArray output = queryProcess.readAllStandardOutput(); rootfs = parseRootfsFromRawOutputV2(output); } } else { qCWarning(appLog) << "Delay get(init) rootfs list failed! " << queryProcess.errorString(); } #else // app check require root privileges // e.g.: pkexec deepin-deb-installer-dependsInstall --install_compatible --check [file path] --user [current user] // And real command in backend: deepin-compatible-ctl app --json check [file path] QStringList params{"deepin-deb-installer-dependsInstall", "--install_compatible", "--check", captureFilePath}; auto env = QProcessEnvironment::systemEnvironment(); QString currentUser = env.value("USER"); if (!currentUser.isEmpty()) { params << "--user" << currentUser; } // up to 10 mins QProcess checkProc; checkProc.start("pkexec", params); checkProc.waitForFinished(1000 * 60 * 10); if (QProcess::UnknownError != checkProc.error()) { qCWarning(appLog) << "Compatible app check failed: " << checkProc.errorString(); } QList rootfs; // get last json output QByteArray checkOutput = checkProc.readAllStandardOutput().trimmed(); int lastLineOffset = checkOutput.lastIndexOf('\n'); if (-1 != lastLineOffset) { QByteArray lastLine = checkOutput.mid(lastLineOffset + 1); qCInfo(appLog) << "Parse app check return" << lastLine; auto ret = CompatibleJsonParser::parseCommonField(lastLine); if (ret && CompSuccess == ret->code) { // parse rootfs info rootfs = CompatibleJsonParser::parseSupportfsList(ret); } } #endif // update data on GUI thread QMetaObject::invokeMethod( qApp, [=]() { // FIXME: we need init rootfs? CompatibleBackend::instance()->m_rootfsList = rootfs; checkPtr->checked = true; checkPtr->supportRootfs = rootfs; Q_EMIT CompatibleBackend::instance()->packageSupportRootfsChanged(checkPtr); }, Qt::QueuedConnection); }, QThread::TimeCriticalPriority); qCDebug(appLog) << "Check package support rootfs finished, return true"; return true; } #endif QList CompatibleBackend::parseRootfsFromRawOutputV1(const QByteArray &output) { QTextStream stream(output, QIODevice::ReadOnly); qCDebug(appLog) << "parse rootfs from raw output: " << output; // 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); } qCDebug(appLog) << "parse rootfs from raw output finished, size: " << rootfsList.size(); return rootfsList; } QList CompatibleBackend::parseRootfsFromRawOutputV2(const QByteArray &output) { /* e.g.: ID Name Image Status -------------------------------------------------------------------------------- 4aeedabc79a4 uos-rootfs-20 localhost/uos-rootfs-20:latest Up 6 minutes */ QTextStream stream(output, QIODevice::ReadOnly); qCDebug(appLog) << "V2 parse rootfs from raw output: " << output; // remove title stream.readLine(); stream.readLine(); QList rootfsList; QString deprecated; while (!stream.atEnd()) { auto rootfsPtr = RootfsInfo::Ptr::create(); stream >> deprecated; stream >> rootfsPtr->name; stream.readLine(); rootfsPtr->osName = rootfsPtr->name; rootfsList.append(rootfsPtr); } qCDebug(appLog) << "V2 parse rootfs from raw output finished, size: " << rootfsList.size(); return rootfsList; } QHash CompatibleBackend::parseAppListFromRawOutput(const QByteArray &output) { QHash packageList; qCDebug(appLog) << "parse app list from raw output: " << output; 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); } qCDebug(appLog) << "parse app list from raw output finished, size: " << packageList.size(); return packageList; } void CompatibleBackend::initBackend(bool async) { qCDebug(appLog) << "init compatible backend: " << async; if (!compatibleExists()) { qCDebug(appLog) << "Compatible backend not exists, return"; return; } static std::once_flag kCompInitFlag; std::call_once(kCompInitFlag, [this, async]() { if (async) { QtConcurrent::run([this]() { CompatibleBackend::backendProcessWithRaw(this); }); } else { CompatibleBackend::backendProcessWithRaw(this); } }); qCDebug(appLog) << "init compatible backend finished"; } void CompatibleBackend::backendProcessWithRaw(CompatibleBackend *backend) { QHash packages; QList rootfsList; QByteArray output; qCDebug(appLog) << "Compatible backend process with raw"; QProcess queryProcess; queryProcess.setProgram(kCompatibleBin); queryProcess.setArguments({kCompRootFs, kCompList}); queryProcess.start(); if (queryProcess.waitForFinished()) { output = queryProcess.readAllStandardOutput(); rootfsList = parseRootfsFromRawOutputV2(output); } else { qCWarning(appLog) << "Get rootfs list failed! " << queryProcess.errorString(); } queryProcess.setArguments({kCompApp, kCompList, kCompListAll}); queryProcess.start(); if (queryProcess.waitForFinished()) { output = queryProcess.readAllStandardOutput(); packages = parseAppListFromRawOutput(output); } else { qCWarning(appLog) << "Get app list failed! " << queryProcess.errorString(); } // 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); qCDebug(appLog) << "Compatible backend process finished"; } void CompatibleBackend::backendProcessWithJson(CompatibleBackend *backend) { QHash packages; QList rootfsList; QByteArray output; CompatibleRet::Ptr retPtr; qCDebug(appLog) << "Compatible backend process with json"; QProcess queryProcess; queryProcess.setProcessChannelMode(QProcess::MergedChannels); queryProcess.setProgram(kCompatibleBin); queryProcess.setArguments({kCompApp, kCompJsonFormat, kCompList, kCompListAll}); queryProcess.start(); if (queryProcess.waitForFinished()) { output = queryProcess.readAll(); retPtr = CompatibleJsonParser::parseCommonField(output); packages = CompatibleJsonParser::parseAppList(retPtr); } else { qCWarning(appLog) << "Get app list failed! " << queryProcess.errorString(); } queryProcess.setArguments({kCompRootFs, kCompJsonFormat, kCompList}); queryProcess.start(); if (queryProcess.waitForFinished()) { output = queryProcess.readAllStandardOutput(); retPtr = CompatibleJsonParser::parseCommonField(output); rootfsList = CompatibleJsonParser::parseRootfsList(retPtr); } else { qCWarning(appLog) << "Get rootfs list failed! " << queryProcess.errorString(); } // 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); qCDebug(appLog) << "Compatible backend process finished"; } void CompatibleBackend::initFinished(const QList &rootfsList, const QHash &packages) { m_init = true; m_rootfsList = rootfsList; m_packages = packages; qCInfo(appLog) << "Comaptible init finished, rootfs: " << m_rootfsList << "Package size: " << m_packages.size(); Q_EMIT compatibleInitFinished(); } }; // namespace Compatible deepin-deb-installer-6.5.51/src/deb-installer/compatible/compatible_backend.h000066400000000000000000000066341524745214100272070ustar00rootroot00000000000000// 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 compatibleInited() const { return false; } [[nodiscard]] bool compatibleExists() const { return false; } bool recheckCompatibleExists() { return false; } #else [[nodiscard]] bool compatibleValid() const; [[nodiscard]] bool compatibleInited() 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); // use app check support rootfs with special package #ifdef DISABLE_COMPATIBLE [[nodiscard]] bool supportAppCheck() const { return false; } [[nodiscard]] bool checkPackageSupportRootfs(const CompPkgInfo::Ptr &checkPtr) { Q_UNUSED(checkPtr); return false; } #else [[nodiscard]] bool supportAppCheck() const; [[nodiscard]] bool checkPackageSupportRootfs(const CompPkgInfo::Ptr &checkPtr); #endif Q_SIGNAL void packageSupportRootfsChanged(const CompPkgInfo::Ptr &checkPtr); private: explicit CompatibleBackend(QObject *parent = nullptr); ~CompatibleBackend() override = default; void initFinished(const QList &rootfsList, const QHash &packages); // parse raw output data static void backendProcessWithRaw(CompatibleBackend *backend); [[nodiscard]] static QList parseRootfsFromRawOutputV1(const QByteArray &output); [[nodiscard]] static QList parseRootfsFromRawOutputV2(const QByteArray &output); [[nodiscard]] static QHash parseAppListFromRawOutput(const QByteArray &output); // parse json output data static void backendProcessWithJson(CompatibleBackend *backend); 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.51/src/deb-installer/compatible/compatible_defines.h000066400000000000000000000021611524745214100272240ustar00rootroot00000000000000// 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 #include namespace Compatible { enum CompResultCode { CompSuccess = 0, CompError = -1, }; struct RootfsInfo { using Ptr = QSharedPointer; int prioriy{0}; QString name; QString osName; }; 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 bool checked{false}; // mark check current support rootfs QList supportRootfs; // current support rootfs list (use deepin-compatible-ctl app check) inline bool installed() const { return !rootfs.isEmpty(); } }; } // namespace Compatible #endif // COMPATIBLE_DEFINES_H deepin-deb-installer-6.5.51/src/deb-installer/compatible/compatible_json_parser.cpp000066400000000000000000000150441524745214100304730ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2025 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "compatible_json_parser.h" #include "compatible_backend.h" #include "utils/ddlog.h" #include #include #include namespace Compatible { static const QString kFieldCode = "Code"; static const QString kFieldMsg = "Msg"; static const QString kFieldExt = "Ext"; CompatibleJsonParser::CompatibleJsonParser() {} /** @brief parse deepin-compatible-ctl result @example {"Code":0,"Msg":null,"Ext":{"Code":0,"Msg":["成功 [\n {\n \"name\": \"hello\",\n \"version\": \"2.10-2\",\n \"arch\": \"amd64\"\n },\n {\n \"name\": \"tree\",\n \"version\": \"1.8.0-1\",\n \"arch\": \"amd64\"\n }\n]"]}} */ CompatibleRet::Ptr CompatibleJsonParser::parseCommonField(const QByteArray &jsonString) { qCDebug(appLog) << "Parse common field"; if (jsonString.isEmpty()) { qCWarning(appLog) << "Empty json string"; return {}; } QJsonParseError err; QJsonDocument doc = QJsonDocument::fromJson(jsonString, &err); if (QJsonParseError::NoError != err.error) { qCWarning(appLog) << QString("Parse compatible result failed: %1 offset:%2").arg(err.errorString()).arg(err.offset); return {}; } auto rootObj = doc.object(); auto ret = CompatibleRet::Ptr::create(); ret->code = rootObj.value(kFieldCode).toInt(); ret->message = rootObj.value(kFieldMsg).toString(); auto extObj = rootObj.value(kFieldExt).toObject(); if (!extObj.isEmpty()) { ret->ext.code = extObj.value(kFieldCode).toInt(); ret->ext.detailMessage = extObj.value(kFieldMsg); } qCDebug(appLog) << "Common field:" << ret->code << ret->message << ret->ext.code << ret->ext.detailMessage; return ret; } QHash CompatibleJsonParser::parseAppList(const CompatibleRet::Ptr &ret) { qCDebug(appLog) << "Parse app list"; if (ret.isNull() || CompError == ret->code) { qCWarning(appLog) << "Null app list"; return {}; } auto array = ret->ext.detailMessage.toArray(); if (array.empty()) { qCWarning(appLog) << "Empty app list"; return {}; } QString listJson = array.first().toString(); // remove unnecessary prefix listJson.remove(QRegularExpression("^[^\[]*")); QJsonParseError err; QJsonDocument doc = QJsonDocument::fromJson(listJson.toUtf8(), &err); if (QJsonParseError::NoError != err.error) { qCWarning(appLog) << QString("Parse compatible result failed: %1 offset:%2").arg(err.errorString()).arg(err.offset); return {}; } array = doc.array(); QHash packages; for (const QJsonValue &item : array) { if (!item.isObject()) { continue; } auto obj = item.toObject(); auto pkgPtr = CompPkgInfo::Ptr::create(); pkgPtr->name = obj.value("name").toString(); pkgPtr->version = obj.value("version").toString(); pkgPtr->arch = obj.value("arch").toString(); packages.insert(pkgPtr->name, pkgPtr); } qCDebug(appLog) << "App list:" << packages.size(); return packages; } QList CompatibleJsonParser::parseRootfsList(const CompatibleRet::Ptr &ret) { /* e.g.: {"Code":0,"Msg":null,"Ext":{"Code":0,"Msg":["成功 {\n \"Containers\": [\n {\n \"ID\": \"4aeedabc79a4\",\n \"Name\":\"uos-rootfs-20\",\n \"Status\": \"Up 15 minutes\",\n \"Image\": \"localhost/uos-rootfs-20:latest\"\n }\n ]\n}"]}} */ qCDebug(appLog) << "Parse rootfs list"; if (ret.isNull() || CompError == ret->code) { qCWarning(appLog) << "Null rootfs list"; return {}; } auto array = ret->ext.detailMessage.toArray(); if (array.empty()) { qCWarning(appLog) << "Empty rootfs list"; return {}; } QString listJson = array.first().toString(); // remove unnecessary prefix listJson.remove(QRegularExpression("^[^\[]*")); QJsonParseError err; QJsonDocument doc = QJsonDocument::fromJson(listJson.toUtf8(), &err); if (QJsonParseError::NoError != err.error) { qCWarning(appLog) << QString("Parse compatible result failed: %1 offset:%2").arg(err.errorString()).arg(err.offset); return {}; } auto rootObj = doc.object(); auto containerArray = rootObj.value("Containers").toArray(); QList rootfs; for (const QJsonValue &item : containerArray) { if (!item.isObject()) { continue; } auto obj = item.toObject(); auto rootfsPtr = RootfsInfo::Ptr::create(); rootfsPtr->name = obj.value("Name").toString(); rootfsPtr->osName = rootfsPtr->name; rootfs.append(rootfsPtr); } qCDebug(appLog) << "Rootfs list:" << rootfs.size(); return rootfs; } QList CompatibleJsonParser::parseSupportfsList(const CompatibleRet::Ptr &ret) { /* e.g.: {"Code":0,"Msg":null,"Ext":{"Code":0,"Msg":["成功 [\n \"uos-rootfs-20\",\n \"ubuntu-18.04\" \n]"]}} {"Code":0,"Msg":null,"Ext":{"Code":0,"Msg":["失败 [\n \"NOTFOUND\" \n]"]}} */ qCDebug(appLog) << "Parse supportfs list"; if (ret.isNull() || CompError == ret->code) { qCWarning(appLog) << "Null support rootfs list"; return {}; } auto array = ret->ext.detailMessage.toArray(); if (array.empty()) { qCWarning(appLog) << "Empty support rootfs list"; return {}; } QString listJson = array.first().toString(); // remove unnecessary prefix listJson.remove(QRegularExpression("^[^\[]*")); QJsonParseError err; QJsonDocument doc = QJsonDocument::fromJson(listJson.toUtf8(), &err); if (QJsonParseError::NoError != err.error) { qCWarning(appLog) << QString("Parse compatible result failed: %1 offset:%2").arg(err.errorString()).arg(err.offset); return {}; } array = doc.array(); QList supportRootfs; auto rootfsList = CompBackend::instance()->rootfsList(); for (const QJsonValue &item : array) { QString itemStr = item.toString(); auto findItr = std::find_if( rootfsList.begin(), rootfsList.end(), [&](const RootfsInfo::Ptr &rootfsPtr) { return rootfsPtr->name == itemStr; }); if (findItr != rootfsList.end()) { supportRootfs.append(*findItr); } } qCDebug(appLog) << "Support rootfs list:" << supportRootfs.size(); return supportRootfs; } } // namespace Compatible deepin-deb-installer-6.5.51/src/deb-installer/compatible/compatible_json_parser.h000066400000000000000000000017121524745214100301350ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2025 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef COMPATIBLE_JSON_PARSER_H #define COMPATIBLE_JSON_PARSER_H #include #include "compatible_defines.h" namespace Compatible { struct CompatibleRet { typedef QSharedPointer Ptr; int code{0}; QString message; // short message struct Ext { int code{0}; QJsonValue detailMessage; } ext; // detail info }; class CompatibleJsonParser { public: CompatibleJsonParser(); static CompatibleRet::Ptr parseCommonField(const QByteArray &jsonString); static QHash parseAppList(const CompatibleRet::Ptr &ret); static QList parseRootfsList(const CompatibleRet::Ptr &ret); static QList parseSupportfsList(const CompatibleRet::Ptr &ret); }; } // namespace Compatible #endif // COMPATIBLE_JSON_PARSER_H deepin-deb-installer-6.5.51/src/deb-installer/compatible/compatible_process_controller.cpp000066400000000000000000000212641524745214100320700ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "compatible_process_controller.h" #include "compatible_json_parser.h" #include "utils/ddlog.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"; // select current user (non-root) static const QString kEnvUser = "USER"; static const QString kParamUser = "--user"; CompatibleProcessController::CompatibleProcessController(QObject *parent) : QObject{parent} { } const Deb::DebPackage::Ptr &CompatibleProcessController::currentPackage() const { return m_currentPackage; } bool CompatibleProcessController::isRunning() const { qCDebug(appLog) << "is running?"; if (m_process && QProcess::NotRunning != m_process->state()) { return true; } qCDebug(appLog) << "not running"; return false; } bool CompatibleProcessController::install(const Deb::DebPackage::Ptr &package) { qCDebug(appLog) << "install package:"; if (!package || !package->isValid() || isRunning()) { qCDebug(appLog) << "invalid package or running"; return false; } if (!ensureProcess()) { qCDebug(appLog) << "ensure process failed"; 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; } appendCurrentUser(params); m_process->start(kPkexecBin, params, {}, 0, false); qCInfo(appLog) << "Comaptible install:" << m_process->program(); Q_EMIT processStart(); return true; } bool CompatibleProcessController::uninstall(const Deb::DebPackage::Ptr &package) { qCDebug(appLog) << "uninstall package:"; if (!package || !package->isValid() || isRunning()) { qCDebug(appLog) << "invalid package or running"; return false; } if (!ensureProcess()) { qCDebug(appLog) << "ensure process failed"; 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, {}); QStringList params{kPkexecBin, kInstallProcessorBin, kParamCompatible, kParamRemove, kParamRootfs, m_currentPackage->compatible()->rootfs, m_currentPackage->debInfo()->packageName()}; appendCurrentUser(params); // 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, params, {}, 0, false); qCInfo(appLog) << "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() { qCDebug(appLog) << "ensure process"; 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()) { qCWarning(appLog) << "Unable to restart compatible process is still running"; return false; } qCDebug(appLog) << "ensure process success"; return true; } void CompatibleProcessController::onReadOutput(const char *buffer, int length, bool isCommandExec) { Q_UNUSED(isCommandExec); qCDebug(appLog) << "on read output:" << length; 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; qCDebug(appLog) << "emit progress:" << progress; Q_EMIT progressChanged(progress); } void CompatibleProcessController::onFinished(int exitCode, int exitStatus) { bool success = (Pkg::ExitNoError == exitCode && QProcess::NormalExit == exitStatus); qCDebug(appLog) << "process finished? " << success; if (!success) { switch (exitCode) { case Pkg::ExitAuthError: m_currentPackage->setError(Pkg::ConfigAuthCancel, {}); qCDebug(appLog) << "auth error"; 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; } } else { // New version support json data result. auto lastRetOutput = m_outputList.last().toUtf8(); auto retPtr = CompatibleJsonParser::parseCommonField(lastRetOutput); if (retPtr && CompSuccess != retPtr->ext.code) { qCWarning(appLog) << "Compatible install/uninstall failed" << lastRetOutput; m_currentPackage->setError(Pkg::UnknownError, {}); success = false; } } qCDebug(appLog) << "emit process finished:" << success; Q_EMIT processFinished(success); if (success) { switch (m_type) { case Install: qCDebug(appLog) << "backend do package installed"; CompatibleBackend::instance()->packageInstalled(m_currentPackage->compatible()); break; case Uninstall: qCDebug(appLog) << "backend do package removed"; CompatibleBackend::instance()->packageRemoved(m_currentPackage->compatible()); break; default: break; } } qCDebug(appLog) << "reset state"; // release temp data m_outputList.clear(); } void CompatibleProcessController::appendCurrentUser(QStringList ¶ms) { qCDebug(appLog) << "Compatible append current user"; auto env = QProcessEnvironment::systemEnvironment(); QString currentUser = env.value(kEnvUser); if (!currentUser.isEmpty()) { qCDebug(appLog) << "Compatible current user:" << currentUser; params << kParamUser << currentUser; } else { qCWarning(appLog) << "Compatible current user is empty"; } } }; // namespace Compatible deepin-deb-installer-6.5.51/src/deb-installer/compatible/compatible_process_controller.h000066400000000000000000000032151524745214100315310ustar00rootroot00000000000000// 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); void appendCurrentUser(QStringList ¶ms); 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.51/src/deb-installer/dbus/000077500000000000000000000000001524745214100220555ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/deb-installer/dbus/com.deepin.DebInstaller.service000066400000000000000000000001261524745214100300260ustar00rootroot00000000000000[D-BUS Service] Name=com.deepin.DebInstaller Exec=/usr/bin/deepin-deb-installer --dbusdeepin-deb-installer-6.5.51/src/deb-installer/immutable/000077500000000000000000000000001524745214100230775ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/deb-installer/immutable/immutable_backend.cpp000066400000000000000000000025521524745214100272350ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "immutable_backend.h" #include "utils/ddlog.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} { qCDebug(appLog) << "Constructing ImmutableBackend"; initBackend(); } ImmutableBackend *ImmutableBackend::instance() { // qCDebug(appLog) << "Getting ImmutableBackend instance"; static ImmutableBackend ins; return &ins; } bool ImmutableBackend::immutableEnabled() const { qCDebug(appLog) << "Checking if immutable is enabled:" << m_immutableEnabled; return m_immutableEnabled; } void ImmutableBackend::initBackend() { qCDebug(appLog) << "initBackend"; QProcess process; process.setProgram(kImmutableBin); process.setArguments({kImmutableStatus}); process.start(); process.waitForFinished(); const QByteArray output = process.readAllStandardOutput(); m_immutableEnabled = output.contains(kImmutableEnable); qCDebug(appLog) << "end initBackend, immutableEnabled:" << m_immutableEnabled; } }; // namespace Immutable deepin-deb-installer-6.5.51/src/deb-installer/immutable/immutable_backend.h000066400000000000000000000012721524745214100267000ustar00rootroot00000000000000// 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.51/src/deb-installer/immutable/immutable_process_controller.cpp000066400000000000000000000164541524745214100315750ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024-2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "immutable_process_controller.h" #include #include "utils/ddlog.h" #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 kParamReinstall = "--reinstall"; 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 { qCDebug(appLog) << "immutable process is running"; if (m_process && QProcess::NotRunning != m_process->state()) { return true; } qCDebug(appLog) << "immutable process is not running"; return false; } bool ImmutableProcessController::install(const Deb::DebPackage::Ptr &package, bool reinstall) { qCDebug(appLog) << "install immutable package"; if (!package || !package->isValid() || isRunning()) { qCDebug(appLog) << "invalid package or process is running"; return false; } if (!ensureProcess()) { qCDebug(appLog) << "failed to ensure process"; 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 (reinstall) { qCDebug(appLog) << "same version installed, add --reinstall"; params << kParamReinstall; } if (m_currentPackage->containsTemplates()) { qCDebug(appLog) << "install config templates"; params << kParamInstallConfig; } m_process->start(kPkexecBin, params, {}, 0, false); qCInfo(appLog) << "Comaptible install:" << m_process->program(); Q_EMIT processStart(); return true; } bool ImmutableProcessController::uninstall(const Deb::DebPackage::Ptr &package) { qCDebug(appLog) << "uninstall immutable package"; if (!package || !package->isValid() || isRunning()) { qCDebug(appLog) << "invalid package or process is running"; return false; } if (!ensureProcess()) { qCDebug(appLog) << "failed to ensure process"; 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); qCInfo(appLog) << "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) { qCDebug(appLog) << "write config data to immutable process"; if (m_process) { m_process->pty()->write(configData.toUtf8()); m_process->pty()->write("\n"); qCDebug(appLog) << "writed config data:" << configData; } qCDebug(appLog) << "write config data to immutable process finished"; } bool ImmutableProcessController::ensureProcess() { qCDebug(appLog) << "ensure immutable process"; if (!m_process) { qCDebug(appLog) << "create immutable 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()) { qCWarning(appLog) << "Unable to restart compatible process is still running"; return false; } qCDebug(appLog) << "ensure immutable process finished"; return true; } void ImmutableProcessController::onReadOutput(const char *buffer, int length, bool isCommandExec) { Q_UNUSED(isCommandExec); const QByteArray output = QByteArray::fromRawData(buffer, length); qCDebug(appLog) << "read output from immutable process:" << output; Q_EMIT processOutput(output); // simulate progress, progress = floor(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; qCDebug(appLog) << "progress:" << progress; Q_EMIT progressChanged(progress); } void ImmutableProcessController::onFinished(int exitCode, int exitStatus) { const bool success = (Pkg::ExitNoError == exitCode && QProcess::NormalExit == exitStatus); qCDebug(appLog) << "immutable process finished, success:" << success << "exit code:" << exitCode << "exit status:" << exitStatus; if (!success) { switch (exitCode) { case Pkg::ExitAuthError: m_currentPackage->setError(Pkg::ConfigAuthCancel, {}); qCDebug(appLog) << "config auth cancel"; 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, {}); qCDebug(appLog) << "digital signature error"; } } } break; } } Q_EMIT processFinished(success); qCDebug(appLog) << "immutable process finished"; // release temp data m_outputList.clear(); } }; // namespace Immutable deepin-deb-installer-6.5.51/src/deb-installer/immutable/immutable_process_controller.h000066400000000000000000000031571524745214100312360ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024-2026 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, bool reinstall = false); [[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.51/src/deb-installer/main.cpp000066400000000000000000000064741524745214100225630ustar00rootroot00000000000000// 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 "utils/ddlog.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")) { qCDebug(appLog) << "Setting XDG_CURRENT_DESKTOP to Deepin"; setenv("XDG_CURRENT_DESKTOP", "Deepin", 1); } // set log format and register console and file appenders const QString logFormat = "%{time}{yy-MM-ddTHH:mm:ss.zzz} [%{type:-7}] [%{category}] <%{function}:%{line}> %{message}"; DLogManager::setLogFormat(logFormat); DLogManager::registerConsoleAppender(); DLogManager::registerFileAppender(); QAccessible::installFactory(accessibleFactory); // 自动化测试 qCInfo(appLog) << "Application started - name:" << qApp->applicationName() << "version:" << qApp->applicationVersion(); QDBusConnection dbus = QDBusConnection::sessionBus(); qCDebug(appLog) << "Initializing DBus connection"; if (app.parseCmdLine()) { qCDebug(appLog) << "Command line arguments parsed successfully"; app.activateWindow(); // 埋点记录启动数据 QJsonObject objStartEvent{ {"tid", Eventlogutils::StartUp}, {"vsersion", VERSION}, {"mode", 1}, }; Eventlogutils::GetInstance()->writeLogs(objStartEvent); return app.exec(); } else { qCWarning(appLog) << "Failed to parse command line arguments"; // 解析参数失败,100ms退出进程 QTimer::singleShot(100, [&]() { qCDebug(appLog) << "Exiting application due to argument parsing failure"; app.quit(); }); return app.exec(); } } deepin-deb-installer-6.5.51/src/deb-installer/manager/000077500000000000000000000000001524745214100225325ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/deb-installer/manager/AddPackageThread.cpp000066400000000000000000000172441524745214100263420ustar00rootroot00000000000000// 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 "utils/ddlog.h" #include #include #include #include #include DCORE_USE_NAMESPACE using namespace QApt; AddPackageThread::AddPackageThread(QSet appendedPackagesMd5) : m_appendedPackagesMd5(appendedPackagesMd5) { qCDebug(appLog) << "AddPackageThread created with" << appendedPackagesMd5.size() << "pre-existing packages"; } void AddPackageThread::setPackages(const QStringList &packages, int validPkgCount) { m_packages.clear(); m_packages.append(packages); m_validPackageCount = validPkgCount; qCDebug(appLog) << "AddPackageThread set packages with" << m_packages.size() << "packages"; } void AddPackageThread::setAppendPackagesMd5(const QSet &appendedPackagesMd5) { qCDebug(appLog) << "AddPackageThread set appended packages with" << appendedPackagesMd5.size() << "packages"; m_appendedPackagesMd5 = appendedPackagesMd5; } void AddPackageThread::setSamePackageMd5(const QMap &packagesMd5) { qCDebug(appLog) << "AddPackageThread set same package md5 with" << packagesMd5.size() << "packages"; m_allPackages = packagesMd5; } bool AddPackageThread::dealInvalidPackage(const QString &packagePath) { qCDebug(appLog) << "AddPackageThread deal invalid package:" << packagePath; auto readablilty = Utils::checkPackageReadable(packagePath); switch (readablilty) { case Pkg::PkgNotInLocal: qCDebug(appLog) << "Package not in local"; emit signalAppendFailMessage(Pkg::PackageNotLocal); return false; case Pkg::PkgNoPermission: qCDebug(appLog) << "Package not installable"; emit signalAppendFailMessage(Pkg::PackageNotInstallable); return false; default: qCDebug(appLog) << "Package invalid"; break; } qCDebug(appLog) << "Deal invalid package end, return true"; return true; } QString AddPackageThread::dealPackagePath(const QString &packagePath) { qCDebug(appLog) << "AddPackageThread deal package path:" << packagePath; auto tempPath = packagePath; // 判断当前文件路径是否是绝对路径,不是的话转换为绝对路径 if (!tempPath.startsWith("/")) { QFileInfo packageAbsolutePath(tempPath); // 获取绝对路径 tempPath = packageAbsolutePath.absoluteFilePath(); qCDebug(appLog) << "Package path is not absolute, converted to:" << tempPath; } // 判断当前文件路径中是否存在空格,如果存在则创建软链接并在之后的安装时使用软链接进行访问. if (tempPath.contains(" ")) { QApt::DebFile p(tempPath); if (p.isValid()) { tempPath = SymbolicLink(tempPath, p.packageName()); qCWarning(appLog) << "Path contains spaces, created symlink:" << tempPath; } } qCDebug(appLog) << "Deal package path end, return:" << tempPath; return tempPath; } void AddPackageThread::run() { qCInfo(appLog) << "Start processing" << m_packages.size() << "packages"; for (QString debPackage : m_packages) { qCDebug(appLog) << "Processing package:" << debPackage; // 处理包不在本地的情况。 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; qCDebug(appLog) << "Add package to installer:" << debPackage << "with md5:" << md5; // 可以添加,发送添加信号 emit signalAddPackageToInstaller(m_validPackageCount, debPackage, md5); } qCDebug(appLog) << "All packages processed, emit signalAppendFinished"; emit signalAppendFinished(); } QString AddPackageThread::SymbolicLink(const QString &previousName, const QString &packageName) { qCDebug(appLog) << "Create symlink from" << previousName << "to" << packageName; // 如果创建临时目录失败,则提示 if (!mkTempDir()) { qCWarning(appLog) << "Failed to create temp directory:" << m_tempLinkDir; return previousName; } qCDebug(appLog) << "return link"; // 成功则开始创建 return link(previousName, packageName); } bool AddPackageThread::mkTempDir() { QDir tempPath(m_tempLinkDir); qCDebug(appLog) << "Create temp directory:" << m_tempLinkDir; if (!tempPath.exists()) { qCDebug(appLog) << "Temp directory not exists, create it"; // 如果临时目录不存在则返回创建结果 return tempPath.mkdir(m_tempLinkDir); } else { qCDebug(appLog) << "Temp directory already exists, return true"; // 临时目录已经存在,直接返回创建成功 return true; } } QString AddPackageThread::link(const QString &linkPath, const QString &packageName) { QFile linkDeb(linkPath); qCDebug(appLog) << "Create symlink from" << linkPath << "to" << m_tempLinkDir + packageName; // 创建软链接时,如果当前临时目录中存在同名文件,即同一个名字的应用,考虑到版本可能有变化,将后续添加进入的包重命名为{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); qCDebug(appLog) << "Duplicate filename detected, renamed to:" << tempName; count++; } else { qCDebug(appLog) << "Create symlink from" << linkPath << "to" << m_tempLinkDir + tempName; break; } } // 创建软链接 if (linkDeb.link(linkPath, m_tempLinkDir + tempName)) return m_tempLinkDir + tempName; // 创建成功,返回创建的软链接的路径. else { // 创建失败,直接返回路径 qCWarning(appLog) << "Failed to create symlink from" << linkPath << "to" << m_tempLinkDir + tempName; return linkPath; } } deepin-deb-installer-6.5.51/src/deb-installer/manager/AddPackageThread.h000066400000000000000000000065771524745214100260160ustar00rootroot00000000000000// 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.51/src/deb-installer/manager/DealDependThread.cpp000066400000000000000000000070311524745214100263540ustar00rootroot00000000000000// 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" #include "utils/ddlog.h" DealDependThread::DealDependThread(QObject *parent) { Q_UNUSED(parent); qCDebug(appLog) << "DealDependThread created"; 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; qCWarning(appLog) << "Wine dependency install not authorized"; emit signalDependResult(DebListModel::CancelAuth, m_index, m_brokenDepend); } // 检测是否包含分级验签错误信息 if (HierarchicalVerify::instance()->checkTransactionError(m_brokenDepend, tmp)) { bVerifyStatusErr = true; qCWarning(appLog) << "Hierarchical verify failed for wine dependency. Output:" << tmp; // 结束后统一发送信号 } } void DealDependThread::run() { qCDebug(appLog) << "Starting dependency thread 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); qCDebug(appLog) << "starting command: pkexec 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; qCDebug(appLog) << "Dependency install failed. Dependencies:" << m_dependsList; return; } if (bVerifyStatusErr) { emit signalDependResult(DebListModel::VerifyDependsErr, m_index, m_brokenDepend); bVerifyStatusErr = false; qCDebug(appLog) << "Hierarchical verify failed for wine dependency. Exit code:" << num << "Dependencies:" << m_dependsList; return; } if (num == 0) { qCDebug(appLog) << "Dependency install succeeded. Exit code:" << num << "Dependencies:" << m_dependsList; emit signalDependResult(DebListModel::AuthDependsSuccess, m_index, m_brokenDepend); } else { qCWarning(appLog) << "Dependency install failed. Exit code:" << num << "Dependencies:" << m_dependsList; emit signalDependResult(DebListModel::AuthDependsErr, m_index, m_brokenDepend); } emit signalEnableCloseButton(true); qCDebug(appLog) << "Dependency install process finished. Exit code:" << num << "Dependencies:" << m_dependsList; } deepin-deb-installer-6.5.51/src/deb-installer/manager/DealDependThread.h000066400000000000000000000035001524745214100260160ustar00rootroot00000000000000// 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.51/src/deb-installer/manager/PackageDependsStatus.cpp000066400000000000000000000114361524745214100273050ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "PackageDependsStatus.h" #include "utils/package_defines.h" #include "utils/ddlog.h" PackageDependsStatus PackageDependsStatus::ok() { // qCDebug(appLog) << "Creating OK status"; return {Pkg::DependsStatus::DependsOk, QString()}; } PackageDependsStatus PackageDependsStatus::available(const QString &package) { // qCDebug(appLog) << "Creating AVAILABLE status for package:" << package; // 修复卸载p7zip导致deepin-wine-helper被卸载的问题,Available 添加packageName return {Pkg::DependsStatus::DependsAvailable, package}; } PackageDependsStatus PackageDependsStatus::_break(const QString &package) { qCDebug(appLog) << "Creating BREAK status for package:" << package; return {Pkg::DependsStatus::DependsBreak, package}; } PackageDependsStatus PackageDependsStatus::_prohibit(const QString &package) { qCDebug(appLog) << "Creating PROHIBIT status for package:" << package; return {Pkg::DependsStatus::DependsBreak, package}; } PackageDependsStatus::PackageDependsStatus() : PackageDependsStatus(Pkg::DependsStatus::DependsOk, QString()) { qCDebug(appLog) << "Default PackageDependsStatus created"; } PackageDependsStatus::PackageDependsStatus(const int status, const QString &package) : status(status) , package(package) { qCDebug(appLog) << "Creating PackageDependsStatus with status:" << status << "package:" << package; } PackageDependsStatus &PackageDependsStatus::operator=(const PackageDependsStatus &other) { // qCDebug(appLog) << "Assigning PackageDependsStatus from package:" << other.package; status = other.status; package = other.package; return *this; } PackageDependsStatus PackageDependsStatus::max(const PackageDependsStatus &other) { // qCDebug(appLog) << "Comparing PackageDependsStatus with status:" << other.status << "for package:" << other.package; if (other.status > status) { qCDebug(appLog) << "Upgrading status from" << status << "to" << other.status << "for package:" << other.package; *this = other; } return *this; } PackageDependsStatus PackageDependsStatus::maxEq(const PackageDependsStatus &other) { // qCDebug(appLog) << "Comparing PackageDependsStatus with status:" << other.status << "for package:" << other.package; if (other.status >= status) { // qCDebug(appLog) << "Upgrading status from" << status << "to" << other.status << "for package:" << other.package; *this = other; } return *this; } PackageDependsStatus PackageDependsStatus::min(const PackageDependsStatus &other) { // qCDebug(appLog) << "Comparing PackageDependsStatus with status:" << other.status << "for package:" << other.package; if (other.status < status) { // qCDebug(appLog) << "Downgrading status from" << status << "to" << other.status << "for package:" << other.package; *this = other; } return *this; } PackageDependsStatus PackageDependsStatus::minEq(const PackageDependsStatus &other) { // qCDebug(appLog) << "Comparing PackageDependsStatus with status:" << other.status << "for package:" << other.package; if (other.status <= status) { // qCDebug(appLog) << "Downgrading status from" << status << "to" << other.status << "for package:" << other.package; *this = other; } return *this; } bool PackageDependsStatus::isBreak() const { // qCDebug(appLog) << "Checking if package is break"; bool result = status == Pkg::DependsStatus::DependsBreak; if (result) { qCDebug(appLog) << "Package" << package << "has broken dependencies"; } return result; } bool PackageDependsStatus::isAuthCancel() const { bool result = status == Pkg::DependsStatus::DependsAuthCancel; // qCDebug(appLog) << "Checking auth cancel status:" << result; return result; } bool PackageDependsStatus::isAvailable() const { bool result = status == Pkg::DependsStatus::DependsAvailable; // qCDebug(appLog) << "Checking available status:" << result << "for package:" << package; return result; } bool PackageDependsStatus::isProhibit() const { bool result = status == Pkg::DependsStatus::Prohibit; // qCDebug(appLog) << "Checking prohibit status:" << result << "for package:" << package; return result; } bool PackageDependsStatus::canInstall() const { bool result = status == Pkg::DependsAvailable || status == Pkg::DependsOk; qCDebug(appLog) << "Package" << package << (result ? "can" : "cannot") << "be installed"; return result; } bool PackageDependsStatus::canInstallCompatible() const { bool result = status == Pkg::CompatibleNotInstalled; // qCDebug(appLog) << "Checking compatible install status:" << result << "for package:" << package; return result; } deepin-deb-installer-6.5.51/src/deb-installer/manager/PackageDependsStatus.h000066400000000000000000000070041524745214100267460ustar00rootroot00000000000000// 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.51/src/deb-installer/manager/packagesmanager.cpp000066400000000000000000003646451524745214100263710ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2026 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/ddlog.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"; // LoongArch compatible-mode arch names static const QString g_ArchLoong64 = "loong64"; // Debian LoongArch port native arch static const QString g_ArchLoongarch64 = "loongarch64"; // legacy arch name used by older packages /** * @brief 检测传入软件包架构是否支持多架构 */ bool archMultiSupport(const QString &arch) { qCDebug(appLog) << "Checking multi-arch support for arch:" << arch; bool result = "native" == arch || "all" == arch || "any" == arch; qCDebug(appLog) << "Multi-arch supported:" << result; return result; } /** * @brief PackagesManager::isLoongArchCompatible * * Returns true when \a pkgArch is "loongarch64" and \a sysArch is "loong64". * These two names represent the same ISA: loong64 is the Debian port name while * loongarch64 is the legacy name used by some older pre-packaged binaries. * Such packages cannot be installed natively by dpkg on a loong64 host, but they * can be handled through the compatible-mode rootfs, so we must NOT treat them as * an architecture error — instead we redirect them to compatible-mode installation. */ bool PackagesManager::isLoongArchCompatible(const QString &sysArch, const QString &pkgArch) { return (sysArch == g_ArchLoong64 && pkgArch == g_ArchLoongarch64); } /** * @brief isArchMatches 判断包的架构是否符合系统要求 * @param sysArch 系统架构 * @param packageArch 包的架构 * @param multiArchType 系统多架构类型 * @return 是否符合多架构要求 */ bool PackagesManager::isArchMatches(QString sysArch, const QString &packageArch, const int multiArchType) { qCDebug(appLog) << "Checking if arch matches. System arch:" << sysArch << "Package arch:" << packageArch << "Multi-arch type:" << multiArchType; Q_UNUSED(multiArchType); if (sysArch.startsWith(':')) { qCDebug(appLog) << "System arch starts with ':', removing it."; sysArch.remove(0, 1); } if ("all" == sysArch || "any" == sysArch) { qCDebug(appLog) << "System arch is 'all' or 'any', returning true."; return true; } // bug119619 安装包时,仓库中的依赖fcitx是全架构,导致系统架构与包架构不匹配 // 增加依赖包为全架构的判断 if ("all" == packageArch || "any" == packageArch) { qCDebug(appLog) << "Package arch is 'all' or 'any', returning true."; return true; } bool result = sysArch == packageArch; qCDebug(appLog) << "Final arch match result:" << result; return result; } QString PackagesManager::resolvMultiArchAnnotation(const QString &annotation, const QString &debArch, const int multiArchType) { qCDebug(appLog) << "Resolving multi-arch annotation. Annotation:" << annotation << "Deb arch:" << debArch << "Multi-arch type:" << multiArchType; if ("native" == annotation || "any" == annotation) { qCDebug(appLog) << "Annotation is 'native' or 'any', returning empty string."; return QString(); } if ("all" == annotation) { qCDebug(appLog) << "Annotation is 'all', returning empty string."; return QString(); } if (multiArchType == MultiArchForeign) { qCDebug(appLog) << "Multi-arch type is Foreign, returning empty string."; return QString(); } QString arch; if (annotation.isEmpty()) { qCDebug(appLog) << "Annotation is empty, using deb arch:" << debArch; arch = debArch; } else { qCDebug(appLog) << "Using annotation arch:" << annotation; arch = annotation; } if (!arch.startsWith(':') && !arch.isEmpty()) { qCDebug(appLog) << "Prepending ':' to arch:" << arch; return arch.prepend(':'); } else { qCDebug(appLog) << "Returning arch as is:" << arch; return arch; } } bool PackagesManager::dependencyVersionMatch(const int result, const RelationType relation) { qCDebug(appLog) << "Checking dependency version match. Result:" << result << "Relation:" << relation; bool match; switch (relation) { case LessOrEqual: match = result <= 0; break; case GreaterOrEqual: match = result >= 0; break; case LessThan: match = result < 0; break; case GreaterThan: match = result > 0; break; case Equals: match = result == 0; break; case NotEqual: match = result != 0; break; default: match = true; break; } qCDebug(appLog) << "Dependency version match result:" << match; return match; } Pkg::PackageInstallStatus PackagesManager::checkInstallStatus(const QString &package_path) { qCDebug(appLog) << "Checking install status for package path:" << package_path; DebFile debFile(package_path); if (!debFile.isValid()) { qCDebug(appLog) << "Deb file is invalid."; return Pkg::PackageInstallStatus::NotInstalled; } const QString packageName = debFile.packageName(); const QString packageArch = debFile.architecture(); qCDebug(appLog) << "Package name:" << packageName << "Arch:" << packageArch; Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qCWarning(appLog) << "Failed to load libqapt backend"; return Pkg::PackageInstallStatus::NotInstalled; } Package *package = packageWithArch(packageName, packageArch); if (!package) { qCDebug(appLog) << "Package not found with arch, returning NotInstalled."; return Pkg::PackageInstallStatus::NotInstalled; } const QString installedVersion = package->installedVersion(); package = nullptr; if (installedVersion.isEmpty()) { qCDebug(appLog) << "No installed version found, returning NotInstalled."; return Pkg::PackageInstallStatus::NotInstalled; } const QString packageVersion = debFile.version(); qCDebug(appLog) << "Comparing package version:" << packageVersion << "with installed version:" << installedVersion; const int result = Package::compareVersion(packageVersion, installedVersion); Pkg::PackageInstallStatus ret; if (result == 0) { qCDebug(appLog) << "Versions are the same."; ret = Pkg::PackageInstallStatus::InstalledSameVersion; } else if (result < 0) { qCDebug(appLog) << "Installed version is later."; ret = Pkg::PackageInstallStatus::InstalledLaterVersion; } else { qCDebug(appLog) << "Installed version is earlier."; ret = Pkg::PackageInstallStatus::InstalledEarlierVersion; } qCDebug(appLog) << "Final install status:" << ret; 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) { qCDebug(appLog) << "Checking depends status for package:" << package_path; DebFile debFile(package_path); if (!debFile.isValid()) { qCDebug(appLog) << "Deb file is invalid, returning break status."; return PackageDependsStatus::_break(""); } m_currentPkgName = debFile.packageName(); qCDebug(appLog) << "Current package name set to:" << m_currentPkgName; m_orDepends.clear(); m_checkedOrDependsStatus.clear(); m_unCheckedOrDepends.clear(); m_dependsInfo.clear(); m_loopErrorDeepends.clear(); // 用debFile.packageName()无法打开deb文件,故替换成debFile.filePath() // 更新m_dependsInfo qCDebug(appLog) << "Getting package OR depends info."; 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(); qCWarning(appLog) << debFile.packageName() << "In the blacklist"; qCDebug(appLog) << "Package is in blacklist, returning prohibit status."; return dependsStatus; } if (isArchErrorQstring(package_path)) { qCDebug(appLog) << "Architecture error, returning arch break status."; dependsStatus.status = Pkg::DependsStatus::ArchBreak; dependsStatus.package = debFile.packageName(); return dependsStatus; } if (s_forceCompatible) { auto compPkgPtr = CompBackend::instance()->containsPackage(debFile.packageName()); if (compPkgPtr && compPkgPtr->installed()) { dependsStatus.status = Pkg::DependsStatus::CompatibleIntalled; } else { dependsStatus.status = Pkg::DependsStatus::CompatibleNotInstalled; } dependsStatus.package = debFile.packageName(); qCInfo(appLog) << "Force compatible mode for package:" << debFile.packageName(); s_forceCompatible = false; return dependsStatus; } // conflicts qCDebug(appLog) << "Checking for deb conflicts."; const ConflictResult debConflitsResult = isConflictSatisfy(architecture, debFile.conflicts(), debFile.replaces()); if (!debConflitsResult.is_ok()) { qCWarning(appLog) << "PackagesManager:" << "depends break because conflict" << debFile.packageName(); dependsStatus.package = debConflitsResult.unwrap(); dependsStatus.status = Pkg::DependsStatus::DependsBreak; } else { qCDebug(appLog) << "No deb conflicts found. Checking for local installed conflicts."; const ConflictResult localConflictsResult = isInstalledConflict(debFile.packageName(), debFile.version(), architecture); if (!localConflictsResult.is_ok()) { qCWarning(appLog) << "PackagesManager:" << "depends break because conflict with local package" << debFile.packageName(); dependsStatus.package = localConflictsResult.unwrap(); dependsStatus.status = Pkg::DependsStatus::DependsBreak; } else { qCDebug(appLog) << "No local conflicts. Proceeding with dependency check."; 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) { qCDebug(appLog) << "Found dependency:" << depend->name(); 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")) { qCDebug(appLog) << "Wine application detected."; 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)) { qCDebug(appLog) << "Removing existing depends packages"; 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应用的判断 qCDebug(appLog) << "Wine application with non-OK depends, filtering for wine packages."; // 额外判断wine依赖是否已安装,同时剔除非wine依赖 filterNeedInstallWinePackage(dependList, debFile, dependInfoMap); if (dependList.isEmpty()) { // 所有的wine依赖均已安装 qCDebug(appLog) << "All wine dependencies are installed."; break; } qCDebug(appLog) << "Needed wine dependencies are not installed, setting status to Break."; dependsStatus.status = Pkg::DependsStatus::DependsBreak; // 只要是下载,默认当前wine应用依赖为break } } while (0); } } if (dependsStatus.isBreak()) { qCDebug(appLog) << "Final dependency check resulted in Break status for package:" << dependsStatus.package; Q_ASSERT(!dependsStatus.package.isEmpty()); } qCDebug(appLog) << "Finished checking depends status. Returning status:" << dependsStatus.status; return dependsStatus; } QStringList PackagesManager::getPackageInfo(const QString &package_path) { qCDebug(appLog) << "Getting package info for:" << package_path; QStringList value_list; const DebFile deb(package_path); if (!deb.isValid()) { qCDebug(appLog) << "Deb file is invalid."; 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; qCDebug(appLog) << "Package info retrieved for:" << packageName; return value_list; } QString PackagesManager::checkPackageValid(const QStringList &package_path) { qCDebug(appLog) << "Checking package validity for" << package_path.count() << "packages."; for (QString debPackage : package_path) { // 通过循环添加所有的包 qCDebug(appLog) << "Checking package:" << debPackage; // 处理包不在本地的情况。 if (Pkg::PkgReadable != Utils::checkPackageReadable(debPackage)) { // 判断路径信息是不是本地路径 qCDebug(appLog) << "Package is not a local readable file."; return "You can only install local deb packages"; } QString debPkg = debPackage; // 处理package文件路径相关问题 debPackage = dealPackagePath(debPackage); QApt::DebFile pkgFile(debPackage); // 判断当前文件是否是无效文件 if (!pkgFile.isValid()) { qCDebug(appLog) << "Package file is invalid."; return "The deb package may be broken"; } // 获取当前文件的md5的值,防止重复添加 // 在checkInvalid中已经获取过md5,避免2次获取影响性能 QByteArray md5 = m_allPackages.value(debPkg); if (md5.isEmpty()) { qCDebug(appLog) << "No cached md5, calculating now."; md5 = pkgFile.md5Sum(); } // 如果当前已经存在此md5的包,则说明此包已经添加到程序中 if (m_appendedPackagesMd5.contains(md5)) { qCDebug(appLog) << "Package with md5 already added."; return "The deb package Already Added"; } } qCDebug(appLog) << "All packages are valid."; return ""; } bool PackagesManager::s_forceCompatible = false; PackagesManager::PackagesManager(QObject *parent) : QObject(parent) { qCDebug(appLog) << "PackagesManager initialized"; 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() { bool isReady = PackageAnalyzer::instance().isBackendReady(); // qCDebug(appLog) << "Checking if backend is ready:" << isReady; return isReady; } bool PackagesManager::isArchError(const int idx) { qCDebug(appLog) << "Checking for architecture error for index:" << idx; if (idx < 0 || idx >= m_preparedPackages.size()) { qCDebug(appLog) << "Index is out of bounds."; return true; } Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qCCritical(appLog) << "Failed to load libqapt backend in isArchErrorQstring"; return true; } DebFile deb(m_preparedPackages[idx]); if (!deb.isValid()) { qCDebug(appLog) << "Deb file is not valid."; return false; } const QString arch = deb.architecture(); qCDebug(appLog) << "Package architecture:" << arch; if ("all" == arch || "any" == arch) { qCDebug(appLog) << "Architecture is 'all' or 'any', no error."; return false; } // loongarch64 packages on a loong64 system are handled by compatible mode, not an error const QString nativeArch = backend->nativeArchitecture(); if (isLoongArchCompatible(nativeArch, arch)) { qCDebug(appLog) << "Package arch" << arch << "is compatible with system arch" << nativeArch << ", skipping arch error check"; return false; } bool architectures = !backend->architectures().contains(deb.architecture()); qCDebug(appLog) << "Architecture error status:" << architectures; return architectures; } bool PackagesManager::isArchErrorQstring(const QString &package_name) { qCDebug(appLog) << "Checking for architecture error for package:" << package_name; Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qCCritical(appLog) << "Failed to load libqapt backend in isArchError"; return true; } DebFile deb(package_name); if (!deb.isValid()) { qCDebug(appLog) << "Deb file is not valid."; return false; } const QString arch = deb.architecture(); qCDebug(appLog) << "Package architecture:" << arch; if ("all" == arch || "any" == arch) { qCDebug(appLog) << "Architecture is 'all' or 'any', no error."; return false; } // loongarch64 packages on a loong64 system are handled by compatible mode, not an error const QString nativeArch = backend->nativeArchitecture(); if (isLoongArchCompatible(nativeArch, arch)) { qCDebug(appLog) << "Package arch" << arch << "is compatible with system arch" << nativeArch << ", skipping arch error check"; return false; } bool architectures = !backend->architectures().contains(deb.architecture()); qCDebug(appLog) << "Architecture error status:" << architectures; return architectures; } const ConflictResult PackagesManager::packageConflictStat(const int index) { qCDebug(appLog) << "Getting package conflict status for index:" << index; if (index < 0 || index >= m_preparedPackages.size()) { qCDebug(appLog) << "Index out of bounds."; return ConflictResult::err(""); } DebFile debfile(m_preparedPackages[index]); if (!debfile.isValid()) { qCDebug(appLog) << "Deb file is invalid."; return ConflictResult::err(""); } ConflictResult ConflictResult = isConflictSatisfy(debfile.architecture(), debfile.conflicts(), debfile.replaces()); return ConflictResult; } const ConflictResult PackagesManager::isConflictSatisfy(const QString &arch, Package *package) { qCDebug(appLog) << "Checking conflict satisfy"; if (!package) { qCWarning(appLog) << "Invalid package pointer in isConflictSatisfy"; return ConflictResult::err(""); } const QString &packageName = package->name(); const auto ret_installed = isInstalledConflict(packageName, package->version(), package->architecture()); if (!ret_installed.is_ok()) { qCWarning(appLog) << "Installed conflict check failed for package:" << packageName; 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) { qCDebug(appLog) << "Checking for installed conflicts for package:" << packageName << "version:" << packageVersion << "arch:" << packageArch; static QList> sysConflicts; if (sysConflicts.isEmpty()) { qCDebug(appLog) << "System conflicts list is empty, populating it now."; 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 时可能访问失败(内存被释放)! // 临时修改为拷贝数据。 // qCDebug(appLog) << "Adding system conflict:" << pkg->name() << "conflicts with" << conflict.packageName(); sysConflicts << QPair(pkg->name(), conflict); } pkg = nullptr; } } Package *pkg = packageWithArch(packageName, packageArch); if (pkg && pkg->installedVersion() == packageVersion) { qCDebug(appLog) << "Package is installed with the same version, no conflict."; 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 */ // Use packageName as fallback when pkg is null (package not found in local repo) const QString currentPkgName = pkg ? pkg->name() : packageName; if (currentPkgName == info.first) { // qCDebug(appLog) << "Conflict with self, ignoring:" << currentPkgName; continue; } // pass if arch not match if (!pkgArch.isEmpty() && pkgArch != packageArch && pkgArch != "any" && pkgArch != "native") continue; if (pkgVersion.isEmpty()) { qCDebug(appLog) << "Conflict found (empty version):" << info.first; return ConflictResult::err(info.first); } const int relation = Package::compareVersion(packageVersion, conflict.packageVersion()); // match, so is bad if (dependencyVersionMatch(relation, conflict.relationType())) { qCDebug(appLog) << "Conflict found (version match):" << info.first; return ConflictResult::err(info.first); } } qCDebug(appLog) << "No installed conflicts found for" << packageName; return ConflictResult::ok(QString()); } const ConflictResult PackagesManager::isConflictSatisfy(const QString &arch, const QList &conflicts, const QList &replaces, QApt::Package *targetPackage) { qCDebug(appLog) << "Checking conflict satisfy"; 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())) { qCWarning(appLog) << "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 (conflict_version.isEmpty() || !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 (replace.packageVersion().isEmpty() || 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; } qCWarning(appLog) << "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) { qCDebug(appLog) << "Checking if target package can replace installed package"; if (!targetPackage || !installedPackage) { qCDebug(appLog) << "Target package or installed package is null"; return false; } Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qCDebug(appLog) << "Backend is null"; 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) { qCWarning(appLog) << 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) { qCDebug(appLog) << "Checking conflict satisfy"; 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())) { qCWarning(appLog) << "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) { qCWarning(appLog) << "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) { qCDebug(appLog) << "Checking package install status for index:" << index; if (index < 0 || index >= m_preparedPackages.size()) { qCDebug(appLog) << "Index out of range"; return -1; } // 修改安装状态的存放方式,将安装状态与MD5绑定,而非与index绑定 // 如果此时已经刷新过安装状态,则直接返回。 // PS: 修改原因见头文件 // 提前获取当前的md5 auto currentPackageMd5 = m_packageMd5[index]; if (m_packageInstallStatus.contains(currentPackageMd5)) { qCDebug(appLog) << "Package install status already exists"; return m_packageInstallStatus[currentPackageMd5]; } DebFile debFile(m_preparedPackages[index]); if (!debFile.isValid()) { qCDebug(appLog) << "Deb file is invalid"; return Pkg::PackageInstallStatus::NotInstalled; } const QString packageName = debFile.packageName(); const QString packageArch = debFile.architecture(); Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qCCritical(appLog) << "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 { qCDebug(appLog) << "Removing packages for md5"; if (auto markedPtr = m_markedDepends.value(md5)) { qCDebug(appLog) << "Marked packages found for md5"; return markedPtr->removePackages(); } qCDebug(appLog) << "No marked packages found for md5"; return {}; } void PackagesManager::slotDealDependResult(int iAuthRes, int iIndex, const QString &dependName) { qCDebug(appLog) << "Checking depend result for index:" << iIndex; if (iIndex < 0 || iIndex > m_preparedPackages.size()) { qCDebug(appLog) << "Index out of range"; 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()) { qCInfo(appLog) << "check wine depends again !" << iIndex; getPackageDependsStatus(iIndex); if (!m_dependsPackages.isEmpty()) { qCInfo(appLog) << 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) { qCDebug(appLog) << "Getting package md5 for index:" << index; if (index < m_packageMd5.size()) { qCDebug(appLog) << "Package md5 found for index:" << index; return m_packageMd5[index]; } qCDebug(appLog) << "No package md5 found for index:" << 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) { qCDebug(appLog) << "Getting package depends status for index:" << index; // 提前获取需要的md5 if (index < 0 || index >= m_preparedPackages.size()) { qCWarning(appLog) << "invalid param index"; return PackageDependsStatus::_break(""); } auto currentPackageMd5 = m_packageMd5[index]; m_currentPkgMd5 = currentPackageMd5; if (m_packageMd5DependsStatus.contains(currentPackageMd5)) { qCDebug(appLog) << "Package depends status already exists"; return m_packageMd5DependsStatus[currentPackageMd5]; } DebFile debFile(m_preparedPackages[index]); if (!debFile.isValid()) { qCDebug(appLog) << "Deb file is invalid"; 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); qCWarning(appLog) << "Package in blacklist:" << debFile.packageName(); return dependsStatus; } if (isArchError(index)) { qCDebug(appLog) << "Package is in arch error:" << debFile.packageName(); dependsStatus.status = Pkg::DependsStatus::ArchBreak; // 添加ArchBreak错误。 dependsStatus.package = debFile.packageName(); m_packageMd5DependsStatus.insert(currentPackageMd5, dependsStatus); // 更换依赖的存储方式 return dependsStatus; } if (s_forceCompatible) { auto compPkgPtr = CompBackend::instance()->containsPackage(debFile.packageName()); if (compPkgPtr && compPkgPtr->installed()) { dependsStatus.status = Pkg::DependsStatus::CompatibleIntalled; } else { dependsStatus.status = Pkg::DependsStatus::CompatibleNotInstalled; } dependsStatus.package = debFile.packageName(); m_packageMd5DependsStatus.insert(currentPackageMd5, dependsStatus); qCInfo(appLog) << "Force compatible mode for package:" << debFile.packageName(); s_forceCompatible = false; 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()) { qCWarning(appLog) << "Dependency conflict for package:" << debFile.packageName() << "Conflicting package:" << debConflitsResult.unwrap(); dependsStatus.package = debConflitsResult.unwrap(); dependsStatus.status = Pkg::DependsStatus::DependsBreak; } else { const ConflictResult localConflictsResult = isInstalledConflict(debFile.packageName(), debFile.version(), architecture); if (!localConflictsResult.is_ok()) { qCWarning(appLog) << "Local package conflict for:" << debFile.packageName() << "Conflicting package:" << localConflictsResult.unwrap(); 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取代验证下标 qCInfo(appLog) << "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) { // On loong64 systems, loongarch64 packages must always go through compatible mode Backend *aptBackend = PackageAnalyzer::instance().backendPtr(); const QString nativeArch = aptBackend ? aptBackend->nativeArchitecture() : QString(); if (isLoongArchCompatible(nativeArch, debFile.architecture())) { qCInfo(appLog) << "loongarch64 package on loong64 system, forcing CompatibleNotInstalled" << "for package:" << debFile.packageName(); // loongarch64 强制兼容模式,检查兼容环境同名包 auto compPkgPtr = CompBackend::instance()->containsPackage(debFile.packageName()); if (compPkgPtr && compPkgPtr->installed()) { dependsStatus.status = Pkg::DependsStatus::CompatibleIntalled; } else { dependsStatus.status = Pkg::DependsStatus::CompatibleNotInstalled; } } else if (dependsStatus.isBreak()) { // 依赖不满足:进入兼容模式,检查兼容环境中是否存在同名包 auto compPkgPtr = CompBackend::instance()->containsPackage(debFile.packageName()); if (compPkgPtr && compPkgPtr->installed()) { dependsStatus.status = Pkg::DependsStatus::CompatibleIntalled; } else { dependsStatus.status = Pkg::DependsStatus::CompatibleNotInstalled; } } // 依赖满足时,不走兼容模式,由上层检查普通环境同名包 } } else if (CompBackend::instance()->compatibleExists() && dependsStatus.isBreak()) { if (!isWineApplication && SingleInstallerApplication::mode != SingleInstallerApplication::DdimChannel) { qCInfo(appLog) << "Compatible environment not yet initialized, skip package check" << "for package:" << debFile.packageName(); dependsStatus.status = Pkg::DependsStatus::CompatibleNotInstalled; } } // If depends need install if (Pkg::DependsOk == dependsStatus.status || Pkg::DependsAvailable == dependsStatus.status) { refreshPackageMarkedInfo(currentPackageMd5, debFile.filePath()); } m_packageMd5DependsStatus.insert(currentPackageMd5, dependsStatus); return dependsStatus; } bool PackagesManager::cachedPackageDependStatus(const int index) const { qCDebug(appLog) << "Checking cached package depend status for index:" << index; auto currentPackageMd5 = m_packageMd5[index]; return m_packageMd5DependsStatus.contains(currentPackageMd5); } void PackagesManager::getPackageOrDepends(const QString &package, const QString &arch, bool flag) { qCDebug(appLog) << "Getting package or depends"; /* * 解析安装包依赖,若存在或依赖关系则进行处理并且存储 *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)); } } } qCInfo(appLog) << 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下打印 qCDebug(appLog) << 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); } qCDebug(appLog) << 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) { qCWarning(appLog) << "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) { qCInfo(appLog) << "[Package Choose]" << levelInfo; for (auto const &candidate_list : dependsList) packageCandidateChoose(choosed_set, debArch, candidate_list, levelInfo); qCInfo(appLog) << "[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; // packageWithArch 可能因"已安装提供者优先"返回虚包的提供者而非真实包。 // 依赖带版本约束时,需按 Debian policy 校验提供者的 Provides 版本: // 1. 提供者的版本化 Provides 能满足约束且已安装,则依赖已满足,无需安装或升级; // 2. 提供者不能满足约束时,回退选择仓库中的真实软件包(与 apt 行为一致), // 避免把无新版本的提供者反复加入安装列表造成空安装循环。 if (package->name() != info.packageName() && !info.packageVersion().isEmpty()) { const QString provideVersion = package->providesListEnhance().value(info.packageName()); const bool providerSatisfies = !provideVersion.isEmpty() && dependencyVersionMatch(Package::compareVersion(provideVersion, info.packageVersion()), info.relationType()); if (providerSatisfies && !package->installedVersion().isEmpty()) { qCInfo(appLog) << "Depend" << info.packageName() << info.packageVersion() << "satisfied by installed provider" << package->name() << "provides" << provideVersion << ", skip installing"; continue; } if (!providerSatisfies) { Package *realPackage = packageWithArch(info.packageName(), debArch, info.multiArchAnnotation(), false); if (realPackage && realPackage->name() == info.packageName()) { qCInfo(appLog) << "Provider" << package->name() << "cannot satisfy" << info.packageName() << info.packageVersion() << "in candidate choose, using real package" << realPackage->name() << realPackage->version(); package = realPackage; } } } 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 deInfo : m_unCheckedOrDepends) { // 遍历或依赖容器中容器中是否存在当前依赖 if (!deInfo.contains(package->name())) { continue; } else { infos = deInfo; m_unCheckedOrDepends.removeOne(deInfo); } } } qCDebug(appLog) << __func__ << infos << package->name() << "ChooseName:" << choosed_name; if (infos.isEmpty()) { // 没有或依赖关系或者当前依赖不属于或依赖关系 qCDebug(appLog) << "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) { qCWarning(appLog) << "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) { qCWarning(appLog) << "libqapt backend loading error"; return; } Package *otherPackage = backend->package(*iter + resolvMultiArchAnnotation(QString(), debArch)); if (!otherPackage) continue; qCDebug(appLog) << __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) { // 若或依赖中其他依赖也需要下载或者存在缺失,则当前依赖需要下载 qCDebug(appLog) << __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 { qCDebug(appLog) << __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() { qCDebug(appLog) << "Getting special package"; 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) { qCDebug(appLog) << "Getting package reverse depends list for package:" << packageName; Package *package = packageWithArch(packageName, sysArch); if (!package) { qCWarning(appLog) << "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) { qCDebug(appLog) << "Checking if package is negative reverse depend for package:" << packageName; if (!reverseDepend) { qCDebug(appLog) << "Reverse depend is null"; 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())) { qCDebug(appLog) << "Package is not negative reverse depend for package:" << packageName; return false; } return containPackage(packageName, reverseDepend->conflicts()) || containPackage(packageName, reverseDepend->replaces()) || containPackage(packageName, reverseDepend->breaks()); } void PackagesManager::reset() { qCDebug(appLog) << "Resetting packages manager"; 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) { qCDebug(appLog) << "Resetting package depends status for index:" << index; // 查看此包是否已经存储依赖状态。 // 提前获取package 的md5 auto currentPackageMd5 = m_packageMd5[index]; if (!m_packageMd5DependsStatus.contains(currentPackageMd5)) { qCDebug(appLog) << "Package depends status not found"; 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) { qCDebug(appLog) << "Removing package for index:" << index; if (index < 0 || index >= m_preparedPackages.size()) { qCWarning(appLog) << "[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; // convert url path (if valid) to local path. for (auto &package : packages) { QUrl url(package); if (url.isLocalFile()) { package = url.toLocalFile(); } } 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; } 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(); // 获取绝对路径 qCInfo(appLog) << "get AbsolutePath" << packageAbsolutePath.absoluteFilePath(); } // 判断当前文件路径中是否存在空格,如果存在则创建软链接并在之后的安装时使用软链接进行访问. if (tempPath.contains(" ")) { QApt::DebFile p(tempPath); if (p.isValid()) { tempPath = SymbolicLink(tempPath, p.packageName()); qCWarning(appLog) << "PackagesManager:" << "There are spaces in the path, add a soft link" << tempPath; } } return tempPath; } Pkg::DependsPair PackagesManager::getPackageDependsDetail(const int index) { qCDebug(appLog) << "Getting package depends detail for index:" << index; if (index < m_packageMd5.size() && index >= 0) { qCDebug(appLog) << "Package depends detail found"; return m_dependsPackages.value(m_packageMd5[index]); } qCDebug(appLog) << "No package depends detail found"; return {}; } /** * @brief PackagesManager::appendNoThread * @param packages * @param allPackageSize */ void PackagesManager::appendNoThread(const QStringList &packages, int allPackageSize) { qCDebug(appLog) << "Appending packages without thread, total packages:" << 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) { qCDebug(appLog) << "All packages appended, emitting signalAppendFinished"; emit signalAppendFinished(m_packageMd5); // 添加一个包时 发送添加结束信号,启用安装按钮 } } /** * @brief PackagesManager::refreshPage 根据添加包的情况 刷新页面 * @param validPkgCount 此次添加的包的数量(一次拖入或者打开【可能是多个包】【此处只是预计能够添加到程序中的包的数量】) */ void PackagesManager::refreshPage(int validPkgCount) { qCDebug(appLog) << "Refreshing page, valid package count:" << 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) { qCDebug(appLog) << "Not the first append or not only one package, emitting signalAppendStart"; Q_EMIT signalAppendStart(); } } /** * @brief PackagesManager::slotAppendPackageFinished 此次添加已经结束 */ void PackagesManager::slotAppendPackageFinished() { qCDebug(appLog) << "Appending package finished, emitting signalAppendFinished"; // 告诉前端,此次添加已经结束 // 向model传递 md5 emit signalAppendFinished(m_packageMd5); } void PackagesManager::addPackage(int validPkgCount, const QString &packagePath, const QByteArray &packageMd5Sum) { qCDebug(appLog) << "Adding package, package path:" << packagePath; // 预先校验包是否有效或是否重复 DebFile currentDebfile(packagePath); if (!currentDebfile.isValid() || m_appendedPackagesMd5.contains(packageMd5Sum)) { qCDebug(appLog) << "Package is invalid or already appended, skipping"; 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 qCDebug(appLog) << "Index row is out of range, skipping"; return; } // 需要在此之前刷新出正确的安装顺序 getPackageDependsStatus(indexRow); // 刷新当前添加包的依赖 refreshPage(validPkgCount); // 添加后,根据添加的状态刷新界面 } QList PackagesManager::getAllDepends(const QList &depends, const QString &architecture) { qCDebug(appLog) << "Getting all depends for dependencies list"; // 检索当前包的所有依赖 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) { qCDebug(appLog) << "Getting all depends for package:" << packageName; 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) { qCDebug(appLog) << "Checking depends package status"; // 只有单包,认为首次进入 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) { qCDebug(appLog) << "Checking depends package status"; 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()); // 将当前依赖从或依赖中删除,检测或依赖中剩余依赖状态 qCInfo(appLog) << 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); } } qCInfo(appLog) << qPrintable("Orpackage depends") << status.status; if (status.isBreak()) // 若剩余依赖中存在状态不为break,则说明依赖关系满足 continue; dependsStatus.minEq(status); if (Pkg::DependsStatus::DependsOk == dependsStatus.status) { qCDebug(appLog) << 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) { qCDebug(appLog) << "Checking depends package status"; 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) { qCWarning(appLog) << "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; const RelationType relation = dependencyInfo.relationType(); #ifdef ENABLE_VIRTUAL_PACKAGE_ENHANCE if (package->name() != package_name) { auto pkgMap = package->providesListEnhance(); auto iter = pkgMap.find(package_name); if (iter != pkgMap.end()) { // 依据 Debian policy 判定提供者能否满足依赖: // 1. 依赖不带版本约束时,任意提供者均可满足; // 2. 依赖带版本约束时,无版本号的 Provides 无法满足, // 带版本号的 Provides 需版本符合关系要求。 const bool provideSatisfies = dependencyInfo.packageVersion().isEmpty() || (!iter->isEmpty() && dependencyVersionMatch(Package::compareVersion(*iter, dependencyInfo.packageVersion()), relation)); if (!provideSatisfies) { // 提供者不满足版本约束(如兼容包的无版本号 Provides), // 回退查找真实软件包(含仓库候选版本,跳过提供者匹配),交由后续流程判定其状态 Package *realPackage = packageWithArch(package_name, realArch, dependencyInfo.multiArchAnnotation(), false); if (realPackage && realPackage->name() == package_name) { qCInfo(appLog) << "PackagesManager:" << "provider" << package->name() << "cannot satisfy" << package_name << dependencyInfo.packageVersion() << ", fall back to real package"; package = realPackage; pkgRealVer = package->version(); } else { // 仓库中不存在真实软件包,只能依赖此提供者,按原逻辑处理 pkgRealVer = *iter; isVirtualPackage = true; } } else { pkgRealVer = *iter; isVirtualPackage = true; } } } #endif 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)) { qCInfo(appLog) << "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()); } } qCWarning(appLog) << "PackagesManager:" << "depends break by" << package->name() << package->architecture() << dependencyInfo.packageVersion(); qCWarning(appLog) << "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)) { qCWarning(appLog) << "PackagesManager:" << "depends break by" << package->name() << package->architecture() << dependencyInfo.packageVersion(); qCWarning(appLog) << "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; // 依赖冲突不属于依赖缺失 qCWarning(appLog) << "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()) { qCInfo(appLog) << "PackagesManager:" << "find a exist provider: " << availablePackage->name(); availablePackage = nullptr; return PackageDependsStatus::ok(); } // provider is ok, switch to provider. if (isConflictSatisfy(realArch, availablePackage).is_ok()) { qCInfo(appLog) << "PackagesManager:" << "switch to depends a new provider: " << availablePackage->name(); choosed_set << availablePackage->name(); availablePackage = nullptr; return PackageDependsStatus::ok(); } availablePackage = nullptr; } qCWarning(appLog) << "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()); qCWarning(appLog) << "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()); } qCInfo(appLog) << "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) { qCDebug(appLog) << "Checking package arch valid for package:" << packageName; QString resloveArch = suggestArch; resloveArch.remove(':'); if (!package) { // 不打印信息,由后续错误信息提示 qCDebug(appLog) << "Package is null"; return false; } else if (resloveArch.isEmpty() || (package->architecture() == resloveArch) || archMultiSupport(resloveArch)) { // 部分传入包名写携带了版本,若版本一致,则无需继续判断 // 建议架构为多架构支持,则同样允许安装 qCDebug(appLog) << "Package arch valid for package:" << packageName; 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) { qCDebug(appLog) << "Backend is null"; 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) { qCDebug(appLog) << "Backend is null"; 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)) { qCInfo(appLog) << 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) { qCInfo(appLog) << 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 { qCWarning(appLog) << QString("Find package %1 (arch:%2, ver:%3)").arg(packageName).arg(package->architecture()).arg(package->version()); qCWarning(appLog) << 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, bool resolveProvider) { qCDebug(appLog) << "Getting package with arch for package:" << packageName; Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qCWarning(appLog) << "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 (package) { // 检查反向提供者:如果当前包未安装,但某个提供者已安装,优先使用已安装的提供者 // resolveProvider 为 false 时跳过(用于回退查找真实软件包的场景) QString installedVersion = package->installedVersion(); if (resolveProvider && installedVersion.isEmpty()) { #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) QString providedPackageName = package->name(); providedPackageName.remove(QRegExp(":[^:]*$")); for (auto *provider : backend->availablePackages()) { if (!provider || provider->installedVersion().isEmpty()) { continue; } #ifdef ENABLE_VIRTUAL_PACKAGE_ENHANCE if (!provider->providesListEnhance().contains(providedPackageName)) { continue; } #else if (!provider->providesList().contains(providedPackageName)) { continue; } #endif // 检查提供者的架构是否有效 if (checkPackageArchValid(provider, packageName, suggestArch)) { qCInfo(appLog) << "Using installed reverse provider" << provider->name() << "instead of" << packageName; return provider; } } #else const auto &reprvList = package->reverseProvidesList(); for (const auto &rep : reprvList) { Package *provider = backend->package(rep); if (provider && !provider->installedVersion().isEmpty()) { // 检查提供者的架构是否有效 if (checkPackageArchValid(provider, packageName, suggestArch)) { qCInfo(appLog) << "Using installed reverse provider" << rep << "instead of" << packageName; return provider; } } } #endif } } 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 if (resolveProvider) { for (auto *virtualPackage : backend->availablePackages()) { if (virtualPackage->name() != packageName && virtualPackage->providesList().contains(packageName)) { return packageWithArch(virtualPackage->name(), sysArch, annotation); } } } qCDebug(appLog) << "No package with arch found for package:" << packageName; return nullptr; } /** * @brief PackagesManager::SymbolicLink 创建软连接 * @param previousName 原始路径 * @param packageName 软件包的包名 * @return 软链接的路径 */ QString PackagesManager::SymbolicLink(const QString &previousName, const QString &packageName) { qCDebug(appLog) << "Creating symbolic link for package:" << packageName; if (!mkTempDir()) { // 如果创建临时目录失败,则提示 qCWarning(appLog) << "PackagesManager:" << "Failed to create temporary folder"; return previousName; } // 成功则开始创建 return link(previousName, packageName); } /** * @brief PackagesManager::mkTempDir 创建软链接存放的临时目录 * @return 创建目录的结果 */ bool PackagesManager::mkTempDir() { qCDebug(appLog) << "Creating temporary directory"; 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) { qCDebug(appLog) << "Linking package:" << packageName; QFile linkDeb(linkPath); // 创建软链接时,如果当前临时目录中存在同名文件,即同一个名字的应用,考虑到版本可能有变化,将后续添加进入的包重命名为{packageName}_i // 删除后再次添加会在临时文件的后面添加_1,此问题不影响安装。如果有问题,后续再行修改。 int count = 1; static const QString kDebSuffix = ".deb"; QString tempName = packageName + kDebSuffix; // 命名创建的软链接文件 while (true) { QFile tempLinkPath(m_tempLinkDir + tempName); // 对已经存在重名文件的处理 if (tempLinkPath.exists()) { // 命名方式为在包名后+"_i" PS:i 为当前重复的数字,无实际意义,只是为了区别不同的包 tempName = packageName + "_" + QString::number(count) + kDebSuffix; qCWarning(appLog) << "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 { // 创建失败,直接返回路径 qCWarning(appLog) << "PackagesManager:" << "Failed to create Symbolick link error."; return linkPath; } } /** * @brief PackagesManager::rmTempDir 删除存放软链接的临时目录 * @return 删除临时目录的结果 * PS: 移动创建临时目录 创建软链接的函数到 AddPackageThread中 * */ bool PackagesManager::rmTempDir() { qCDebug(appLog) << "Removing temporary directory"; QDir tempPath(m_tempLinkDir); if (tempPath.exists()) // 如果临时目录存在,则删除临时目录 return tempPath.removeRecursively(); else return true; // 临时目录不存在,返回删除成功 } QString PackagesManager::package(const int index) const { qCDebug(appLog) << "Getting package for index:" << index; return m_preparedPackages[index]; } void PackagesManager::getBlackApplications() { qCDebug(appLog) << "Getting black application list"; m_blackApplicationList = Utils::parseBlackList(); } /** @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) { qCDebug(appLog) << "Filtering need install wine package"; // 额外判断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())) { qCInfo(appLog) << QString("Wine package %1 without architecture info").arg(eachDepend); // 无依赖架构信息,使用默认包 Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qCWarning(appLog) << 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) { qCWarning(appLog) << QString("Wine package %1 not found!").arg(eachDepend); return false; } qCInfo(appLog) << 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()) { // 未安装软件包,需进行安装 qCInfo(appLog) << 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()); qCInfo(appLog) << 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) { qCDebug(appLog) << "Refreshing package marked info for: " << filePath; if (m_markedDepends.contains(md5)) { qCDebug(appLog) << "Package marked info already exists"; 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) { qCDebug(appLog) << "Checking if application is in blacklist:" << applicationName; if (m_blackApplicationList.contains(applicationName)) { qCDebug(appLog) << "Application is in blacklist:" << applicationName; return true; } qCDebug(appLog) << "Application is not in blacklist:" << applicationName; return false; } PackagesManager::~PackagesManager() { qCDebug(appLog) << "Destroying packages manager"; // 删除 临时目录,会尝试四次,四次失败后退出。 int rmTempDirCount = 0; while (true) { if (rmTempDir()) // 删除成功 break; qCWarning(appLog) << "PackagesManager:" << "Failed to delete temporary folder, Current attempts:" << rmTempDirCount << "/3"; if (rmTempDirCount > 3) { // 删除三次仍然失败则警告 不过每次重启都会删除临时目录 qCWarning(appLog) << "PackagesManager:" << "Failed to delete temporary folder, Exit application"; break; } rmTempDirCount++; } qCDebug(appLog) << "Deleting install wine thread"; delete m_installWineThread; delete m_pAddPackageThread; } deepin-deb-installer-6.5.51/src/deb-installer/manager/packagesmanager.h000066400000000000000000000522631524745214100260240ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2026 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; 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(); static bool forceCompatible() { return s_forceCompatible; } static void setForceCompatible(bool force) { s_forceCompatible = force; } /** * @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 isLoongArchCompatible Check if a loongarch64 package should be redirected * to compatible mode installation on a loong64 system. * * loong64 (the Debian LoongArch port name) and loongarch64 (the legacy arch name * used by older toolchains / packages) refer to the same ISA. A loongarch64 .deb * cannot be installed natively on a loong64 system via dpkg, but it can be * installed through the compatible-mode rootfs. * * @param sysArch Native system architecture reported by the apt backend (e.g. "loong64") * @param pkgArch Architecture field of the .deb package (e.g. "loongarch64") * @return true when the package should bypass the arch-error check and be * redirected to compatible-mode installation. */ static bool isLoongArchCompatible(const QString &sysArch, const QString &pkgArch); /** * @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); bool cachedPackageDependStatus(const int index) const; /** * @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(), bool resolveProvider = true); /** * @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; // 依赖关系图计算器 static bool s_forceCompatible; }; #endif // PACKAGESMANAGER_H deepin-deb-installer-6.5.51/src/deb-installer/model/000077500000000000000000000000001524745214100222205ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/deb-installer/model/abstract_package_list_model.cpp000066400000000000000000000030611524745214100304150ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "abstract_package_list_model.h" #include "utils/ddlog.h" /** @class AbstractPackageListModel @brief Interface for the package data model and package installation control. */ AbstractPackageListModel::AbstractPackageListModel(QObject *parent) : QAbstractListModel(parent) { qCDebug(appLog) << "Constructing AbstractPackageListModel"; } AbstractPackageListModel::WorkerStatus AbstractPackageListModel::getWorkerStatus() const { qCDebug(appLog) << "Getting worker status:" << m_workerStatus; return m_workerStatus; } /** * @brief Set the worker `status` and emit the corresponding signal. */ void AbstractPackageListModel::setWorkerStatus(WorkerStatus status) { qCDebug(appLog) << "Worker status changed from" << m_workerStatus << "to" << status; m_workerStatus = status; switch (status) { case WorkerProcessing: qCDebug(appLog) << "Worker status is Processing, emitting signalWorkerStart."; Q_FALLTHROUGH(); case WorkerUnInstall: qCDebug(appLog) << "Worker status is UnInstall, emitting signalWorkerStart."; Q_EMIT signalWorkerStart(); break; case WorkerFinished: qCDebug(appLog) << "Worker status is Finished, emitting signalWorkerFinished."; Q_EMIT signalWorkerFinished(); break; default: qCDebug(appLog) << "Worker status is other, do nothing."; break; } } deepin-deb-installer-6.5.51/src/deb-installer/model/abstract_package_list_model.h000066400000000000000000000131561524745214100300700ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 - 2026 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 PackageFailCodeRole, // sa Pkg::ErrorCode, fail code 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 PackageSharedPointerRole, // return DebPackage::Ptr }; // 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.51/src/deb-installer/model/backend/000077500000000000000000000000001524745214100236075ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/deb-installer/model/backend/apt_install_backend.cpp000066400000000000000000000735641524745214100303130ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "apt_install_backend.h" #include "model/deblistmodel.h" #include "manager/packagesmanager.h" #include "manager/PackageDependsStatus.h" #include "model/packageanalyzer.h" #include "utils/ddlog.h" #include "utils/utils.h" #include "utils/hierarchicalverify.h" #include "utils/package_defines.h" #include "view/pages/AptConfigMessage.h" #include "view/pages/settingdialog.h" #include "singleInstallerApplication.h" #include #include #include #include #include using namespace QApt; AptInstallBackend::AptInstallBackend(DebListModel *model, QObject *parent) : InstallBackend{model, parent} { } AptInstallBackend::~AptInstallBackend() = default; bool AptInstallBackend::verifySignature(int index) { Q_UNUSED(index) qCWarning(appLog) << "AptInstallBackend::verifySignature(int) entering"; // 社区版不读取设置,保持 m_isDigitalVerify 默认值 false if (DSysInfo::uosEditionType() != DSysInfo::UosCommunity) { SettingDialog dialog; m_model->m_isDigitalVerify = dialog.isDigitalVerified(); } int digitalSigntual = Utils::Digital_Verify(m_model->m_packagesManager->package(m_model->m_operatingIndex)); qCWarning(appLog) << "verifySignature(int) m_isDevelopMode:" << m_model->m_isDevelopMode << " /m_isDigitalVerify:" << m_model->m_isDigitalVerify << " /digitalSigntual:" << digitalSigntual; // 无数字签名:专业版检查Mode属性,社区版走开发者模式逻辑 if (digitalSigntual == Utils::DebfileInexistence) { if (HierarchicalVerify::instance()->isValid()) { // 专业版:Mode为0允许安装,否则弹安全中心对话框 if (HierarchicalVerify::instance()->allowInstallUnsigned()) { qCWarning(appLog) << "verifySignature(int): No signature, Mode=0, allowing install"; return true; } qCWarning(appLog) << "verifySignature(int): No signature, Mode!=0, showing security center dialog"; m_model->showNoDigitalErrWindow(); return false; } // 社区版:非开发者模式弹签名无效提示,开发者模式按验签设置处理 if (!m_model->m_isDevelopMode) { qCWarning(appLog) << "verifySignature(int): No signature, community non-developer, showDigitalErrWindow"; m_model->showDigitalErrWindow(); return false; } if (!m_model->m_isDigitalVerify) { qCWarning(appLog) << "verifySignature(int): No signature, community developer no verify, allowing"; return true; } qCWarning(appLog) << "verifySignature(int): No signature, community developer with verify, showDevelopDigitalErrWindow"; m_model->showDevelopDigitalErrWindow(Pkg::NoDigitalSignature); return false; } // 有签名的情况按原逻辑处理 if (m_model->m_isDevelopMode && !m_model->m_isDigitalVerify) { qCWarning(appLog) << "verifySignature(int): developer mode + no digital verify, returning true"; return true; } else if (m_model->m_isDevelopMode && m_model->m_isDigitalVerify) { qCWarning(appLog) << "verifySignature(int): developer mode + digital verify enabled"; if (digitalSigntual == Utils::VerifySuccess) { qCWarning(appLog) << "verifySignature(int): signature ok in developer mode"; return true; } else { qCWarning(appLog) << "verifySignature(int): signature failed in developer mode, showDevelopDigitalErrWindow"; Pkg::ErrorCode code = Pkg::DigitalSignatureError; m_model->showDevelopDigitalErrWindow(code); return false; } } else { qCWarning(appLog) << "verifySignature(int): non-developer mode"; bool verifiedResult = false; switch (digitalSigntual) { case Utils::VerifySuccess: qCWarning(appLog) << "verifySignature(int): non-developer signature ok"; verifiedResult = true; break; case Utils::ExtractDebFail: qCWarning(appLog) << "verifySignature(int): extract deb failed, showDigitalErrWindow"; m_model->showDigitalErrWindow(); verifiedResult = false; break; case Utils::DebVerifyFail: case Utils::OtherError: qCWarning(appLog) << "verifySignature(int): verify failed, showDigitalErrWindow"; m_model->showDigitalErrWindow(); verifiedResult = false; break; default: qCWarning(appLog) << "verifySignature(int): unknown signature error"; verifiedResult = false; break; } return verifiedResult; } } bool AptInstallBackend::verifySignature(const QString &packagePath) { qCWarning(appLog) << "AptInstallBackend::verifySignature(packagePath) entering for" << packagePath; // 社区版不读取设置,保持 m_isDigitalVerify 默认值 false if (DSysInfo::uosEditionType() != DSysInfo::UosCommunity) { SettingDialog dialog; m_model->m_isDigitalVerify = dialog.isDigitalVerified(); } int digitalSigntual = Utils::Digital_Verify(packagePath); qCInfo(appLog) << "m_isDevelopMode:" << m_model->m_isDevelopMode << " /m_isDigitalVerify:" << m_model->m_isDigitalVerify << " /digitalSigntual:" << digitalSigntual; // 无数字签名:专业版检查Mode属性,社区版走开发者模式逻辑 if (digitalSigntual == Utils::DebfileInexistence) { if (HierarchicalVerify::instance()->isValid()) { if (HierarchicalVerify::instance()->allowInstallUnsigned()) { qCWarning(appLog) << "verifySignature(packagePath): No signature, Mode=0, allowing install"; return true; } qCWarning(appLog) << "verifySignature(packagePath): No signature, Mode!=0, showing security center dialog"; m_model->showNoDigitalErrWindow(); return false; } if (!m_model->m_isDevelopMode) { qCWarning(appLog) << "verifySignature(packagePath): No signature, community non-developer, showDigitalErrWindow"; m_model->showDigitalErrWindow(); return false; } if (!m_model->m_isDigitalVerify) { qCWarning(appLog) << "verifySignature(packagePath): No signature, community developer no verify, allowing"; return true; } qCWarning(appLog) << "verifySignature(packagePath): No signature, community developer with verify, showDevelopDigitalErrWindow"; m_model->showDevelopDigitalErrWindow(Pkg::NoDigitalSignature); return false; } // 有签名的情况按原逻辑处理 if (m_model->m_isDevelopMode && !m_model->m_isDigitalVerify) { qCWarning(appLog) << "verifySignature(packagePath): developer mode + no digital verify, returning true"; return true; } else if (m_model->m_isDevelopMode && m_model->m_isDigitalVerify) { qCWarning(appLog) << "verifySignature(packagePath): developer mode + digital verify enabled"; if (digitalSigntual == Utils::VerifySuccess) { qCWarning(appLog) << "Signature verification successful in developer mode"; return true; } else { qCWarning(appLog) << "Signature verification failed in developer mode, showing develop digital err window"; Pkg::ErrorCode code = Pkg::DigitalSignatureError; m_model->showDevelopDigitalErrWindow(code); return false; } } else { qCWarning(appLog) << "verifySignature(packagePath): non-developer mode"; bool verifiedResult = false; switch (digitalSigntual) { case Utils::VerifySuccess: qCWarning(appLog) << "verifySignature(packagePath): non-developer signature ok"; verifiedResult = true; break; case Utils::ExtractDebFail: qCWarning(appLog) << "verifySignature(packagePath): extract deb failed, showing digital error window"; m_model->showDigitalErrWindow(); verifiedResult = false; break; case Utils::DebVerifyFail: case Utils::OtherError: qCWarning(appLog) << "verifySignature(packagePath): verify failed or other error, showing digital error window"; m_model->showDigitalErrWindow(); verifiedResult = false; break; default: qCWarning(appLog) << "Non-developer: unknown signature error"; verifiedResult = false; break; } return verifiedResult; } } bool AptInstallBackend::install(int index) { Q_UNUSED(index) qCDebug(appLog) << "AptInstallBackend::install entering for operating index" << m_model->m_operatingIndex; DebFile deb(m_model->m_packagesManager->package(m_model->m_operatingIndex)); if (!deb.isValid()) { qCDebug(appLog) << "Deb file is invalid, returning false"; return false; } qCInfo(appLog) << QString("Prepare to install %1, ver: %2, arch: %3").arg(deb.packageName()).arg(deb.version()).arg(deb.architecture()); Q_ASSERT_X(m_model->m_workerStatus == AbstractPackageListModel::WorkerProcessing, Q_FUNC_INFO, "installer status error"); Q_ASSERT_X(m_currentTransaction.isNull(), Q_FUNC_INFO, "previous transaction not finished"); // Emit signal before checking dpkg, same as original qCDebug(appLog) << "Emitting signalWorkerStart"; Q_EMIT m_model->signalWorkerStart(); auto *const backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qCDebug(appLog) << "Backend pointer is null, returning false"; return false; } Transaction *transaction = nullptr; const auto dependsStat = m_model->m_packagesManager->getPackageDependsStatus(m_model->m_operatingStatusIndex); // Dependencies not satisfiable if (!dependsStat.canInstall()) { qCDebug(appLog) << "Dependencies cannot be satisfied"; m_model->refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); m_model->m_packageFailCode.insert(m_model->m_operatingPackageMd5, -1); m_model->m_packageFailReason.insert(m_model->m_operatingPackageMd5, m_model->packageFailedReason(m_model->m_operatingStatusIndex)); qCDebug(appLog) << "Bumping install index due to unsatisfied dependencies"; m_model->bumpInstallIndex(); return true; } if (dependsStat.isAvailable()) { // Dependencies available, need to download and install deps first qCDebug(appLog) << "Dependencies are available"; if (DebListModel::isDpkgRunning()) { qCInfo(appLog) << "AptInstallBackend: dpkg running, waiting..."; qCDebug(appLog) << "Dpkg is running, waiting before next install check"; QTimer::singleShot(1000, m_model, [this]() { m_model->installNextDeb(); }); return true; } Q_ASSERT_X(m_model->m_packageOperateStatus[m_model->m_operatingPackageMd5], Q_FUNC_INFO, "package operate status error when start install available dependencies"); const QStringList availableDepends = m_model->m_packagesManager->packageAvailableDepends(m_model->m_operatingIndex); qCInfo(appLog) << QString("Prepare install package: %1 , install depends: ").arg(deb.packageName()) << availableDepends; for (auto const &p : availableDepends) { if (p.contains(" not found")) { qCDebug(appLog) << "Dependency not found:" << p; m_model->refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); m_model->m_packageFailCode.insert(m_model->m_operatingPackageMd5, DownloadDisallowedError); m_model->m_packageFailReason.insert(m_model->m_operatingPackageMd5, p); Q_EMIT m_model->signalAppendOutputInfo(m_model->m_packagesManager->package(m_model->m_operatingIndex) + "'s depend " + " " + p); m_model->bumpInstallIndex(); qWarning() << QString("Package %1 install failed, not found depend package: %2").arg(deb.packageName()).arg(p); return true; } qCDebug(appLog) << "Marking dependency for installation:" << p; backend->markPackageForInstall(p); } // Print depends changes m_model->printDependsChanges(); qCDebug(appLog) << "Committing changes for dependency installation"; transaction = backend->commitChanges(); if (!transaction) { qCDebug(appLog) << "Transaction is null after committing changes, returning false"; return false; } // Dependency install result handler connect(transaction, &Transaction::finished, this, &AptInstallBackend::slotDependsInstallTransactionFinished); } else { // Direct install (all deps satisfied) qCDebug(appLog) << "Dependencies are satisfied, installing directly"; if (DebListModel::isDpkgRunning()) { qCInfo(appLog) << "AptInstallBackend: dpkg running, waiting..."; qCDebug(appLog) << "Dpkg is running, waiting before next install check"; QTimer::singleShot(1000, m_model, [this]() { m_model->installNextDeb(); }); return true; } qCDebug(appLog) << "Installing file directly"; transaction = backend->installFile(deb); if (!transaction) { qCDebug(appLog) << "Transaction is null after installing file, returning false"; return false; } // Progress and finish handlers connect(transaction, &Transaction::progressChanged, m_model, &DebListModel::signalCurrentPacakgeProgressChanged); connect(transaction, &Transaction::finished, this, &AptInstallBackend::slotTransactionFinished); } // NOTE: DO NOT remove this. transaction->setLocale(".UTF-8"); // Log output connect(transaction, &Transaction::statusDetailsChanged, m_model, &DebListModel::signalAppendOutputInfo); // Refresh operating status connect(transaction, &Transaction::statusDetailsChanged, this, &AptInstallBackend::slotTransactionOutput); // Auth handling connect(transaction, &Transaction::statusChanged, this, &AptInstallBackend::slotTransactionStatusChanged); // Error handling connect(transaction, &Transaction::errorOccurred, this, &AptInstallBackend::slotTransactionErrorOccurred); m_currentTransaction = transaction; #ifdef ENABLE_QAPT_SETENV QProcessEnvironment env = QProcessEnvironment::systemEnvironment(); QVariantMap map; QString currentUser = env.value("USER"); QString realUser = env.value("SUDO_USER"); if (realUser.isEmpty()) realUser = currentUser; map.insert("SUDO_USER", realUser); m_currentTransaction->setEnvVariable(map); #endif qCDebug(appLog) << "Running current transaction"; m_currentTransaction->run(); return true; } bool AptInstallBackend::uninstall(int index) { Q_UNUSED(index) qCDebug(appLog) << "AptInstallBackend::uninstall entering for index" << m_model->m_operatingIndex; DebFile debFile(m_model->m_packagesManager->package(m_model->m_operatingIndex)); if (!debFile.isValid()) { qCWarning(appLog) << "Invalid deb file at index" << m_model->m_operatingIndex; return false; } const QStringList rdepends = m_model->m_packagesManager->packageReverseDependsList(debFile.packageName(), debFile.architecture()); qCInfo(appLog) << QString("Will remove reverse depends before remove %1, Lists:").arg(debFile.packageName()) << rdepends; Backend *backend = PackageAnalyzer::instance().backendPtr(); qCInfo(appLog) << "Uninstalling reverse dependencies:" << rdepends; for (const auto &r : rdepends) { if (backend->package(r)) { qCDebug(appLog) << "Purging reverse dependency:" << r; backend->package(r)->setPurge(); } else { qCWarning(appLog) << "Failed to find reverse dependency package:" << r; } } const QString packageId = debFile.packageName() + ':' + debFile.architecture(); qCDebug(appLog) << "Looking up package to uninstall:" << packageId; QApt::Package *uninstalledPackage = backend->package(packageId); if (!uninstalledPackage) { qCWarning(appLog) << "Failed to find package to uninstall:" << packageId; m_model->refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); return false; } uninstalledPackage->setPurge(); m_model->refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Operating); Transaction *transsaction = backend->commitChanges(); connect(transsaction, &Transaction::progressChanged, m_model, &DebListModel::signalCurrentPacakgeProgressChanged); connect(transsaction, &Transaction::statusDetailsChanged, m_model, &DebListModel::signalAppendOutputInfo); connect(transsaction, &Transaction::statusChanged, this, &AptInstallBackend::slotTransactionStatusChanged); connect(transsaction, &Transaction::errorOccurred, this, &AptInstallBackend::slotTransactionErrorOccurred); connect(transsaction, &Transaction::finished, this, &AptInstallBackend::slotUninstallFinished); connect(transsaction, &Transaction::finished, transsaction, &Transaction::deleteLater); m_currentTransaction = transsaction; #ifdef ENABLE_QAPT_SETENV QProcessEnvironment env = QProcessEnvironment::systemEnvironment(); QVariantMap map; QString currentUser = env.value("USER"); QString realUser = env.value("SUDO_USER"); if (realUser.isEmpty()) realUser = currentUser; map.insert("SUDO_USER", realUser); transsaction->setEnvVariable(map); #endif qCDebug(appLog) << "Starting uninstall transaction for package:" << packageId; transsaction->run(); return true; } void AptInstallBackend::slotTransactionOutput() { qCDebug(appLog) << "Entering AptInstallBackend::slotTransactionOutput"; if (m_model->m_workerStatus == AbstractPackageListModel::WorkerProcessing) { qCInfo(appLog) << "installer status error"; } Transaction *trans = qobject_cast(sender()); if (!trans) { qCDebug(appLog) << "Transaction object is null, returning"; return; } qCDebug(appLog) << "Refreshing package status to Operating"; m_model->refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Operating); disconnect(trans, &Transaction::statusDetailsChanged, this, &AptInstallBackend::slotTransactionOutput); } void AptInstallBackend::slotTransactionFinished() { qCDebug(appLog) << "Entering AptInstallBackend::slotTransactionFinished"; if (m_model->m_workerStatus == AbstractPackageListModel::WorkerProcessing) { qWarning() << "installer status still processing"; } Transaction *transaction = qobject_cast(sender()); if (!transaction) { qCDebug(appLog) << "Transaction object is null, returning"; return; } // Prevent next signal qCDebug(appLog) << "Disconnecting transaction finished signal"; disconnect(transaction, &Transaction::finished, this, &AptInstallBackend::slotTransactionFinished); // Report progress int progressValue = static_cast(100. * (m_model->m_operatingIndex + 1) / m_model->preparedPackages().size()); qCDebug(appLog) << "Updating whole progress to" << progressValue; Q_EMIT m_model->signalWholeProgressChanged(progressValue); qCInfo(appLog) << "AptInstallBackend: transaction finished with exit status:" << transaction->exitStatus(); if (transaction->exitStatus()) { qCDebug(appLog) << "Transaction finished with an error"; qWarning() << transaction->error() << transaction->errorDetails() << transaction->errorString(); QString errorInfo = transaction->errorDetails(); if (errorInfo.isEmpty()) { qCDebug(appLog) << "Error details is empty, using error string"; errorInfo = transaction->errorString(); } QString sPackageName = m_model->m_packagesManager->package(m_model->m_operatingIndex); bool verifyError = HierarchicalVerify::instance()->checkTransactionError(sPackageName, errorInfo); qCDebug(appLog) << "Hierarchical verification result:" << verifyError; if (verifyError) { qCDebug(appLog) << "Hierarchical verification failed, setting flag"; m_model->m_hierarchicalVerifyError = true; } m_model->m_packageFailCode[m_model->m_operatingPackageMd5] = verifyError ? static_cast(Pkg::DigitalSignatureError) : static_cast(transaction->error()); m_model->m_packageFailReason[m_model->m_operatingPackageMd5] = transaction->errorString(); qCDebug(appLog) << "Refreshing package status to Failed"; m_model->refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); Q_EMIT m_model->signalAppendOutputInfo(transaction->errorString()); } else if (m_model->m_packageOperateStatus.contains(m_model->m_operatingPackageMd5) && m_model->m_packageOperateStatus[m_model->m_operatingPackageMd5] != Pkg::PackageOperationStatus::Failed) { qCDebug(appLog) << "Transaction finished successfully"; m_model->refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Success); if (m_model->m_operatingStatusIndex < m_model->preparedPackages().size() - 1) { qCDebug(appLog) << "Preparing for next package installation"; auto md5 = m_model->m_packagesManager->getPackageMd5(m_model->m_operatingIndex + 1); m_model->m_packageOperateStatus[md5] = Pkg::PackageOperationStatus::Waiting; } } if (!m_currentTransaction.isNull()) { qCDebug(appLog) << "Deleting current transaction"; m_currentTransaction->deleteLater(); m_currentTransaction = nullptr; } transaction = nullptr; qCDebug(appLog) << "Bumping install index"; m_model->bumpInstallIndex(); } void AptInstallBackend::slotDependsInstallTransactionFinished() { qCDebug(appLog) << "Entering AptInstallBackend::slotDependsInstallTransactionFinished"; if (m_model->m_workerStatus == AbstractPackageListModel::WorkerProcessing) { qWarning() << "installer status still processing"; } Transaction *transaction = qobject_cast(sender()); if (!transaction) { qCDebug(appLog) << "Transaction object is null, returning"; return; } const auto transExitStatus = transaction->exitStatus(); qCDebug(appLog) << "Transaction exit status:" << transExitStatus; if (transExitStatus) { qCDebug(appLog) << "Dependency installation transaction failed"; qWarning() << transaction->error() << transaction->errorDetails() << transaction->errorString(); m_model->m_packageFailCode[m_model->m_operatingPackageMd5] = transaction->error(); m_model->m_packageFailReason[m_model->m_operatingPackageMd5] = transaction->errorString(); m_model->refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); Q_EMIT m_model->signalAppendOutputInfo(transaction->errorString()); } if (!m_currentTransaction.isNull()) { qCDebug(appLog) << "Deleting current transaction"; m_currentTransaction->deleteLater(); m_currentTransaction = nullptr; } transaction = nullptr; if (transExitStatus) { qCDebug(appLog) << "Bumping install index due to failed dependency install"; m_model->bumpInstallIndex(); } else { qCDebug(appLog) << "Dependency installation successful, invalidating depends status cache"; m_model->m_packagesManager->resetPackageDependsStatus(m_model->m_operatingStatusIndex); qCDebug(appLog) << "Dependency installation successful, installing next deb"; // Dependencies already verified, no need to re-verify m_model->installNextDeb(); } } void AptInstallBackend::slotTransactionErrorOccurred() { qCDebug(appLog) << "Entering AptInstallBackend::slotTransactionErrorOccurred"; if (AbstractPackageListModel::WorkerProcessing != m_model->m_workerStatus) { qWarning() << "installer status error" << m_model->m_workerStatus; } Transaction *transaction = qobject_cast(sender()); if (!transaction) { qCWarning(appLog) << "Transaction object is null, returning."; return; } m_model->refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); m_model->m_packageOperateStatus[m_model->m_operatingPackageMd5] = Pkg::PackageOperationStatus::Failed; m_model->m_packageFailCode[m_model->m_operatingPackageMd5] = transaction->error(); m_model->m_packageFailReason[m_model->m_operatingPackageMd5] = transaction->errorString(); if (!transaction->errorString().contains("proper authorization was not provided")) { qCDebug(appLog) << "Emitting signalAppendOutputInfo with error:" << transaction->errorString(); Q_EMIT m_model->signalAppendOutputInfo(transaction->errorString()); } const QApt::ErrorCode errorCode = transaction->error(); qWarning() << "AptInstallBackend:" << "Transaction Error:" << errorCode << m_model->workerErrorString(errorCode, transaction->errorString()); qWarning() << "AptInstallBackend:" << "Error Information:" << transaction->errorDetails() << transaction->errorString(); if (transaction->isCancellable()) { qCDebug(appLog) << "Cancelling transaction."; transaction->cancel(); } // Special handling for auth errors if (AuthError == errorCode) { qCDebug(appLog) << "Handling authorization error."; transaction->deleteLater(); QTimer::singleShot( 100, this, &AptInstallBackend::checkBoxStatus); qWarning() << "AptInstallBackend:" << "Authorization error"; Q_EMIT m_model->signalLockForAuth(false); Q_EMIT m_model->signalAuthCancel(); Q_EMIT m_model->signalEnableCloseButton(true); m_model->m_workerStatus = AbstractPackageListModel::WorkerPrepare; return; } qCDebug(appLog) << "Setting transaction exit status to failed."; transaction->setProperty("exitStatus", QApt::ExitFailed); } void AptInstallBackend::slotTransactionStatusChanged(TransactionStatus transactionStatus) { qCDebug(appLog) << "AptInstallBackend::slotTransactionStatusChanged status:" << transactionStatus; switch (transactionStatus) { case TransactionStatus::AuthenticationStatus: qCDebug(appLog) << "Transaction status: AuthenticationStatus, emitting signalLockForAuth(true)."; Q_EMIT m_model->signalLockForAuth(true); break; case TransactionStatus::WaitingStatus: qCDebug(appLog) << "Transaction status: WaitingStatus, emitting signalLockForAuth(false)."; Q_EMIT m_model->signalLockForAuth(false); break; default: qCDebug(appLog) << "Transaction status: unhandled status."; break; } } void AptInstallBackend::slotUninstallFinished() { qCDebug(appLog) << "Entering AptInstallBackend::slotUninstallFinished"; if (m_model->m_workerStatus == AbstractPackageListModel::WorkerProcessing) { qCInfo(appLog) << "installer status error"; } Transaction *trans = qobject_cast(sender()); if (!trans) { qCDebug(appLog) << "Transaction object is null, returning"; return; } if (trans->exitStatus()) { qCDebug(appLog) << "Uninstall finished with an error"; m_model->m_workerStatus = AbstractPackageListModel::WorkerFinished; m_model->refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); m_model->m_packageOperateStatus[m_model->m_operatingPackageMd5] = Pkg::PackageOperationStatus::Failed; qWarning() << "AptInstallBackend:" << "uninstall finished with finished code:" << trans->error() << "finished details:" << trans->errorString(); } else { qCDebug(appLog) << "Uninstall finished successfully"; m_model->m_workerStatus = AbstractPackageListModel::WorkerFinished; m_model->refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Success); m_model->m_packageOperateStatus[m_model->m_operatingPackageMd5] = Pkg::PackageOperationStatus::Success; } qCDebug(appLog) << "Emitting signalWorkerFinished for uninstall"; Q_EMIT m_model->signalWorkerFinished(); trans->deleteLater(); } void AptInstallBackend::setEndEnable() { qCDebug(appLog) << "Entering AptInstallBackend::setEndEnable"; Q_EMIT m_model->signalEnableReCancelBtn(true); } void AptInstallBackend::checkBoxStatus() { qCDebug(appLog) << "Entering AptInstallBackend::checkBoxStatus"; QTime startTime = QTime::currentTime(); Transaction *transation = nullptr; auto *const backend = PackageAnalyzer::instance().backendPtr(); qCDebug(appLog) << "Committing changes to backend"; transation = backend->commitChanges(); QTime stopTime = QTime::currentTime(); int elapsed = startTime.msecsTo(stopTime); if (elapsed > 20000) { qCDebug(appLog) << "Commit timeout, re-checking status"; QTimer::singleShot(100, this, &AptInstallBackend::checkBoxStatus); return; } if (transation) { if (transation->isCancellable()) { qCDebug(appLog) << "Transaction is cancellable, cancelling it"; transation->cancel(); QTimer::singleShot(100, this, &AptInstallBackend::setEndEnable); } else { qCDebug(appLog) << "Transaction is not cancellable, re-checking status"; QTimer::singleShot(100, this, &AptInstallBackend::checkBoxStatus); } } else { qWarning() << "AptInstallBackend:" << "Transaction is Nullptr"; } } deepin-deb-installer-6.5.51/src/deb-installer/model/backend/apt_install_backend.h000066400000000000000000000021711524745214100277420ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef APT_INSTALL_BACKEND_H #define APT_INSTALL_BACKEND_H #include "install_backend.h" #include #include class AptInstallBackend : public InstallBackend { Q_OBJECT friend class DebListModel; public: explicit AptInstallBackend(DebListModel *model, QObject *parent = nullptr); ~AptInstallBackend() override; bool verifySignature(int index) override; bool verifySignature(const QString &packagePath); bool install(int index) override; bool uninstall(int index) override; private slots: void slotTransactionOutput(); void slotTransactionFinished(); void slotDependsInstallTransactionFinished(); void slotTransactionErrorOccurred(); void slotTransactionStatusChanged(QApt::TransactionStatus transactionStatus); void slotUninstallFinished(); private: void setEndEnable(); void checkBoxStatus(); QPointer m_currentTransaction; Q_DISABLE_COPY(AptInstallBackend) }; #endif // APT_INSTALL_BACKEND_H deepin-deb-installer-6.5.51/src/deb-installer/model/backend/compatible_install_backend.cpp000066400000000000000000000116721524745214100316360ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "compatible_install_backend.h" #include "compatible/compatible_backend.h" #include "model/deblistmodel.h" #include "view/pages/AptConfigMessage.h" #include "utils/ddlog.h" #include "utils/package_defines.h" #ifndef DISABLE_COMPATIBLE CompatibleInstallBackend::CompatibleInstallBackend(DebListModel *model, QObject *parent) : InstallBackend{model, parent} { } CompatibleInstallBackend::~CompatibleInstallBackend() = default; bool CompatibleInstallBackend::verifySignature(int index) { Q_UNUSED(index) qCDebug(appLog) << "CompatibleInstallBackend::verifySignature"; // Compatible mode defers signature verification to the post-install // check in CompatibleProcessController::onFinished() via // HierarchicalVerify::checkTransactionError(). return true; } bool CompatibleInstallBackend::install(int index) { qCDebug(appLog) << "CompatibleInstallBackend::install, index:" << index; ensureProcessor(); auto pkg = m_model->packagePtr(index); if (!pkg) { qCWarning(appLog) << "No package pointer for index" << index; return false; } return m_compProcessor->install(pkg); } bool CompatibleInstallBackend::uninstall(int index) { qCDebug(appLog) << "CompatibleInstallBackend::uninstall, index:" << index; ensureProcessor(); auto pkg = m_model->packagePtr(index); if (!pkg) { qCWarning(appLog) << "No package pointer for index" << index; return false; } return m_compProcessor->uninstall(pkg); } bool CompatibleInstallBackend::isRunning() const { return m_compProcessor && m_compProcessor->isRunning(); } void CompatibleInstallBackend::writeConfigData(const QString &configData) { if (m_compProcessor) { m_compProcessor->writeConfigData(configData); } } bool CompatibleInstallBackend::needTemplates() const { return m_compProcessor && m_compProcessor->needTemplates(); } void CompatibleInstallBackend::ensureProcessor() { qCDebug(appLog) << "Ensuring compatible processor"; if (!m_compProcessor) { m_compProcessor.reset(new Compatible::CompatibleProcessController); connect( m_compProcessor.data(), &Compatible::CompatibleProcessController::processOutput, this, [this](const QString &output) { Q_EMIT m_model->signalAppendOutputInfo(output); if (m_model->configWindow->isVisible()) { m_model->configWindow->appendTextEdit(output); } else if (m_compProcessor->needTemplates()) { m_model->configWindow->appendTextEdit(output); m_model->configWindow->show(); } }); connect( m_compProcessor.data(), &Compatible::CompatibleProcessController::progressChanged, this, [this](float progress) { const int progressValue = static_cast((100. / m_model->preparedPackages().size()) * (m_model->m_operatingIndex + progress / 100.)); Q_EMIT m_model->signalWholeProgressChanged(progressValue); Q_EMIT m_model->signalCurrentPacakgeProgressChanged(static_cast(progress)); }); connect( m_compProcessor.data(), &Compatible::CompatibleProcessController::processFinished, this, [this](bool success) { if (m_model->configWindow->isVisible()) { m_model->configWindow->hide(); m_model->configWindow->clearTexts(); } if (success) { m_model->refreshOperatingPackageStatus(Pkg::Success); } else { auto pkgPtr = m_compProcessor->currentPackage(); if (pkgPtr) { m_model->m_packageFailCode.insert(m_model->m_operatingPackageMd5, pkgPtr->errorCode()); m_model->m_packageFailReason.insert(m_model->m_operatingPackageMd5, pkgPtr->errorString()); if (Pkg::DigitalSignatureError == pkgPtr->errorCode()) { m_model->m_hierarchicalVerifyError = true; } if (Pkg::ConfigAuthCancel == pkgPtr->errorCode()) { m_model->m_workerStatus = AbstractPackageListModel::WorkerPrepare; Q_EMIT m_model->signalAuthCancel(); return; } } m_model->refreshOperatingPackageStatus(Pkg::Failed); } m_model->bumpInstallIndex(); }); } } #endif // DISABLE_COMPATIBLE deepin-deb-installer-6.5.51/src/deb-installer/model/backend/compatible_install_backend.h000066400000000000000000000021541524745214100312760ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef COMPATIBLE_INSTALL_BACKEND_H #define COMPATIBLE_INSTALL_BACKEND_H #include "install_backend.h" #ifndef DISABLE_COMPATIBLE #include "compatible/compatible_process_controller.h" #include class CompatibleInstallBackend : public InstallBackend { Q_OBJECT friend class DebListModel; public: explicit CompatibleInstallBackend(DebListModel *model, QObject *parent = nullptr); ~CompatibleInstallBackend() override; bool verifySignature(int index) override; bool install(int index) override; bool uninstall(int index) override; // Expose for DebListModel::slotConfigInputWrite [[nodiscard]] bool isRunning() const; void writeConfigData(const QString &configData); [[nodiscard]] bool needTemplates() const; private: void ensureProcessor(); QScopedPointer m_compProcessor; Q_DISABLE_COPY(CompatibleInstallBackend) }; #endif // DISABLE_COMPATIBLE #endif // COMPATIBLE_INSTALL_BACKEND_H deepin-deb-installer-6.5.51/src/deb-installer/model/backend/install_backend.cpp000066400000000000000000000004541524745214100274330ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "install_backend.h" #include "model/deblistmodel.h" InstallBackend::InstallBackend(DebListModel *model, QObject *parent) : QObject{parent} , m_model{model} { } deepin-deb-installer-6.5.51/src/deb-installer/model/backend/install_backend.h000066400000000000000000000015521524745214100271000ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef INSTALL_BACKEND_H #define INSTALL_BACKEND_H #include class QString; class DebListModel; /** * @brief Abstract interface for install backends. * * Each backend (apt, compatible, immutable) implements this interface * to provide its own install/uninstall lifecycle and signature verification. */ class InstallBackend : public QObject { Q_OBJECT public: explicit InstallBackend(DebListModel *model, QObject *parent = nullptr); ~InstallBackend() override = default; virtual bool verifySignature(int index) = 0; virtual bool install(int index) = 0; virtual bool uninstall(int index) = 0; protected: DebListModel *m_model{nullptr}; Q_DISABLE_COPY(InstallBackend) }; #endif // INSTALL_BACKEND_H deepin-deb-installer-6.5.51/src/deb-installer/model/deblistmodel.cpp000066400000000000000000003063321524745214100254020ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "deblistmodel.h" #include "manager/packagesmanager.h" #include "utils/ddlog.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 "backend/apt_install_backend.h" #ifndef DISABLE_COMPATIBLE #include "backend/compatible_install_backend.h" #endif #include "backend/apt_install_backend.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_aptBackend(new AptInstallBackend(this, this)) #ifndef DISABLE_COMPATIBLE , m_compBackend(new CompatibleInstallBackend(this, this)) #endif { qCDebug(appLog) << "DebListModel initializing..."; m_supportPackageType = Pkg::Deb; // 配置包安装的进程 m_procInstallConfig = new Konsole::Pty; configWindow = new AptConfigMessage; // 链接信号与槽 initConnections(); // 检查系统版本与是否开启了开发者模式 m_isDevelopMode = Utils::isDevelopMode(); qCInfo(appLog) << "DebListModel initialized, develop mode:" << m_isDevelopMode; } bool DebListModel::isDpkgRunning() { qCDebug(appLog) << "Checking if dpkg is running."; QProcess proc; // 获取当前的进程信息 proc.start("ps", QStringList() << "-e" << "-o" << "comm"); proc.waitForFinished(); // 获取进程信息的数据 const QString processOutput = proc.readAllStandardOutput(); // 查看进程信息中是否存在dpkg 存在说明已经正在安装其他包 if (processOutput.contains("dpkg")) { qCDebug(appLog) << "dpkg is running."; return true; // 更换判断的方式 } qCDebug(appLog) << "dpkg is not running."; return false; } const QStringList DebListModel::netErrors() { qCDebug(appLog) << "Getting network error strings."; 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) { qCDebug(appLog) << "Getting worker error string for code:" << errorCode << "info:" << errorInfo; switch (errorCode) { case FetchError: case DownloadDisallowedError: qCDebug(appLog) << "Network error detected."; return QApplication::translate("DebListModel", "Installation failed, please check your network connection"); // 网络错误 case NotFoundError: qCDebug(appLog) << "Package not found error."; return QApplication::translate("DebListModel", "Installation failed, please check for updates in Control Center"); case DiskSpaceError: qCDebug(appLog) << "Disk space error."; return QApplication::translate("DebListModel", "Installation failed, insufficient disk space"); // 存储空间不足 // lockError 也会报空间不足的错误 case LockError: qCDebug(appLog) << "Lock error."; if (errorInfo.contains("No space left on device")) { qCDebug(appLog) << "Disk space error within LockError."; return QApplication::translate("DebListModel", "Installation failed, insufficient disk space"); } break; // fix bug:39834 网络断开时,偶现安装deb包失败时提示语不显示 case CommitError: qCDebug(appLog) << "Commit error."; // commit Error 中会报网络错误 for (auto error : netErrors()) { if (errorInfo.contains(error) && errorInfo.contains("http")) { qCDebug(appLog) << "Network error within CommitError."; return QApplication::translate("DebListModel", "Installation failed, please check your network connection"); } } // commitError 有时会出现空间不足的错误 if (errorInfo.contains("No space left on device")) { qCDebug(appLog) << "Disk space error within CommitError."; return QApplication::translate("DebListModel", "Installation failed, insufficient disk space"); } break; // 无数字签名的错误 case Pkg::NoDigitalSignature: qCDebug(appLog) << "No digital signature error."; return QApplication::translate("DebListModel", "Invalid digital signature"); // 无有效的数字签名 case Pkg::DigitalSignatureError: qCDebug(appLog) << "Invalid digital signature error."; return QApplication::translate("DebListModel", "Invalid digital signature"); // 安装配置包时,没有得到授权 case Pkg::ConfigAuthCancel: qCDebug(appLog) << "Config auth cancel error."; return QApplication::translate("DebListModel", "Authentication failed"); case Pkg::ApplocationProhibit: qCDebug(appLog) << "Application prohibit error."; return QApplication::translate("DebListModel", "The administrator has set policies to prevent installation of this package"); default: qCDebug(appLog) << "Unknown error, returning generic failure message."; break; } // 其余错误,暂不提示具体的错误原因 return QApplication::translate("DebListModel", "Installation Failed"); } void DebListModel::initAppendConnection() { qCDebug(appLog) << "Initializing append connections."; 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() { qCDebug(appLog) << "Initializing install connections."; // 安装成功后,根据安装结果排序 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() { qCDebug(appLog) << "Initializing refresh page connections."; // 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() { qCDebug(appLog) << "Initializing all connections."; // 链接添加时的信号与槽 initAppendConnection(); // 链接页面刷新的信号与槽 initRefreshPageConnecions(); // 链接安装过程的信号与槽 initInstallConnections(); } void DebListModel::slotDealDependResult(int authType, int dependIndex, const QString &dependName) { qCDebug(appLog) << "Dealing with depend result. Auth type:" << authType << "Depend index:" << dependIndex << "Depend name:" << dependName; m_brokenDepend = dependName; switch (authType) { case DebListModel::CancelAuth: qCDebug(appLog) << "Auth canceled."; m_packageOperateStatus[m_packagesManager->getPackageMd5(dependIndex)] = Pkg::PackageOperationStatus::Prepare; // 取消授权后,缺失wine依赖的包的操作状态修改为prepare break; case DebListModel::AuthConfirm: // 确认授权后,状态的修改由debinstaller进行处理 qCDebug(appLog) << "Auth confirmed."; break; case DebListModel::AuthDependsSuccess: // 安装成功后,状态的修改由debinstaller进行处理 qCDebug(appLog) << "Auth depends success."; m_packageOperateStatus[m_packagesManager->getPackageMd5(dependIndex)] = Pkg::PackageOperationStatus::Prepare; m_workerStatus = WorkerPrepare; break; case DebListModel::AuthDependsErr: // 安装失败后,状态的修改由debinstaller进行处理 qCDebug(appLog) << "Auth depends error."; break; case DebListModel::VerifyDependsErr: // 依赖包分级管控验证签名失败,弹出分级设置提示框 qCDebug(appLog) << "Verify depends error."; ErrorNotifyDialogHelper::showHierarchicalVerifyWindow(); break; default: qCDebug(appLog) << "Unknown auth type."; break; } emit signalDependResult(authType, dependName); // 发送信号,由debinstaller处理界面状态。 } bool DebListModel::isReady() const { bool ready = m_packagesManager->isBackendReady(); qCDebug(appLog) << "Checking if model is ready:" << ready; return ready; } const QList DebListModel::preparedPackages() const { qCDebug(appLog) << "Getting prepared packages."; return m_packagesManager->m_preparedPackages; } QModelIndex DebListModel::first() const { qCDebug(appLog) << "Getting first index."; return index(0); } int DebListModel::rowCount(const QModelIndex &parent) const { Q_UNUSED(parent); int count = m_packagesManager->m_preparedPackages.size(); qCDebug(appLog) << "Getting row count:" << count; return count; } QVariant DebListModel::data(const QModelIndex &index, int role) const { const int currentRow = index.row(); // 判断当前下标是否越界 if (currentRow < 0 || currentRow >= m_packagesManager->m_preparedPackages.size()) { qCDebug(appLog) << "Data request for invalid index:" << currentRow; return QVariant(); } // 当前给出的路径文件已不可访问.直接删除该文件 if (!recheckPackagePath(m_packagesManager->package(currentRow))) { qCDebug(appLog) << "Package path for index" << currentRow << "is no longer valid, removing package."; m_packagesManager->removePackage(currentRow); return QVariant(); } const DebFile deb(m_packagesManager->package(currentRow)); if (!deb.isValid()) { qCDebug(appLog) << "Deb file for index" << currentRow << "is invalid."; 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 PackageFailCodeRole: { const QByteArray md5 = m_packagesManager->getPackageMd5(currentRow); if (m_packageFailCode.contains(md5)) return m_packageFailCode[md5]; else return 0; } 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 PackageSharedPointerRole: { return QVariant::fromValue(packagePtr(currentRow)); } 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) { // qCDebug(appLog) << "Setting data for index" << index.row() << "role" << role; const int currentRow = index.row(); // 判断当前下标是否越界 if (currentRow < 0 || currentRow >= m_packagesManager->m_preparedPackages.size()) { qCDebug(appLog) << "Index out of bounds, returning false."; return false; } switch (role) { case CompatibleTargetRootfsRole: { if (auto pkgPtr = packagePtr(currentRow)) { // qCDebug(appLog) << "Setting compatible target rootfs to" << value.toString(); pkgPtr->compatible()->targetRootfs = value.toString(); return true; } break; } default: // qCDebug(appLog) << "Unhandled role in setData."; break; } // qCDebug(appLog) << "setData returning false."; return false; } bool DebListModel::isDevelopMode() { qCDebug(appLog) << "Getting develop mode status:" << m_isDevelopMode; return m_isDevelopMode; } bool DebListModel::slotInstallPackages() { qCDebug(appLog) << "Entering slotInstallPackages."; if (m_workerStatus != WorkerPrepare) { qCWarning(appLog) << "Cannot start installation - worker status is" << m_workerStatus << "expected Prepare"; return false; } qCDebug(appLog) << "Starting installation for" << m_packagesManager->m_preparedPackages.size() << "packages"; m_workerStatus = WorkerProcessing; // 刷新包安装器的工作状态 m_operatingIndex = 0; // 初始化当前操作的index m_operatingStatusIndex = 0; m_operatingPackageMd5 = m_packageMd5[m_operatingIndex]; m_hierarchicalVerifyError = false; m_immutableInstallDeferred = false; // start first initRowStatus(); // 初始化包的操作状态 qCDebug(appLog) << "Initialized package operating status"; // Check if the package file still exists before proceeding with signature verification. // The file may have been renamed or moved after the installer was opened. if (!recheckPackagePath(m_packagesManager->package(m_operatingIndex))) { qCWarning(appLog) << "Package file no longer exists, aborting installation"; m_workerStatus = WorkerPrepare; return false; } // 检查当前应用是否在黑名单中 // 非开发者模式且数字签名验证失败 if (checkBlackListApplication() || !m_aptBackend->verifySignature(m_operatingIndex)) { qCWarning(appLog) << "Installation blocked - blacklisted application or digital signature verification failed"; // Signature/blacklist dialogs have been shown; their callbacks will set // the package to Failed status and emit signalWorkerFinished(). // Return true so the view does NOT reset to the file-choose page. // The caller (SingleInstallPage::slotInstall) uses false to trigger // signalBacktoFileChooseWidget(). Returning true keeps the install page // visible so the async dialog callbacks can render the error state. return true; } qCDebug(appLog) << "Proceeding with installation of" << m_packagesManager->m_preparedPackages.size() << "packages"; installNextDeb(); // 开始安装 qCDebug(appLog) << "slotInstallPackages returning true."; return true; } bool DebListModel::slotUninstallPackage(int index) { qCDebug(appLog) << "Starting uninstall for package at index" << 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 #ifndef DISABLE_COMPATIBLE if (Pkg::CompatibleIntalled == dependStatus.status && supportCompatible() && 0 == index) { qCDebug(appLog) << "Uninstalling in compatible mode."; auto ptr = packagePtr(index); // check pacakge installed in compatible rootfs if (ptr && ptr->compatible()->installed()) { qCDebug(appLog) << "Package is installed in compatible rootfs."; if (m_compBackend->uninstall(index)) { qCDebug(appLog) << "Compatible package uninstall successful."; refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Operating); return true; } else { qCDebug(appLog) << "Compatible package uninstall failed."; refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); return false; } } // otherwise uninstall from current system } #endif if (ImmBackend::instance()->immutableEnabled()) { qCDebug(appLog) << "Uninstalling in immutable mode."; auto ptr = packagePtr(index); if (ptr) { qCDebug(appLog) << "Package pointer is valid."; if (uninstallImmutablePackage()) { qCDebug(appLog) << "Immutable package uninstall successful."; refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Operating); return true; } else { qCDebug(appLog) << "Immutable package uninstall failed."; refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); return false; } } qWarning() << qPrintable("Trigger uninstall non-installed pacakge"); return false; } // Route to apt install backend for normal apt uninstall if (m_aptBackend->uninstall(m_operatingIndex)) { // Sync m_currentTransaction for backward compatibility (lastProcessError) m_currentTransaction = m_aptBackend->m_currentTransaction; qCDebug(appLog) << "slotUninstallPackage returning true."; return true; } qCDebug(appLog) << "slotUninstallPackage returning false."; return false; } void DebListModel::removePackage(const int idx) { qCDebug(appLog) << "Removing package at index" << idx; if (WorkerPrepare != m_workerStatus) { qWarning() << "installer status error"; } // 去除操作状态 中的index int packageOperateStatusCount = m_packageOperateStatus.size() - 1; m_packageOperateStatus.clear(); qCDebug(appLog) << "Clearing package operation status. Count:" << packageOperateStatusCount; 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()) { qCDebug(appLog) << "Removing package from pointer map."; m_packagePtrMap.remove(m_packagesManager->m_packageMd5[idx]); } m_packagesManager->removePackage(idx); // 在packageManager中删除标记的下标 qCDebug(appLog) << "Package removed from manager."; } Pkg::PackageInstallStatus DebListModel::checkInstallStatus(const QString &package_path) { qCDebug(appLog) << "Checking install status for package path:" << package_path; return m_packagesManager->checkInstallStatus(package_path); } Pkg::DependsStatus DebListModel::checkDependsStatus(const QString &package_path) { qCDebug(appLog) << "Checking depends status for package path:" << package_path; return static_cast(m_packagesManager->checkDependsStatus(package_path).status); } int DebListModel::checkDigitalSignature(const QString &package_path) { qCDebug(appLog) << "Checking digital signature for package path:" << package_path; // 分级管控可用时,交由分级管控进行签名验证 if (HierarchicalVerify::instance()->isValid()) { qCDebug(appLog) << "Hierarchical verify is valid, returning success."; return Utils::VerifySuccess; } const auto stat = m_packagesManager->checkDependsStatus(package_path); // 获取包的依赖状态 if (stat.isBreak() || stat.isAuthCancel()) { qCDebug(appLog) << "Depends status is break or auth cancel, returning success."; return Utils::VerifySuccess; } // 社区版不读取设置,保持 m_isDigitalVerify 默认值 false if (DSysInfo::uosEditionType() != DSysInfo::UosCommunity) { SettingDialog dialog; m_isDigitalVerify = dialog.isDigitalVerified(); } int digitalSigntual = Utils::Digital_Verify(package_path); // 判断是否有数字签名 qCDebug(appLog) << "Digital signature verification result:" << digitalSigntual; // 无数字签名:专业版检查Mode属性,社区版走原有开发者模式逻辑 if (digitalSigntual == Utils::DebfileInexistence) { if (HierarchicalVerify::instance()->isValid()) { if (HierarchicalVerify::instance()->allowInstallUnsigned()) { qCDebug(appLog) << "No digital signature, professional Mode=0, returning VerifySuccess."; return Utils::VerifySuccess; } qCDebug(appLog) << "No digital signature, professional Mode!=0, returning DebfileInexistence."; return digitalSigntual; } // 社区版:开发者模式且未设置验签直接放行 if (m_isDevelopMode && !m_isDigitalVerify) { qCDebug(appLog) << "No digital signature, community developer no verify, returning VerifySuccess."; return Utils::VerifySuccess; } qCDebug(appLog) << "No digital signature, returning DebfileInexistence."; return digitalSigntual; } if (m_isDevelopMode && !m_isDigitalVerify) { // 开发者模式且未设置验签功能 qCDebug(appLog) << "Developer mode and digital verification is not set, returning success."; return Utils::VerifySuccess; } else if (m_isDevelopMode && m_isDigitalVerify) { // 开发者模式且设置验签功能 qCDebug(appLog) << "Developer mode and digital verification is set, returning signature result."; return digitalSigntual; } else { // 非开发者模式 qCDebug(appLog) << "Not in developer mode, returning signature result."; return digitalSigntual; } } QStringList DebListModel::getPackageInfo(const QString &package_path) { qCDebug(appLog) << "Getting package info for path:" << package_path; return m_packagesManager->getPackageInfo(package_path); } QString DebListModel::lastProcessError() { qCDebug(appLog) << "Getting last process error."; // Check backend transaction first, then legacy m_currentTransaction if (m_aptBackend && m_aptBackend->m_currentTransaction) { qCDebug(appLog) << "Returning error string from apt backend transaction:" << m_aptBackend->m_currentTransaction->errorString(); return m_aptBackend->m_currentTransaction->errorString(); } if (m_currentTransaction) { qCDebug(appLog) << "Returning error string from current transaction:" << m_currentTransaction->errorString(); return m_currentTransaction->errorString(); } qCDebug(appLog) << "No current transaction, returning 'failed'."; return "failed"; } bool DebListModel::containsSignatureFailed() const { // qCDebug(appLog) << "Checking if signature failed: " << m_hierarchicalVerifyError; return m_hierarchicalVerifyError; } QString DebListModel::checkPackageValid(const QString &package_path) { // qCDebug(appLog) << "Checking package validity for path:" << package_path; return m_packagesManager->checkPackageValid(QStringList(package_path)); } void DebListModel::slotAppendPackage(const QStringList &package) { qCDebug(appLog) << "Appending packages:"; if (WorkerPrepare != m_workerStatus) { qWarning() << "installer status error"; } // Save current operating state so we can restore it after verification. // m_operatingIndex / m_operatingPackageMd5 are install-time values that // the signature-error dialogs depend on, but this method is called at // append time when those values may not yet be valid. const int savedOperatingIndex = m_operatingIndex; const int savedOperatingStatusIndex = m_operatingStatusIndex; const QByteArray savedOperatingPackageMd5 = m_operatingPackageMd5; // Append the package first so that the model has data to display when // the signature-error dialogs invoke digitalVerifyFailed(). m_packagesManager->appendPackage(package); // After append (synchronous for single-package case), m_packageMd5 is // updated via the signalAppendFinished -> getPackageMd5 signal chain. // Set up operating state so that error dialogs can reference the package. if (!m_packageMd5.isEmpty()) { // Use the last appended package's index for verification. // The verifySignature(const QString&) overload checks only one file, // so we point operating state at the first newly-added file. int firstNewIndex = m_packageMd5.size() - 1; // For multi-file append the first file was added synchronously; try // to find the actual index of the first file in the package list. for (int i = 0; i < m_packageMd5.size(); ++i) { const QString pkgPath = m_packagesManager->package(i); if (pkgPath == package.first()) { firstNewIndex = i; break; } } m_operatingIndex = firstNewIndex; m_operatingStatusIndex = firstNewIndex; m_operatingPackageMd5 = m_packageMd5[firstNewIndex]; } // Now verify digital signature. If verification fails the error dialogs // will work correctly because the package is already in the model and // m_operatingIndex / m_operatingPackageMd5 are valid. const bool verifyResult = m_aptBackend->verifySignature(package.first()); if (!verifyResult) { qCWarning(appLog) << "Digital signature verification failed for package:" << package.first(); // The error dialog callbacks will set Failed status and emit // signalWorkerFinished() / bumpInstallIndex() as appropriate. // Do not restore operating state here -- the dialog callbacks // still need m_operatingIndex/m_operatingPackageMd5 to be valid // until the dialog is dismissed. return; } // Signature OK -- restore the saved operating state so that a subsequent // install flow starts from the correct position. m_operatingIndex = savedOperatingIndex; m_operatingStatusIndex = savedOperatingStatusIndex; m_operatingPackageMd5 = savedOperatingPackageMd5; } void DebListModel::slotTransactionStatusChanged(TransactionStatus transactionStatus) { qCDebug(appLog) << "Transaction status changed:" << transactionStatus; switch (transactionStatus) { case TransactionStatus::AuthenticationStatus: // 等待授权 qCDebug(appLog) << "Transaction status: AuthenticationStatus, emitting signalLockForAuth(true)."; emit signalLockForAuth(true); // 设置底层窗口按钮不可用 break; case TransactionStatus::WaitingStatus: // 当前操作在队列中等待操作 qCDebug(appLog) << "Transaction status: WaitingStatus, emitting signalLockForAuth(false)."; emit signalLockForAuth(false); // 设置底层窗口按钮可用 break; default: qCDebug(appLog) << "Transaction status: unhandled status."; break; } } void DebListModel::reset() { qCDebug(appLog) << "Resetting DebListModel."; 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; // 复位分级管控安装状态 m_immutableInstallDeferred = false; } int DebListModel::getInstallFileSize() { qCDebug(appLog) << "Getting install file size."; return m_packagesManager->m_preparedPackages.size(); } void DebListModel::resetFileStatus() { qCDebug(appLog) << "Resetting file status."; m_packageOperateStatus.clear(); // 重置包的操作状态 m_packageFailReason.clear(); // 重置包的错误状态 m_packageFailCode.clear(); } void DebListModel::resetInstallStatus() { qCDebug(appLog) << "Resetting install status."; m_packageOperateStatus.clear(); // 重置包的操作状态 m_packageFailReason.clear(); // 重置包的错误状态 m_packageFailCode.clear(); initPrepareStatus(); } void DebListModel::bumpInstallIndex() { qCDebug(appLog) << "Bumping install index."; if (!m_aptBackend->m_currentTransaction.isNull()) { qWarning() << "previous transaction not finished"; } if (++m_operatingIndex >= m_packagesManager->m_preparedPackages.size()) { qCDebug(appLog) << "All packages installed, finishing up."; 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 qCInfo(appLog) << "DebListModel:" << "install next deb package"; // 检查当前应用是否在黑名单中 // 非开发者模式且数字签名验证失败 if (checkBlackListApplication() || !m_aptBackend->verifySignature(m_operatingIndex)) { qCDebug(appLog) << "Installation blocked by blacklist or digital signature check."; return; } installNextDeb(); // 安装下一个包 } void DebListModel::slotTransactionErrorOccurred() { qCDebug(appLog) << "Entering slotTransactionErrorOccurred."; if (WorkerProcessing != m_workerStatus) { qWarning() << "installer status error" << m_workerStatus; } Transaction *transaction = qobject_cast(sender()); if (!transaction) { qCWarning(appLog) << "Transaction object is null, returning."; 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")) { qCDebug(appLog) << "Emitting signalAppendOutputInfo with error:" << transaction->errorString(); 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()) { qCDebug(appLog) << "Cancelling transaction."; transaction->cancel(); } // 特殊处理授权错误 if (AuthError == errorCode) { qCDebug(appLog) << "Handling authorization error."; 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. qCDebug(appLog) << "Setting transaction exit status to failed."; transaction->setProperty("exitStatus", QApt::ExitFailed); // 设置trans的退出状态为 失败 } void DebListModel::refreshOperatingPackageStatus(Pkg::PackageOperationStatus operationStatus) { qCDebug(appLog) << "Refreshing operating package status to" << operationStatus << "for index" << m_operatingStatusIndex; m_packageOperateStatus[m_operatingPackageMd5] = operationStatus; // 将失败包的索引和状态修改保存,用于更新 const QModelIndex modelIndex = index(m_operatingStatusIndex); emit dataChanged(modelIndex, modelIndex); // 发送状态已经修改的信号 } QString DebListModel::packageFailedReason(const int idx) const { qCDebug(appLog) << "Entering packageFailedReason for index" << idx; const auto dependStatus = m_packagesManager->getPackageDependsStatus(idx); // 获取包的依赖状态 const auto md5 = m_packagesManager->getPackageMd5(idx); // 获取包的md5值 if (m_packagesManager->isArchError(idx)) { qCDebug(appLog) << "Package has architecture error"; return tr("Unmatched package architecture"); // 判断是否架构冲突 } // When the operation has actually failed, the dependency status may be stale // (e.g. CompatibleIntalled from a prior detection). Return the real error directly. if (m_packageOperateStatus.contains(md5) && m_packageOperateStatus[md5] == Pkg::PackageOperationStatus::Failed) { qCDebug(appLog) << "Package operation failed, returning worker error string directly"; return workerErrorString(m_packageFailCode[md5], m_packageFailReason[md5]); } // need refactor, move to Deb::DebPackage int status = dependStatus.status; if (Pkg::CompatibleNotInstalled == status) { // Compatible mode always installs to default rootfs, no retry on failure. if (auto ptr = packagePtr(idx)) { if (auto compPtr = ptr->compatible()) { if (!compPtr->targetRootfs.isEmpty()) { status = Pkg::CompatibleInstallFailed; } } } } qCDebug(appLog) << "Checking package status" << status; switch (status) { case Pkg::CompatibleIntalled: qCDebug(appLog) << "Package is already installed in a compatible system"; if (auto ptr = packagePtr(idx)) { const QString debVersion = ptr->debInfo()->version(); const QString installedVersion = ptr->compatible()->version; const int cmp = Utils::compareVersion(debVersion, installedVersion); if (cmp == 0) { return tr("Same version installed"); } else if (cmp < 0) { return tr("Later version installed: %1").arg(installedVersion); } else { return tr("Earlier version installed: %1").arg(installedVersion); } } break; case Pkg::CompatibleNotInstalled: qCDebug(appLog) << "Package has broken dependencies, suggesting compatibility mode"; return tr("Broken dependencies, try installing the app in compatibility mode"); case Pkg::CompatibleInstallFailed: return tr("Compatibility mode installation failed"); case Pkg::Prohibit: qCDebug(appLog) << "Package installation is prohibited by administrator policy"; return tr("The administrator has set policies to prevent installation of this package"); case Pkg::DependsBreak: qCDebug(appLog) << "Package has broken dependencies"; Q_FALLTHROUGH(); case Pkg::DependsAuthCancel: { // 依赖状态错误 qCDebug(appLog) << "Package dependency auth canceled or broken"; if (!dependStatus.package.isEmpty() || !m_brokenDepend.isEmpty()) { qCDebug(appLog) << "Has dependStatus package or brokenDepend"; if (m_packagesManager->m_errorIndex.contains(md5)) { // 修改wine依赖的标记方式 qCDebug(appLog) << "Found error index for md5" << md5; auto ret = static_cast(m_packagesManager->m_errorIndex.value(md5)); switch (ret) { case DebListModel::VerifyDependsErr: qCDebug(appLog) << "Dependency verification error"; return m_brokenDepend + tr("Invalid digital signature"); default: qCDebug(appLog) << "Failed to install dependency" << m_brokenDepend; return tr("Failed to install %1").arg(m_brokenDepend); // wine依赖安装失败 } } qCDebug(appLog) << "Broken dependencies:" << dependStatus.package; return tr("Broken dependencies: %1").arg(dependStatus.package); // 依赖不满足 } const auto conflictStatus = m_packagesManager->packageConflictStat(idx); // 获取冲突情况 if (!conflictStatus.is_ok()) { qCDebug(appLog) << "Found package conflict:" << conflictStatus.unwrap(); return tr("Broken dependencies: %1").arg(conflictStatus.unwrap()); // 依赖冲突 } break; } default: qCDebug(appLog) << "Default case in switch, no specific reason"; break; } // 修改map存储的数据格式,将错误原因与错误代码与包绑定,而非与下标绑定 qCDebug(appLog) << "Returning workerErrorString"; return workerErrorString(m_packageFailCode[md5], m_packageFailReason[md5]); // 根据错误代码和错误原因返回具体的错误原因 } void DebListModel::slotTransactionFinished() { qCDebug(appLog) << "Entering slotTransactionFinished"; if (m_workerStatus == WorkerProcessing) { qWarning() << "installer status still processing"; } // 获取trans指针 Transaction *transaction = qobject_cast(sender()); if (!transaction) { qCDebug(appLog) << "Transaction object is null, returning"; return; } // prevent next signal qCDebug(appLog) << "Disconnecting transaction finished 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()); qCDebug(appLog) << "Updating whole progress to" << progressValue; emit signalWholeProgressChanged(progressValue); qCInfo(appLog) << "DebListModel:" << "transaciont finished with exit status:" << transaction->exitStatus(); if (transaction->exitStatus()) { qCDebug(appLog) << "Transaction finished with an error"; // 安装失败 qWarning() << transaction->error() << transaction->errorDetails() << transaction->errorString(); // 检测错误信息是否包含分级管控错误码,若存在,则当前错误为分级管控验证签名不通过 QString errorInfo = transaction->errorDetails(); if (errorInfo.isEmpty()) { qCDebug(appLog) << "Error details is empty, using error string"; errorInfo = transaction->errorString(); } QString sPackageName = m_packagesManager->m_preparedPackages[m_operatingIndex]; bool verifyError = HierarchicalVerify::instance()->checkTransactionError(sPackageName, errorInfo); qCDebug(appLog) << "Hierarchical verification result:" << verifyError; // 检测安装失败时,弹出对话框提示 if (verifyError) { qCDebug(appLog) << "Hierarchical verification failed, setting flag"; // 安装结束后再弹出提示对话框 m_hierarchicalVerifyError = true; } // 保存错误原因和错误代码 // 修改map存储的数据格式,将错误原因与错误代码与包绑定,而非与下标绑定 qCDebug(appLog) << "Saving package fail code and reason"; m_packageFailCode[m_operatingPackageMd5] = verifyError ? static_cast(Pkg::DigitalSignatureError) : static_cast(transaction->error()); m_packageFailReason[m_operatingPackageMd5] = transaction->errorString(); // 刷新操作状态 qCDebug(appLog) << "Refreshing package status to Failed"; refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); emit signalAppendOutputInfo(transaction->errorString()); } else if (m_packageOperateStatus.contains(m_operatingPackageMd5) && m_packageOperateStatus[m_operatingPackageMd5] != Pkg::PackageOperationStatus::Failed) { // 安装成功 qCDebug(appLog) << "Transaction finished successfully"; refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Success); // 准备安装下一个包,修改下一个包的状态为正在安装状态 if (m_operatingStatusIndex < m_packagesManager->m_preparedPackages.size() - 1) { qCDebug(appLog) << "Preparing for next package installation"; auto md5 = m_packagesManager->getPackageMd5(m_operatingIndex + 1); m_packageOperateStatus[md5] = Pkg::PackageOperationStatus::Waiting; } } // delete trans; if (!m_currentTransaction.isNull()) { qCDebug(appLog) << "Deleting current transaction"; m_currentTransaction->deleteLater(); m_currentTransaction = nullptr; } transaction = nullptr; qCDebug(appLog) << "Bumping install index"; bumpInstallIndex(); // 进入安装进度控制 } void DebListModel::slotDependsInstallTransactionFinished() // 依赖安装关系满足 { qCDebug(appLog) << "Entering slotDependsInstallTransactionFinished"; if (m_workerStatus == WorkerProcessing) { qWarning() << "installer status still processing"; } Transaction *transaction = qobject_cast(sender()); if (!transaction) { qCDebug(appLog) << "Transaction object is null, returning"; return; } const auto transExitStatus = transaction->exitStatus(); qCDebug(appLog) << "Transaction exit status:" << transExitStatus; if (transExitStatus) { qCDebug(appLog) << "Dependency installation transaction failed"; // 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()) { qCDebug(appLog) << "Deleting current transaction"; m_currentTransaction->deleteLater(); m_currentTransaction = nullptr; } transaction = nullptr; // check current operate exit status to install or install next if (transExitStatus) { qCDebug(appLog) << "Bumping install index due to failed dependency install"; bumpInstallIndex(); // 依赖安装失败,直接安装下一个包 } else { qCDebug(appLog) << "Dependency installation successful, installing next deb"; // 安装依赖前已对此包进行黑名单及验签校验,无需二次验证 installNextDeb(); // 依赖安装成功,开始安装这个包 } } void DebListModel::setEndEnable() { qCDebug(appLog) << "Entering setEndEnable"; emit signalEnableReCancelBtn(true); } void DebListModel::checkBoxStatus() { qCDebug(appLog) << "Entering checkBoxStatus"; QTime startTime = QTime::currentTime(); // 获取弹出的时间 Transaction *transation = nullptr; auto *const backend = PackageAnalyzer::instance().backendPtr(); qCDebug(appLog) << "Committing changes to backend"; transation = backend->commitChanges(); QTime stopTime = QTime::currentTime(); int elapsed = startTime.msecsTo(stopTime); // 获取commit授权被取消的时间 if (elapsed > 20000) { // 如果时间超过20ms则不断判断当前窗口是否超时 qCDebug(appLog) << "Commit timeout, re-checking status"; QTimer::singleShot(100 * 1, this, &DebListModel::checkBoxStatus); return; } if (transation) { if (transation->isCancellable()) { // 当前transaction已经被取消 qCDebug(appLog) << "Transaction is cancellable, cancelling it"; transation->cancel(); QTimer::singleShot(100 * 1, this, &DebListModel::setEndEnable); // 设置按钮可用 } else { qCDebug(appLog) << "Transaction is not cancellable, re-checking status"; QTimer::singleShot(100 * 1, this, &DebListModel::checkBoxStatus); // 当前Transaction还在运行中,继续等待并判断 } } else { qWarning() << "DebListModel:" << "Transaction is Nullptr"; } } void DebListModel::installDebs() { qCDebug(appLog) << "Entering installDebs for operating index" << m_operatingIndex; // reset package depends status on installNextDeb(), check available dependencies const auto dependsStat = m_packagesManager->getPackageDependsStatus(m_operatingStatusIndex); // for compatbile install #ifndef DISABLE_COMPATIBLE bool useCompat = dependsStat.canInstallCompatible(); // Allow reinstall when package already installed in compatible mode with target rootfs set if (!useCompat && Pkg::CompatibleIntalled == dependsStat.status && supportCompatible()) { if (auto ptr = packagePtr(m_operatingIndex)) { if (auto compPtr = ptr->compatible()) { useCompat = !compPtr->targetRootfs.isEmpty(); } } } if (useCompat && supportCompatible()) { qCDebug(appLog) << "Package can be installed in compatible mode"; if (m_compBackend->install(m_operatingIndex)) { qCDebug(appLog) << "Compatible package installation started, setting status to Operating"; refreshOperatingPackageStatus(Pkg::Operating); } else { qCDebug(appLog) << "Compatible package installation failed, setting status to Failed"; refreshOperatingPackageStatus(Pkg::Failed); } return; } #endif // for immutable system, if immutable is enabled, the normal installation process will not be entered if (dependsStat.canInstall() && ImmBackend::instance()->immutableEnabled()) { // 确保软件包缓存更新已完成、apt 锁已释放,避免与 QApt 的 updateCache 争用锁 if (!PackageAnalyzer::instance().isCacheUpdateFinished()) { if (m_immutableInstallDeferred) { qCInfo(appLog) << "Immutable install is already deferred, skip duplicate cache-finished connection"; return; } m_immutableInstallDeferred = true; qCInfo(appLog) << "Cache update not finished yet, deferring immutable install until apt lock released"; #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) connect(&PackageAnalyzer::instance(), &PackageAnalyzer::cacheUpdateFinished, this, &DebListModel::slotImmutableDeferredInstall); #else connect(&PackageAnalyzer::instance(), &PackageAnalyzer::cacheUpdateFinished, this, [this]() { m_immutableInstallDeferred = false; installDebs(); }, Qt::SingleShotConnection); #endif return; } m_immutableInstallDeferred = false; qCDebug(appLog) << "Package can be installed in immutable mode"; if (installImmutablePackage()) { qCDebug(appLog) << "Immutable package installation started, setting status to Operating"; refreshOperatingPackageStatus(Pkg::Operating); } else { qCDebug(appLog) << "Immutable package installation failed, setting status to Failed"; refreshOperatingPackageStatus(Pkg::Failed); } return; } // Route to apt install backend for normal apt installation if (m_aptBackend->install(m_operatingIndex)) { // backend will handle the rest via signals // Sync m_currentTransaction for backward compatibility (lastProcessError) m_currentTransaction = m_aptBackend->m_currentTransaction; return; } // Install failed (e.g. deb file no longer exists at stored path) qCWarning(appLog) << "Apt install backend returned false for index" << m_operatingIndex; refreshOperatingPackageStatus(Pkg::Failed); m_packageFailCode.insert(m_operatingPackageMd5, Pkg::UnknownError); m_packageFailReason.insert(m_operatingPackageMd5, tr("Installation failed")); bumpInstallIndex(); } void DebListModel::digitalVerifyFailed(Pkg::ErrorCode errorCode) { qCDebug(appLog) << "Entering digitalVerifyFailed with error code" << errorCode; if (preparedPackages().size() > 1) { // 批量安装 qCDebug(appLog) << "Multiple packages prepared, handling failure for current package"; refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); // 刷新操作状态 // 修改map存储的数据格式,将错误原因与错误代码与包绑定,而非与下标绑定 m_packageFailCode.insert(m_operatingPackageMd5, errorCode); // 记录错误代码与错误原因 m_packageFailReason.insert(m_operatingPackageMd5, ""); bumpInstallIndex(); // 跳过当前包 } else { // Single package (preparedPackages size == 1) or append-time check // where preparedPackages may not yet be fully populated but // m_operatingPackageMd5 is valid. qCDebug(appLog) << "Single package or append-time verify, setting status to failed"; m_workerStatus = WorkerFinished; // Prevent showPackageInfo() from resetting UI refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); // 刷新操作状态 // 修改map存储的数据格式,将错误原因与错误代码与包绑定,而非与下标绑定 m_packageFailCode.insert(m_operatingPackageMd5, errorCode); // 记录错误代码与错误原因 m_packageFailReason.insert(m_operatingPackageMd5, ""); qCDebug(appLog) << "Emitting signalWorkerFinished"; emit signalWorkerFinished(); } } void DebListModel::showNoDigitalErrWindowInDdimProcess(void (DebListModel::*failedFunction)()) { qCDebug(appLog) << "Entering showNoDigitalErrWindowInDdimProcess"; 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]() { qCDebug(appLog) << "Dialog rejected"; if (failedFunction) { qCDebug(appLog) << "Calling 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() { qCDebug(appLog) << "Entering showNoDigitalErrWindow"; if (SingleInstallerApplication::mode == SingleInstallerApplication::DdimChannel) { qCDebug(appLog) << "Ddim channel detected, showing specific error window"; showNoDigitalErrWindowInDdimProcess(&DebListModel::slotNoDigitalSignature); return; } // 批量安装时,如果不是最后一个包,则不弹窗,只记录详细错误原因。 if (m_operatingIndex < m_packagesManager->m_preparedPackages.size() - 1) { qCDebug(appLog) << "Not the last package in batch install, failing silently"; digitalVerifyFailed(Pkg::NoDigitalSignature); return; } qCDebug(appLog) << "Showing no digital signature dialog (security center)"; DDialog *Ddialog = new DDialog(); Ddialog->setModal(true); Ddialog->setWindowFlag(Qt::WindowStaysOnTopHint); Ddialog->setTitle(tr("Unable to install")); Ddialog->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.")); 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]() { qCDebug(appLog) << "Dialog rejected, calling slotNoDigitalSignature"; this->slotNoDigitalSignature(); Ddialog->deleteLater(); }; QPushButton *btnCancel = qobject_cast(Ddialog->getButton(0)); connect(btnCancel, &DPushButton::clicked, Ddialog, &DDialog::reject); connect(Ddialog, &DDialog::aboutToClose, Ddialog, &DDialog::reject); connect(Ddialog, &DDialog::rejected, rejectOperate); // 前往安全中心按钮 QPushButton *btnProceedSecurityCenter = qobject_cast(Ddialog->getButton(1)); connect(btnProceedSecurityCenter, &DPushButton::clicked, this, [] { qCDebug(appLog) << "Proceeding to security center"; HierarchicalVerify::instance()->proceedDefenderSafetyPage(); }); connect(btnProceedSecurityCenter, &DPushButton::clicked, this, &QApplication::exit); connect(btnProceedSecurityCenter, &DPushButton::clicked, Ddialog, &DDialog::deleteLater); } void DebListModel::showDigitalErrWindow(bool recordError) { qCDebug(appLog) << "Entering showDigitalErrWindow, recordError:" << recordError; if (SingleInstallerApplication::mode == SingleInstallerApplication::DdimChannel) { qCDebug(appLog) << "Ddim channel detected"; // 不记录错误时仅提示,不涉及状态切换及更新记录 showNoDigitalErrWindowInDdimProcess(recordError ? &DebListModel::slotDigitalSignatureError : nullptr); return; } // 批量安装时,如果不是最后一个包,则不弹窗,只记录详细错误原因。 if (m_operatingIndex < m_packagesManager->m_preparedPackages.size() - 1) { qCDebug(appLog) << "Not the last package in batch install"; if (recordError) { qCDebug(appLog) << "Recording digital signature error and failing"; digitalVerifyFailed(Pkg::DigitalSignatureError); // 刷新安装错误,并记录错误原因 } return; } qCDebug(appLog) << "Showing digital error dialog"; 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]() { qCDebug(appLog) << "Dialog exit operation triggered"; if (recordError) { qCDebug(appLog) << "Calling slotDigitalSignatureError"; this->slotDigitalSignatureError(); } Ddialog->deleteLater(); }; // 点击弹出窗口的关闭图标按钮 connect(Ddialog, &DDialog::aboutToClose, Ddialog, &DDialog::reject); // 点击弹出窗口的确定按钮 connect(btnOK, &DPushButton::clicked, Ddialog, &DDialog::reject); // ESC退出 / reject(所有退出路径汇聚到此信号) connect(Ddialog, &DDialog::rejected, exitOperate); } void DebListModel::showDevelopDigitalErrWindow(Pkg::ErrorCode code) { qCDebug(appLog) << "Entering showDevelopDigitalErrWindow with error code" << 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(); // All cancel/close paths funnel through rejected, which triggers digitalVerifyFailed. std::function cancelOperate = [this, Ddialog, code]() { qCDebug(appLog) << "Develop digital error window canceled, calling digitalVerifyFailed"; digitalVerifyFailed(code); Ddialog->deleteLater(); }; // Cancel button -> reject connect(cancelBtn, &DPushButton::clicked, Ddialog, &DDialog::reject); // Close icon -> reject connect(Ddialog, &DDialog::aboutToClose, Ddialog, &DDialog::reject); // ESC key -> reject (via Dialog::signalClosed which DDialog::rejected may not cover) connect(Ddialog, &Dialog::signalClosed, Ddialog, &DDialog::reject); // Single handler for all reject paths connect(Ddialog, &DDialog::rejected, cancelOperate); QPushButton *continueBtn = qobject_cast(Ddialog->getButton(1)); connect(continueBtn, &DPushButton::clicked, this, [&] { qCDebug(appLog) << "Continue button clicked on develop digital error window, calling installNextDeb"; installNextDeb(); }); // 点击继续,进入安装流程 connect(continueBtn, &DPushButton::clicked, Ddialog, &DDialog::deleteLater); } void DebListModel::slotDigitalSignatureError() { qCDebug(appLog) << "Entering slotDigitalSignatureError"; digitalVerifyFailed(Pkg::DigitalSignatureError); } void DebListModel::slotNoDigitalSignature() { qCDebug(appLog) << "Entering slotNoDigitalSignature"; digitalVerifyFailed(Pkg::NoDigitalSignature); } void DebListModel::slotShowDevelopModeWindow() { qCDebug(appLog) << "Entering slotShowDevelopModeWindow"; // 弹出设置 通用窗口 // 1.读取系统版本号 qCDebug(appLog) << "Reading system version"; 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); qCInfo(appLog) << "lsb_release -r:" << output; qCInfo(appLog) << "OS version:" << osVerStr; } // 2.打开控制中心 qCDebug(appLog) << "Opening control center for OS version:" << osVerStr; if (osVerStr == "20") { // V20模式 qCDebug(appLog) << "OS version is 20, using com.deepin.dde.ControlCenter"; QDBusInterface interface("com.deepin.dde.ControlCenter", "/com/deepin/dde/ControlCenter", "com.deepin.dde.ControlCenter"); if (interface.isValid()) { qCDebug(appLog) << "Calling ShowPage on D-Bus interface"; 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模式 qCDebug(appLog) << "OS version is 23, using org.deepin.dde.ControlCenter1"; if (unlock->exitCode() != QProcess::NormalExit) { QDBusInterface interface( "org.deepin.dde.ControlCenter1", "/org/deepin/dde/ControlCenter1", "org.deepin.dde.ControlCenter1"); if (interface.isValid()) { qCDebug(appLog) << "Calling ShowPage on D-Bus interface for v23"; 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() { qCDebug(appLog) << "Entering checkDigitalSignature"; // 分级管控可用时,交由分级管控进行签名验证 if (HierarchicalVerify::instance()->isValid()) { qCDebug(appLog) << "Hierarchical verification is valid, skipping signature check"; return true; } const auto stat = m_packagesManager->getPackageDependsStatus(m_operatingIndex); // 获取包的依赖状态 if (stat.isBreak() || stat.isAuthCancel()) { qCDebug(appLog) << "Dependency is broken or auth cancelled, skipping signature check"; return true; } // 社区版不读取设置,保持 m_isDigitalVerify 默认值 false if (DSysInfo::uosEditionType() != DSysInfo::UosCommunity) { SettingDialog dialog; m_isDigitalVerify = dialog.isDigitalVerified(); } int digitalSigntual = Utils::Digital_Verify(m_packagesManager->package(m_operatingIndex)); // 判断是否有数字签名 qCInfo(appLog) << "m_isDevelopMode:" << m_isDevelopMode << " /m_isDigitalVerify:" << m_isDigitalVerify << " /digitalSigntual:" << digitalSigntual; // 无数字签名:专业版检查Mode属性,社区版走开发者模式逻辑 if (digitalSigntual == Utils::DebfileInexistence) { if (HierarchicalVerify::instance()->isValid()) { if (HierarchicalVerify::instance()->allowInstallUnsigned()) { qCDebug(appLog) << "No digital signature, professional Mode=0, allowing install"; return true; } qCDebug(appLog) << "No digital signature, professional Mode!=0, showing security center dialog"; showNoDigitalErrWindow(); return false; } if (!m_isDevelopMode) { qCDebug(appLog) << "No digital signature, community non-developer, showDigitalErrWindow"; showDigitalErrWindow(); return false; } if (!m_isDigitalVerify) { qCDebug(appLog) << "No digital signature, community developer no verify, allowing"; return true; } qCDebug(appLog) << "No digital signature, community developer with verify, showDevelopDigitalErrWindow"; showDevelopDigitalErrWindow(Pkg::NoDigitalSignature); return false; } if (m_isDevelopMode && !m_isDigitalVerify) { // 开发者模式且未设置验签功能 qCDebug(appLog) << "Developer mode and digital verification is disabled, returning true"; return true; } else if (m_isDevelopMode && m_isDigitalVerify) { // 开发者模式且设置验签功能 qCDebug(appLog) << "Developer mode and digital verification is enabled"; if (digitalSigntual == Utils::VerifySuccess) { qCDebug(appLog) << "Signature verification successful in developer mode"; return true; } else { qCDebug(appLog) << "Signature verification failed in developer mode"; Pkg::ErrorCode code = Pkg::DigitalSignatureError; showDevelopDigitalErrWindow(code); // 弹出提示框 return false; } } else { // 非开发者模式 qCDebug(appLog) << "Not in developer mode, checking signature status"; bool verifiedResult = false; switch (digitalSigntual) { case Utils::VerifySuccess: // 签名验证成功 qCDebug(appLog) << "Signature verification successful"; verifiedResult = true; break; case Utils::ExtractDebFail: // 无有效的数字签名 qCDebug(appLog) << "Failed to extract deb, showing digital error window"; showDigitalErrWindow(); verifiedResult = false; break; case Utils::DebVerifyFail: case Utils::OtherError: // 其他原因造成的签名校验失败 qCDebug(appLog) << "Deb verification failed or other error, showing digital error window"; showDigitalErrWindow(); verifiedResult = false; break; default: // 其他未知错误 qCInfo(appLog) << "unknown mistake"; qCDebug(appLog) << "Unknown signature verification error"; verifiedResult = false; break; } return verifiedResult; } } void DebListModel::installNextDeb() { qCDebug(appLog) << "Entering installNextDeb for operating index" << m_operatingStatusIndex; // If package is first package or install to compatible mode, not need reset status. bool isFirstPackageAndCached = (0 == m_operatingStatusIndex) && m_packagesManager->cachedPackageDependStatus(m_operatingStatusIndex); if (!isFirstPackageAndCached) { qCDebug(appLog) << "Not first package or not cached, resetting package depends status"; // The apt backend cache may changed, refresh package status. m_packagesManager->resetPackageDependsStatus(m_operatingStatusIndex); } PackageDependsStatus dependStatus = m_packagesManager->getPackageDependsStatus(m_operatingStatusIndex); qCDebug(appLog) << "Current dependency status:" << dependStatus.status; // Check if compatible backend should be used (fresh install or reinstall) bool useCompat = dependStatus.canInstallCompatible(); if (!useCompat && Pkg::CompatibleIntalled == dependStatus.status && supportCompatible()) { if (auto ptr = packagePtr(m_operatingIndex)) { if (auto compPtr = ptr->compatible()) { useCompat = !compPtr->targetRootfs.isEmpty(); } } } if (useCompat && supportCompatible()) { qCDebug(appLog) << "Can install in compatible mode, calling installDebs"; installDebs(); } else if (ImmBackend::instance()->immutableEnabled()) { qCDebug(appLog) << "Immutable backend enabled, calling installDebs"; installDebs(); } else if (dependStatus.isAvailable()) { // 存在没有安装的依赖包,则进入普通安装流程执行依赖安装 qCDebug(appLog) << "Dependencies are available, calling installDebs"; installDebs(); } else if (dependStatus.status >= Pkg::DependsStatus::DependsBreak) { // 安装前置条件不满足,无法处理 qCDebug(appLog) << "Dependencies broken, failing and bumping index"; refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); bumpInstallIndex(); return; } else { // 如果当前包的依赖全部安装完毕,则进入配置判断流程 qCDebug(appLog) << "Dependencies satisfied, checking for debconf"; QString sPackageName = m_packagesManager->m_preparedPackages[m_operatingIndex]; if (Utils::checkPackageContainsDebConf(sPackageName)) { // 检查当前包是否需要配置 qCDebug(appLog) << "Package contains debconf, starting install config process"; m_procInstallConfig->start("pkexec", QStringList() << "pkexec" << "deepin-deb-installer-dependsInstall" << "--install_config" << sPackageName, {}, 0, false); // 配置安装流程 } else { qCDebug(appLog) << "No debconf, proceeding with normal installation by calling installDebs"; installDebs(); // 普通安装流程 } } } void DebListModel::slotTransactionOutput() { qCDebug(appLog) << "Entering slotTransactionOutput"; if (m_workerStatus == WorkerProcessing) { qCInfo(appLog) << "installer status error"; } Transaction *trans = qobject_cast(sender()); if (!trans) { qCDebug(appLog) << "Transaction object is null, returning"; return; } qCDebug(appLog) << "Refreshing package status to Operating"; refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Operating); // 刷新当前包的操作状态 disconnect(trans, &Transaction::statusDetailsChanged, this, &DebListModel::slotTransactionOutput); } void DebListModel::slotImmutableDeferredInstall() { disconnect(&PackageAnalyzer::instance(), &PackageAnalyzer::cacheUpdateFinished, this, &DebListModel::slotImmutableDeferredInstall); m_immutableInstallDeferred = false; installDebs(); } void DebListModel::slotUninstallFinished() { qCDebug(appLog) << "Entering slotUninstallFinished"; if (m_workerStatus == WorkerProcessing) { qCInfo(appLog) << "installer status error"; } // 增加卸载失败的情况 // 此前的做法是发出commitError的信号,现在全部在Finished中进行处理。不再特殊处理。 Transaction *trans = qobject_cast(sender()); if (!trans) { qCDebug(appLog) << "Transaction object is null, returning"; return; } if (trans->exitStatus()) { qCDebug(appLog) << "Uninstall finished with an error"; 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 { qCDebug(appLog) << "Uninstall finished successfully"; m_workerStatus = WorkerFinished; // 刷新包安装器的工作状态 refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Success); // 刷新当前包的卸载状态 m_packageOperateStatus[m_operatingPackageMd5] = Pkg::PackageOperationStatus::Success; } qCDebug(appLog) << "Emitting signalWorkerFinished for uninstall"; emit signalWorkerFinished(); // 发送结束信号(只有单包卸载)卸载结束就是整个流程的结束 trans->deleteLater(); } void DebListModel::slotSetCurrentIndex(const QModelIndex &modelIndex) { qCDebug(appLog) << "Entering slotSetCurrentIndex"; if (m_currentIdx == modelIndex) { qCDebug(appLog) << "New index is same as current, returning"; return; // 要修改的index与当前index 一致 } const QModelIndex index = m_currentIdx; // 保存当前的index m_currentIdx = modelIndex; // 修改当前的index qCDebug(appLog) << "Current index changed to" << m_currentIdx.row(); emit dataChanged(index, index); emit dataChanged(m_currentIdx, m_currentIdx); // 发送index修改信号 } void DebListModel::initPrepareStatus() { qCDebug(appLog) << "Entering initPrepareStatus"; for (int i = 0; i < m_packagesManager->m_preparedPackages.size(); i++) { auto md5 = m_packagesManager->getPackageMd5(i); qCDebug(appLog) << "Setting package" << md5 << "to Prepare status"; m_packageOperateStatus.insert(md5, Pkg::PackageOperationStatus::Prepare); // 刷新当前所有包的状态为Prepare } } void DebListModel::initRowStatus() { qCDebug(appLog) << "Entering initRowStatus"; // 更换状态存储方式后修改更新状态的方式 for (auto md5 : m_packageMd5) { qCDebug(appLog) << "Setting package" << md5 << "to Waiting status"; m_packageOperateStatus[md5] = Pkg::PackageOperationStatus::Waiting; } } void DebListModel::slotUpWrongStatusRow() { qCDebug(appLog) << "Entering slotUpWrongStatusRow"; if (m_packagesManager->m_preparedPackages.size() == 1) { qCDebug(appLog) << "Only one package, no need to update wrong status row, returning"; return; } QList installErrorPackages; // 安装错误的包的list QList installSuccessPackages; // 安装成功的包的list // 根据包的操作状态,分别找到所有安装成功的包与安装失败的包 qCDebug(appLog) << "Separating packages by installation status"; 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()); } } qCDebug(appLog) << "Failed packages count:" << installErrorPackages.size() << ", Success packages count:" << installSuccessPackages.size(); if (installErrorPackages.size() == 0) { // 全部安装成功 直接退出 qCDebug(appLog) << "No error packages, returning"; return; } // 先将包与md5 绑定 // 后续要对根据MD5对包的路径进行排序,保证包名和md5的下标统一 qCDebug(appLog) << "Reordering packages based on status"; 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 qCDebug(appLog) << "Emitting dataChanged to 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) { qCDebug(appLog) << "Config install finish, installResult: " << installResult; if (m_packagesManager->m_preparedPackages.size() == 0) { qCDebug(appLog) << "No prepared packages, returning"; return; } int progressValue = static_cast(100. * (m_operatingIndex + 1) / m_packagesManager->m_preparedPackages.size()); // 批量安装时对进度进行处理 emit signalWholeProgressChanged(progressValue); if (0 == installResult) { // 安装成功 qCDebug(appLog) << "Installation successful"; if (m_packagesManager->m_packageMd5DependsStatus[m_packagesManager->m_packageMd5[m_operatingIndex]].status == Pkg::DependsStatus::DependsOk) { qCDebug(appLog) << "Depends ok, refreshing status to Success"; refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Success); // 刷新安装状态 m_procInstallConfig->terminate(); // 结束配置 m_procInstallConfig->close(); } bumpInstallIndex(); // 开始安装下一个 } else { qCDebug(appLog) << "Installation failed"; if (1 == m_packagesManager->m_preparedPackages.size()) { // 单包安装 qCDebug(appLog) << "Single package installation, refreshing status to Prepare"; refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Prepare); // 刷新当前包的操作状态为准备态 m_workerStatus = WorkerPrepare; emit signalAuthCancel(); // 授权取消 } else { // 批量安装 qCDebug(appLog) << "Batch installation, refreshing status to Failed"; refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Failed); // 刷新当前包的状态为失败 // 修改map存储的数据格式,将错误原因与错误代码与包绑定,而非与下标绑定 m_packageFailCode.insert(m_operatingPackageMd5, installResult); // 保存失败原因 m_packageFailReason.insert(m_operatingPackageMd5, "Authentication failed"); bumpInstallIndex(); // 开始安装下一个 } } qCDebug(appLog) << "Hiding and clearing config window"; configWindow->hide(); // 隐藏配置窗口 configWindow->clearTexts(); // 清楚配置信息 // m_procInstallConfig->terminate(); //结束配置 // m_procInstallConfig->close(); } void DebListModel::slotConfigReadOutput(const char *buffer, int length, bool isCommandExec) { qCDebug(appLog) << "Config read output, length:" << length; 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")) { qCDebug(appLog) << "No error, showing config window"; // 获取到当前正在安装配置 emit signalWorkerStart(); refreshOperatingPackageStatus(Pkg::PackageOperationStatus::Operating); // 刷新当前的操作状态 configWindow->show(); // 显示配置窗口 int iCutoutNum = tmp.size(); if (iCutoutNum > 0) { qCDebug(appLog) << "Appending output info to config window"; emit signalAppendOutputInfo(tmp); // 原本安装信息界面信息也要添加,以备安装完成后查看安装信息 configWindow->appendTextEdit(tmp); // 配置包安装信息界面显示配置信息 } } } void DebListModel::slotConfigInputWrite(const QString &str) { qCDebug(appLog) << "Writing config input: " << str; if (supportCompatible() && m_compBackend && m_compBackend->isRunning()) { qCDebug(appLog) << "Writing to compatible processor"; m_compBackend->writeConfigData(str); return; } if (m_immProcessor && m_immProcessor->isRunning()) { qCDebug(appLog) << "Writing to immutable processor"; m_immProcessor->writeConfigData(str); return; } qCDebug(appLog) << "Writing to pty"; m_procInstallConfig->pty()->write(str.toUtf8()); // 将用户输入的配置项写入到配置安装进程中。 m_procInstallConfig->pty()->write("\n"); // 写入换行,配置生效 } void DebListModel::slotCheckInstallStatus(const QString &installInfo) { qCDebug(appLog) << "Checking install status, installInfo:" << installInfo; // 判断当前的信息是否是错误提示信息 if (installInfo.contains("Error executing command as another user: Request dismissed")) { qCDebug(appLog) << "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 { // qCDebug(appLog) << "Checking package path:" << packagePath; 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) { // qCDebug(appLog) << "Getting package MD5s"; m_packageMd5.clear(); m_packageMd5 = packagesMD5; emit signalAppendFinished(); } void DebListModel::slotShowProhibitWindow() { qCDebug(appLog) << "Showing prohibit window"; digitalVerifyFailed(Pkg::ApplocationProhibit); } void DebListModel::showProhibitWindow() { qCDebug(appLog) << "Showing prohibit window"; // 批量安装时,如果不是最后一个包,则不弹窗,只记录详细错误原因。 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, Ddialog, &DDialog::reject); // 点击弹出窗口的确定按钮 connect(btnOK, &DPushButton::clicked, Ddialog, &DDialog::reject); // ESC / reject(所有退出路径汇聚到此信号) connect(Ddialog, &DDialog::rejected, exitOperate); } bool DebListModel::checkBlackListApplication() { qCDebug(appLog) << "Checking blacklist application"; PackageDependsStatus dependsStat = m_packagesManager->getPackageDependsStatus(m_operatingIndex); if (dependsStat.isProhibit()) { qCDebug(appLog) << "Package is in blacklist, showing prohibit window"; showProhibitWindow(); return true; } qCDebug(appLog) << "Package is not in blacklist"; return false; } DebListModel::~DebListModel() { qCDebug(appLog) << "DebListModel destructor"; delete m_packagesManager; delete configWindow; delete m_procInstallConfig; } /** @brief 打印待安装的软件包信息,将根据安装、升级、卸载等分类分别打印对应变更的软件包 */ void DebListModel::printDependsChanges() { qCDebug(appLog) << "Printing depends changes"; auto *const backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qCDebug(appLog) << "Backend is not available"; return; } auto changeList = backend->markedPackages(); if (changeList.isEmpty()) { qCDebug(appLog) << "Change list is empty"; 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()); } qCInfo(appLog) << "Install depends details:"; for (auto info = changeInfo.begin(); info != changeInfo.end(); info++) { qCInfo(appLog) << tagTable[info.key()] << info.value(); } } QString DebListModel::itemToolTips(int index) const { qCDebug(appLog) << "Getting item tool tips for index:" << index; 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() { qCDebug(appLog) << "Ensuring compatible processor"; 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()) { m_workerStatus = WorkerPrepare; Q_EMIT signalAuthCancel(); return; } } refreshOperatingPackageStatus(Pkg::Failed); } bumpInstallIndex(); }); } } bool DebListModel::installCompatiblePackage() { qCDebug(appLog) << "Installing compatible package"; ensureCompatibleProcessor(); m_currentPackage = packagePtr(m_operatingIndex); return m_compProcessor->install(m_currentPackage); } bool DebListModel::uninstallCompatiblePackage() { qCDebug(appLog) << "Uninstalling compatible package"; ensureCompatibleProcessor(); m_currentPackage = packagePtr(m_operatingIndex); return m_compProcessor->uninstall(m_currentPackage); } void DebListModel::ensureImmutableProcessor() { qCDebug(appLog) << "Ensuring immutable processor"; 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()) { m_workerStatus = WorkerPrepare; Q_EMIT signalAuthCancel(); return; } } refreshOperatingPackageStatus(Pkg::Failed); } bumpInstallIndex(); }); } } bool DebListModel::installImmutablePackage() { qCDebug(appLog) << "Installing immutable package"; ensureImmutableProcessor(); m_currentPackage = packagePtr(m_operatingIndex); // apt skips when the same version is already installed, force reinstall const int installStat = m_packagesManager->packageInstallStatus(m_operatingStatusIndex); const bool reinstall = (Pkg::PackageInstallStatus::InstalledSameVersion == installStat); qCDebug(appLog) << "Immutable package install status:" << installStat << "reinstall:" << reinstall; return m_immProcessor->install(m_currentPackage, reinstall); } bool DebListModel::uninstallImmutablePackage() { qCDebug(appLog) << "Uninstalling immutable package"; ensureImmutableProcessor(); m_currentPackage = packagePtr(m_operatingIndex); return m_immProcessor->uninstall(m_currentPackage); } Deb::DebPackage::Ptr DebListModel::packagePtr(int index) const { // qCDebug(appLog) << "Getting package pointer for index:" << index; 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) { // qCDebug(appLog) << "Dialog key press event"; if (event->key() == Qt::Key_Escape) { qCDebug(appLog) << "Escape key pressed, emitting signalClosed"; emit signalClosed(); } } deepin-deb-installer-6.5.51/src/deb-installer/model/deblistmodel.h000066400000000000000000000367771524745214100250640ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2026 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; class AptInstallBackend; class CompatibleInstallBackend; 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 friend class AptInstallBackend; friend class CompatibleInstallBackend; 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(); void slotImmutableDeferredInstall(); /** * @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; // apt install backend (owns m_currentTransaction) AptInstallBackend *m_aptBackend = nullptr; // 当前正在运行的Trans (retained for lastProcessError() backward compat) 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; #ifndef DISABLE_COMPATIBLE CompatibleInstallBackend *m_compBackend = nullptr; #endif // immutable QScopedPointer m_immProcessor; bool m_immutableInstallDeferred = false; }; #endif // DEBLISTMODEL_H deepin-deb-installer-6.5.51/src/deb-installer/model/dependgraph.cpp000066400000000000000000000200261524745214100252050ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "dependgraph.h" #include "utils/ddlog.h" #include #include #include struct DependGraphNode { QString packageName; QString packagePath; QByteArray md5; QList depends; std::vector dependsInGraph; }; DependGraph::~DependGraph() { qCDebug(appLog) << "DependGraph destructor called"; reset(); } void DependGraph::addNode(const QString &packagePath, const QByteArray &md5, const QString &packageName, const QList &depends) { qCDebug(appLog) << "Adding node:" << packageName << "path:" << packagePath; auto node = new DependGraphNode; node->packagePath = packagePath; node->packageName = packageName; node->depends = depends; node->md5 = md5; // 建立依赖关系图 std::vector dependsInGraph; // 1.搜索当前节点的潜在依赖关系 qCDebug(appLog) << "Searching for existing dependencies for the new node"; 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()) { // qCDebug(appLog) << "Found dependency:" << pkgName << "for" << packageName; dependsInGraph.push_back(*iter); } } } // 2.为其他节点添加潜在依赖关系 qCDebug(appLog) << "Updating other nodes that might depend on the new node:" << packageName; for (auto &eachNode : nodes) { bool finded = false; for (auto &eachDepends : eachNode->depends) { for (auto &eachOrDepend : eachDepends) { if (eachOrDepend.packageName() == packageName) { qCDebug(appLog) << "Node" << eachNode->packageName << "depends on the new node" << packageName << ", updating graph."; eachNode->dependsInGraph.push_back(node); finded = true; // Corrected logic to use the flag break; } } if (finded) { break; } } } node->dependsInGraph = dependsInGraph; nodes.push_back(node); qCDebug(appLog) << "Node" << packageName << "added. Total nodes:" << nodes.size(); } bool isCircularDepend(DependGraphNode *currentNode, DependGraphNode *dependNode) { qCDebug(appLog) << "Checking for circular dependency between" << currentNode->packageName << "and" << dependNode->packageName; auto iter = std::find_if(dependNode->dependsInGraph.begin(), dependNode->dependsInGraph.end(), [currentNode](DependGraphNode *node) { return currentNode->packageName == node->packageName; }); bool isCircular = iter != dependNode->dependsInGraph.end(); qCDebug(appLog) << "Circular dependency result:" << isCircular; return isCircular; } void addDepend(QList &paths, QList &md5s, QStringList &result, DependGraphNode *node) { qCDebug(appLog) << "Adding dependencies for node:" << node->packageName; if (result.contains(node->packageName)) { qCDebug(appLog) << "Node" << node->packageName << "already in result list, skipping."; return; } for (auto &eachDependNode : node->dependsInGraph) { // qCDebug(appLog) << "Processing dependency:" << eachDependNode->packageName; if (eachDependNode->dependsInGraph.empty()) { // qCDebug(appLog) << "Dependency" << eachDependNode->packageName << "has no further dependencies."; if (result.contains(eachDependNode->packageName)) { // qCDebug(appLog) << "Dependency" << eachDependNode->packageName << "already in result list, skipping."; continue; } // qCDebug(appLog) << "Adding leaf dependency" << eachDependNode->packageName << "to lists."; result.push_back(eachDependNode->packageName); paths.push_back(eachDependNode->packagePath); md5s.push_back(eachDependNode->md5); } else { // qCDebug(appLog) << "Dependency" << eachDependNode->packageName << "has further dependencies, recursing."; if (isCircularDepend(node, eachDependNode)) { // 检查循环依赖 qCWarning(appLog) << "Circular dependency detected between" << node->packageName << "and" << eachDependNode->packageName; continue; } addDepend(paths, md5s, result, eachDependNode); if (result.contains(eachDependNode->packageName)) { // qCDebug(appLog) << "Post-recursion: dependency" << eachDependNode->packageName << "already in result list, skipping."; continue; } // qCDebug(appLog) << "Post-recursion: adding dependency" << eachDependNode->packageName << "to lists."; result.push_back(eachDependNode->packageName); paths.push_back(eachDependNode->packagePath); md5s.push_back(eachDependNode->md5); } } } std::pair, QList> DependGraph::getBestInstallQueue() const { qCDebug(appLog) << "Calculating best install order for" << nodes.size() << "packages"; QStringList result; QList paths; QList md5s; for (size_t i = 0; i != nodes.size(); ++i) { if (result.contains(nodes[i]->packageName)) { qCDebug(appLog) << "Package" << nodes[i]->packageName << "already processed, skipping."; continue; } // 添加前置依赖 qCDebug(appLog) << "Processing dependencies for" << nodes[i]->packageName; addDepend(paths, md5s, result, nodes[i]); // 添加本体 if (result.contains(nodes[i]->packageName)) { qCDebug(appLog) << "Package" << nodes[i]->packageName << "was added as a dependency, skipping duplicate add."; continue; } qCDebug(appLog) << "Adding package" << nodes[i]->packageName << "to the queue."; result.push_back(nodes[i]->packageName); paths.push_back(nodes[i]->packagePath); md5s.push_back(nodes[i]->md5); } qCDebug(appLog) << "Final install queue size:" << paths.size(); return std::make_pair(paths, md5s); } void DependGraph::reset() { qCDebug(appLog) << "Resetting dependency graph with" << nodes.size() << "nodes"; for (auto &node : nodes) { delete node; } nodes.clear(); } void DependGraph::remove(const QByteArray &md5) { qCDebug(appLog) << "Removing node with md5:" << 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)); qCDebug(appLog) << "Node removed, remaining nodes:" << nodes.size(); break; } } } void DependGraph::removeInGraph(const DependGraphNode *dependnode) { qCDebug(appLog) << "Recursively removing node" << dependnode->packageName << "from all dependency lists."; QSet visited; for (auto eachNode : nodes) { std::vector stack = { eachNode }; while (!stack.empty()) { auto* node = stack.back(); stack.pop_back(); if (!node || visited.contains(node)) continue; visited.insert(node); auto& deps = node->dependsInGraph; deps.erase(std::remove(deps.begin(), deps.end(), dependnode), deps.end()); // Use std::copy to push all dependent nodes into the stack std::copy(deps.begin(), deps.end(), std::back_inserter(stack)); } } } deepin-deb-installer-6.5.51/src/deb-installer/model/dependgraph.h000066400000000000000000000014151524745214100246530ustar00rootroot00000000000000// 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.51/src/deb-installer/model/packageanalyzer.cpp000066400000000000000000000617171524745214100261010ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023-2026 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 "utils/ddlog.h" #include #include #include #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) { qCDebug(appLog) << "PackageAnalyzer constructor called"; backendInInit = false; inPkgAnalyze = false; uiExited = false; qRegisterMetaType>("QList"); } void PackageAnalyzer::setUiExit() { qCDebug(appLog) << "UI exit signal received"; uiExited = true; } void PackageAnalyzer::initBackend() { qCDebug(appLog) << "PackageAnalyzer initBackend"; if (backend != nullptr) { qCDebug(appLog) << "Backend already initialized"; return; } qCInfo(appLog) << "Initializing backend..."; emit runBackend(true); backendInInit = true; qCDebug(appLog) << "Waiting for backend running init flag to clear..."; while (SingleInstallerApplication::BackendIsRunningInit) { QThread::msleep(10); } qCDebug(appLog) << "Backend running init flag cleared."; SingleInstallerApplication::BackendIsRunningInit = true; // init compatible backend with deb backend asynchronous if (CompBackend::instance()->compatibleExists()) { qCDebug(appLog) << "Compatible backend exists, initializing..."; CompBackend::instance()->initBackend(); } backend.reset(new QApt::Backend); qCDebug(appLog) << "QApt backend created, calling init()"; bool initSuccess = backend->init(); SingleInstallerApplication::BackendIsRunningInit = false; if (!initSuccess) { qCCritical(appLog) << "Backend initialization failed:" << backend->initErrorMessage(); qFatal("%s", backend->initErrorMessage().toStdString().c_str()); } qCDebug(appLog) << "Backend initialized successfully."; archs = backend->architectures(); archs.append("all"); archs.append("any"); qCDebug(appLog) << "Supported architectures set:" << archs; // wait compatible init finished; bool nonGuiThread = qApp->thread() != QThread::currentThread(); while (nonGuiThread && CompBackend::instance()->compatibleExists() && !CompBackend::instance()->compatibleInited()) { QThread::msleep(5); } backendInInit = false; emit runBackend(false); qCInfo(appLog) << "Backend initialization process finished."; } bool PackageAnalyzer::readDConfigBool(const QString &key, bool defaultValue) const { #ifdef DTKCORE_CLASS_DConfigFile Dtk::Core::DConfig *cfg = Dtk::Core::DConfig::create("deepin-deb-installer", "deepin-deb-installer.cache"); if (cfg && cfg->isValid()) { bool value = cfg->value(key, defaultValue).toBool(); cfg->deleteLater(); return value; } if (cfg) cfg->deleteLater(); #endif return defaultValue; } bool PackageAnalyzer::writeDConfigBool(const QString &key, bool value) { #ifdef DTKCORE_CLASS_DConfigFile Dtk::Core::DConfig *cfg = Dtk::Core::DConfig::create("deepin-deb-installer", "deepin-deb-installer.cache"); if (cfg && cfg->isValid()) { cfg->setValue(key, value); cfg->deleteLater(); return true; } if (cfg) cfg->deleteLater(); #endif return false; } bool PackageAnalyzer::isAutoUpdateBeforeInstallEnabled() const { bool enabled = readDConfigBool("autoUpdateBeforeInstall", true); qCDebug(appLog) << "DConfig autoUpdateBeforeInstall:" << enabled; return enabled; } void PackageAnalyzer::markOneTimeUpdateDone() { if (writeDConfigBool("oneTimeUpdateOnFirstPackage", false)) { qCInfo(appLog) << "One-time update done, DConfig oneTimeUpdateOnFirstPackage set to false"; } else { qCWarning(appLog) << "DConfig unavailable, cannot persist oneTimeUpdateOnFirstPackage=false"; } } bool PackageAnalyzer::isOneTimeUpdateEnabled() const { // DConfig 不可用时返回 false:无法持久化"已完成"状态,返回 true 会导致每次启动都强制 apt update bool enabled = readDConfigBool("oneTimeUpdateOnFirstPackage", false); qCDebug(appLog) << "DConfig oneTimeUpdateOnFirstPackage:" << enabled; return enabled; } void PackageAnalyzer::updatePackageCache() { // DConfig 开关:默认开启。关闭时不发送 cacheUpdateStarted 信号,跳过 apt update。 if (!isAutoUpdateBeforeInstallEnabled()) { qCInfo(appLog) << "Auto apt-update before install disabled by DConfig, skip cache update"; setCacheUpdateFinished(true); // 仍标记完成,避免安装流程无限等待 isCacheUpdateFinished() return; } if (isOneTimeUpdateEnabled()) { qCInfo(appLog) << "One-time forced apt update triggered (first launch), skip shouldUpdateCache"; m_oneTimeUpdateInProgress = true; // 标记,在 setCacheUpdateFinished 中延迟置 key=false } else if (!shouldUpdateCache()) { qCInfo(appLog) << "Sources not changed, cache is still valid, skip update"; setCacheUpdateFinished(true); return; } qCInfo(appLog) << "Package cache update started"; emit cacheUpdateStarted(); } bool PackageAnalyzer::isBackendReady() { bool ready = backend.get() != nullptr; qCDebug(appLog) << "Backend ready status:" << ready; return ready; } void PackageAnalyzer::setCacheUpdateFinished(bool finished) { m_cacheUpdateFinished = finished; if (finished) { // 一次性 update 真正完成后才持久化 key=false,避免崩溃导致标志位丢失 if (m_oneTimeUpdateInProgress) { m_oneTimeUpdateInProgress = false; markOneTimeUpdateDone(); } emit cacheUpdateFinished(); } } bool PackageAnalyzer::isCacheUpdateFinished() const { return m_cacheUpdateFinished.load(); } QDateTime PackageAnalyzer::getSourcesLastModified() const { QDateTime latestModified; // 1. 检查主源文件 QFileInfo mainSources("/etc/apt/sources.list"); if (mainSources.exists()) { latestModified = mainSources.lastModified(); qCDebug(appLog) << "Main sources.list modified:" << latestModified; } // 2. 遍历 sources.list.d 目录下的所有 .list 文件 QDir sourcesDir("/etc/apt/sources.list.d"); if (sourcesDir.exists()) { QFileInfoList listFiles = sourcesDir.entryInfoList( QStringList() << "*.list", QDir::Files | QDir::NoDotAndDotDot ); for (const QFileInfo &file : listFiles) { qCDebug(appLog) << "Checking source file:" << file.fileName() << "modified:" << file.lastModified(); if (!latestModified.isValid() || file.lastModified() > latestModified) { latestModified = file.lastModified(); } } } qCDebug(appLog) << "Latest sources modification time:" << latestModified; return latestModified; } QDateTime PackageAnalyzer::getCacheLastModified() const { QFileInfo cacheFile("/var/cache/apt/pkgcache.bin"); if (cacheFile.exists()) { QDateTime modified = cacheFile.lastModified(); qCDebug(appLog) << "Cache file modified:" << modified; return modified; } qCDebug(appLog) << "Cache file does not exist"; return QDateTime(); // 返回无效时间 } bool PackageAnalyzer::shouldUpdateCache() const { // 如果缓存文件不存在,需要更新 QDateTime cacheTime = getCacheLastModified(); if (!cacheTime.isValid()) { qCInfo(appLog) << "Cache file does not exist, need to update"; return true; } // 如果源文件不存在或无法访问,保守起见不更新 QDateTime sourcesTime = getSourcesLastModified(); if (!sourcesTime.isValid()) { qCWarning(appLog) << "Cannot determine sources modification time, skip update"; return false; } // 核心判断:源文件的修改时间是否晚于缓存文件 bool needUpdate = sourcesTime > cacheTime; qCInfo(appLog) << "Sources last modified:" << sourcesTime << "Cache last modified:" << cacheTime << "Need update:" << needUpdate; return needUpdate; } QApt::Backend *PackageAnalyzer::backendPtr() { // qCDebug(appLog) << "Providing backend pointer."; return backend.get(); } QPair PackageAnalyzer::packageInstallStatus(const DebIr &ir) const { qCDebug(appLog) << "Checking install status for package:" << ir.packageName << "version:" << ir.version; Pkg::PackageInstallStatus status; QString installedVersion; do { if (!ir.isValid) { qCDebug(appLog) << "Package IR is not valid, status: NotInstalled"; status = Pkg::NotInstalled; break; } QApt::Package *package = packageWithArch(ir.packageName, ir.architecture, ""); if (package == nullptr) { qCDebug(appLog) << "Package" << ir.packageName << "not found in backend, status: NotInstalled"; status = Pkg::NotInstalled; break; } installedVersion = package->installedVersion(); if (installedVersion.isEmpty()) { qCDebug(appLog) << "Package" << ir.packageName << "found, but not installed, status: NotInstalled"; status = Pkg::NotInstalled; break; } qCDebug(appLog) << "Package" << ir.packageName << "is installed with version" << installedVersion << ". Comparing with" << ir.version; int result = QApt::Package::compareVersion(ir.version, installedVersion); if (result == 0) { qCDebug(appLog) << "Versions are the same. Status: InstalledSameVersion"; status = Pkg::InstalledSameVersion; } else if (result < 0) { qCDebug(appLog) << "Installed version is later. Status: InstalledLaterVersion"; status = Pkg::InstalledLaterVersion; } else { qCDebug(appLog) << "Installed version is earlier. Status: InstalledEarlierVersion"; status = Pkg::InstalledEarlierVersion; } } while (0); qCDebug(appLog) << "Final status for" << ir.packageName << "is" << status << "with installed version" << installedVersion; return {status, installedVersion}; } QApt::Package * PackageAnalyzer::packageWithArch(const QString &packageName, const QString &sysArch, const QString &annotation) const { qCDebug(appLog) << "Looking for package:" << packageName << "arch:" << sysArch << "annotation:" << annotation; QApt::Package *package = backend->package(packageName + resolvMultiArchAnnotation(annotation, sysArch, QApt::InvalidMultiArchType)); if (!package) { qCDebug(appLog) << "Package not found with annotation, trying package name only"; package = backend->package(packageName); } if (package) { qCDebug(appLog) << "Found package:" << package->name(); return package; } qCDebug(appLog) << "Package not found, iterating through all architectures"; for (QString arch : backend->architectures()) { package = backend->package(packageName + ":" + arch); if (package) { qCDebug(appLog) << "Found package with arch:" << arch; return package; } } qCDebug(appLog) << "Package not found, checking for virtual packages that provide it"; for (auto *virtualPackage : backend->availablePackages()) { if (virtualPackage->name() != packageName && virtualPackage->providesList().contains(packageName)) { qCDebug(appLog) << "Found virtual package provider:" << virtualPackage->name() << ", recursing"; return packageWithArch(virtualPackage->name(), sysArch, annotation); } } qCDebug(appLog) << "Package" << packageName << "not found"; return nullptr; } QString PackageAnalyzer::resolvMultiArchAnnotation(const QString &annotation, const QString &debArch, int multiArchType) const { qCDebug(appLog) << "Resolving multi-arch annotation:" << annotation << "debArch:" << debArch << "type:" << multiArchType; if ("native" == annotation || "any" == annotation) { qCDebug(appLog) << "Annotation is 'native' or 'any', returning empty string."; return QString(); } if ("all" == annotation) { qCDebug(appLog) << "Annotation is 'all', returning empty string."; return QString(); } if (multiArchType == QApt::MultiArchForeign) { qCDebug(appLog) << "Multi-arch type is Foreign, returning empty string."; return QString(); } QString arch; if (annotation.isEmpty()) { arch = debArch; qCDebug(appLog) << "Annotation is empty, using deb arch:" << arch; } else { arch = annotation; qCDebug(appLog) << "Using annotation as arch:" << arch; } if (!arch.startsWith(':') && !arch.isEmpty()) { return arch.prepend(':'); } else { qCDebug(appLog) << "Arch is empty or already starts with ':', returning as is:" << arch; return arch; } } bool PackageAnalyzer::virtualPackageIsExist(const QString &virtualPackageName) const { qCDebug(appLog) << "Checking if virtual package exists:" << virtualPackageName; // 由于没法搜索虚拟包,此处只能进行全包遍历 for (auto *package : backend->availablePackages()) { if (package->name() != virtualPackageName && package->providesList().contains(virtualPackageName)) { qCDebug(appLog) << "Found provider for" << virtualPackageName << ":" << package->name(); return true; } } qCDebug(appLog) << "No provider found for virtual package:" << virtualPackageName; return false; } bool PackageAnalyzer::versionMatched(const QString &lhs, const QString &rhs, QApt::RelationType relationType) const { qCDebug(appLog) << "Matching version, lhs:" << lhs << "rhs:" << rhs << "relation:" << relationType; if (relationType == QApt::NoOperand) { qCDebug(appLog) << "No operand, returning true."; return true; } int compareResult = QApt::Package::compareVersion(lhs, rhs); bool isMatched = false; qCDebug(appLog) << "Version comparison result:" << compareResult; 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; } } qCDebug(appLog) << "Version match result:" << isMatched; return isMatched; } bool PackageAnalyzer::dependIsReady(const QApt::DependencyItem &depend) const { qCDebug(appLog) << "Checking if dependency is ready:" << depend.first().packageName(); // 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(); qCDebug(appLog) << "Checking OR-dependency item:" << name << "version:" << version; // 2.2获取包状态 auto package = packageWithArch(name, arch, ""); if (package != nullptr && package->isInstalled()) { qCDebug(appLog) << "Package" << name << "is installed, checking version."; // 如果已安装,则检查版本情况 auto pkgVersion = package->version(); if (versionMatched(version, pkgVersion, type)) { qCDebug(appLog) << "Version matched. Dependency is ready."; isReady = true; break; } qCDebug(appLog) << "Version did not match."; } else if (virtualPackageIsExist(name)) { // 3.如果没有安装,则检查其作为虚拟包是否已安装 qCDebug(appLog) << "Package" << name << "is not installed, but a virtual package provider exists. Dependency is ready."; isReady = true; break; } } qCDebug(appLog) << "Final dependency ready status:" << isReady; return isReady; } QList PackageAnalyzer::debDependNotInstalled(const DebIr &ir) const { qCDebug(appLog) << "Getting not-installed dependencies for package:" << ir.packageName; // 获取依赖项 auto debDepends = ir.depends; qCDebug(appLog) << "Initial dependency count:" << debDepends.size(); // 获取安装状态,已安装的就丢出去 for (int i = 0; i != debDepends.size(); ++i) { if (dependIsReady(debDepends.at(i))) { qCDebug(appLog) << "Dependency" << debDepends.at(i).first().packageName() << "is ready, removing from list."; debDepends.removeAt(i); --i; } } qCDebug(appLog) << "Final not-installed dependency count:" << debDepends.size(); return debDepends; } void PackageAnalyzer::startPkgAnalyze(int total) { qCDebug(appLog) << "Starting package analysis for total packages:" << total; if (total > 0) { pkgWaitToAnalyzeTotal = total; alreadyAnalyzed = 0; } } void PackageAnalyzer::stopPkgAnalyze() { qCDebug(appLog) << "Stopping package analysis."; pkgWaitToAnalyzeTotal = -1; alreadyAnalyzed = 0; emit runAnalyzeDeb(false, 0, 0); } QList PackageAnalyzer::analyzeDebFiles(const QFileInfoList &infos, QSet *md5s, QStringList *appNames, bool excludeArchNotMatched, bool excludeInstalledOrLaterVersion) { qCDebug(appLog) << "Starting deb file analysis"; QList irs; QList appNameNeedRemove; for (int i = 0; i != infos.size(); ++i) { qCDebug(appLog) << "Analyzing deb file:" << infos[i].absoluteFilePath(); if (uiExited) { qCDebug(appLog) << "UI exited, breaking analysis loop."; break; } if (pkgWaitToAnalyzeTotal > 0) { emit runAnalyzeDeb(true, alreadyAnalyzed++, pkgWaitToAnalyzeTotal); } auto path = infos[i].absoluteFilePath(); QApt::DebFile deb(path); if (!deb.isValid()) { // 无效包直接去除 qCDebug(appLog) << "Deb file is invalid, skipping:" << path; appNameNeedRemove.append(i); continue; } // 如果需要丢掉不匹配的架构 bool archMatched = supportArch(deb.architecture()); if (excludeArchNotMatched && !archMatched) { qCDebug(appLog) << "Architecture not matched (" << deb.architecture() << "), skipping:" << path; 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) { qCDebug(appLog) << "Package is already installed with same or later version, skipping:" << path; appNameNeedRemove.append(i); continue; } } } auto packageMd5 = deb.md5Sum(); if (md5s->contains(packageMd5)) { // 包已存在,去重 qCDebug(appLog) << "Duplicate package detected by MD5, skipping:" << path; appNameNeedRemove.append(i); continue; } else { md5s->insert(packageMd5); } // 生成ir qCDebug(appLog) << "Creating DebIr for valid package:" << deb.packageName(); 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) { qCDebug(appLog) << "Removing" << appNameNeedRemove.size() << "app names for skipped packages."; for (int i = appNameNeedRemove.size() - 1; i != -1; --i) { appNames->removeAt(appNameNeedRemove[i]); } } qCDebug(appLog) << "Analysis finished. Returning" << irs.size() << "valid packages."; return irs; } void PackageAnalyzer::chooseDebFromDepend(QList *result, QSet *md5s, const QList &depends, const QList &debIrs) const { qCDebug(appLog) << "Choosing debs from dependencies. Current unsatisfied count:" << depends.size(); 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(); qCDebug(appLog) << "Checking candidate provider:" << name << version; for (const auto &ir : debIrs) { // 对每一个候选包 if (ir.packageName == name && versionMatched(version, ir.version, type)) { qCDebug(appLog) << "Found matching candidate package:" << ir.filePath; auto depdeps = debDependNotInstalled(ir); // 依赖包的依赖 if (!depdeps.isEmpty()) { // 有未就绪的依赖,在依赖包集合里面执行递归搜索 qCDebug(appLog) << "Candidate" << ir.packageName << "has its own unmet dependencies, recursing."; chooseDebFromDepend(result, md5s, depdeps, debIrs); } if (!md5s->contains(ir.md5)) { qCDebug(appLog) << "Adding candidate" << ir.packageName << "to results."; md5s->insert(ir.md5); result->push_back(ir); } finded = true; break; } } if (finded) { qCDebug(appLog) << "Found a provider for dependency" << depend.first().packageName() << ", moving to next dependency."; break; } } } } QList PackageAnalyzer::bestInstallQueue(const QList &installIrs, const QList &dependIrs) { qCDebug(appLog) << "Calculating best install queue for" << installIrs.size() << "target packages and" << dependIrs.size() << "dependency packages."; // TODO:后面重构的时候需要实现安装顺序计算,本轮需求仅实现抽取需要的包 // 1.检查依赖是否已就绪,将未就绪的项抽取出来 QList installDeps; // 记录每一个安装项的依赖情况 for (const auto &installIr : installIrs) { qCDebug(appLog) << "Analyzing install package:" << installIr.filePath; if (uiExited) { qCWarning(appLog) << "UI exited during analysis, aborting."; return QList(); } if (pkgWaitToAnalyzeTotal > 0) { emit runAnalyzeDeb(true, alreadyAnalyzed++, pkgWaitToAnalyzeTotal); } auto notInstallDepends = debDependNotInstalled(installIr); if (!notInstallDepends.isEmpty()) { qCDebug(appLog) << "Package" << installIr.packageName << "has" << notInstallDepends.size() << "unmet dependencies."; installDeps.append(notInstallDepends); } } qCDebug(appLog) << "Total unmet dependencies from target packages:" << installDeps.size(); // 2.从依赖包集合中抽取目前尚未就绪的项 QList realDepends; QSet md5s; chooseDebFromDepend(&realDepends, &md5s, installDeps, dependIrs); qCDebug(appLog) << "Resolved" << realDepends.size() << "dependencies from the provided dependency packages."; // 3.融合并返回结果 auto result = realDepends + installIrs; qCDebug(appLog) << "Final install queue size:" << result.size(); return result; } deepin-deb-installer-6.5.51/src/deb-installer/model/packageanalyzer.h000066400000000000000000000124271524745214100255400ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023-2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef PACKAGEANALYZER_H #define PACKAGEANALYZER_H #include #include #include #include #include #include "model/packageselectmodel.h" #include "utils/package_defines.h" namespace QApt { class Backend; class Package; class Transaction; } // namespace QApt class PackageAnalyzer : public QObject { Q_OBJECT public: static PackageAnalyzer &instance(); // 异步信号 // 告知外部的UI已经退出了 void setUiExit(); // 初始化阶段 void initBackend(); void updatePackageCache(); bool isBackendReady(); QApt::Backend *backendPtr(); // 软件包缓存更新完成(apt 锁已释放,可安全执行 apt install 等操作) void setCacheUpdateFinished(bool finished); bool isCacheUpdateFinished() const; // 判断是否需要更新软件包缓存 // 基于文件时间戳比较:比较源文件和缓存文件的修改时间 bool shouldUpdateCache() const; // 选择阶段 // 当前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); // 软件包缓存更新已启动 void cacheUpdateStarted(); // 软件包缓存更新完成,apt 锁已释放 void cacheUpdateFinished(); private: // 读取 DConfig bool 值,DConfig 不可用时返回 defaultValue bool readDConfigBool(const QString &key, bool defaultValue) const; // 写入 DConfig bool 值,成功返回 true bool writeDConfigBool(const QString &key, bool value); // 读取 DConfig 开关:是否允许安装前自动刷新 apt 缓存。默认 true(DConfig 不可用时也返回 true,保持原行为) bool isAutoUpdateBeforeInstallEnabled() const; // 将一次性 update 开关置 false(在 update 真正完成后调用,避免崩溃导致标志位丢失) void markOneTimeUpdateDone(); // 读取一次性 update 开关,DConfig 不可用时返回 false(无法持久化完成状态,避免每次启动重复触发) bool isOneTimeUpdateEnabled() const; QApt::Package *packageWithArch(const QString &packageName, const QString &sysArch, const QString &annotation) const; QString resolvMultiArchAnnotation(const QString &annotation, const QString &debArch, int multiArchType) const; // 获取APT源文件的最新修改时间 QDateTime getSourcesLastModified() const; // 获取APT缓存文件的修改时间 QDateTime getCacheLastModified() const; explicit PackageAnalyzer(QObject *parent = nullptr); PackageAnalyzer(const PackageAnalyzer &) = delete; PackageAnalyzer operator=(const PackageAnalyzer &) = delete; QStringList archs; QSharedPointer backend = nullptr; std::atomic_bool backendInInit; std::atomic_bool inPkgAnalyze; int pkgWaitToAnalyzeTotal = -1; int alreadyAnalyzed = 0; std::atomic_bool uiExited; std::atomic_bool m_cacheUpdateFinished{false}; // 标记当前 update 是否由一次性开关触发,用于在 setCacheUpdateFinished 中延迟置 key=false bool m_oneTimeUpdateInProgress{false}; }; Q_DECLARE_METATYPE(QList); #endif // PACKAGEANALYZER_H deepin-deb-installer-6.5.51/src/deb-installer/model/packagelistview.cpp000066400000000000000000000350471524745214100261170ustar00rootroot00000000000000// 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 "utils/ddlog.h" #include #include #include PackagesListView::PackagesListView(QWidget *parent) : DListView(parent) , m_bLeftMouse(false) , m_rightMenu(nullptr) { qCDebug(appLog) << "Initializing PackagesListView..."; initUI(); // 初始化界面参数 initConnections(); // 初始化链接 initRightContextMenu(); // 初始化右键菜单 initShortcuts(); // 添加快捷删除键 qCDebug(appLog) << "PackagesListView initialized"; } /** * @brief PackagesListView::initUI 初始化listView参数 */ void PackagesListView::initUI() { qCDebug(appLog) << "Initializing PackagesListView UI..."; QScroller::grabGesture(this, QScroller::TouchGesture); // 添加触控屏触控 setVerticalScrollMode(ScrollPerPixel); // 设置垂直滚动的模式 setSelectionMode(QListView::SingleSelection); // 只允许单选 setAutoScroll(true); // 允许自动滚动 setMouseTracking(true); // 设置鼠标跟踪 setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn); // 滚动条一直存在 qCDebug(appLog) << "PackagesListView UI initialized."; } /** * @brief PackagesListView::initConnections 初始化链接 */ void PackagesListView::initConnections() { qCDebug(appLog) << "Initializing connections..."; // 鼠标右键点击,根据条件判断是否需要弹出右键菜单 connect(this, &PackagesListView::signalShowContextMenu, this, &PackagesListView::slotListViewShowContextMenu, Qt::ConnectionType::QueuedConnection); qCDebug(appLog) << "Connections initialized."; } /** * @brief PackagesListView::initShortcuts 添加快捷删除键 */ void PackagesListView::initShortcuts() { qCDebug(appLog) << "Initializing shortcuts..."; if (SingleInstallerApplication::mode == SingleInstallerApplication::NormalChannel) { qCDebug(appLog) << "Normal channel mode, adding Delete shortcut."; QShortcut *deleteShortcut = new QShortcut(QKeySequence::Delete, this); // 初始化快捷键 deleteShortcut->setContext(Qt::ApplicationShortcut); // 设置快捷键的显示提示 connect(deleteShortcut, &QShortcut::activated, this, &PackagesListView::slotShortcutDeleteAction); // 链接快捷键 } qCDebug(appLog) << "Shortcuts initialized."; } /** * @brief PackagesListView::mousePressEvent 鼠标按下事件 * @param event * 如果左键按下,则置标志位为true * 解决后续右键菜单左键取消的问题 */ void PackagesListView::mousePressEvent(QMouseEvent *event) { qCDebug(appLog) << "Mouse press event at" << event->pos() << "button:" << event->button(); if (event->button() == Qt::LeftButton) { // 当前检测到鼠标左键按下 qCDebug(appLog) << "Left mouse button pressed at" << event->pos(); m_bLeftMouse = true; } else { qCDebug(appLog) << "Non-left mouse button pressed at" << event->pos(); m_bLeftMouse = false; // 当前按下的不是左键 } DListView::mousePressEvent(event); } /** * @brief PackagesListView::mouseReleaseEvent 鼠标释放事件 * @param event * 判断当前model是否准备就绪 */ void PackagesListView::mouseReleaseEvent(QMouseEvent *event) { qCDebug(appLog) << "Mouse release event at" << event->pos() << "button:" << event->button(); AbstractPackageListModel *listModel = qobject_cast(this->model()); // 获取debListModel if (!listModel->isWorkerPrepare()) { // 当前model未就绪 qCDebug(appLog) << "Model not ready, ignoring mouse release"; return; } qCDebug(appLog) << "Model is ready, emitting signal for current index:" << m_currentIndex; emit signalCurrentIndexRow(m_currentIndex); DListView::mouseReleaseEvent(event); } /** * @brief PackagesListView::setSelection 设置选中 * @param rect * @param command */ void PackagesListView::setSelection(const QRect &rect, QItemSelectionModel::SelectionFlags command) { qCDebug(appLog) << "Setting selection for rect:" << rect; DListView::setSelection(rect, command); // 转发消息 QPoint clickPoint(rect.x(), rect.y()); QModelIndex modelIndex = indexAt(clickPoint); m_highlightIndex = modelIndex; m_currModelIndex = m_highlightIndex; if (!m_bLeftMouse) { qCDebug(appLog) << "Not left mouse button, showing context menu"; m_bShortcutDelete = false; // 不允许删除 emit signalShowContextMenu(modelIndex); // 显示右键菜单 } else { qCDebug(appLog) << "Left mouse button, shortcut delete enabled"; m_bShortcutDelete = true; } } /** * @brief PackagesListView::keyPressEvent 键盘按键按下 * @param event */ void PackagesListView::keyPressEvent(QKeyEvent *event) { // qCDebug(appLog) << "Key press event:" << event->key() << "with modifiers:" << event->modifiers(); m_bLeftMouse = true; // 添加 右键菜单快捷键 if ((event->modifiers() == Qt::AltModifier) && (event->key() == Qt::Key_M)) { // qCDebug(appLog) << "Alt+M shortcut pressed"; if (this->selectionModel()->currentIndex().row() > -1) { m_bShortcutDelete = false; // 增加右键菜单的调出判断,当前有焦点且状态为允许右键菜单出现 if (this->hasFocus() && m_bIsRightMenuShow) { qCDebug(appLog) << "Showing context menu via shortcut"; // 右键菜单的触发位置为当前item的位置。此前为鼠标的位置。 m_rightMenu->exec(mapToGlobal(m_rightMenuPos)); } } } AbstractPackageListModel *listModel = qobject_cast(this->model()); // 获取debListModel if (listModel) { // qCDebug(appLog) << "Model is valid"; if (listModel->isWorkerPrepare()) { // 当前model未就绪 // qCDebug(appLog) << "Model worker is ready, processing key press"; if (event->key() == Qt::Key_Down) { // 默认tab键获取焦点行是第一行,按down键行号+1,但不超过listview的最大行数 m_currentIndex = qMin(m_currentIndex + 1, this->model()->rowCount() - 1); qCDebug(appLog) << "Key_Down pressed, new index:" << m_currentIndex; emit signalCurrentIndexRow(m_currentIndex); } if (event->key() == Qt::Key_Up) { // 按up键行号-1,但不小于0 m_currentIndex = qMax(m_currentIndex - 1, 0); qCDebug(appLog) << "Key_Up pressed, new index:" << m_currentIndex; emit signalCurrentIndexRow(m_currentIndex); } } } DListView::keyPressEvent(event); } /** * @brief PackagesListView::initRightContextMenu 初始化右键菜单 */ void PackagesListView::initRightContextMenu() { qCDebug(appLog) << "Initializing right-click context menu..."; if (nullptr == m_rightMenu && SingleInstallerApplication::mode == SingleInstallerApplication::NormalChannel) { // 当前右键菜单未初始化 qCDebug(appLog) << "Right-click menu not initialized and in normal channel mode, creating it..."; 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 添加链接事件 qCDebug(appLog) << "Right-click menu created and 'Delete' action added."; } } /** * @brief PackagesListView::onListViewShowContextMenu 显示右键菜单 * @param index */ void PackagesListView::slotListViewShowContextMenu(QModelIndex index) { qCDebug(appLog) << "Slot for showing context menu triggered for index:" << index; Q_UNUSED(index) AbstractPackageListModel *listModel = qobject_cast(this->model()); // 获取debListModel if (listModel) { qCDebug(appLog) << "Model is valid"; if (listModel->isWorkerPrepare()) { // 当前model未就绪 qCDebug(appLog) << "Model worker is ready, emitting signal for current index row:" << index.row(); emit signalCurrentIndexRow(index.row()); } } m_bShortcutDelete = false; // 右键菜单显示时不允许使用快捷键删除 m_currModelIndex = index; // 修改右键菜单的调出判断,当前有焦点且状态为允许右键菜单出现 if (m_bIsRightMenuShow && m_rightMenu != nullptr) { qCDebug(appLog) << "Conditions met, showing right-click menu at cursor position"; // 在当前鼠标位置显示右键菜单 m_rightMenu->exec(QCursor::pos()); } } /** * @brief PackagesListView::onShortcutDeleteAction 快捷键删除 */ void PackagesListView::slotShortcutDeleteAction() { qCDebug(appLog) << "Shortcut delete action triggered"; // fix bug: 42602 添加多个deb包到软件包安装器,选择列表中任一应用,连续多次点击delete崩溃 if (-1 == m_currModelIndex.row() || m_rightMenu->isVisible() || this->count() == 1) { qCDebug(appLog) << "Skipping delete action due to invalid index, visible menu, or single item."; 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)) { qCDebug(appLog) << "Emitting signal to remove item at index:" << m_currModelIndex; emit signalRemoveItemClicked(m_currModelIndex); } } /** * @brief PackagesListView::onRightMenuDeleteAction 右键菜单删除选中的项 */ void PackagesListView::slotRightMenuDeleteAction() { qCDebug(appLog) << "Right-click menu delete action triggered"; if (-1 == m_currModelIndex.row()) { qCDebug(appLog) << "Skipping delete, current model index is invalid (-1)"; return; } qCDebug(appLog) << "Emitting signal to remove item via right-click at index:" << m_currModelIndex; emit signalRemoveItemClicked(m_currModelIndex); } /** * @brief PackagesListView::paintEvent 获取当前index * @param event * 定位右键菜单弹出的位置 */ void PackagesListView::paintEvent(QPaintEvent *event) { // qCDebug(appLog) << "Paint event triggered, current index:" << this->currentIndex().row(); // 获取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) { qCDebug(appLog) << "Slot to get position triggered for index:" << index << "with rect:" << rect; if (index == m_currentIndex) { // 获取当前项右键菜单出现的位置 qCDebug(appLog) << "Index matches current index, updating right menu position"; 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) { qCDebug(appLog) << "Setting right menu show status to:" << isShow; m_bIsRightMenuShow = isShow; // 设置右键菜单是否显示的标识位 } /** * @brief PackagesListView::focusInEvent 焦点FocusIn事件 * @param event * 当焦点切换到PackListView时,默认选中第一项。 */ void PackagesListView::focusInEvent(QFocusEvent *event) { // qCDebug(appLog) << "Focus in event, reason:" << event->reason(); if (event->reason() == Qt::TabFocusReason) { // tab焦点 qCDebug(appLog) << "Focus gained, selecting first item"; if (this->count() > 0) { // qCDebug(appLog) << "List has items, setting current index to 0"; m_currModelIndex = this->model()->index(0, 0); this->setCurrentIndex(m_currModelIndex); // 存在焦点时,默认选入第一项 m_currentIndex = 0; AbstractPackageListModel *listModel = qobject_cast(this->model()); // 获取debListModel if (listModel) { qCDebug(appLog) << "Model is valid"; if (listModel->isWorkerPrepare()) { // 当前model未就绪 qCDebug(appLog) << "Model worker is ready, emitting signal for current index row 0"; emit signalCurrentIndexRow(0); } } } } } void PackagesListView::focusOutEvent(QFocusEvent *event) { // qCDebug(appLog) << "Focus out event, reason:" << event->reason(); // not change focus index when the right menu pop-up. if (event->reason() != Qt::PopupFocusReason) { qCDebug(appLog) << "Focus lost and not due to popup, clearing selection"; 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) { // qCDebug(appLog) << "Event received:" << event->type(); // 字体变化事件 if (event->type() == QEvent::FontChange) { qCDebug(appLog) << "Font size changed to:" << DFontSizeManager::fontPixelSize(qGuiApp->font()); if (DFontSizeManager::fontPixelSize(qGuiApp->font()) <= 13) { // 当前字体大小是否小于13 qCDebug(appLog) << "Font size <= 13, adjusting item height."; emit signalChangeItemHeight(50 - 2 * (13 - DFontSizeManager::fontPixelSize(qGuiApp->font()))); } else { qCDebug(appLog) << "Font size > 13, adjusting item height."; emit signalChangeItemHeight(52 + 2 * (DFontSizeManager::fontPixelSize(qGuiApp->font()) - 13)); } } return DListView::event(event); } deepin-deb-installer-6.5.51/src/deb-installer/model/packagelistview.h000066400000000000000000000104361524745214100255570ustar00rootroot00000000000000// 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.51/src/deb-installer/model/packageselectmodel.cpp000066400000000000000000000167351524745214100265540ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "packageselectmodel.h" #include "model/packageanalyzer.h" #include "utils/ddlog.h" #include #include #include #include PackageSelectModel::PackageSelectModel(QObject *parent) : QObject(parent) , model(new QStandardItemModel(this)) { qCDebug(appLog) << "PackageSelectModel constructed."; } QStandardItemModel *PackageSelectModel::viewModel() const { // qCDebug(appLog) << "Returning view model."; return model; } void PackageSelectModel::appendDdimPackages(const QList &ddims) { qCDebug(appLog) << "Appending" << ddims.size() << "ddim packages"; for (const auto &ddim : ddims) { qCDebug(appLog) << "Processing ddim from dir:" << ddim.dirPath << "with token:" << ddim.token; // 初始化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); qCDebug(appLog) << "Analyzed must-install list, got" << currentMustInstallInfos.size() << "packages."; QStringList selectAppNameList = ddim.selectAppNameList; auto currentSelectInfos = PackageAnalyzer::instance().analyzeDebFiles(ddim.selectList, &md5s, &selectAppNameList, false, false); qCDebug(appLog) << "Analyzed select list, got" << currentSelectInfos.size() << "packages."; auto currentDependInfos = PackageAnalyzer::instance().analyzeDebFiles(ddim.dependList, &md5s, nullptr, true, false); qCDebug(appLog) << "Analyzed depend list, got" << currentDependInfos.size() << "packages."; 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()) { qCDebug(appLog) << "Updating existing ddim package with token:" << ddimIrPkg.token; *ddimIter = ddimIrPkg; } else { qCDebug(appLog) << "Adding new ddim package with token:" << ddimIrPkg.token; ddimIrs.push_back(ddimIrPkg); } } // 汇聚全部数据(依据ddimIrs目前的情况,刷新selectInfos,dependInfos,mustInstallInfos) if (collectData()) { qCDebug(appLog) << "Select infos changed, emitting signal"; emit selectInfosChanged(selectInfos); // 刷新选择界面 } else { qCDebug(appLog) << "Select infos unchanged"; emit selectInfosDoNotHaveChange(); // 告知没有必要刷新选择界面 } } QList PackageSelectModel::analyzePackageInstallNeeded(const QList &selectIndexes) const { qCDebug(appLog) << "Analyzing install needs for" << selectIndexes.size() << "selected packages"; QList installIrs; QList dependIrs; // 1.筛选需要安装的可选包 for (int i : selectIndexes) { installIrs.push_back(selectInfos.at(i)); } qCDebug(appLog) << "Selected" << installIrs.size() << "optional packages to install."; // 2.汇集可选包和必装包为需要安装的包 qCDebug(appLog) << "Adding" << mustInstallInfos.size() << "must-install packages."; installIrs.append(mustInstallInfos); dependIrs = dependInfos; qCDebug(appLog) << "Total packages to consider for installation:" << installIrs.size(); qCDebug(appLog) << "Total available dependency packages:" << dependIrs.size(); // 3.将需要安装的包和本地可用依赖包传入分析工具,获取最佳安装顺序(原则是能不装就不装,确保安装过程最小化) qCDebug(appLog) << "Starting package analyzer to determine best install queue..."; PackageAnalyzer::instance().startPkgAnalyze(installIrs.size()); auto result = PackageAnalyzer::instance().bestInstallQueue(installIrs, dependIrs); PackageAnalyzer::instance().stopPkgAnalyze(); qCDebug(appLog) << "Package analysis finished."; qCDebug(appLog) << "Best install queue contains" << result.size() << "packages"; 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)) { // qCDebug(appLog) << "Adding unique package to container:" << eachInfo.filePath; md5s->insert(eachInfo.md5); container->push_back(eachInfo); } } } } bool PackageSelectModel::collectData() { qCDebug(appLog) << "Collecting package data from" << ddimIrs.size() << "ddim packages"; // 1.构建新数据包,由于只需要监控可选项,因此其它两个直接清空 QList newSelectInfos; dependInfos.clear(); mustInstallInfos.clear(); // 2.处理ddimIrs的数据,需要依据包的md5进行去重 QSet md5s; // 2.1汇聚必装包 qCDebug(appLog) << "Collecting must-install packages..."; getDebIrs(&mustInstallInfos, &md5s, ddimIrs, [](const DdimIrPackage &info) { return info.mustInstallInfos; }); qCDebug(appLog) << "Found" << mustInstallInfos.size() << "unique must-install packages."; // 2.2汇聚可选包 qCDebug(appLog) << "Collecting selectable packages..."; getDebIrs(&newSelectInfos, &md5s, ddimIrs, [](const DdimIrPackage &info) { return info.selectInfos; }); qCDebug(appLog) << "Found" << newSelectInfos.size() << "unique selectable packages."; // 2.3汇聚依赖包 qCDebug(appLog) << "Collecting dependency packages..."; getDebIrs(&dependInfos, &md5s, ddimIrs, [](const DdimIrPackage &info) { return info.dependInfos; }); qCDebug(appLog) << "Found" << dependInfos.size() << "unique dependency packages."; // 3.查看是否存在改变 bool ret = false; if (newSelectInfos.size() != selectInfos.size()) { qCDebug(appLog) << "Select info size changed, new:" << newSelectInfos.size() << "old:" << selectInfos.size(); ret = true; } else { for (int i = 0; i < newSelectInfos.size(); ++i) { if (!(newSelectInfos[i] == selectInfos[i])) { qCDebug(appLog) << "Select info content changed at index:" << i; ret = true; break; } } } // 4.清理老数据 selectInfos = newSelectInfos; qCDebug(appLog) << "Data collection completed, changes detected:" << ret; return ret; } deepin-deb-installer-6.5.51/src/deb-installer/model/packageselectmodel.h000066400000000000000000000064521524745214100262140ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023-2026 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 = false; // 是否与当前架构匹配 bool isValid = false; // 包是否有效(根据以前的老代码,此处如果无效,可以暂时当做未安装处理,由后续的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.51/src/deb-installer/model/packageslistdelegate.cpp000066400000000000000000000356071524745214100271040ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022-2026 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 "utils/ddlog.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) { qCDebug(appLog) << "PackagesListDelegate constructed."; qGuiApp->installEventFilter(this); // 事件筛选 m_itemHeight = 50 - 2 * (13 - DFontSizeManager::fontPixelSize(qGuiApp->font())); if (DFontSizeManager::fontPixelSize(qGuiApp->font()) > 13) { // 当前字体大小是否小于13 m_itemHeight += 2; } qCDebug(appLog) << "Initial item height set to:" << m_itemHeight; } void PackagesListDelegate::refreshDebItemStatus( const int operate_stat, QRect install_status_rect, QPainter *painter, bool isSelect, bool isEnable) const { // qCDebug(appLog) << "Refreshing deb item status. Op status:" << operate_stat << "isSelect:" << isSelect << "isEnable:" << isEnable; 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为非激活状态 } // qCDebug(appLog) << "Color group set to:" << colorGroup; // 根据操作的状态显示提示语 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; } // qCDebug(appLog) << "Display text set to:" << showText; if (isSelect && isEnable) { // 当前被选中 未被选中使用默认颜色 // qCDebug(appLog) << "Item is selected and enabled, setting highlighted text color."; 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 { // qCDebug(appLog) << "Painting item for index:" << index.row() << "with state:" << option.state; if (!index.isValid()) { // 判断传入的index是否有效 qCDebug(appLog) << "Invalid index, skipping paint"; DStyledItemDelegate::paint(painter, option, index); return; } auto themeType = DGuiApplicationHelper::instance()->themeType(); // qCDebug(appLog) << "Theme type:" << 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; // 当前窗口被激活 } } // qCDebug(appLog) << "Paint color group set to:" << colorGroup; 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) { // qCDebug(appLog) << "Item is selected, setting highlight background."; 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); // qCDebug(appLog) << "Painting package name:" << elided_pkg_name; 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(); // 获取包的状态 qCDebug(appLog) << "Package operation status:" << operate_stat; if (operate_stat != Pkg::PackageOperationStatus::Prepare) { // qCDebug(appLog) << "Operation status is not 'Prepare', refreshing deb item status display."; 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)); } // qCDebug(appLog) << "Initial info string set to:" << info_str; if (operate_stat == Pkg::PackageOperationStatus::Failed) { info_str = index.data(DebListModel::PackageFailReasonRole).toString(); qCWarning(appLog) << "Package operation failed:" << info_str; 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) { qCWarning(appLog) << "Dependency issue detected, status:" << dependsStat; // 批量安装列表中,依赖关系不满足但可走兼容模式的包只显示简短提示; // 详细的兼容模式引导保留在单包页面 / tooltip / 安装后端。 // 安装真正失败的包仍展示具体错误原因(避免被简短提示覆盖)。 if (dependsStat == Pkg::CompatibleNotInstalled && operate_stat != Pkg::PackageOperationStatus::Failed) { info_str = tr("Broken dependencies"); } else { 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()) { // qCWarning(appLog) << "Packages to be removed:" << removePackages; 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); // qCDebug(appLog) << "Final info string to draw:" << info_str; 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); // qCDebug(appLog) << "Providing size hint. Item height:" << m_itemHeight; QSize itemSize = QSize(0, m_itemHeight); // 设置Item的高度 return itemSize; } bool PackagesListDelegate::eventFilter(QObject *watched, QEvent *event) { // qCDebug(appLog) << "Event filter: FontChange event detected."; if (event->type() == QEvent::FontChange && watched == this) { // qCDebug(appLog) << "Event filter: FontChange event detected."; QFontInfo fontinfo = m_parentView->fontInfo(); emit fontinfo.pixelSize(); } return QObject::eventFilter(watched, event); } void PackagesListDelegate::getItemHeight(int height) { // qCDebug(appLog) << "Setting item height to:" << height; m_itemHeight = height; } deepin-deb-installer-6.5.51/src/deb-installer/model/packageslistdelegate.h000066400000000000000000000040751524745214100265440ustar00rootroot00000000000000// 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.51/src/deb-installer/model/proxy_package_list_model.cpp000066400000000000000000000530351524745214100300010ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 - 2026 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" #include "utils/ddlog.h" ProxyPackageListModel::ProxyPackageListModel(QObject *parent) : AbstractPackageListModel{parent} { qCDebug(appLog) << "ProxyPackageListModel constructed."; m_supportPackageType = Pkg::Proxy; } QVariant ProxyPackageListModel::data(const QModelIndex &index, int role) const { qCDebug(appLog) << "Getting data for proxy index:" << index.row() << "role:" << role; if (m_packageModels.empty()) { qCWarning(appLog) << "No package models available, returning empty variant."; return {}; } auto modelWithIndex = findFromProxyIndex(index.row()); ModelPtr model = modelWithIndex.first; if (!model) { qCWarning(appLog) << "Could not find a model for proxy index:" << index.row(); return {}; } QModelIndex sourceIndex = model->index(modelWithIndex.second); qCDebug(appLog) << "Found source model of type" << model->supportPackage() << "and source index" << sourceIndex.row(); return model->data(sourceIndex, role); } bool ProxyPackageListModel::setData(const QModelIndex &index, const QVariant &value, int role) { qCDebug(appLog) << "Setting data for proxy index:" << index.row() << "role:" << role; if (m_packageModels.empty()) { qCWarning(appLog) << "No package models available, cannot set data."; return false; } auto modelWithIndex = findFromProxyIndex(index.row()); ModelPtr model = modelWithIndex.first; if (!model) { qCWarning(appLog) << "Could not find a model for proxy index:" << index.row(); return false; } qCDebug(appLog) << "Found source model of type" << model->supportPackage() << "and source index" << modelWithIndex.second; return model->setData(model->index(modelWithIndex.second), value, role); } int ProxyPackageListModel::rowCount(const QModelIndex &parent) const { Q_UNUSED(parent); qCDebug(appLog) << "Getting row count"; int count = 0; for (const ModelInfo &info : m_packageModels) { count += info.model->rowCount(); } qCDebug(appLog) << "Total row count is" << count; return count; } void ProxyPackageListModel::slotAppendPackage(const QStringList &packageList) { qCDebug(appLog) << "Appending packages:" << packageList; QMap filterList; for (const QString &packagePath : packageList) { const Pkg::PackageType type = Utils::detectPackage(packagePath); qCDebug(appLog) << "Package type detected:" << type << "for" << 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) { qCDebug(appLog) << "Removing package at index:" << index; auto modelWithIndex = findFromProxyIndex(index); if (!modelWithIndex.first) { qCWarning(appLog) << "Invalid index for removal:" << index; return; } modelWithIndex.first->removePackage(modelWithIndex.second); qCDebug(appLog) << "Package removed successfully"; } QString ProxyPackageListModel::checkPackageValid(const QString &packagePath) { qCDebug(appLog) << "Checking package validity for:" << packagePath; Pkg::PackageType type = Utils::detectPackage(packagePath); ModelPtr model = modelFromType(type); // TODO: static package check or remove it if (!model) { qCWarning(appLog) << "No model found for package type:" << type; return ""; } const QString result = model->checkPackageValid(packagePath); qCDebug(appLog) << "Package validity check result:" << result; return result; } Pkg::PackageInstallStatus ProxyPackageListModel::checkInstallStatus(const QString &packagePath) { qCDebug(appLog) << "Checking install status for:" << packagePath; ModelPtr model = addModelFromFile(packagePath); if (model) { const auto status = model->checkInstallStatus(packagePath); qCDebug(appLog) << "Install status for" << packagePath << "is" << status; return status; } qCWarning(appLog) << "No model found for" << packagePath << ", returning NotInstalled"; return Pkg::NotInstalled; } Pkg::DependsStatus ProxyPackageListModel::checkDependsStatus(const QString &packagePath) { qCDebug(appLog) << "Checking depends status for:" << packagePath; ModelPtr model = addModelFromFile(packagePath); if (model) { const auto status = model->checkDependsStatus(packagePath); qCDebug(appLog) << "Depends status for" << packagePath << "is" << status; return status; } qCWarning(appLog) << "No model found for" << packagePath << ", returning DependsOk"; return Pkg::DependsOk; } QStringList ProxyPackageListModel::getPackageInfo(const QString &packagePath) { qCDebug(appLog) << "Getting package info for:" << packagePath; ModelPtr model = addModelFromFile(packagePath); if (model) { const auto info = model->getPackageInfo(packagePath); qCDebug(appLog) << "Found package info for" << packagePath; return info; } qCWarning(appLog) << "No model found for" << packagePath << ", returning empty list"; return {}; } QString ProxyPackageListModel::lastProcessError() { qCDebug(appLog) << "Getting last process error..."; QString errorMessage; (void)std::find_if(m_packageModels.rbegin(), m_packageModels.rend(), [&errorMessage](const ModelInfo &info) { errorMessage = info.model->lastProcessError(); return !errorMessage.isEmpty(); }); if (!errorMessage.isEmpty()) { qCWarning(appLog) << "Last process error found:" << errorMessage; } else { qCDebug(appLog) << "No process error found."; } return errorMessage; } bool ProxyPackageListModel::containsSignatureFailed() const { qCDebug(appLog) << "Checking if any model contains a signature failure..."; auto findItr = std::find_if(m_packageModels.begin(), m_packageModels.end(), [](const ModelInfo &info) { return info.model->containsSignatureFailed(); }); const bool failed = findItr != m_packageModels.end(); qCDebug(appLog) << "Signature failure check result:" << failed; return failed; } bool ProxyPackageListModel::slotInstallPackages() { qCDebug(appLog) << "Starting package installation..."; if (!isWorkerPrepare()) { qCWarning(appLog) << "Worker not ready for installation"; return false; } if (m_packageModels.isEmpty() || m_packageModels.last().rightCount <= 0) { qCWarning(appLog) << "No packages to install"; return false; } qCDebug(appLog) << "Starting package installation for" << m_packageModels.last().rightCount << "packages"; setWorkerStatus(WorkerProcessing); m_procModelIndex = -1; return nextModelInstall(); } bool ProxyPackageListModel::slotUninstallPackage(int index) { qCDebug(appLog) << "Uninstalling package at proxy index:" << index; if (!isWorkerPrepare()) { qCWarning(appLog) << "Worker not ready for uninstallation"; return false; } auto modelWithIndex = findFromProxyIndex(index); if (!modelWithIndex.first) { qCWarning(appLog) << "Could not find a model for proxy index:" << index; return false; } qCDebug(appLog) << "Found source model of type" << modelWithIndex.first->supportPackage() << "and source index" << modelWithIndex.second; setWorkerStatus(WorkerUnInstall); return modelWithIndex.first->slotUninstallPackage(modelWithIndex.second); } void ProxyPackageListModel::reset() { qCDebug(appLog) << "Resetting all package models and worker status"; for (ModelInfo &info : m_packageModels) { info.model->reset(); info.count = 0; info.rightCount = 0; } setWorkerStatus(WorkerPrepare); } void ProxyPackageListModel::resetInstallStatus() { qCDebug(appLog) << "Resetting install status for all models"; for (const ModelInfo &info : m_packageModels) { info.model->resetInstallStatus(); } setWorkerStatus(WorkerPrepare); } bool ProxyPackageListModel::nextModelInstall() { ++m_procModelIndex; qCDebug(appLog) << "Processing next model install, index:" << m_procModelIndex; if (m_procModelIndex < 0) { qCWarning(appLog) << "Invalid model index, finishing worker."; setWorkerStatus(WorkerFinished); return false; } // check if all package finished if (m_procModelIndex >= m_packageModels.count()) { qCDebug(appLog) << "All models processed, finishing worker."; setWorkerStatus(WorkerFinished); Q_EMIT signalWholeProgressChanged(100); return true; } const ModelInfo &info = m_packageModels.at(m_procModelIndex); if (info.count > 0) { qCDebug(appLog) << "Installing packages for model with type:" << info.model->supportPackage(); return info.model->slotInstallPackages(); } else { qCDebug(appLog) << "No packages for this model, skipping to next."; 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) { qCDebug(appLog) << "Getting model from type:" << type; for (const ModelInfo &info : m_packageModels) { if (type == info.model->supportPackage()) { return info.model; } } qCDebug(appLog) << "No model found for type:" << type << ", adding new model"; return addModel(type); } ProxyPackageListModel::ModelPtr ProxyPackageListModel::addModelFromFile(const QString &packagePath) { qCDebug(appLog) << "Adding model from file:" << packagePath; Pkg::PackageType type = Utils::detectPackage(packagePath); return modelFromType(type); } ProxyPackageListModel::ModelPtr ProxyPackageListModel::addModel(Pkg::PackageType type) { qCDebug(appLog) << "Adding model from type:" << type; ModelPtr newModel{nullptr}; switch (type) { case Pkg::Uab: qCDebug(appLog) << "Adding UAB model"; newModel = new Uab::UabPackageListModel(this); break; case Pkg::Deb: qCDebug(appLog) << "Adding DEB model"; newModel = new DebListModel(this); break; default: break; } if (newModel) { qCDebug(appLog) << "Connecting model:" << 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) { qCDebug(appLog) << "Connecting model:" << model; if (!model) { qCWarning(appLog) << "Invalid model to connect"; 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 { qCDebug(appLog) << "Finding from proxy index:" << proxyIndex; if (m_packageModels.isEmpty()) { qCDebug(appLog) << "No package models available"; return qMakePair(nullptr, -1); } if (proxyIndex < 0 || proxyIndex >= m_packageModels.last().rightCount) { qCDebug(appLog) << "Proxy index is out of range"; 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); qCDebug(appLog) << "Found model:" << (*findItr).model << "and source index:" << sourceIndex; return qMakePair((*findItr).model, sourceIndex); } qCDebug(appLog) << "No model found for proxy index:" << proxyIndex; return qMakePair(nullptr, -1); } int ProxyPackageListModel::proxyIndexFromModel(ModelPtr findModel, int index) { qCDebug(appLog) << "Getting proxy index from model:" << findModel << "and index:" << index; if (m_packageModels.isEmpty()) { qCDebug(appLog) << "No package models available"; return -1; } if (index < 0 || index >= m_packageModels.last().rightCount) { qCDebug(appLog) << "Index is out of range"; return -1; } for (const ModelInfo &info : m_packageModels) { if (findModel == info.model) { if (info.count > index) { return info.rightCount - info.count + index; } break; } } qCDebug(appLog) << "No model found for proxy index:" << index; return -1; } void ProxyPackageListModel::onSourcePacakgeCountChanged(int count) { qCDebug(appLog) << "On source package count changed:" << count; const auto sendModel = qobject_cast(sender()); if (sendModel && !m_packageModels.isEmpty()) { qCDebug(appLog) << "Found model:" << sendModel; 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; } qCDebug(appLog) << "New count:" << newCount; Q_EMIT signalPackageCountChanged(m_packageModels.last().rightCount); } else { qCWarning(appLog) << "Invalid model signal sender for package count change"; } } void ProxyPackageListModel::onSourceWholeProgressChanged(int progress) { qCDebug(appLog) << "On source whole progress changed:" << progress; const auto sendModel = qobject_cast(sender()); if (sendModel && !m_packageModels.empty()) { qCDebug(appLog) << "Found model:" << sendModel; 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)); qCDebug(appLog) << "Whole progress:" << wholeProgress; Q_EMIT signalWholeProgressChanged(wholeProgress); } else { qCWarning(appLog) << "Invalid model signal sender for progress change"; } } void ProxyPackageListModel::onSourceCurrentProcessPackageIndex(int index) { qCDebug(appLog) << "On source current process package index:" << index; const auto sendModel = qobject_cast(sender()); if (sendModel && !m_packageModels.empty()) { qCDebug(appLog) << "Found model:" << sendModel; 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); qCDebug(appLog) << "Proxy index:" << proxyIndex; Q_EMIT signalCurrentProcessPackageIndex(proxyIndex); } else { qCWarning(appLog) << "Invalid model signal sender for process index"; } } void ProxyPackageListModel::onSoureWorkerFinished() { qCDebug(appLog) << "On source worker finished"; if (!m_packageModels.empty()) { qCDebug(appLog) << "Found model:" << m_packageModels.last().model; switch (m_workerStatus) { case AbstractPackageListModel::WorkerProcessing: nextModelInstall(); break; case AbstractPackageListModel::WorkerUnInstall: setWorkerStatus(WorkerFinished); break; case AbstractPackageListModel::WorkerPrepare: { // Source model finished without proxy orchestration (e.g. append-time // signature verification failure in DebListModel::digitalVerifyFailed). // The source model already set its own status to WorkerFinished and // updated package operate status; sync proxy status and forward the // signal so that views (SingleInstallPage) receive slotWorkerFinished. qCDebug(appLog) << "Source finished while proxy is in Prepare state, forwarding"; setWorkerStatus(WorkerFinished); break; } default: break; } } else { qCWarning(appLog) << "Invalid model signal sender for worker finished"; } } void ProxyPackageListModel::onSourceDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector &roles) { qCDebug(appLog) << "On source data changed:" << topLeft << bottomRight << roles; for (const ModelInfo &info : m_packageModels) { if (topLeft.model() == info.model) { qCDebug(appLog) << "Found 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()) { qCDebug(appLog) << "Data changed in proxy model:" << proxyTopLeft << proxyBottomRight << roles; Q_EMIT dataChanged(proxyTopLeft, proxyBottomRight, roles); } qCDebug(appLog) << "return: Data changed in proxy model:" << topLeft << bottomRight << roles; return; } } } deepin-deb-installer-6.5.51/src/deb-installer/model/proxy_package_list_model.h000066400000000000000000000047141524745214100274460ustar00rootroot00000000000000// 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.51/src/deb-installer/process/000077500000000000000000000000001524745214100225765ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/deb-installer/process/Pty.cpp000066400000000000000000000545521524745214100240710ustar00rootroot00000000000000/* * 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 #include Q_DECLARE_LOGGING_CATEGORY(procLog) using namespace Konsole; void Pty::setWindowSize(int lines, int cols) { qCDebug(procLog) << "Setting window size to lines:" << lines << "cols:" << cols; _windowColumns = cols; _windowLines = lines; if (pty()->masterFd() >= 0) pty()->setWinSize(lines, cols); } QSize Pty::windowSize() const { qCDebug(procLog) << "Getting window size, cols:" << _windowColumns << "lines:" << _windowLines; return {_windowColumns, _windowLines}; } void Pty::setFlowControlEnabled(bool enable) { qCDebug(procLog) << "Setting flow control enabled to:" << 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)) qCWarning(procLog) << "Unable to set terminal attributes."; } } bool Pty::flowControlEnabled() const { qCDebug(procLog) << "Getting flow control status from terminal."; if (pty()->masterFd() >= 0) { qCDebug(procLog) << "The terminal is connected."; struct ::termios ttmode; pty()->tcGetAttr(&ttmode); const bool enabled = (ttmode.c_iflag & IXOFF) && (ttmode.c_iflag & IXON); qCDebug(procLog) << "Flow control is" << (enabled ? "enabled" : "disabled"); return enabled; } qCWarning(procLog) << "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; qCDebug(procLog) << "Setting UTF-8 mode to" << 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)) qCWarning(procLog) << "Unable to set terminal attributes."; } #endif } void Pty::setErase(char erase) { _eraseChar = erase; qCDebug(procLog) << "Setting erase character to" << erase; if (pty()->masterFd() >= 0) { struct ::termios ttmode; pty()->tcGetAttr(&ttmode); ttmode.c_cc[VERASE] = erase; if (!pty()->tcSetAttr(&ttmode)) qCWarning(procLog) << "Unable to set terminal attributes."; } } char Pty::erase() const { qCDebug(procLog) << "Getting erase character from terminal."; if (pty()->masterFd() >= 0) { struct ::termios ttyAttributes; pty()->tcGetAttr(&ttyAttributes); char eraseChar = ttyAttributes.c_cc[VERASE]; qCDebug(procLog) << "Terminal erase char is:" << eraseChar; return eraseChar; } qCWarning(procLog) << "Unable to get erase character, terminal not connected. Returning default:" << _eraseChar; return _eraseChar; } void Pty::addEnvironmentVariables(const QStringList &environment) { qCDebug(procLog) << "Adding environment variables:" << 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); qCDebug(procLog) << "Added environment variable:" << variable << "=" << value; } } qCDebug(procLog) << "Environment variables added."; } int Pty::start(const QString &program, const QStringList &programArguments, const QStringList &environment, ulong winid, bool addToUtmp //const QString& dbusService, //const QString& dbusSession ) { qCDebug(procLog) << "Starting program:" << program << "with args:" << programArguments; 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)) qCWarning(procLog) << "Unable to set terminal attributes."; pty()->setWinSize(_windowLines, _windowColumns); KProcess::start(); if (!waitForStarted()) { qCWarning(procLog) << "Unable to start program:" << program; return -1; } qCDebug(procLog) << "Program started successfully:" << program; return 0; } void Pty::setEmptyPTYProperties() { qCDebug(procLog) << "Setting empty PTY properties."; 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)) qCWarning(procLog) << "Unable to set terminal attributes."; } void Pty::setWriteable(bool writeable) { qCDebug(procLog) << "Setting TTY" << pty()->ttyName() << "writeable to:" << writeable; struct stat sbuf; if (stat(pty()->ttyName(), &sbuf) != 0) { qCWarning(procLog) << "Failed to stat TTY:" << pty()->ttyName() << "error:" << strerror(errno); return; } 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) { qCDebug(procLog) << "Pty created with master FD:" << masterFd; init(); } Pty::Pty(QObject *parent) : KPtyProcess(parent) { qCDebug(procLog) << "Pty created without master FD"; init(); } void Pty::init() { qCDebug(procLog) << "Initializing Pty properties"; _windowColumns = 0; _windowLines = 0; _eraseChar = 0; _xonXoff = true; _utf8 = true; _bUninstall = false; connect(pty(), SIGNAL(readyRead()), this, SLOT(dataReceived())); setPtyChannels(KPtyProcess::AllChannels); } Pty::~Pty() { qCDebug(procLog) << "Pty destroyed"; } bool Pty::isTerminalRemoved() { qCDebug(procLog) << "Checking if deepin-terminal is removed by checking for /usr/bin/deepin-terminal"; QFile terminalExecFile("/usr/bin/deepin-terminal"); if (terminalExecFile.exists()) { qCDebug(procLog) << "deepin-terminal exists."; return false; } qCDebug(procLog) << "deepin-terminal does not exist, assuming it is removed."; return true; } bool isPatternAcceptable(QString strCommand, QString strPattern) { qCDebug(procLog) << "Checking if command '" << strCommand << "' is acceptable for pattern '" << 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); bool isAcceptable = (validateState == QValidator::Acceptable); qCDebug(procLog) << "Validation result:" << isAcceptable; return isAcceptable; } //判断当前命令是否是要删除终端 bool Pty::bWillRemoveTerminal(QString strCommand) { qCDebug(procLog) << "Checking if command will remove terminal:" << strCommand; QString packageName = "deepin-terminal"; QStringList strCommandList; strCommandList.append(strCommand); if (strCommand.contains("&&")) { qCDebug(procLog) << "Command contains '&&', splitting..."; 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(";")) { qCDebug(procLog) << "Command contains ';', splitting..."; 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); } } const bool bWillRemove = acceptableList.contains(true); qCDebug(procLog) << "Will remove terminal:" << bWillRemove; return bWillRemove; } /******** Add by nt001000 renfeixiang 2020-05-27:增加 Purge卸载命令的判断,显示不同的卸载提示框 Begin***************/ bool Pty::bWillPurgeTerminal(QString strCommand) { qCDebug(procLog) << "Checking if command will purge terminal:" << strCommand; QString packageName = "deepin-terminal"; QStringList strCommandList; strCommandList.append(strCommand); if (strCommand.contains("&&")) { qCDebug(procLog) << "Command contains '&&', splitting..."; 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(";")) { qCDebug(procLog) << "Command contains ';', splitting..."; 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); } } const bool bWillPurge = acceptableList.contains(true); qCDebug(procLog) << "Will purge terminal:" << bWillPurge; return bWillPurge; } /******** 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; } // qCDebug(procLog) << "Sending data with length:" << length; //判断是否是点了自定义命令面板列表项触发的命令 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); // qCDebug(procLog) << "Converted input data to UTF-8:" << unicode; if (!pty()->write(unicode.constData(), unicode.length())) { qCWarning(procLog) << "Failed to send input data to terminal process"; return; } } else { // qCDebug(procLog) << "Sending raw input data:" << QByteArray(data, length); if (!pty()->write(data, length)) { qCWarning(procLog) << "Failed to send input data to terminal process"; return; } } } void Pty::dataReceived() { QByteArray data = pty()->readAll(); QString recvData = QString(data); qCDebug(procLog) << "Received data:" << recvData; 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; qCDebug(procLog) << "Ignore the first letter 'e' of the command."; 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; qCDebug(procLog) << "Ignore the expect command."; 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; } qCDebug(procLog) << "Ignore the command:" << judgeData; 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")) { qCWarning(procLog) << "Ignoring garbled command:" << recvData; return; } // "\u008A"这个乱码不替换调会导致显示时有\b的效果导致命令错乱bug#23741 if (recvData.contains("\u008A")) { qCDebug(procLog) << "Replacing backspace control character"; recvData.replace("\u008A", "\b \b #"); data = recvData.toUtf8(); } if (recvData == "rz waiting to receive.") { qCDebug(procLog) << "Detected rz file transfer prompt"; recvData += "\r\n"; data = recvData.toUtf8(); } /********************* Modify by m000714 daizhengwen End ************************/ emit receivedData(data.constData(), data.count(), _isCommandExec); } void Pty::lockPty(bool lock) { qCDebug(procLog) << "Pty::lockPty called with lock:" << lock; Q_UNUSED(lock); // TODO: Support for locking the Pty //if (lock) //suspend(); //else //resume(); } int Pty::foregroundProcessGroup() const { int pid = tcgetpgrp(pty()->masterFd()); qDebug() << "Foreground process group:" << pid; if (pid != -1) { return pid; } qDebug() << "Unable to get foreground process group, returning 0."; return 0; } void Pty::setSessionId(int sessionId) { _sessionId = sessionId; } #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) void Pty::setupChildProcess() #else void Pty::setupChildProcessImpl() #endif { #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) KPtyProcess::setupChildProcess(); #else KPtyProcess::setupChildProcessImpl(); #endif // 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); } deepin-deb-installer-6.5.51/src/deb-installer/process/Pty.h000066400000000000000000000166741524745214100235410ustar00rootroot00000000000000/* * 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; #else void setupChildProcessImpl() 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.51/src/deb-installer/process/kprocess.cpp000066400000000000000000000307351524745214100251430ustar00rootroot00000000000000/* * 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 #include #include Q_LOGGING_CATEGORY(procLog, "org.deepin.deb-installer.process") #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) { // qCDebug(procLog) << "KProcessPrivate::writeAll called with fd:" << fd << "size:" << buf.size(); #ifdef Q_OS_WIN #ifndef _WIN32_WCE HANDLE h = GetStdHandle(fd); if (h) { // qCDebug(procLog) << "Got valid handle, writing to file"; DWORD wr; WriteFile(h, buf.data(), buf.size(), &wr, 0); } #else qCDebug(procLog) << "Writing to file using fwrite for WIN32_WCE"; 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) { qCWarning(procLog) << "Write error, errno:" << errno; return; } // qCDebug(procLog) << "Write interrupted, retrying"; } else { off += ret; } } while (off < buf.size()); // qCDebug(procLog) << "Wrote" << off << "bytes"; #endif } void KProcessPrivate::forwardStd(KProcess::ProcessChannel good, int fd) { // qCDebug(procLog) << "KProcessPrivate::forwardStd called with channel:" << good << "fd:" << 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) { qCDebug(procLog) << "KProcess constructor with parent object"; d_ptr->q_ptr = this; setOutputChannelMode(ForwardedChannels); } KProcess::KProcess(KProcessPrivate *d, QObject *parent) : QProcess(parent), d_ptr(d) { qCDebug(procLog) << "KProcess constructor with private data"; d_ptr->q_ptr = this; setOutputChannelMode(ForwardedChannels); } KProcess::~KProcess() { qCDebug(procLog) << "KProcess destructor"; delete d_ptr; } void KProcess::setOutputChannelMode(OutputChannelMode mode) { qCDebug(procLog) << "Setting output channel mode to:" << mode; Q_D(KProcess); d->outputChannelMode = mode; disconnect(this, SIGNAL(readyReadStandardOutput())); disconnect(this, SIGNAL(readyReadStandardError())); switch (mode) { case OnlyStdoutChannel: qCDebug(procLog) << "Mode is OnlyStdoutChannel, forwarding stderr"; connect(this, SIGNAL(readyReadStandardError()), SLOT(_k_forwardStderr())); break; case OnlyStderrChannel: qCDebug(procLog) << "Mode is OnlyStderrChannel, forwarding stdout"; connect(this, SIGNAL(readyReadStandardOutput()), SLOT(_k_forwardStdout())); break; default: qCDebug(procLog) << "Mode is" << mode << ", setting process channel mode directly"; QProcess::setProcessChannelMode((ProcessChannelMode)mode); return; } qCDebug(procLog) << "Setting process channel mode to SeparateChannels"; QProcess::setProcessChannelMode(QProcess::SeparateChannels); } KProcess::OutputChannelMode KProcess::outputChannelMode() const { qCDebug(procLog) << "Getting output channel mode"; Q_D(const KProcess); return d->outputChannelMode; } void KProcess::setNextOpenMode(QIODevice::OpenMode mode) { qCDebug(procLog) << "Setting next open mode to:" << mode; Q_D(KProcess); d->openMode = mode; } #define DUMMYENV "_KPROCESS_DUMMY_=" void KProcess::clearEnvironment() { qCDebug(procLog) << "Clearing environment"; setEnvironment(QStringList() << QString::fromLatin1(DUMMYENV)); } void KProcess::setEnv(const QString &name, const QString &value, bool overwrite) { qCDebug(procLog) << "Setting environment:" << name << "=" << value << "overwrite:" << 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) { qCDebug(procLog) << "Unsetting environment:" << 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) { qCDebug(procLog) << "Setting program:" << exe << "with args:" << args; Q_D(KProcess); d->prog = exe; d->args = args; #ifdef Q_OS_WIN setNativeArguments(QString()); #endif } void KProcess::setProgram(const QStringList &argv) { qCDebug(procLog) << "Setting program with argv:" << 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) { // qCDebug(procLog) << "Appending argument:" << arg; Q_D(KProcess); if (d->prog.isEmpty()) d->prog = arg; else d->args << arg; return *this; } KProcess &KProcess::operator<<(const QStringList &args) { // qCDebug(procLog) << "Appending arguments:" << args; Q_D(KProcess); if (d->prog.isEmpty()) setProgram(args); else d->args << args; return *this; } void KProcess::clearProgram() { qCDebug(procLog) << "Clearing program"; Q_D(KProcess); d->prog.clear(); d->args.clear(); #ifdef Q_OS_WIN setNativeArguments(QString()); #endif } #if 0 void KProcess::setShellCommand(const QString &cmd) { qCDebug(procLog) << "Setting shell command:" << 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); qCDebug(procLog) << "Starting process:" << d->prog << d->args; QProcess::start(d->prog, d->args, d->openMode); } int KProcess::execute(int msecs) { start(); if (!waitForFinished(msecs)) { kill(); waitForFinished(-1); qCWarning(procLog) << "Process timed out, killing process, return -2"; return -2; } return (exitStatus() == QProcess::NormalExit) ? exitCode() : -1; } // static int KProcess::execute(const QString &exe, const QStringList &args, int msecs) { qCDebug(procLog) << "Executing process:" << exe << "with args:" << args << "with msecs:" << msecs; KProcess p; p.setProgram(exe, args); return p.execute(msecs); } // static int KProcess::execute(const QStringList &argv, int msecs) { qCDebug(procLog) << "Executing process with argv:" << argv << "with msecs:" << msecs; KProcess p; p.setProgram(argv); return p.execute(msecs); } int KProcess::startDetached() { qCDebug(procLog) << "Starting detached process"; 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) { qCDebug(procLog) << "Starting detached process with exe:" << exe << "and args:" << args; qint64 pid; if (!QProcess::startDetached(exe, args, QString(), &pid)) return 0; return (int) pid; } // static int KProcess::startDetached(const QStringList &argv) { qCDebug(procLog) << "Starting detached process with argv:" << argv; QStringList args = argv; QString prog = args.takeFirst(); return startDetached(prog, args); } int KProcess::pid() const { qCDebug(procLog) << "Getting process id"; #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.51/src/deb-installer/process/kprocess.h000066400000000000000000000264431524745214100246110ustar00rootroot00000000000000/* * 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.51/src/deb-installer/process/kpty.cpp000066400000000000000000000510121524745214100242700ustar00rootroot00000000000000/* 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 #include Q_DECLARE_LOGGING_CATEGORY(procLog) #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) { qCDebug(procLog) << "KPtyPrivate constructor"; } KPtyPrivate::~KPtyPrivate() { qCDebug(procLog) << "KPtyPrivate destructor"; } 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)) { qCDebug(procLog) << "KPty constructor"; } KPty::KPty(KPtyPrivate *d) : d_ptr(d) { qCDebug(procLog) << "KPty constructor with private data"; d_ptr->q_ptr = this; } KPty::~KPty() { qCDebug(procLog) << "KPty destructor"; close(); delete d_ptr; } bool KPty::open() { Q_D(KPty); qCDebug(procLog) << "Opening PTY master/slave pair"; if (d->masterFd >= 0) { qCDebug(procLog) << "PTY master/slave pair already open"; 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; qCWarning(procLog) << "Can't open a pseudo teletype"; return false; } qCDebug(procLog) << "openpty() successful, ttyName:" << ptsn; 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 qCDebug(procLog) << "PTY is accessible, proceeding with permission setup for" << d->ttyName; if (!geteuid()) { qCDebug(procLog) << "Running as root, attempting to set tty group"; struct group * p = getgrnam(TTY_GROUP); if (!p) { qCDebug(procLog) << "Could not find 'tty' group, trying 'wheel' group"; p = getgrnam("wheel"); } gid_t gid = p ? p->gr_gid : getgid (); if (!chown(d->ttyName.data(), getuid(), gid)) { qCDebug(procLog) << "Successfully chowned and chmoded" << d->ttyName; chmod(d->ttyName.data(), S_IRUSR|S_IWUSR|S_IWGRP); } } qCDebug(procLog) << "PTY found, jumping to gotpty"; goto gotpty; } ::close(d->masterFd); d->masterFd = -1; } } } qCWarning(procLog) << "Can't open a pseudo teletype"; return false; gotpty: struct stat st; if (stat(d->ttyName.data(), &st)) { qCWarning(procLog) << "stat failed for tty:" << d->ttyName.data() << "errno:" << errno; 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)) { qCWarning(procLog) << "chownpty failed or permissions are insecure for tty:" << d->ttyName.data(); qCWarning(procLog) << "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) { qCWarning(procLog) << "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) qCWarning(procLog) << "Unsupported attempt to open pty with fd" << fd; return false; #else Q_D(KPty); if (d->masterFd >= 0) { qCWarning(procLog) << "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 { qCWarning(procLog) << "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() { qCDebug(procLog) << "Closing PTY slave"; Q_D(KPty); if (d->slaveFd < 0) { qCDebug(procLog) << "PTY slave already closed, fd < 0"; return; } ::close(d->slaveFd); d->slaveFd = -1; qCDebug(procLog) << "Closed PTY slave"; } bool KPty::openSlave() { Q_D(KPty); qCDebug(procLog) << "Opening PTY slave"; if (d->slaveFd >= 0) return true; if (d->masterFd < 0) { qCInfo(procLog) << "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) { qCInfo(procLog) << "Can't open slave pseudo teletype"; return false; } fcntl(d->slaveFd, F_SETFD, FD_CLOEXEC); qCDebug(procLog) << "Opened PTY slave return true, fd=" << d->slaveFd; return true; } void KPty::close() { Q_D(KPty); qCDebug(procLog) << "Closing PTY master/slave pair"; if (d->masterFd < 0) { qCDebug(procLog) << "PTY fd < 0, return"; return; } closeSlave(); // don't bother resetting unix98 pty, it will go away after closing master anyway. if (memcmp(d->ttyName.data(), "/dev/pts/", 9)) { qCDebug(procLog) << "Not a standard unix98 pty, attempting to reset permissions for" << d->ttyName.data(); if (!geteuid()) { qCDebug(procLog) << "Running as root, resetting permissions"; struct stat st; if (!stat(d->ttyName.data(), &st)) { qCDebug(procLog) << "stat successful, changing owner and mode"; 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 { qCDebug(procLog) << "Not running as root, revoking pty"; fcntl(d->masterFd, F_SETFD, 0); d->chownpty(false); } } ::close(d->masterFd); d->masterFd = -1; qCDebug(procLog) << "Closed PTY master/slave pair"; } void KPty::setCTty() { qCDebug(procLog) << "Setting controlling TTY"; 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 qCDebug(procLog) << "Setting controlling TTY using TIOCSCTTY"; ioctl(d->slaveFd, TIOCSCTTY, 0); #else qCDebug(procLog) << "Setting controlling TTY using open/close hack"; // __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(); qCDebug(procLog) << "Setting process group to " << pgrp; #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) { qCDebug(procLog) << "Logging in to pty slave"; #ifdef HAVE_UTEMPTER Q_D(KPty); qCDebug(procLog) << "Using utempter to log in"; addToUtmp(d->ttyName.constData(), remotehost, d->masterFd); Q_UNUSED(user); #else qCDebug(procLog) << "Not using utempter, using utmp/utmpx"; # 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) { qCDebug(procLog) << "Setting user to" << 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) { qCDebug(procLog) << "Setting remote host to" << 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 qCDebug(procLog) << "Using login/loginx"; # ifdef HAVE_LOGINX ::loginx(&l_struct); # else ::login(&l_struct); # endif # else qCDebug(procLog) << "Not using login/loginx, manually updating utmp/utmpx"; # 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 qCDebug(procLog) << "Logged in to pty slave"; } void KPty::logout() { qCDebug(procLog) << "Logging out of pty slave"; #ifdef HAVE_UTEMPTER Q_D(KPty); qCDebug(procLog) << "Using utempter to log out"; removeLineFromUtmp(d->ttyName.constData(), d->masterFd); #else qCDebug(procLog) << "Not using utempter, using utmp/utmpx for logout"; 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 qCDebug(procLog) << "Using logout/logoutx"; # ifdef HAVE_LOGINX ::logoutx(str_ptr, 0, DEAD_PROCESS); # else ::logout(str_ptr); # endif # else qCDebug(procLog) << "Not using logout/logoutx, manually updating utmp/utmpx"; # 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 qCDebug(procLog) << "Found utmp/utmpx entry, clearing it"; # 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 qCDebug(procLog) << "Logged out of pty slave"; } // XXX Supposedly, tc[gs]etattr do not work with the master on Solaris. // Please verify. bool KPty::tcGetAttr(struct ::termios * ttmode) const { qCDebug(procLog) << "Getting termios attributes"; Q_D(const KPty); return _tcgetattr(d->masterFd, ttmode) == 0; } bool KPty::tcSetAttr(struct ::termios * ttmode) { qCDebug(procLog) << "Setting termios attributes"; Q_D(KPty); return _tcsetattr(d->masterFd, ttmode) == 0; } bool KPty::setWinSize(int lines, int columns) { qCDebug(procLog) << "Setting window size to" << lines << "x" << 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) { qCDebug(procLog) << "Setting echo to" << echo; struct ::termios ttmode; if (!tcGetAttr(&ttmode)) { qCWarning(procLog) << "Failed to get termios attributes"; return false; } if (!echo) { qCDebug(procLog) << "Disabling echo"; ttmode.c_lflag &= ~ECHO; } else { qCDebug(procLog) << "Enabling echo"; ttmode.c_lflag |= ECHO; } return tcSetAttr(&ttmode); } const char * KPty::ttyName() const { qCDebug(procLog) << "Getting tty name"; Q_D(const KPty); return d->ttyName.data(); } int KPty::masterFd() const { qCDebug(procLog) << "Getting master fd"; Q_D(const KPty); return d->masterFd; } int KPty::slaveFd() const { qCDebug(procLog) << "Getting slave fd"; Q_D(const KPty); return d->slaveFd; } deepin-deb-installer-6.5.51/src/deb-installer/process/kpty.h000066400000000000000000000125671524745214100237510ustar00rootroot00000000000000/* 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.51/src/deb-installer/process/kpty_p.h000066400000000000000000000024331524745214100242570ustar00rootroot00000000000000/* 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.51/src/deb-installer/process/kptydevice.cpp000066400000000000000000000324401524745214100254540ustar00rootroot00000000000000/* * 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 Q_DECLARE_LOGGING_CATEGORY(procLog) #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() { qCDebug(procLog) << "qt_ignore_sigpipe"; static QBasicAtomicInt atom = Q_BASIC_ATOMIC_INITIALIZER(0); if (atom.testAndSetRelaxed(0, 1)) { qCDebug(procLog) << "Setting SIGPIPE to be ignored"; 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() { qCDebug(procLog) << "_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)) { qCDebug(procLog) << "ioctl returned available bytes:" << 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) { qCDebug(procLog) << "0 bytes available on Solaris, clearing STREAMS"; 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) { qCDebug(procLog) << "Error reading 0-byte STREAMS message, disabling notifier"; 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) { qCDebug(procLog) << "Error reading from PTY"; readBuffer.unreserve(available); q->setErrorString(QLatin1String("Error reading from PTY")); return false; } readBuffer.unreserve(available - readBytes); // *should* be a no-op } if (!readBytes) { qCDebug(procLog) << "No bytes read, disabling notifier and emitting EOF"; readNotifier->setEnabled(false); emit q->readEof(); return false; } else { if (!emittedReadyRead) { qCDebug(procLog) << "Emitting readyRead"; emittedReadyRead = true; emit q->readyRead(); emittedReadyRead = false; } return true; } } bool KPtyDevicePrivate::_k_canWrite() { qCDebug(procLog) << "_k_canWrite"; Q_Q(KPtyDevice); writeNotifier->setEnabled(false); if (writeBuffer.isEmpty()) { qCDebug(procLog) << "Write buffer is empty, nothing to write"; return false; } qt_ignore_sigpipe(); int wroteBytes; NO_INTR(wroteBytes, write(q->masterFd(), writeBuffer.readPointer(), writeBuffer.readSize())); if (wroteBytes < 0) { qCDebug(procLog) << "Error writing to PTY"; q->setErrorString(QLatin1String("Error writing to PTY")); return false; } writeBuffer.free(wroteBytes); if (!emittedBytesWritten) { qCDebug(procLog) << "Emitting bytesWritten:" << wroteBytes; emittedBytesWritten = true; emit q->bytesWritten(wroteBytes); emittedBytesWritten = false; } if (!writeBuffer.isEmpty()) { qCDebug(procLog) << "More data to write, enabling write notifier"; 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) { qCDebug(procLog) << "doWait for" << (reading ? "reading" : "writing") << "with timeout" << msecs; Q_Q(KPtyDevice); #ifndef __linux__ struct timeval etv; #endif struct timeval tv, *tvp; if (msecs < 0) { qCDebug(procLog) << "Infinite wait"; 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) { qCDebug(procLog) << "select interrupted, continuing"; break; } qCDebug(procLog) << "select error"; return false; case 0: qCDebug(procLog) << "PTY operation timed out"; q->setErrorString(QLatin1String("PTY operation timed out")); return false; default: if (FD_ISSET(q->masterFd(), &rfds)) { qCDebug(procLog) << "Ready to read"; bool canRead = _k_canRead(); if (reading && canRead) return true; } if (FD_ISSET(q->masterFd(), &wfds)) { qCDebug(procLog) << "Ready to write"; bool canWrite = _k_canWrite(); if (!reading) return canWrite; } break; } } qCDebug(procLog) << "doWait finished"; return false; } void KPtyDevicePrivate::finishOpen(QIODevice::OpenMode mode) { qCDebug(procLog) << "finishOpen with mode" << 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)) { qCDebug(procLog) << "KPtyDevice constructed"; } KPtyDevice::~KPtyDevice() { qCDebug(procLog) << "KPtyDevice destructed"; close(); } bool KPtyDevice::open(OpenMode mode) { Q_D(KPtyDevice); qCDebug(procLog) << "KPtyDevice::open" << mode; if (masterFd() >= 0) { qCDebug(procLog) << "PTY already open"; return true; } if (!KPty::open()) { setErrorString(QLatin1String("Error opening PTY")); return false; } d->finishOpen(mode); qCDebug(procLog) << "PTY opened"; return true; } bool KPtyDevice::open(int fd, OpenMode mode) { Q_D(KPtyDevice); qCDebug(procLog) << "KPtyDevice::open" << mode; if (!KPty::open(fd)) { setErrorString(QLatin1String("Error opening PTY")); qCDebug(procLog) << "Error opening PTY"; return false; } d->finishOpen(mode); qCDebug(procLog) << "PTY opened"; return true; } void KPtyDevice::close() { Q_D(KPtyDevice); qCDebug(procLog) << "KPtyDevice::close"; if (masterFd() < 0) { qCDebug(procLog) << "PTY not open"; return; } delete d->readNotifier; delete d->writeNotifier; QIODevice::close(); KPty::close(); qCDebug(procLog) << "PTY closed"; } bool KPtyDevice::isSequential() const { qCDebug(procLog) << "isSequential"; return true; } bool KPtyDevice::canReadLine() const { // qCDebug(procLog) << "canReadLine"; Q_D(const KPtyDevice); return QIODevice::canReadLine() || d->readBuffer.canReadLine(); } bool KPtyDevice::atEnd() const { // qCDebug(procLog) << "atEnd"; Q_D(const KPtyDevice); return QIODevice::atEnd() && d->readBuffer.isEmpty(); } qint64 KPtyDevice::bytesAvailable() const { // qCDebug(procLog) << "bytesAvailable"; Q_D(const KPtyDevice); return QIODevice::bytesAvailable() + d->readBuffer.size(); } qint64 KPtyDevice::bytesToWrite() const { // qCDebug(procLog) << "bytesToWrite"; Q_D(const KPtyDevice); return d->writeBuffer.size(); } bool KPtyDevice::waitForReadyRead(int msecs) { // qCDebug(procLog) << "waitForReadyRead with msecs" << msecs; Q_D(KPtyDevice); return d->doWait(msecs, true); } bool KPtyDevice::waitForBytesWritten(int msecs) { // qCDebug(procLog) << "waitForBytesWritten with msecs" << msecs; Q_D(KPtyDevice); return d->doWait(msecs, false); } void KPtyDevice::setSuspended(bool suspended) { qCDebug(procLog) << "setSuspended" << suspended; Q_D(KPtyDevice); d->readNotifier->setEnabled(!suspended); } bool KPtyDevice::isSuspended() const { qCDebug(procLog) << "isSuspended"; Q_D(const KPtyDevice); return !d->readNotifier->isEnabled(); } // protected qint64 KPtyDevice::readData(char *data, qint64 maxlen) { // qCDebug(procLog) << "readData with maxlen" << maxlen; Q_D(KPtyDevice); return d->readBuffer.read(data, (int)qMin(maxlen, KMAXINT)); } // protected qint64 KPtyDevice::readLineData(char *data, qint64 maxlen) { // qCDebug(procLog) << "readLineData with maxlen" << maxlen; Q_D(KPtyDevice); return d->readBuffer.readLine(data, (int)qMin(maxlen, KMAXINT)); } // protected qint64 KPtyDevice::writeData(const char *data, qint64 len) { // qCDebug(procLog) << "writeData with len" << len; Q_D(KPtyDevice); Q_ASSERT(len <= KMAXINT); d->writeBuffer.write(data, len); d->writeNotifier->setEnabled(true); return len; } deepin-deb-installer-6.5.51/src/deb-installer/process/kptydevice.h000066400000000000000000000222131524745214100251160ustar00rootroot00000000000000/* * 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.51/src/deb-installer/process/kptyprocess.cpp000066400000000000000000000115111524745214100256670ustar00rootroot00000000000000/* * 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 #include Q_DECLARE_LOGGING_CATEGORY(procLog) KPtyProcess::KPtyProcess(QObject *parent) : KProcess(new KPtyProcessPrivate, parent) { qCDebug(procLog) << "KPtyProcess constructed"; Q_D(KPtyProcess); d->pty = new KPtyDevice(this); d->pty->open(); connect(this, SIGNAL(stateChanged(QProcess::ProcessState)), SLOT(_k_onStateChanged(QProcess::ProcessState))); #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) setupChildProcess(); #else // use setChildProcessModifier() replace setupChildProcess() setChildProcessModifier([this](){ setupChildProcessImpl(); }); #endif } KPtyProcess::KPtyProcess(int ptyMasterFd, QObject *parent) : KProcess(new KPtyProcessPrivate, parent) { qCDebug(procLog) << "KPtyProcess constructed with master fd" << ptyMasterFd; Q_D(KPtyProcess); d->pty = new KPtyDevice(this); d->pty->open(ptyMasterFd); connect(this, SIGNAL(stateChanged(QProcess::ProcessState)), SLOT(_k_onStateChanged(QProcess::ProcessState))); #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) setupChildProcess(); #else // use setChildProcessModifier() replace setupChildProcess() setChildProcessModifier([this](){ setupChildProcessImpl(); }); #endif } KPtyProcess::~KPtyProcess() { qCDebug(procLog) << "KPtyProcess destructed"; Q_D(KPtyProcess); qCDebug(procLog) << "Process state before cleanup:" << state(); if (state() != QProcess::NotRunning) { if (d->addUtmp) { qCDebug(procLog) << "Logging out from pty"; 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) { qCWarning(procLog) << Q_FUNC_INFO << "the terminal process is still running, trying to stop it by SIGHUP"; ::kill(pid(), SIGHUP); waitForFinished(300); if (state() != QProcess::NotRunning) qCCritical(procLog) << Q_FUNC_INFO << "process didn't stop upon SIGHUP and will be SIGKILL-ed"; } } void KPtyProcess::setPtyChannels(PtyChannels channels) { Q_D(KPtyProcess); qCDebug(procLog) << "Setting PTY channels:" << channels; d->ptyChannels = channels; } KPtyProcess::PtyChannels KPtyProcess::ptyChannels() const { qCDebug(procLog) << "ptyChannels"; Q_D(const KPtyProcess); return d->ptyChannels; } void KPtyProcess::setUseUtmp(bool value) { Q_D(KPtyProcess); qCDebug(procLog) << "Setting use utmp to:" << value; d->addUtmp = value; } bool KPtyProcess::isUseUtmp() const { qCDebug(procLog) << "isUseUtmp"; Q_D(const KPtyProcess); return d->addUtmp; } KPtyDevice *KPtyProcess::pty() const { qCDebug(procLog) << "pty"; Q_D(const KPtyProcess); return d->pty; } #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) void KPtyProcess::setupChildProcess() #else void KPtyProcess::setupChildProcessImpl() #endif { Q_D(KPtyProcess); qCDebug(procLog) << "Setting up child process PTY channels:" << d->ptyChannels; 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); #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) KProcess::setupChildProcess(); #endif } //#include "kptyprocess.moc" deepin-deb-installer-6.5.51/src/deb-installer/process/kptyprocess.h000066400000000000000000000115631524745214100253430ustar00rootroot00000000000000/* * 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; #else // use setChildProcessModifier() set setupChildProcessImpl() virtual void setupChildProcessImpl(); #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.51/src/deb-installer/singleInstallerApplication.cpp000066400000000000000000000256241524745214100271600ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "singleInstallerApplication.h" #include "view/pages/debinstaller.h" #include "manager/packagesmanager.h" #include "uab/uab_backend.h" #include "utils/ddlog.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; bool SingleInstallerApplication::s_forceCompatible = false; SingleInstallerApplication::SingleInstallerApplication(int &argc, char **argv) : DApplication(argc, argv) { qCDebug(appLog) << "SingleInstallerApplication constructor"; BackendIsRunningInit = false; } void SingleInstallerApplication::setHasPackages(bool has) { if (m_hasPackages == has) return; m_hasPackages = has; Q_EMIT hasPackagesChanged(has); } void SingleInstallerApplication::activateWindow() { qCDebug(appLog) << "Activating window, mode:" << mode; if (!m_ddimFiles.isEmpty()) { qCDebug(appLog) << "DDIM files found, setting mode to DdimChannel"; mode = DdimChannel; } else { qCDebug(appLog) << "No DDIM files found, setting mode to NormalChannel"; mode = NormalChannel; } if (nullptr == m_qspMainWnd.get()) { qCDebug(appLog) << "Main window is not initialized, creating new DebInstaller"; m_qspMainWnd.reset(new DebInstaller()); connect(static_cast(m_qspMainWnd.get()), &DebInstaller::packagesCleared, this, [this]() { setHasPackages(false); }); Dtk::Widget::moveToCenter(m_qspMainWnd.get()); m_qspMainWnd->show(); } else { qCDebug(appLog) << "Main window is already initialized, activating window"; m_qspMainWnd->setWindowState(Qt::WindowActive); m_qspMainWnd->activateWindow(); // Reactive main window m_qspMainWnd->showNormal(); // 非特效模式下激活窗口 } if (bIsDbus) { qCDebug(appLog) << "UAB backend is enabled, initializing UAB backend"; // 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()) { setHasPackages(true); QMetaObject::invokeMethod(m_qspMainWnd.get(), "slotDdimSelected", Qt::QueuedConnection, Q_ARG(QStringList, m_ddimFiles)); } else if (!m_selectedFiles.isEmpty()) { setHasPackages(true); PackagesManager::setForceCompatible(s_forceCompatible); QMetaObject::invokeMethod( m_qspMainWnd.get(), "slotPackagesSelected", Qt::QueuedConnection, Q_ARG(QStringList, m_selectedFiles)); } else { // do nothing } } void SingleInstallerApplication::InstallerDeb(const QStringList &debPathList) { qCInfo(appLog) << "InstallerDeb called with" << debPathList.size() << "packages"; // 复位兼容标志,防止同一实例内"先兼容安装、后普通安装"时标志串味 s_forceCompatible = false; if (!debPathList.isEmpty()) setHasPackages(true); if (mode == DdimChannel) { qCDebug(appLog) << "DdimChannel mode, invoking slotDdimSelected"; QMetaObject::invokeMethod(m_qspMainWnd.get(), "slotDdimSelected", Qt::QueuedConnection, Q_ARG(QStringList, debPathList)); } else if (debPathList.size() > 0) { qCDebug(appLog) << "NormalChannel mode, invoking slotPackagesSelected"; PackagesManager::setForceCompatible(false); QMetaObject::invokeMethod( m_qspMainWnd.get(), "slotPackagesSelected", Qt::QueuedConnection, Q_ARG(QStringList, debPathList)); } else { qCDebug(appLog) << "No packages selected, activating window"; if (m_qspMainWnd.get()) { // 先判断当前是否已经存在一个进程。 m_qspMainWnd.get()->activateWindow(); // 特效模式下激活窗口 m_qspMainWnd.get()->showNormal(); // 无特效激活窗口 } } } void SingleInstallerApplication::InstallerDebCompatible(const QStringList &debPathList) { qCInfo(appLog) << "InstallerDebCompatible called with" << debPathList.size() << "packages"; // 同步 app 级标志,避免 D-Bus 单实例转发路径下 s_forceCompatible 为过期值 // (老实例在 parseCmdLine 时未带 --compatible,s_forceCompatible 默认为 false) s_forceCompatible = true; if (!debPathList.isEmpty()) { setHasPackages(true); PackagesManager::setForceCompatible(true); 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) { qCDebug(appLog) << "Starting package installation for:" << debPath; QString ret; // 启动安装 QMetaObject::invokeMethod( m_qspMainWnd.get(), "startInstallPackge", Qt::DirectConnection, Q_RETURN_ARG(QString, ret), Q_ARG(QString, debPath)); qCDebug(appLog) << "Installation result:" << ret; // 调用结束关闭进程 QTimer::singleShot(100, [&]() { qCDebug(appLog) << "Quitting application after installation"; quit(); }); return ret; } QString SingleInstallerApplication::unInstallDebPackge(const QString &debPath) { qCDebug(appLog) << "Starting package uninstallation for:" << debPath; QString ret; // 卸载包 QMetaObject::invokeMethod( m_qspMainWnd.get(), "startUnInstallPackge", Qt::DirectConnection, Q_RETURN_ARG(QString, ret), Q_ARG(QString, debPath)); qCDebug(appLog) << "Uninstallation result:" << ret; // 调用结束关闭进程 QTimer::singleShot(100, [&]() { qCDebug(appLog) << "Quitting application after uninstallation"; quit(); }); return ret; } int SingleInstallerApplication::checkInstallStatus(const QString &debPath) { qCDebug(appLog) << "Checking install status for:" << debPath; int ret; // 获取包安装状态 QMetaObject::invokeMethod( m_qspMainWnd.get(), "checkInstallStatus", Qt::DirectConnection, Q_RETURN_ARG(int, ret), Q_ARG(QString, debPath)); qCDebug(appLog) << "Install status:" << ret; return ret; } int SingleInstallerApplication::checkDependsStatus(const QString &debPath) { qCDebug(appLog) << "Checking dependency status for:" << debPath; int ret; // 获取包依赖状态 QMetaObject::invokeMethod( m_qspMainWnd.get(), "checkDependsStatus", Qt::DirectConnection, Q_RETURN_ARG(int, ret), Q_ARG(QString, debPath)); qCDebug(appLog) << "Dependency status:" << ret; return ret; } int SingleInstallerApplication::checkDigitalSignature(const QString &debPath) { qCDebug(appLog) << "Checking digital signature for:" << debPath; int ret; // 获取包依赖状态 QMetaObject::invokeMethod( m_qspMainWnd.get(), "checkDigitalSignature", Qt::DirectConnection, Q_RETURN_ARG(int, ret), Q_ARG(QString, debPath)); qCDebug(appLog) << "Digital signature status:" << ret; return ret; } QString SingleInstallerApplication::getPackageInfo(const QString &debPath) { qCDebug(appLog) << "Getting package info for:" << debPath; QString ret; // 获取包信息 QMetaObject::invokeMethod( m_qspMainWnd.get(), "getPackageInfo", Qt::DirectConnection, Q_RETURN_ARG(QString, ret), Q_ARG(QString, debPath)); qCDebug(appLog) << "Package info retrieved"; return ret; } bool SingleInstallerApplication::parseCmdLine() { qCDebug(appLog) << "Parsing command line arguments"; QCommandLineParser parser; parser.setApplicationDescription("Deepin Package Installer."); parser.addOption(QCommandLineOption("dbus", "enable daemon mode")); parser.addOption(QCommandLineOption("compatible", "force compatible mode installation")); parser.addHelpOption(); parser.addVersionOption(); parser.addPositionalArgument("filename", "Deb package path.", "file [file..]"); parser.process(*this); s_forceCompatible = parser.isSet("compatible"); qCDebug(appLog) << "Positional arguments:" << parser.positionalArguments(); qCDebug(appLog) << "Force compatible mode:" << s_forceCompatible; qCDebug(appLog) << "D-Bus mode:" << parser.isSet("dbus"); m_selectedFiles.clear(); m_ddimFiles.clear(); QDBusConnection conn = QDBusConnection::sessionBus(); if (!conn.registerService(kDebInstallManagerService) || !conn.registerObject( kDebInstallManagerIface, this, QDBusConnection::ExportScriptableSlots | QDBusConnection::ExportScriptableProperties)) { // 注册失败 说明已经存在deb-installer qCWarning(appLog) << "Failed to register D-Bus service, another instance may be running"; QDBusInterface deb_install( kDebInstallManagerService, kDebInstallManagerIface, kDebInstallManagerService, QDBusConnection::sessionBus()); QList debInstallPathList; debInstallPathList << parser.positionalArguments(); const QString method = s_forceCompatible ? "InstallerDebCompatible" : "InstallerDeb"; QDBusMessage msg = deb_install.callWithArgumentList(QDBus::AutoDetect, method, debInstallPathList); qCWarning(appLog) << "D-Bus call" << method << "failed:" << msg.errorMessage(); return false; } else { qCInfo(appLog) << "Registered D-Bus service successfully"; const QStringList paraList = parser.positionalArguments(); if (paraList.isEmpty()) { qCDebug(appLog) << "No packages selected, returning false"; // hide main window on dbus if (parser.isSet("dbus")) { bIsDbus = true; } } else { qCDebug(appLog) << "Processing" << paraList.size() << "package files"; for (auto it : paraList) { if (it.endsWith("ddim")) { qCDebug(appLog) << "Adding DDIM file:" << it; m_ddimFiles.append(it); } else { qCDebug(appLog) << "Adding DEB file:" << it; m_selectedFiles.append(it); } } if (!paraList.isEmpty() && m_selectedFiles.isEmpty() && m_ddimFiles.isEmpty()) { qCDebug(appLog) << "No packages selected, returning false"; return false; } } qCDebug(appLog) << "Processing" << paraList.size() << "package files, returning true"; return true; } qCDebug(appLog) << "No packages selected, returning true"; return true; } deepin-deb-installer-6.5.51/src/deb-installer/singleInstallerApplication.h000066400000000000000000000075321524745214100266230ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2026 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") Q_PROPERTY(bool hasPackages READ hasPackages NOTIFY hasPackagesChanged) 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; static bool s_forceCompatible; public slots: /** * @brief InstallerDeb 启动软件包安装器 * * @param debPathList 是否有传递的包 * @return Q_SCRIPTABLE */ Q_SCRIPTABLE void InstallerDeb(const QStringList &debPathList); /** * @brief InstallerDebCompatible 以兼容模式安装包 * @param debPathList 包路径列表 */ Q_SCRIPTABLE void InstallerDebCompatible(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); bool hasPackages() const { return m_hasPackages; } void setHasPackages(bool has); signals: void hasPackagesChanged(bool has); private: QStringList m_selectedFiles; QStringList m_ddimFiles; QScopedPointer m_qspMainWnd; // MainWindow ptr bool bIsDbus = false; bool m_hasPackages = false; }; #endif // SINGLEFONTAPPLICATION_H deepin-deb-installer-6.5.51/src/deb-installer/uab/000077500000000000000000000000001524745214100216675ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/deb-installer/uab/uab_backend.cpp000066400000000000000000000426061524745214100246210ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "uab_backend.h" #include "utils/ddlog.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} { qCDebug(appLog) << "Initializing UabBackend"; recheckLinglongExists(); qRegisterMetaType>("QList"); qCDebug(appLog) << "UabBackend initialized, linglong exists:" << m_linglongExists; } UabBackend::~UabBackend() { qCDebug(appLog) << "UabBackend destructed"; } UabBackend *UabBackend::instance() { // qCDebug(appLog) << "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) { qCDebug(appLog) << "Getting package metadata from:" << uabPath; const QFileInfo info(uabPath); if (!info.exists()) { qCWarning(appLog) << "UAB file not exists:" << uabPath; if (errorString) { qCDebug(appLog) << "UAB file not exists, set error string"; *errorString = QString("uab file not exists"); } return {}; } const QByteArray output = uabExecuteOutput(uabPath, errorString); if (output.isEmpty()) { qCDebug(appLog) << "UAB execute output is empty"; return {}; } auto uabPtr = UabBackend::packageFromMetaJson(output); if (uabPtr) { qCDebug(appLog) << "UAB execute output is not empty"; 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) { qCDebug(appLog) << "Finding package:" << packageId << "version:" << version; if (!backendInited()) { qCWarning(appLog) << "Uab backend not initialized for package:" << packageId; m_lastError = QString("uab backend not init"); return {}; } if (m_packageList.isEmpty()) { qCWarning(appLog) << "Package list is empty, cannot find package:" << packageId; 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)) { qCDebug(appLog) << "Found package:" << (*itr)->id << "version:" << (*itr)->version; return *itr; } itr++; } qCDebug(appLog) << "Package not found:" << packageId << "version:" << version; 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) { qCDebug(appLog) << "Initializing backend, async:" << async; static std::once_flag kUabBackendFlag; std::call_once(kUabBackendFlag, [async, this]() { qCDebug(appLog) << "Backend initialization started"; if (async) { QtConcurrent::run(UabBackend::backendProcess, this); qCDebug(appLog) << "Backend initialization running in background thread"; } else { UabBackend::backendProcess(this); qCDebug(appLog) << "Backend initialization completed synchronously"; } }); } bool UabBackend::backendInited() const { // qCDebug(appLog) << "Checking if backend is initialized:" << m_init; return m_init; } bool UabBackend::linglongExists() const { qCDebug(appLog) << "Checking if linglong exists:" << m_linglongExists; return m_linglongExists; } bool UabBackend::recheckLinglongExists() { qCDebug(appLog) << "Re-checking for linglong existence"; // find ll-cli in $PATH const QString execPath = QStandardPaths::findExecutable(kUabCliBin); m_linglongExists = !execPath.isEmpty(); qCDebug(appLog) << "Linglong exists:" << m_linglongExists << "at path:" << execPath; return m_linglongExists; } QString UabBackend::lastError() const { qCDebug(appLog) << "Getting last error:" << m_lastError; return m_lastError; } void UabBackend::dumpPackageList() const { qCInfo(appLog) << QString("Uab package list(count %1) support archs:").arg(m_packageList.size()) << m_supportArchSet; for (const auto &uabPtr : m_packageList) { qCInfo(appLog) << " " << uabPtr; } } void UabBackend::backendInitData(const QList &packageList, const QSet &archs) { qCDebug(appLog) << "Initializing backend data with" << packageList.size() << "packages and" << archs.size() << "architectures"; m_packageList = packageList; m_supportArchSet = archs; m_init = true; Q_EMIT backendInitFinsihed(); qCDebug(appLog) << "Backend data initialized and signal emitted"; } bool UabBackend::parsePackagesFromRawJson(const QByteArray &jsonData, QList &packageList) { qCDebug(appLog) << "Parsing packages from raw JSON data"; QJsonParseError jsonError; QJsonDocument doc = QJsonDocument::fromJson(jsonData, &jsonError); if (QJsonParseError::NoError != jsonError.error) { qCWarning(appLog) << "Parse ll-cli list json data failed:" << jsonError.errorString(); return false; } packageList.clear(); QJsonArray rootArray = doc.array(); qCDebug(appLog) << "Found" << rootArray.size() << "packages in JSON data"; for (const auto &value : rootArray) { if (!value.isObject()) { qCWarning(appLog) << "Skipping non-object value in JSON array"; 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); } qCDebug(appLog) << "Finished parsing packages from JSON data, total packages:" << packageList.size(); return true; } bool UabBackend::parsePackagesFromRawOutput(const QByteArray &output, QList &packageList) { qCDebug(appLog) << "Parsing packages from raw output"; 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); } qCDebug(appLog) << "Finished parsing packages from raw output, total packages:" << packageList.size(); 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) { qCDebug(appLog) << "Starting backend process to list packages"; 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) { qCDebug(appLog) << "Sorting" << packageList.size() << "packages"; if (packageList.isEmpty()) { qCDebug(appLog) << "Package list is empty, skipping sort"; 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; }); qCDebug(appLog) << "Finished sorting packages"; } void UabBackend::packageInstalled(const UabPkgInfo::Ptr &appendPtr) { qCDebug(appLog) << "Adding installed package to list:" << appendPtr->id << appendPtr->version; m_packageList.append(appendPtr); sortPackages(m_packageList); qCInfo(appLog) << QString("Uab package installed - ID: %1, Version: %2, Arch: %3") .arg(appendPtr->id) .arg(appendPtr->version) .arg(appendPtr->architecture.join(",")); } void UabBackend::packageRemoved(const UabPkgInfo::Ptr &removePtr) { qCDebug(appLog) << "Removing package from list:" << removePtr->id << removePtr->version; 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); qCInfo(appLog) << QString("Uab package removed - ID: %1, Version: %2, Arch: %3") .arg(removePtr->id) .arg(removePtr->version) .arg(removePtr->architecture.join(",")); } else { qCWarning(appLog) << "Package not found in list for removal:" << removePtr->id << 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()) { qCWarning(appLog) << "Uab json does not contain 'layers' field"; 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) { qCWarning(appLog) << "Uab json does not contain app info node"; *errorString = QString("uab json not contains app info node"); } return {}; } QByteArray UabBackend::uabExecuteOutput(const QString &uabPath, QString *errorString) { qCDebug(appLog) << "Executing uab package to get output:" << uabPath; QFile uabFile(uabPath); if (!uabFile.exists()) { qCWarning(appLog) << "UAB file does not exist:" << uabPath; if (errorString) { *errorString = "UAB file does not exist"; } 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))) { qCWarning(appLog) << "Failed to set executable permission for uab file:" << uabPath << "error:" << uabFile.errorString(); 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) { qCDebug(appLog) << "Restoring original permissions for:" << uabPath; uabFile.setPermissions(savePermission); } if (0 != proc.exitCode() || QProcess::NormalExit != proc.exitStatus()) { qCWarning(appLog) << "Failed to execute uab package:" << uabPath << "exit code:" << proc.exitCode() << "error:" << proc.errorString(); if (errorString) { *errorString = QString("exec uab package failed: %1").arg(proc.errorString()); } return {}; } qCDebug(appLog) << "Successfully executed uab package and got output"; return proc.readAllStandardOutput(); } } // namespace Uab QT_BEGIN_NAMESPACE #ifndef QT_NO_DEBUG_STREAM Q_CORE_EXPORT QDebug operator<<(QDebug out, const Uab::UabPkgInfo &uabPkg) { // qCDebug(appLog) << "UabPackageInfo:" << 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) { // qCDebug(appLog) << "UabPackageInfoPtr:" << 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.51/src/deb-installer/uab/uab_backend.h000066400000000000000000000041471524745214100242640ustar00rootroot00000000000000// 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.51/src/deb-installer/uab/uab_defines.h000066400000000000000000000017541524745214100243130ustar00rootroot00000000000000// 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.51/src/deb-installer/uab/uab_package.cpp000066400000000000000000000161151524745214100246210ustar00rootroot00000000000000// 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" #include "utils/ddlog.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) { qCDebug(appLog) << "Creating UabPackage for:" << (metaPtr ? metaPtr->id : "null"); reset(); } const UabPkgInfo::Ptr &UabPackage::info() const { qCDebug(appLog) << "Getting package info for:" << (m_metaPtr ? m_metaPtr->id : "null"); return m_metaPtr; } bool UabPackage::isValid() const { qCDebug(appLog) << "Checking if package is valid:" << (m_metaPtr ? m_metaPtr->id : "null"); if (!m_metaPtr || !fileExists()) { qCDebug(appLog) << "Package is invalid: null meta pointer or file does not exist"; return false; } if (m_metaPtr->id.isEmpty() || m_metaPtr->appName.isEmpty()) { qCDebug(appLog) << "Package is invalid: empty id or app name"; return false; } qCDebug(appLog) << "Package is valid:" << m_metaPtr->id; return true; } void UabPackage::setDependsStatus(Pkg::DependsStatus status) { qCDebug(appLog) << "Setting depends status for package:" << (m_metaPtr ? m_metaPtr->id : "null") << "from" << m_dependsStatus << "to" << 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"); qCWarning(appLog) << "Package dependency broken:" << (m_metaPtr ? m_metaPtr->id : "null"); break; default: qCDebug(appLog) << "Package dependency status OK:" << (m_metaPtr ? m_metaPtr->id : "null"); break; } } void UabPackage::setProcessError(Pkg::ErrorCode err, const QString &errorString) { qCWarning(appLog) << "Setting process error for package:" << (m_metaPtr ? m_metaPtr->id : "null") << "Code:" << err << "Message:" << errorString; m_errorCode = err; m_processError = errorString; } bool UabPackage::fileExists() const { qCDebug(appLog) << "Checking if file exists for package:" << (m_metaPtr ? m_metaPtr->id : "null") << m_exists; return m_exists; } void UabPackage::markNotExists() { qCDebug(appLog) << "Marking package as not existing:" << (m_metaPtr ? m_metaPtr->id : "null"); m_exists = false; } Pkg::DependsStatus UabPackage::dependsStatus() const { qCDebug(appLog) << "Getting depends status for package:" << (m_metaPtr ? m_metaPtr->id : "null") << m_dependsStatus; return m_dependsStatus; } Pkg::PackageInstallStatus UabPackage::installStatus() const { qCDebug(appLog) << "Getting install status for package:" << (m_metaPtr ? m_metaPtr->id : "null") << m_installStatus; return m_installStatus; } Pkg::PackageOperationStatus UabPackage::operationStatus() const { qCDebug(appLog) << "Getting operation status for package:" << (m_metaPtr ? m_metaPtr->id : "null") << m_operationStatus; return m_operationStatus; } Pkg::ErrorCode UabPackage::errorCode() const { qCDebug(appLog) << "Getting error code for package:" << (m_metaPtr ? m_metaPtr->id : "null") << m_errorCode; return m_errorCode; } QString UabPackage::installedVersion() const { qCDebug(appLog) << "Getting installed version for package:" << (m_metaPtr ? m_metaPtr->id : "null") << m_installedVersion; return m_installedVersion; } QString UabPackage::failedReason() const { qCDebug(appLog) << "Getting failed reason for package:" << (m_metaPtr ? m_metaPtr->id : "null"); if (m_failReason.isEmpty()) { qCDebug(appLog) << "No specific fail reason, returning process error:" << m_processError; return m_processError; } qCDebug(appLog) << "Returning fail reason:" << m_failReason; return m_failReason; } QString UabPackage::processError() const { qCDebug(appLog) << "Getting process error for package:" << (m_metaPtr ? m_metaPtr->id : "null") << m_processError; return m_processError; } UabPackage::Ptr UabPackage::fromInfo(const UabPkgInfo::Ptr &infoPtr) { qCDebug(appLog) << "Creating UabPackage from info object for package:" << (infoPtr ? infoPtr->id : "null"); return Uab::UabPackage::Ptr::create(infoPtr); } UabPackage::Ptr UabPackage::fromFilePath(const QString &filePath) { qCDebug(appLog) << "Creating UabPackage from file path:" << filePath; QString error; auto infoPtr = Uab::UabBackend::packageFromMetaData(filePath, &error); auto uabPtr = Uab::UabPackage::Ptr::create(infoPtr); if (!error.isEmpty()) { qCWarning(appLog) << qPrintable("Uab from path:") << error; } qCDebug(appLog) << "UabPackage created from file path:" << filePath; return uabPtr; } void UabPackage::reset() { qCDebug(appLog) << "Resetting package state"; if (!m_metaPtr) { qCWarning(appLog) << "Cannot reset package with null meta pointer"; return; } qCDebug(appLog) << "Resetting package state:" << m_metaPtr->id; m_operationStatus = Pkg::Prepare; m_installedVersion.clear(); m_installStatus = Pkg::NotInstalled; m_errorCode = Pkg::NoError; m_processError.clear(); if (!Uab::UabBackend::instance()->linglongExists()) { qCWarning(appLog) << "Linglong environment not found for package:" << m_metaPtr->id; setDependsStatus(Pkg::DependsBreak); } else { qCDebug(appLog) << "Linglong environment exists for package:" << m_metaPtr->id; setDependsStatus(Pkg::DependsOk); } if (Uab::UabBackend::instance()->backendInited()) { qCDebug(appLog) << "Checking installed version for package:" << m_metaPtr->id; 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; qCDebug(appLog) << "Package version matches installed:" << m_metaPtr->id << m_metaPtr->version; } else if (ret < 0) { m_installStatus = Pkg::InstalledLaterVersion; qCDebug(appLog) << "Package version is older than installed:" << m_metaPtr->id << m_metaPtr->version << "<" << uabInfoPtr->version; } else { m_installStatus = Pkg::InstalledEarlierVersion; qCDebug(appLog) << "Package version is newer than installed:" << m_metaPtr->id << m_metaPtr->version << ">" << uabInfoPtr->version; } } else { qCDebug(appLog) << "No installed version found for package:" << m_metaPtr->id; } } else { qCDebug(appLog) << "Backend not initialized, skipping version check for package:" << m_metaPtr->id; } } } // namespace Uab deepin-deb-installer-6.5.51/src/deb-installer/uab/uab_package.h000066400000000000000000000035751524745214100242740ustar00rootroot00000000000000// 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.51/src/deb-installer/uab/uab_package_list_model.cpp000066400000000000000000000616151524745214100270410ustar00rootroot00000000000000// 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" #include "utils/ddlog.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)) { qCDebug(appLog) << "Creating UabPackageListModel"; 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]() { qCDebug(appLog) << "UAB backend initialized, processing delayed packages:" << m_delayAppendPackages.size(); if (!m_delayAppendPackages.isEmpty()) { slotAppendPackage(m_delayAppendPackages); } m_delayAppendPackages.clear(); }); qCDebug(appLog) << "Initializing UAB backend"; Uab::UabBackend::instance()->initBackend(); } QVariant UabPackageListModel::data(const QModelIndex &index, int role) const { if (!QAbstractListModel::checkIndex(index, CheckIndexOption::IndexIsValid)) { qCWarning(appLog) << "Invalid index" << index; return {}; } const UabPackage::Ptr &uabPtr = m_uabPkgList.at(index.row()); if (!uabPtr || !uabPtr->isValid()) { qCWarning(appLog) << "Invalid package at index" << index; return {}; } qCDebug(appLog) << "Getting data for role" << role << "at index" << index; switch (role) { case PackageNameRole: qCDebug(appLog) << "Getting package name for index" << index; return uabPtr->info()->appName; case PackagePathRole: qCDebug(appLog) << "Getting package path for index" << index; return uabPtr->info()->filePath; case PackageVersionRole: qCDebug(appLog) << "Getting package version for index" << index; return uabPtr->info()->version; case PackageInstalledVersionRole: qCDebug(appLog) << "Getting installed version for index" << index; return uabPtr->installedVersion(); case PackageShortDescriptionRole: Q_FALLTHROUGH(); case PackageLongDescriptionRole: qCDebug(appLog) << "Getting long description for index" << index; return uabPtr->info()->description; case PackageVersionStatusRole: qCDebug(appLog) << "Getting version status for index" << index; return uabPtr->installStatus(); case PackageDependsStatusRole: qCDebug(appLog) << "Getting depends status for index" << index; return uabPtr->dependsStatus(); case PackageFailReasonRole: qCDebug(appLog) << "Getting fail reason for index" << index; return uabPtr->failedReason(); case PackageOperateStatusRole: qCDebug(appLog) << "Getting operate status for index" << index; return uabPtr->operationStatus(); case PackageTypeRole: qCDebug(appLog) << "Getting package type for index" << index; return Pkg::Uab; case Qt::SizeHintRole: qCDebug(appLog) << "Getting size hint for index" << index; return QSize(0, 48); default: qCDebug(appLog) << "Getting default data for index" << index; break; } return {}; } int UabPackageListModel::rowCount(const QModelIndex &parent) const { Q_UNUSED(parent) qCDebug(appLog) << "Getting row count:" << m_uabPkgList.size(); return m_uabPkgList.size(); } void UabPackageListModel::slotAppendPackage(const QStringList &packageList) { qCDebug(appLog) << "Appending packages to model:" << packageList; if (!isWorkerPrepare()) { qCWarning(appLog) << "Cannot append packages - worker not ready"; return; } // delay append when uab backend not ready. sa backendInitFinsihed() if (!Uab::UabBackend::instance()->backendInited()) { qCDebug(appLog) << "Backend not initialized, delaying package append"; m_delayAppendPackages.append(packageList); return; } const int oldRowCount = rowCount(); for (const QString &path : packageList) { qCDebug(appLog) << "Processing package:" << path; auto uabPtr = preCheckPackage(path); if (uabPtr && uabPtr->isValid()) { qCDebug(appLog) << "Adding valid package to model:" << uabPtr->info()->id; m_uabPkgList.append(uabPtr); m_fileWatcher->addPath(path); } else { qCWarning(appLog) << "Package validation failed:" << path; } } if (oldRowCount != rowCount()) { qCDebug(appLog) << "Package count changed from" << oldRowCount << "to" << rowCount(); Q_EMIT signalPackageCountChanged(rowCount()); } } void UabPackageListModel::removePackage(int index) { qCDebug(appLog) << "Removing package at index:" << index; if (!isWorkerPrepare()) { qCWarning(appLog) << "Cannot remove package - worker not ready"; return; } if (0 <= index && index < rowCount()) { auto uabPtr = m_uabPkgList.takeAt(index); if (uabPtr && uabPtr->info()) { qCDebug(appLog) << "Removing path from file watcher:" << uabPtr->info()->filePath; m_fileWatcher->removePath(uabPtr->info()->filePath); } qCDebug(appLog) << "Package count changed to:" << rowCount(); Q_EMIT signalPackageCountChanged(rowCount()); } else { qCWarning(appLog) << "Invalid index for package removal:" << index; } } QString UabPackageListModel::checkPackageValid(const QString &packagePath) { qCDebug(appLog) << "Checking package validity:" << packagePath; if (Pkg::PkgReadable != Utils::checkPackageReadable(packagePath)) { qCWarning(appLog) << "Package not readable:" << packagePath; return "You can only install local ueb packages"; } auto uabPtr = Uab::UabPackage::fromFilePath(packagePath); if (!uabPtr->isValid()) { qCWarning(appLog) << "Invalid UAB package:" << packagePath; return "The uab package may be broken"; } if (packageExists(uabPtr)) { qCWarning(appLog) << "Package already exists in the list:" << packagePath; return "The uab package already added"; } qCDebug(appLog) << "Package is valid:" << packagePath; return ""; } Pkg::PackageInstallStatus UabPackageListModel::checkInstallStatus(const QString &packagePath) { qCDebug(appLog) << "Checking install status for package:" << packagePath; auto uabPtr = Uab::UabPackage::fromFilePath(packagePath); if (!uabPtr || !uabPtr->isValid()) { qCWarning(appLog) << "Invalid UAB package, assuming not installed:" << packagePath; return Pkg::NotInstalled; } qCDebug(appLog) << "Install status for" << packagePath << "is" << uabPtr->installStatus(); return uabPtr->installStatus(); } Pkg::DependsStatus UabPackageListModel::checkDependsStatus(const QString &packagePath) { qCDebug(appLog) << "Checking dependency status for package:" << packagePath; if (!Uab::UabBackend::instance()->linglongExists()) { qCWarning(appLog) << "Linglong environment not found, dependency broken"; return Pkg::DependsBreak; } auto uabPtr = Uab::UabPackage::fromFilePath(packagePath); if (!uabPtr || !uabPtr->isValid()) { qCWarning(appLog) << "Invalid UAB package, assuming dependency broken:" << packagePath; return Pkg::DependsBreak; } qCDebug(appLog) << "Dependency status OK for package:" << packagePath; return Pkg::DependsOk; } QStringList UabPackageListModel::getPackageInfo(const QString &packagePath) { qCDebug(appLog) << "Getting package info for:" << packagePath; auto uabPtr = Uab::UabPackage::fromFilePath(packagePath); if (!uabPtr || !uabPtr->isValid()) { qCWarning(appLog) << "Invalid UAB package, cannot get info:" << packagePath; 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; qCDebug(appLog) << "Package info retrieved for:" << packagePath; return infoList; } QString UabPackageListModel::lastProcessError() { qCDebug(appLog) << "Getting last process error"; 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()) { qCDebug(appLog) << "Found last process error:" << (*findItr)->processError(); return (*findItr)->processError(); } qCDebug(appLog) << "No process error found"; return {}; } bool UabPackageListModel::containsSignatureFailed() const { qCDebug(appLog) << "Checking if any package has signature verification failed"; // 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; }); const bool failed = findItr != m_uabPkgList.end(); qCDebug(appLog) << "Signature verification failed status:" << failed; return failed; } bool UabPackageListModel::slotInstallPackages() { qCDebug(appLog) << "Starting package installation for" << rowCount() << "packages"; bool callRet = false; do { if (!isWorkerPrepare() || rowCount() <= 0) { qCWarning(appLog) << "Cannot install packages - worker not ready or empty package list"; break; } if (!linglongExists()) { qCWarning(appLog) << "Cannot install packages - Linglong environment not found"; break; } qCDebug(appLog) << "Resetting install status for all packages"; // 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); qCDebug(appLog) << "Starting installation process"; installNextUab(); callRet = true; } while (false); if (!callRet) { qCWarning(appLog) << "Package installation failed, marking all as failed"; for (auto uabPtr : m_uabPkgList) { uabPtr->m_operationStatus = Pkg::Failed; } Q_EMIT dataChanged(index(0), index(m_uabPkgList.size() - 1), {PackageOperateStatusRole}); setWorkerStatus(WorkerFinished); return false; } qCDebug(appLog) << "Package installation started successfully"; return true; } bool UabPackageListModel::slotUninstallPackage(const int i) { qCDebug(appLog) << "Starting uninstallation for package at index:" << i; bool callRet = false; do { if (!isWorkerPrepare() || rowCount() <= 0) { qCWarning(appLog) << "Cannot uninstall - worker not ready or empty list"; break; } if (!linglongExists()) { qCWarning(appLog) << "Cannot uninstall - Linglong not found"; break; } if (!checkIndex(index(i))) { qCWarning(appLog) << "Invalid index for uninstallation:" << i; break; } // only single page show uninstall flow m_operatingIndex = i; setWorkerStatus(WorkerUnInstall); qCDebug(appLog) << "Worker status set to UnInstall"; auto uabPtr = m_uabPkgList.value(m_operatingIndex); if (!uabPtr || !uabPtr->isValid()) { qCWarning(appLog) << "Invalid package at index:" << i; break; } auto removeInfoPtr = Uab::UabBackend::instance()->findPackage(uabPtr->info()->id); if (!removeInfoPtr) { qCWarning(appLog) << "Package to be uninstalled not found in backend:" << uabPtr->info()->id; break; } setCurrentOperation(Pkg::Waiting); m_processor->reset(); m_processor->markUninstall(Uab::UabPackage::fromInfo(removeInfoPtr)); qCDebug(appLog) << "Committing uninstallation changes"; callRet = m_processor->commitChanges(); } while (false); if (!callRet) { qCWarning(appLog) << "Uninstallation failed, setting status to Failed"; setCurrentOperation(Pkg::Failed); setWorkerStatus(WorkerFinished); return false; } qCDebug(appLog) << "Uninstallation process started successfully"; return true; } void UabPackageListModel::reset() { qCDebug(appLog) << "Resetting UabPackageListModel"; setWorkerStatus(WorkerPrepare); m_operatingIndex = kPkgInitedIndex; QStringList files = m_fileWatcher->files(); if (!files.isEmpty()) { qCDebug(appLog) << "Removing" << files.size() << "files from watcher"; m_fileWatcher->removePaths(files); } qCDebug(appLog) << "Clearing package list"; m_uabPkgList.clear(); } void UabPackageListModel::resetInstallStatus() { qCDebug(appLog) << "Resetting install status for all packages"; 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}); qCDebug(appLog) << "Install status reset completed"; } bool UabPackageListModel::installNextUab() { qCDebug(appLog) << "Installing next UAB"; m_operatingIndex++; qCDebug(appLog) << "Processing package at index:" << m_operatingIndex; Q_ASSERT_X(m_operatingIndex >= 0, "install uab", "operating index invalid"); if (m_operatingIndex < 0) { qCWarning(appLog) << "Invalid operating index:" << m_operatingIndex; setWorkerStatus(WorkerFinished); return false; } // check install finish if (m_operatingIndex >= rowCount()) { qCDebug(appLog) << "All packages processed, installation complete"; 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) { qCWarning(appLog) << "Skipping invalid package or dependency issue at index:" << m_operatingIndex; setCurrentOperation(Pkg::Failed); installNextUab(); return false; } qCDebug(appLog) << "Starting installation for package:" << uabPtr->info()->id << uabPtr->info()->version; 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; qCDebug(appLog) << "Same version already installed:" << uabPtr->info()->id << uabPtr->info()->version; } else if (ret < 0) { installStatus = Pkg::InstalledLaterVersion; qCDebug(appLog) << "Newer version already installed:" << uabPtr->info()->id << uabPtr->info()->version; } else { installStatus = Pkg::InstalledEarlierVersion; qCDebug(appLog) << "Older version already installed:" << uabPtr->info()->id << uabPtr->info()->version; } } } switch (installStatus) { case Pkg::NotInstalled: qCDebug(appLog) << "Marking package for fresh install:" << uabPtr->info()->id; m_processor->markInstall(uabPtr); break; case Pkg::InstalledSameVersion: { qCDebug(appLog) << "Marking package for reinstall (same version):" << uabPtr->info()->id; 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: { qCDebug(appLog) << "Marking package for upgrade/downgrade:" << uabPtr->info()->id; 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()) { qCWarning(appLog) << "Failed to commit changes for package:" << uabPtr->info()->id; setCurrentOperation(Pkg::Failed); installNextUab(); return false; } qCDebug(appLog) << "Successfully started installation process for package:" << uabPtr->info()->id; return true; } void UabPackageListModel::slotBackendProgressChanged(float progress) { qCDebug(appLog) << "Backend progress changed:" << progress; Q_ASSERT_X(rowCount() > 0, "check count", "row count invalid"); const float base = kCompleteProgress / rowCount(); const float wholeProgress = (m_operatingIndex + (progress / kCompleteProgress)) * base; qCDebug(appLog) << "Emitting progress signals: current" << progress << "whole" << wholeProgress; Q_EMIT signalCurrentPacakgeProgressChanged(static_cast(progress)); Q_EMIT signalWholeProgressChanged(static_cast(wholeProgress)); } void UabPackageListModel::slotBackendProcessFinished(bool success) { qCDebug(appLog) << "Backend process finished with success:" << 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)); qCDebug(appLog) << "Data changed signal emitted for 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))); qCDebug(appLog) << "Progress signals emitted"; switch (m_workerStatus) { case WorkerProcessing: qCDebug(appLog) << "Worker processing, installing next UAB"; installNextUab(); break; case WorkerUnInstall: qCDebug(appLog) << "Worker uninstalling, setting worker to finished"; setWorkerStatus(WorkerFinished); break; default: qCDebug(appLog) << "Unhandled worker status:" << m_workerStatus; break; } } void UabPackageListModel::setCurrentOperation(Pkg::PackageOperationStatus s) { qCDebug(appLog) << "Setting current operation status to" << s << "for index" << m_operatingIndex; if (!checkIndexValid(m_operatingIndex)) { qCWarning(appLog) << "Invalid index, cannot set operation status:" << m_operatingIndex; return; } auto &uabPtr = m_uabPkgList[m_operatingIndex]; uabPtr->m_operationStatus = s; // mark error info if (Pkg::Failed == s) { qCWarning(appLog) << "Operation failed, setting process error"; uabPtr->setProcessError(Pkg::UnknownError, tr("Installation Failed")); } Q_EMIT dataChanged(index(m_operatingIndex), index(m_operatingIndex), {PackageOperateStatusRole}); qCDebug(appLog) << "Data changed signal emitted for operation status update"; } bool UabPackageListModel::checkIndexValid(int index) const { const bool isValid = 0 <= index && index < rowCount(); qCDebug(appLog) << "Checking if index" << index << "is valid:" << isValid; return isValid; } UabPackage::Ptr UabPackageListModel::preCheckPackage(const QString &packagePath) { qCDebug(appLog) << "Pre-checking package:" << packagePath; auto readablilty = Utils::checkPackageReadable(packagePath); switch (readablilty) { case Pkg::PkgNotInLocal: qCDebug(appLog) << "Package not in local:" << packagePath; Q_EMIT signalAppendFailMessage(Pkg::PackageNotLocal, Pkg::Uab); return {}; case Pkg::PkgNoPermission: qCDebug(appLog) << "Package no permission:" << packagePath; Q_EMIT signalAppendFailMessage(Pkg::PackageNotInstallable, Pkg::Uab); return {}; default: break; } auto uabPtr = Uab::UabPackage::fromFilePath(packagePath); if (!uabPtr || !uabPtr->isValid()) { qCDebug(appLog) << "Package invalid:" << packagePath; Q_EMIT signalAppendFailMessage(Pkg::PackageInvalid, Pkg::Uab); return {}; } if (packageExists(uabPtr)) { qCDebug(appLog) << "Package already exists:" << packagePath; Q_EMIT signalAppendFailMessage(Pkg::PackageAlreadyExists, Pkg::Uab); return {}; } return uabPtr; } bool UabPackageListModel::packageExists(const UabPackage::Ptr &uabPtr) const { qCDebug(appLog) << "Checking if package exists:" << uabPtr->info()->filePath; if (!uabPtr) { qCDebug(appLog) << "Package is null"; return false; } // check already added auto findItr = std::find_if(m_uabPkgList.begin(), m_uabPkgList.end(), [&uabPtr](const UabPackage::Ptr &cmpUabPtr) { qCDebug(appLog) << "Checking if package exists:" << uabPtr->info()->filePath; if (uabPtr->info()->filePath == cmpUabPtr->info()->filePath) { qCDebug(appLog) << "Package exists:" << uabPtr->info()->filePath; return true; } if (uabPtr->info()->appName == cmpUabPtr->info()->appName) { qCDebug(appLog) << "Package exists:" << uabPtr->info()->appName; return true; } return false; }); qCDebug(appLog) << "Package does not exist:" << uabPtr->info()->filePath; return findItr != m_uabPkgList.end(); } bool UabPackageListModel::linglongExists() { qCDebug(appLog) << "Checking if linglong executable exists"; // check if linglong execuatable exits if (!Uab::UabBackend::instance()->recheckLinglongExists()) { qCDebug(appLog) << "Linglong executable does not exist"; for (const auto &uabPtr : m_uabPkgList) { uabPtr->setDependsStatus(Pkg::DependsBreak); } Q_EMIT dataChanged(index(0), index(m_uabPkgList.size() - 1), {PackageDependsStatusRole}); qCDebug(appLog) << "Data changed signal emitted for depends status update"; return false; } qCDebug(appLog) << "Linglong executable exists"; return true; } void UabPackageListModel::slotFileChanged(const QString &filePath) { qCDebug(appLog) << "Checking if file changed:" << filePath; auto findItr = std::find_if(m_uabPkgList.begin(), m_uabPkgList.end(), [&](const UabPackage::Ptr &uabPtr) { qCDebug(appLog) << "Checking if file changed:" << filePath; if (uabPtr && uabPtr->isValid()) { return uabPtr->info()->filePath == filePath; } return false; }); if (findItr != m_uabPkgList.end()) { qCDebug(appLog) << "File changed:" << filePath; const QFileInfo info((*findItr)->info()->filePath); if (!info.exists()) { qCDebug(appLog) << "File does not exist:" << filePath; (*findItr)->markNotExists(); removePackage(static_cast(std::distance(findItr, m_uabPkgList.begin()))); m_fileWatcher->removePath(filePath); Q_EMIT signalPackageCannotFind(info.fileName()); } } qCDebug(appLog) << "File changed check completed"; } } // namespace Uab deepin-deb-installer-6.5.51/src/deb-installer/uab/uab_package_list_model.h000066400000000000000000000042651524745214100265040ustar00rootroot00000000000000// 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.51/src/deb-installer/uab/uab_process_controller.cpp000066400000000000000000000447441524745214100271600ustar00rootroot00000000000000// 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 "utils/ddlog.h" #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} { qCDebug(appLog) << "Creating UabProcessController"; setProcessType(BackendCli); qCDebug(appLog) << "Process controller type set to BackendCli"; } void UabProcessController::setProcessType(ProcessType type) { qCDebug(appLog) << "Setting process type from" << m_type << "to" << type; if (type == m_type) { qCDebug(appLog) << "Process type is the same, return"; return; } m_type = type; qCDebug(appLog) << "Process type set to" << type; } UabProcessController::ProcessType UabProcessController::processType() const { qCDebug(appLog) << "Getting process type:" << m_type; return m_type; } UabProcessController::ProcFlags UabProcessController::procFlag() const { qCDebug(appLog) << "Getting process flag:" << m_procFlag; return m_procFlag; } bool UabProcessController::isRunning() const { qCDebug(appLog) << "Checking if process is running"; if (m_procFlag & (Uninstalling | Installing | Processing)) { qCDebug(appLog) << "Process is running (flag set)"; return true; } if (m_process && QProcess::NotRunning != m_process->state()) { qCDebug(appLog) << "Process is running (QProcess state)"; return true; } qCDebug(appLog) << "Process is not running"; return false; } bool UabProcessController::reset() { qCDebug(appLog) << "Resetting process controller"; if (isRunning() || !ensureProcess()) { qCWarning(appLog) << "Cannot reset - process running or cannot ensure process"; return false; } m_currentIndex = kInitedIndex; m_procList.clear(); qCDebug(appLog) << "Process controller reset successfully"; return true; } bool Uab::UabProcessController::markInstall(const UabPackage::Ptr &installPtr) { qCDebug(appLog) << "Marking package for installation:" << (installPtr ? installPtr->info()->id : "null"); if (isRunning() || !ensureProcess() || !installPtr || !installPtr->isValid()) { qCWarning(appLog) << "Cannot mark for installation - process running, not ready, or invalid package"; return false; } m_procList.append(qMakePair(Installing, installPtr)); qCDebug(appLog) << "Package marked for installation:" << installPtr->info()->id; return true; } bool Uab::UabProcessController::markUninstall(const UabPackage::Ptr &uninstallPtr) { qCDebug(appLog) << "Marking package for uninstallation:" << (uninstallPtr ? uninstallPtr->info()->id : "null"); if (isRunning() || !ensureProcess() || !uninstallPtr || !uninstallPtr->isValid()) { qCWarning(appLog) << "Cannot mark for uninstallation - process running, not ready, or invalid package"; return false; } m_procList.append(qMakePair(Uninstalling, uninstallPtr)); qCDebug(appLog) << "Package marked for uninstallation:" << uninstallPtr->info()->id; return true; } bool UabProcessController::commitChanges() { qCDebug(appLog) << "Committing changes, process list size:" << m_procList.size(); if (isRunning() || !ensureProcess() || m_procList.isEmpty()) { qCWarning(appLog) << "Cannot commit changes - process running/not ready or empty list"; return false; } m_procFlag = Processing; m_currentIndex = kInitedIndex; qCDebug(appLog) << "Starting first process in list"; if (!nextProcess()) { qCWarning(appLog) << "Failed to start first process"; m_procFlag = Error; return false; } Q_EMIT processStart(); qCDebug(appLog) << "Process started successfully"; return true; } bool Uab::UabProcessController::ensureProcess() { qCDebug(appLog) << "Ensuring process"; if (!m_process) { qCDebug(appLog) << "Creating new 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()) { qCWarning(appLog) << "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) { qCDebug(appLog) << "Parsing progress from JSON data:" << jsonData; const QJsonDocument doc = QJsonDocument::fromJson(jsonData); if (doc.isArray()) { qCDebug(appLog) << "JSON data is an array"; // maybe percentage info const QJsonObject obj = doc.array().first().toObject(); if (obj.contains(kJsonPercentage)) { float progress = obj.value(kJsonPercentage).toDouble(); qCDebug(appLog) << "Found progress in JSON array:" << progress; updateWholeProgress(progress); } } else if (doc.isObject()) { qCDebug(appLog) << "JSON data is an object"; // maybe percentage / code info const QJsonObject obj = doc.object(); if (obj.contains(kJsonPercentage)) { float progress = obj.value(kJsonPercentage).toDouble(); qCDebug(appLog) << "Found progress in JSON object:" << progress; updateWholeProgress(progress); } else if (UabError == obj.value(kJsonCode).toInt()) { const QString errorString = obj.value(kJsonMessage).toString(); qCWarning(appLog) << "Found error in JSON object:" << errorString; auto currUabPtr = currentPackagePtr(); if (currUabPtr) { currUabPtr->setProcessError(Pkg::UnknownError, errorString); } qCWarning(appLog) << "Uab process error:" << errorString; } // TODO(renbin): signature verify error, etc. } else { qCWarning(appLog) << "JSON data is not an array or object"; } } void UabProcessController::parseProgressFromRawOutput(const QByteArray &output) { qCDebug(appLog) << "Parsing progress from raw output:" << 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(); qCDebug(appLog) << "Found progress in raw output:" << progress; updateWholeProgress(progress); } } void UabProcessController::updateWholeProgress(float currentTaskProgress) { qCDebug(appLog) << "Updating whole progress with current task progress:" << currentTaskProgress; const int count = m_procList.size(); if (count > 1) { currentTaskProgress = (m_currentIndex * 100.0f + currentTaskProgress) / static_cast(count); qCDebug(appLog) << "Calculated whole progress:" << currentTaskProgress; } Q_EMIT progressChanged(currentTaskProgress); } void UabProcessController::onReadOutput(const char *buffer, int length, bool isCommandExec) { qCDebug(appLog) << "Read output from process, length:" << length << "isCommandExec:" << 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) { qCDebug(appLog) << "Process finished with exit code:" << exitCode << "exit status:" << exitStatus; Q_UNUSED(exitStatus) qCDebug(appLog) << "Process finished with exit code:" << exitCode; const bool exitSuccess = UabSuccess == exitCode; // continue next process if (exitSuccess) { qCDebug(appLog) << "Process completed successfully, updating backend"; // update uab backend commitCurrentChangeToBackend(); qCDebug(appLog) << "Attempting to start next process"; // continue next process, if error occurred, terminate current install/uninstall. if (nextProcess()) { return; } } qCWarning(appLog) << "Process failed or no more processes, error flag set"; m_procFlag = Error; Q_EMIT processFinished(false); } void UabProcessController::onDBusProgressChanged(int progress, const QString &message) { qCDebug(appLog) << "D-Bus progress changed:" << progress << "message:" << message; updateWholeProgress(static_cast(progress)); Q_EMIT processOutput(message); } bool UabProcessController::nextProcess() { qCDebug(appLog) << "Next process"; m_procFlag.setFlag(Installing, false); m_procFlag.setFlag(Uninstalling, false); // check process finish m_currentIndex++; if (m_currentIndex >= m_procList.size()) { qCDebug(appLog) << "Current index is greater than or equal to process list size, set process flag to Finish"; m_procFlag = Finish; Q_EMIT processFinished(true); return true; } if (!checkIndexValid()) { qCWarning(appLog) << "Invalid process index:" << m_currentIndex << "for package:" << (currentPackagePtr() ? currentPackagePtr()->info()->id : "null"); return false; } const auto ¤tProc = m_procList.at(m_currentIndex); switch (currentProc.first) { case Installing: qCDebug(appLog) << "Installing process"; return (BackendCli == m_type) ? installBackendCliImpl(currentProc.second) : installCliImpl(currentProc.second); case Uninstalling: qCDebug(appLog) << "Uninstalling process"; return (BackendCli == m_type) ? uninstallBackendCliImpl(currentProc.second) : uninstallCliImpl(currentProc.second); default: break; } qCWarning(appLog) << "Invalid process type:" << currentProc.first << "for package:" << (currentProc.second ? currentProc.second->info()->id : "null"); return false; } bool UabProcessController::installBackendCliImpl(const UabPackage::Ptr &installPtr) { qCDebug(appLog) << "Preparing backend CLI install for package:" << installPtr->info()->id << installPtr->info()->version; if (!installPtr || !installPtr->isValid() || installPtr->info()->filePath.isEmpty()) { qCWarning(appLog) << "Invalid package for installation"; return false; } qCDebug(appLog) << "Preparing backend CLI install for package:" << installPtr->info()->id << installPtr->info()->version; m_procFlag.setFlag(Installing); // e.g.: pkexec deepin-deb-installer-dependsInstall --uab --install [file to package].uab qCDebug(appLog) << "Starting install process with pkexec"; 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); qCInfo(appLog) << "Install command:" << recordCommand; return true; } bool UabProcessController::uninstallBackendCliImpl(const UabPackage::Ptr &uninstallPtr) { qCDebug(appLog) << "Preparing backend CLI uninstall for package:" << uninstallPtr->info()->id << uninstallPtr->info()->version; if (!uninstallPtr || !uninstallPtr->isValid()) { qCWarning(appLog) << "Invalid package for uninstallation"; return false; } qCDebug(appLog) << "Preparing backend CLI uninstall for package:" << uninstallPtr->info()->id << uninstallPtr->info()->version; m_procFlag.setFlag(Uninstalling); // e.g.: pkexec deepin-deb-installer-dependsInstall --uab --remove [id/version] qCDebug(appLog) << "Starting uninstall process with pkexec"; 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); qCInfo(appLog) << "Uninstall command:" << recordCommand; return true; } bool Uab::UabProcessController::installCliImpl(const Uab::UabPackage::Ptr &installPtr) { qCDebug(appLog) << "Preparing CLI install for package:" << installPtr->info()->id << installPtr->info()->version; 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); qCInfo(appLog) << recordCommand; return true; } bool Uab::UabProcessController::uninstallCliImpl(const Uab::UabPackage::Ptr &uninstallPtr) { qCDebug(appLog) << "Preparing CLI uninstall for package:" << uninstallPtr->info()->id << uninstallPtr->info()->version; 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); qCInfo(appLog) << recordCommand; return true; } bool UabProcessController::checkIndexValid() { const bool isValid = 0 <= m_currentIndex && m_currentIndex < m_procList.size(); // qCDebug(appLog) << "Checking if index" << m_currentIndex << "is valid:" << isValid; return isValid; } UabPackage::Ptr UabProcessController::currentPackagePtr() { qCDebug(appLog) << "Getting current package pointer at index:" << m_currentIndex; if (!checkIndexValid()) { qCWarning(appLog) << "Invalid index, cannot get current package pointer"; return {}; } return m_procList[m_currentIndex].second; } void UabProcessController::commitCurrentChangeToBackend() { qCDebug(appLog) << "Committing current change to backend"; if (!checkIndexValid()) { qCWarning(appLog) << "Invalid index, cannot commit change"; return; } const auto ¤tProc = m_procList.at(m_currentIndex); UabPkgInfo::Ptr infoPtr; if (!currentProc.second || !currentProc.second->isValid()) { qCWarning(appLog) << "Invalid package, cannot commit change"; return; } infoPtr = currentProc.second->info(); switch (currentProc.first) { case Installing: qCDebug(appLog) << "Committing installation for package:" << infoPtr->id; Uab::UabBackend::instance()->packageInstalled(infoPtr); break; case Uninstalling: qCDebug(appLog) << "Committing uninstallation for package:" << infoPtr->id; Uab::UabBackend::instance()->packageRemoved(infoPtr); break; default: qCWarning(appLog) << "Unhandled process type:" << currentProc.first; break; } } } // namespace Uab deepin-deb-installer-6.5.51/src/deb-installer/uab/uab_process_controller.h000066400000000000000000000052371524745214100266170ustar00rootroot00000000000000// 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.51/src/deb-installer/utils/000077500000000000000000000000001524745214100222605ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/deb-installer/utils/accessible.h000066400000000000000000000146751524745214100245430ustar00rootroot00000000000000// 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.51/src/deb-installer/utils/accessibledefine.h000066400000000000000000001136461524745214100257140ustar00rootroot00000000000000// 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.51/src/deb-installer/utils/ddlog.h000066400000000000000000000004401524745214100235200ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2025 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef DDLOG_H #define DDLOG_H #include DCORE_USE_NAMESPACE namespace { inline Q_LOGGING_CATEGORY(appLog, "org.deepin.deb-installer") } #endif // DDLOG_H deepin-deb-installer-6.5.51/src/deb-installer/utils/deb_package.cpp000066400000000000000000000160371524745214100252000ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "deb_package.h" #include "ddlog.h" #include #include #include "model/packageanalyzer.h" #include "compatible/compatible_backend.h" #include "compatible/compatible_defines.h" #include "utils/utils.h" namespace Deb { bool needRemoveByVersion(const QString &installed_version, const QString &conflict_version, QApt::RelationType type) { // 如果版本条件为空,则需要移除 if (conflict_version.isEmpty()) { return true; } // 比较版本号 const int result = QApt::Package::compareVersion(installed_version, conflict_version); // 根据关系类型判断是否需要移除 switch (type) { case QApt::LessOrEqual: return result <= 0; case QApt::GreaterOrEqual: return result >= 0; case QApt::LessThan: return result < 0; case QApt::GreaterThan: return result > 0; case QApt::Equals: return result == 0; case QApt::NotEqual: return result != 0; default: return true; } } DebPackage::DebPackage(const QString &debFilePath) : m_debFilePtr(QSharedPointer::create(debFilePath)) { qCDebug(appLog) << "Creating DebPackage for:" << debFilePath; } bool DebPackage::isValid() const { const bool valid = m_debFilePtr->isValid(); // qCDebug(appLog) << "Checking if deb package is valid:" << valid; return valid; } bool DebPackage::fileExists() const { qCDebug(appLog) << "Checking if deb file exists:" << m_exists; return m_exists; } void DebPackage::markNotExists() { qCDebug(appLog) << "Marking deb file as not existing"; m_exists = false; } QString DebPackage::filePath() const { qCDebug(appLog) << "Getting file path:" << m_debFilePtr->filePath(); return m_debFilePtr->filePath(); } QByteArray DebPackage::md5() { qCDebug(appLog) << "Getting MD5 sum"; if (m_md5.isEmpty() && m_debFilePtr->isValid()) { qCDebug(appLog) << "MD5 sum is empty, calculating it"; m_md5 = m_debFilePtr->md5Sum(); } return m_md5; } const QSharedPointer &DebPackage::debInfo() const { qCDebug(appLog) << "Getting deb file info"; return m_debFilePtr; } void DebPackage::setOperationStatus(Pkg::PackageOperationStatus s) { qCInfo(appLog) << "Package operation status changed from" << m_operationStatus << "to" << s; m_operationStatus = s; } Pkg::PackageOperationStatus DebPackage::operationStatus() const { qCDebug(appLog) << "Getting operation status:" << m_operationStatus; return m_operationStatus; } Pkg::PackageInstallStatus DebPackage::installStatus() const { qCDebug(appLog) << "Getting install status:" << m_installStatus; return m_installStatus; } PackageDependsStatus &DebPackage::dependsStatus() { qCDebug(appLog) << "Getting depends status"; return m_dependsStatus; } bool DebPackage::containsTemplates() { qCDebug(appLog) << "Checking if package contains templates"; if (UnknownTemplates == m_templatesState) { qCDebug(appLog) << "Templates state is unknown, checking now"; m_templatesState = Utils::checkPackageContainsDebConf(m_debFilePtr->filePath()) ? ContainTemplates : NoTemplates; qCDebug(appLog) << "Templates state set to:" << m_templatesState; } return m_templatesState == ContainTemplates; } bool DebPackage::containRemovePackages() const { const bool contains = !m_removePackages.isEmpty(); // qCDebug(appLog) << "Checking if package contains packages to remove:" << contains; return contains; } void DebPackage::setMarkedPackages(const QStringList &installDepends) { qCDebug(appLog) << "Setting marked packages for" << m_debFilePtr->filePath() << "with depends:" << installDepends; m_removePackages.clear(); if (!m_debFilePtr->isValid()) { qCWarning(appLog) << "Invalid deb file when setting marked packages:" << m_debFilePtr->filePath(); return; } QApt::Backend *backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qCWarning(appLog) << "Backend is null when setting marked packages"; 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() && needRemoveByVersion(package->installedVersion(), info.packageVersion(), info.relationType())) { m_removePackages << package->name(); } } } } QStringList DebPackage::removePackages() const { // qCDebug(appLog) << "Getting list of packages to remove:" << m_removePackages; return m_removePackages; } void DebPackage::setError(int code, const QString &string) { qCWarning(appLog) << "Package error occurred, code:" << code << "message:" << string; m_errorCode = code; m_errorString = string; } int DebPackage::errorCode() const { // qCDebug(appLog) << "Getting error code:" << m_errorCode; return m_errorCode; } QString DebPackage::errorString() const { // qCDebug(appLog) << "Getting error string:" << m_errorString; return m_errorString; } const QSharedPointer &DebPackage::compatible() { qCDebug(appLog) << "Getting compatible info"; if (!m_compInfoPtr && isValid()) { qCDebug(appLog) << "Checking compatible mode for package:" << m_debFilePtr->packageName(); // might installed in compatbile mode. m_compInfoPtr = CompBackend::instance()->containsPackage(m_debFilePtr->packageName()); if (!m_compInfoPtr) { qCDebug(appLog) << "Creating compatible info"; 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.51/src/deb-installer/utils/deb_package.h000066400000000000000000000045671524745214100246520ustar00rootroot00000000000000// 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 Q_DECLARE_METATYPE(Deb::DebPackage::Ptr) #endif // DEBPACKAGE_H deepin-deb-installer-6.5.51/src/deb-installer/utils/eventlogutils.cpp000066400000000000000000000033601524745214100256720ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "eventlogutils.h" #include "ddlog.h" #include #include #include #include Eventlogutils *Eventlogutils::m_pInstance = nullptr; Eventlogutils *Eventlogutils::GetInstance() { qCDebug(appLog) << "Getting Eventlogutils instance"; if (m_pInstance == nullptr) { qCDebug(appLog) << "Creating new Eventlogutils instance"; m_pInstance = new Eventlogutils(); } return m_pInstance; } void Eventlogutils::writeLogs(QJsonObject &data) { qCDebug(appLog) << "Writing logs:" << data; if (!writeEventLogFunc) { qCWarning(appLog) << "writeEventLogFunc is not available, cannot write logs"; return; } writeEventLogFunc(QJsonDocument(data).toJson(QJsonDocument::Compact).toStdString()); qCDebug(appLog) << "Logs written successfully"; } Eventlogutils::Eventlogutils() { qCDebug(appLog) << "Constructing Eventlogutils"; QLibrary library("libdeepin-event-log.so"); initFunc = reinterpret_cast(library.resolve("Initialize")); writeEventLogFunc = reinterpret_cast(library.resolve("WriteEventLog")); if (!initFunc) { qCWarning(appLog) << "Failed to resolve Initialize function from libdeepin-event-log.so"; return; } if (!writeEventLogFunc) { qCWarning(appLog) << "Failed to resolve WriteEventLog function from libdeepin-event-log.so"; } qCDebug(appLog) << "Initializing event log with package name: deepin-deb-installer"; initFunc("deepin-deb-installer", true); qCDebug(appLog) << "Eventlogutils constructed"; } deepin-deb-installer-6.5.51/src/deb-installer/utils/eventlogutils.h000066400000000000000000000013231524745214100253340ustar00rootroot00000000000000// 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.51/src/deb-installer/utils/hierarchicalverify.cpp000066400000000000000000000227511524745214100266360ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "hierarchicalverify.h" #include "ddlog.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() { qCDebug(appLog) << "HierarchicalVerify constructed"; } HierarchicalVerify::~HierarchicalVerify() { qCDebug(appLog) << "HierarchicalVerify destructed"; } /** @return 返回分级管控签名校验辅助类实例 */ HierarchicalVerify *HierarchicalVerify::instance() { qCDebug(appLog) << "Getting HierarchicalVerify instance"; static HierarchicalVerify ins; return &ins; } /** @return 返回当前分级管控签名验证是否可用,此信息通过查询DBus接口属性值取得。 */ bool HierarchicalVerify::isValid() { // qCDebug(appLog) << "Checking hierarchical interface validity"; if (interfaceInvalid) { qCDebug(appLog) << "Hierarchical interface is marked as invalid, skipping check"; return false; } static std::once_flag checkFlag; std::call_once(checkFlag, [this]() { checkValidImpl(); }); qCDebug(appLog) << "Hierarchical interface is valid, return:" << valid; return valid; } /** @brief 检测软件包 \a pkgName 安装失败时的错误信息 \a errorString 中是否包含验签不通过的错误信息。 @warning 通过正则表达式匹配输出,当前通过 hook 标志和错误码 65280 匹配,需注意命令行输出信息更新未正常匹配的情况 * 1071 更新错误码为 256 ,进行兼容处理 */ bool HierarchicalVerify::checkTransactionError(const QString &pkgName, const QString &errorString) { qCDebug(appLog) << "Checking transaction error, pkgName:" << pkgName << ", errorString:" << errorString; static REG_EXP s_ErrorReg(QString(VERIFY_ERROR_REGEXP).arg(VerifyError).arg(VerffyErrorVer2)); if (errorString.contains(s_ErrorReg)) { invalidPackages.insert(pkgName); qCWarning(appLog) << QString("[Hierarchical] Package %1 detected hierarchical error!").arg(pkgName); return true; } qCDebug(appLog) << "No hierarchical error detected, return false"; return false; } /** @return 返回软件包 \a pkgName 是否通过校验,这个信息从校验缓存中获取, 通过 `clearVerifyResult` 移除 */ bool HierarchicalVerify::pkgVerifyPassed(const QString &pkgName) { qCDebug(appLog) << "Checking if package verify passed, pkgName:" << pkgName; return !invalidPackages.contains(pkgName); } /** @brief 移除缓存中的校验结果 */ void HierarchicalVerify::clearVerifyResult() { qCDebug(appLog) << "Clearing verify result"; invalidPackages.clear(); } /** @brief 请求弹出分级管控安全等级设置引导提示窗口,调用DBus接口,调出"安全中心-安全工具-应用安全"界面 */ void HierarchicalVerify::proceedDefenderSafetyPage() { qCDebug(appLog) << "Proceeding to defender safety page"; QDBusInterface interface(DBUS_DEFENDER_BUS, DBUS_DEFENDER_PATH, DBUS_DEFENDER_INTERFACE, QDBusConnection::sessionBus()); QDBusError error = interface.lastError(); if (interface.isValid()) { qCDebug(appLog) << "DBus interface is valid, calling ShowPage"; QDBusMessage message = interface.call(DBUS_DEFENDER_METHOD, DBUS_DEFENDER_SECURITYTOOLS, DBUS_DEFENDER_APP_SAFETY); error = interface.lastError(); } if (QDBusError::NoError != error.type()) { qCWarning(appLog) << QString("[Hierarchical] Show defender app-safety page error [%1] [%2] %3") .arg(DBUS_DEFENDER_BUS) .arg(error.name()) .arg(error.message()); } else { qCDebug(appLog) << "Successfully called ShowPage on defender"; } } /** @brief 通过DBus读取org.deepin.security.hierarchical.Control的Mode属性, 判断是否允许安装无签名包。Mode为0表示允许,非0表示不允许。 @return true表示允许安装无签名包,false表示不允许 */ bool HierarchicalVerify::allowInstallUnsigned() { qCDebug(appLog) << "Checking allowInstallUnsigned via Mode property"; QDBusInterface interface( DBUS_HIERARCHICAL_BUS, DBUS_HIERARCHICAL_PATH, DBUS_HIERARCHICAL_INTERFACE, QDBusConnection::systemBus()); if (!interface.isValid()) { qCWarning(appLog) << "[Hierarchical] DBus interface invalid when reading Mode property, defaulting to false"; return false; } QVariant reply = interface.property("Mode"); if (reply.isValid()) { bool ok = false; int mode = reply.toInt(&ok); if (ok) { qCInfo(appLog) << "[Hierarchical] Mode property value:" << mode; return mode == 0; } } qCWarning(appLog) << "[Hierarchical] Failed to read Mode property"; return false; } /** @brief 检测当前系统环境下是否包含分级管控接口,并取值判断接口是否可用。 */ bool HierarchicalVerify::checkHierarchicalInterface() { qCDebug(appLog) << "Checking hierarchical interface"; bool availabled = false; QDBusInterface interface( DBUS_HIERARCHICAL_BUS, DBUS_HIERARCHICAL_PATH, DBUS_HIERARCHICAL_INTERFACE, QDBusConnection::systemBus()); if (interface.isValid()) { qCDebug(appLog) << "DBus interface is valid, calling Availabled"; QDBusMessage message = interface.call(DBUS_HIERARCHICAL_METHOD); QDBusError error = interface.lastError(); if (QDBusError::NoError != error.type()) { // The log not need warning level. qCInfo(appLog) << 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; qCInfo(appLog) << QString("[Hierarchical] Interface %1 is not valid! Disable check hierarchical control interface.") .arg(DBUS_HIERARCHICAL_INTERFACE); } } else { QDBusReply reply(message); availabled = reply.value(); qCInfo(appLog) << QString("[Hierarchical] Get %1 property %2 value: %3") .arg(DBUS_HIERARCHICAL_BUS) .arg(DBUS_HIERARCHICAL_METHOD) .arg(availabled); } } else { interfaceInvalid = true; qCInfo(appLog) << 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() { qCDebug(appLog) << "Checking hierarchical interface validity implementation"; const bool availabled = checkHierarchicalInterface(); if (valid != availabled) { qCDebug(appLog) << "Validity changed from" << valid << "to" << availabled; valid = availabled; // if the hierarchical signature verification is not available, clear cache. if (!valid) { qCDebug(appLog) << "Hierarchical verification not valid, clearing verify result"; clearVerifyResult(); } Q_EMIT validChanged(valid); qCDebug(appLog) << "Emitted validChanged signal with value:" << valid; } qCDebug(appLog) << "Hierarchical interface validity check completed, return:" << availabled; return availabled; } deepin-deb-installer-6.5.51/src/deb-installer/utils/hierarchicalverify.h000066400000000000000000000020551524745214100262760ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 - 2026 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(); bool allowInstallUnsigned(); 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.51/src/deb-installer/utils/package_defines.h000066400000000000000000000055331524745214100255270ustar00rootroot00000000000000// 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) CompatibleInstallFailed }; 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.51/src/deb-installer/utils/qtcompat.h000066400000000000000000000021531524745214100242620ustar00rootroot00000000000000// 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.51/src/deb-installer/utils/result.h000066400000000000000000000014141524745214100237470ustar00rootroot00000000000000// 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.51/src/deb-installer/utils/utils.cpp000066400000000000000000000645061524745214100241370ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022-2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "utils.h" #include "qtcompat.h" #include "ddlog.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 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) #include #endif #include DWIDGET_USE_NAMESPACE QHash Utils::m_imgCacheHash; QHash Utils::m_fontNameCache; Utils::Utils(QObject *parent) : QObject(parent) { qCDebug(appLog) << "Utils constructed"; } QString Utils::loadFontFamilyByType(FontType fontType) { qCDebug(appLog) << "Loading font family for type:" << fontType; Q_UNUSED(fontType); QFont font; return font.family(); } QFont Utils::loadFontBySizeAndWeight(const QString &fontFamily, int fontSize, int fontWeight) { qCDebug(appLog) << "Loading font by size and weight:" << fontFamily << fontSize << 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) { qCWarning(appLog) << "Cannot bind font to null widget"; return; } qCDebug(appLog) << "Binding font to widget:" << widget->objectName() << fontFamily << fontSize << fontWeight; 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; } qCDebug(appLog) << "Binding font size type" << sizeType << "and weight" << fontWeight; DFontSizeManager *fontManager = DFontSizeManager::instance(); fontManager->bind(widget, sizeType, fontWeight); } QString Utils::fromSpecialEncoding(const QString &inputStr) { qCDebug(appLog) << "Converting from special encoding"; bool bFlag = inputStr.contains(REG_EXP("[\\x{4e00}-\\x{9fa5}]+")); if (bFlag) { qCDebug(appLog) << "Input string contains Chinese characters, returning as is"; return inputStr; } QTextCodec *codec = QTextCodec::codecForName("utf-8"); if (codec) { QString unicodeStr = codec->toUnicode(inputStr.toLatin1()); qCDebug(appLog) << "Successfully converted to Unicode"; return unicodeStr; } else { qCWarning(appLog) << "UTF-8 codec not found, returning original string"; return inputStr; } } bool Utils::Return_Digital_Verify(const QString &strfilepath, const QString &strfilename) { qCDebug(appLog) << "Return digital verify, strfilepath:" << strfilepath << ", strfilename:" << strfilename; QDir dir(strfilepath); if (!dir.exists()) { qCDebug(appLog) << "文件夹不存在"; return false; } dir.setFilter(QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot); QFileInfoList list = dir.entryInfoList(); int file_count = list.count(); qCDebug(appLog) << "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) { qCDebug(appLog) << "文件路径: " << file_info.path() << " " << "文件名: " << file_info.fileName(); return true; } } return false; } Utils::VerifyResultCode Utils::Digital_Verify(const QString &filepath_name) { qCDebug(appLog) << "Digital verify, filepath_name:" << filepath_name; QString verifyfilepath = "/usr/bin/"; QString verifyfilename = "deepin-deb-verify"; bool result_verify_file = Return_Digital_Verify(verifyfilepath, verifyfilename); qCDebug(appLog) << "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(); qCInfo(appLog) << "签名校验结果:" << 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) { qCDebug(appLog) << "Hold text in rect, font:" << font.family() << ", srcText:" << srcText << ", size:" << size; if (srcText.isEmpty() || size.width() <= 0 || size.height() <= 0) { qCDebug(appLog) << "Invalid input parameters, returning empty or original text"; return srcText; } QFontMetrics fm(font); const int lineHeight = fm.height(); const int maxLines = size.height() / lineHeight; if (maxLines <= 0) { qCDebug(appLog) << "Height too small for any line, returning empty"; return QString(); } // Use QTextLayout for proper word wrapping QTextLayout textLayout(srcText, font); textLayout.beginLayout(); QString resultText; int currentLine = 0; const int textWidth = size.width(); while (currentLine < maxLines) { QTextLine line = textLayout.createLine(); if (!line.isValid()) { break; } line.setLineWidth(textWidth); const int lineStart = line.textStart(); const int lineLength = line.textLength(); // Check if we're at the last allowed line and there's more text if (currentLine == maxLines - 1 && lineStart + lineLength < srcText.length()) { // Elide the remaining text QString remainingText = srcText.mid(lineStart); QString elidedText = fm.elidedText(remainingText, Qt::ElideRight, textWidth); if (!resultText.isEmpty()) { resultText += "\n"; } resultText += elidedText; break; } // Add current line to result if (!resultText.isEmpty()) { resultText += "\n"; } resultText += srcText.mid(lineStart, lineLength); currentLine++; } textLayout.endLayout(); qCDebug(appLog) << "Hold text in rect, text:" << resultText; return resultText; } QString Utils::holdTextInRect(const QFont &font, const QString &srcText, const int &width) { qCDebug(appLog) << "Hold text in rect, font:" << font.family() << ", srcText:" << srcText << ", width:" << width; if (srcText.isEmpty() || width <= 0) { qCDebug(appLog) << "Invalid input parameters, returning original text"; return srcText; } const int effectiveWidth = width - 12; if (effectiveWidth <= 0) { qCDebug(appLog) << "Width too small after margin, returning original text"; return srcText; } // Use QTextLayout for proper word wrapping QTextLayout textLayout(srcText, font); textLayout.beginLayout(); QString resultText; while (true) { QTextLine line = textLayout.createLine(); if (!line.isValid()) { break; } line.setLineWidth(effectiveWidth); const int lineStart = line.textStart(); const int lineLength = line.textLength(); // Add current line to result if (!resultText.isEmpty()) { resultText += "\n"; } resultText += srcText.mid(lineStart, lineLength); } textLayout.endLayout(); qCDebug(appLog) << "Hold text in rect, text:" << resultText; return resultText; } /*! @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) { qCDebug(appLog) << "Check package readable, packagePath:" << packagePath; // Determine whether the route information is a local path QStorageInfo info(packagePath); QString device = info.device(); QString fsType = info.fileSystemType(); // Blacklist identifies, gvfs/cifs as the file system // that currently manages the remote directory if (fsType.startsWith("gvfs") || fsType.startsWith("cifs") || device.startsWith("gvfs") || device.startsWith("cifs")) { qCWarning(appLog) << "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) { qCWarning(appLog) << "Package has permission but cannot open!"; return Pkg::PkgNotInLocal; } qCWarning(appLog) << "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) { qCDebug(appLog) << "Comparing versions:" << v1 << "and" << v2; return QApt::Package::compareVersion(v1, v2); } Pkg::PackageType Utils::detectPackage(const QString &filePath) { qCDebug(appLog) << "Detecting package type for:" << 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")) { qCDebug(appLog) << "Detected DEB package"; return Pkg::Deb; } if (info.suffix().toLower() == "uab" || mime.name().startsWith("application/vnd.linyaps.uab")) { qCDebug(appLog) << "Detected UAB package"; return Pkg::Uab; } qCWarning(appLog) << "Unknown package type for:" << filePath; return Pkg::UnknownPackage; } /** * @brief Get the icon based on the package \a type . * not threadsafe. */ QIcon Utils::packageIcon(Pkg::PackageType type) { qCDebug(appLog) << "Package icon, type:" << type; if (Pkg::Uab == type) { // linglong uab package static QIcon kUabIcon = QIcon::fromTheme("application/x-executable"); #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) 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)); } } #endif qCDebug(appLog) << "return uab package icon, type:" << type; return kUabIcon; } else { // default, deb package static const QIcon kDebIcon = QIcon::fromTheme("application-x-deb"); qCDebug(appLog) << "return deb package icon, type:" << type; return kDebIcon; } } /** @brief Check if debian package contains DebConf templates config file */ bool Utils::checkPackageContainsDebConf(const QString &filePath) { qCDebug(appLog) << "Checking if package contains DebConf templates:" << 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; } const bool exists = QFile::exists(templateDir.filePath("templates")); qCDebug(appLog) << "Templates file exists:" << exists; return exists; } /** @return Check if the current mode is development mode, the status will be called once and stored. */ bool Utils::isDevelopMode() { qCDebug(appLog) << "Check if the current mode is development mode"; 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)) qCDebug(appLog) << "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(); qCDebug(appLog) << "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 qCDebug(appLog) << "system code(Deepin): " << Dtk::Core::DSysInfo::deepinType(); switch (Dtk::Core::DSysInfo::deepinType()) { case Dtk::Core::DSysInfo::DeepinDesktop: qCDebug(appLog) << "DeepinDesktop"; kIsDevelopMode = true; break; case Dtk::Core::DSysInfo::DeepinPersonal: case Dtk::Core::DSysInfo::DeepinProfessional: qCDebug(appLog) << "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: qCDebug(appLog) << "DeepinServer"; kIsDevelopMode = true; break; default: qCDebug(appLog) << "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) { qCDebug(appLog) << "Format wrap text, text:" << text << ", textWidth:" << textWidth; // GUI thread only if (QThread::currentThread() != qApp->thread()) { qCDebug(appLog) << "Not in GUI thread, return text"; return text; } if (text.isEmpty() || !textWidth) { qCDebug(appLog) << "Text is empty or textWidth is 0, return text"; 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(); } qCDebug(appLog) << "Format wrap text, tipsText:" << tipsText; return tipsText; } /** * @return parse app black list from config file. */ QStringList Utils::parseBlackList() { qCDebug(appLog) << "Parse black list"; static const QString kBlackFileV20 {"/usr/share/udcp/appblacklist.txt"}; static const QString kBlackFileV25 {"/var/lib/udcp/appblacklist.txt"}; static const int kV25Version = 25; const int sysVersion = Dtk::Core::DSysInfo::majorVersion().toInt(); QString blackFile = (sysVersion >= kV25Version) ? kBlackFileV25 : kBlackFileV20; QFile blackListFile(blackFile); if (blackListFile.exists()) { blackListFile.open(QFile::ReadOnly); QString blackApplications = blackListFile.readAll(); blackApplications.replace(" ", ""); blackApplications = blackApplications.replace("\n", ""); blackListFile.close(); return blackApplications.split(","); } qCDebug(appLog) << "Black File not Found, " << blackFile; return {}; } /** * @brief Mark whether the wine pre-dependency is being installed. * Not thread-safe. */ static bool kWinePreDependsStatus = false; bool GlobalStatus::winePreDependsInstalling() { qCDebug(appLog) << "Wine pre-dependency installing, status:" << kWinePreDependsStatus; return kWinePreDependsStatus; } void GlobalStatus::setWinePreDependsInstalling(bool b) { qCDebug(appLog) << "Set wine pre-dependency installing, status:" << b; kWinePreDependsStatus = b; } DebApplicationHelper *DebApplicationHelper::instance() { // qCDebug(appLog) << "Get deb application helper 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 { qCDebug(appLog) << "Get deb application helper instance"; DPalette pa; const QColor *qcolor_list, *dcolor_list; if (type == DarkType) { qCDebug(appLog) << "Dark type"; qcolor_list = dark_qpalette; dcolor_list = dark_dpalette; } else { qCDebug(appLog) << "Light type"; 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 { // qCDebug(appLog) << "Get palette, widget:" << widget << ", base:" << base; 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) { // qCDebug(appLog) << "Set palette, widget:" << widget << ", palette:" << palette; // 记录此控件被设置过palette if (nullptr == widget) return; widget->setProperty("_d_set_palette", true); widget->setPalette(palette); } void DebApplicationHelper::resetPalette(QWidget *widget) { // qCDebug(appLog) << "Reset palette, widget:" << widget; if (nullptr == widget) return; widget->setProperty("_d_set_palette", QVariant()); widget->setAttribute(Qt::WA_SetPalette, false); } deepin-deb-installer-6.5.51/src/deb-installer/utils/utils.h000066400000000000000000000066721524745214100236040ustar00rootroot00000000000000// 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); // get current package black list static QStringList parseBlackList(); }; class GlobalStatus { public: // wine depends installing flag static bool winePreDependsInstalling(); static void setWinePreDependsInstalling(bool b); }; #endif deepin-deb-installer-6.5.51/src/deb-installer/view/000077500000000000000000000000001524745214100220725ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/deb-installer/view/pages/000077500000000000000000000000001524745214100231715ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/deb-installer/view/pages/AptConfigMessage.cpp000066400000000000000000000274211524745214100270620ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022-2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "AptConfigMessage.h" #include "utils/utils.h" #include "utils/ddlog.h" #include #include #include #include #include #include #include AptConfigMessage *AptConfigMessage::aptConfig = nullptr; DCORE_USE_NAMESPACE DWIDGET_USE_NAMESPACE AptConfigMessage::AptConfigMessage(QWidget *parent) : DMainWindow(parent) { qCDebug(appLog) << "Initializing AptConfigMessage..."; initControl(); // 初始化控件 initAccessibleName(); // 自动化测试,为控件添加AccessibleName initUI(); // 初始化UI界面 initTitlebar(); // 初始化标题栏,隐藏标题栏的各种按钮 initTabOrder(); // 初始化按钮的焦点切换顺序 connect(m_pushbutton, &QPushButton::clicked, this, &AptConfigMessage::dealInput); // 按钮按下,处理输入的内容并发送到安装程序 qCDebug(appLog) << "AptConfigMessage initialized"; } /** * @brief AptConfigMessage::initTabOrder 初始化tab切换焦点的顺序。 * 设置焦点在输入框和按钮之间循环 */ void AptConfigMessage::initTabOrder() { qCDebug(appLog) << "Initializing tab order"; QWidget::setTabOrder(m_pushbutton, m_inputEdit->lineEdit()); // 设置焦点的切换顺序从按钮到输入框 QWidget::setTabOrder(m_inputEdit->lineEdit(), m_pushbutton); // 设置焦点的切换顺序从输入框到按钮 } /** * @brief AptConfigMessage::initTitlebar 初始化标题栏 */ void AptConfigMessage::initTitlebar() { qCDebug(appLog) << "Initializing title bar"; DTitlebar *tb = titlebar(); if (tb) { tb->setIcon(QIcon::fromTheme("deepin-deb-installer")); // 设置图标 tb->setTitle(""); tb->setVisible(false); tb->setMenuVisible(false); // 设置标题栏菜单按钮不可见 tb->setAutoFillBackground(false); // 填充标题栏背景 qCDebug(appLog) << "Title bar initialized"; } else { qCWarning(appLog) << "Title bar is null"; } } /** * @brief AptConfigMessage::initControl 初始化各个控件 */ void AptConfigMessage::initControl() { qCDebug(appLog) << "Initializing controls"; 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); qCDebug(appLog) << "Controls initialized"; } /** * @brief AptConfigMessage::initUI 整体布局的初始化 * */ void AptConfigMessage::initUI() { qCDebug(appLog) << "Initializing UI"; 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()); // 移动此窗口到屏幕中间。 qCDebug(appLog) << "UI initialized"; } /** * @brief AptConfigMessage::appendTextEdit 向配置信息展示窗口添加配置信息的数据 * @param processInfo 配置信息数据 */ void AptConfigMessage::appendTextEdit(QString processInfo) { qCDebug(appLog) << "Appending config info to text edit"; // 保证焦点在输入框上 m_inputEdit->lineEdit()->setFocus(); // 如果添加的数据是空的或者只有换行,则不添加 if (processInfo.isEmpty() || processInfo == "\\r\\n") { qCDebug(appLog) << "Empty config info, skipping append"; return; } QString configMessage; configMessage = processInfo.replace(" ", " "); // 移除多余的“"” configMessage.remove(QChar('\"'), Qt::CaseInsensitive); configMessage.remove("\\r"); // 获取配置的第一行的最后一个字符的下标,用于判断当前是否还有信息需要展示 int num = configMessage.indexOf("\\n"); // 下标为-1 表明此时只有一行数据需要展示,则直接添加 if (num == -1) { qCDebug(appLog) << "Only one line of data, append directly"; m_textEdit->appendText(processInfo); // m_textEdit->appendText("\n"); return; } int messageSize = configMessage.size(); while (num != -1) { num = configMessage.indexOf("\\n"); // 获取第一行的下标 if (num == -1) { // 没有更多换行符,将剩余内容追加后退出 if (configMessage.size() > 0) m_textEdit->appendText(configMessage); break; } 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); // 添加数据 qCDebug(appLog) << "Processing config line:" << strFilter; // 如果当前已经是最后一行。此时text的数据长度大于0且text已经不包含任何的换行则退出,说明信息获取完成。 if (num == -1 && configMessage.size() > 0 && !configMessage.contains("\n")) { qCDebug(appLog) << "Last line of data, break"; break; } } } /** * @brief AptConfigMessage::dealInput * 向工作线程传递输入的数据 */ void AptConfigMessage::dealInput() { qCDebug(appLog) << "Processing user input"; // 如果当前输入框中的信息是空的 或者输入了00 则不提交,并清除信息 // PS:dpkg 规定如果输入00 配置会结束 if (m_inputEdit->text().isEmpty() || m_inputEdit->text() == "" || m_inputEdit->text() == "00") { qCDebug(appLog) << "Empty or invalid input, skipping"; m_inputEdit->clear(); // 每次提交输入信息后,输入框清除。 return; } QString str = m_inputEdit->text(); // 获取输入框的输入信息 str.remove(QChar('"'), Qt::CaseInsensitive); // 去除输入框中多余的“"” qCDebug(appLog) << "Sending config input:" << str; emit AptConfigInputStr(str); // 提交信息到配置安装程序 m_inputEdit->clear(); // 清除输入框的内容 } /** * @brief AptConfigMessage::paintEvent * @param event * * 去除界面上的 最小化 最大化 关闭 菜单 按钮 */ void AptConfigMessage::paintEvent(QPaintEvent *event) { // qCDebug(appLog) << "Paint 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) { // qCDebug(appLog) << "Close event triggered, ignoring it"; // bug121131 右键dock栏软件包安装器,选择“关闭所有”,关闭配置项弹窗 // bug121123 禁用Alt+f4组合键关闭 配置包窗口 // Alt+F4按键是由系统驱动实现的,根本无法捕获这个事件 // Alt+F4 触发关闭事件,则忽略关闭事件即可 event->ignore(); } /** * @brief AptConfigMessage::clearTexts 清除输入框和信息框的内容 */ void AptConfigMessage::clearTexts() { qCDebug(appLog) << "Clearing text edit and input edit"; m_textEdit->clearText(); // 清除信息框的内容 m_inputEdit->clear(); // 清除输入框的内容 } /** * @brief AptConfigMessage::initAccessibleName 初始化AccessibleName */ void AptConfigMessage::initAccessibleName() { qCDebug(appLog) << "Initializing accessible names"; 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"); qCDebug(appLog) << "Accessible names initialized"; } AptConfigMessage::~AptConfigMessage() { // qCDebug(appLog) << "Destructing AptConfigMessage"; delete m_textEdit; delete m_inputEdit; delete m_pushbutton; delete m_pQuestionLabel; delete aptConfig; // qCDebug(appLog) << "AptConfigMessage destructed"; } deepin-deb-installer-6.5.51/src/deb-installer/view/pages/AptConfigMessage.h000066400000000000000000000043701524745214100265250ustar00rootroot00000000000000// 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.51/src/deb-installer/view/pages/backendprocesspage.cpp000066400000000000000000000035461524745214100275300ustar00rootroot00000000000000// 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 "utils/ddlog.h" #include BackendProcessPage::BackendProcessPage(QWidget *parent) : QWidget(parent) { qCDebug(appLog) << "Initializing BackendProcessPage..."; 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); qCDebug(appLog) << "BackendProcessPage initialized"; } void BackendProcessPage::setDisplayPage(DisplayMode mode) { qCDebug(appLog) << "Setting display mode:" << mode; if (mode == APT_INIT) { qCDebug(appLog) << "Showing APT initialization view"; allLayout->setCurrentWidget(noProcessWidget); noProcessWidget->start(); } else if (mode == APT_UPDATE_CACHE) { noProcessWidget->setActionText(tr("Updating package cache...")); } else if (mode == READ_PKG) { qCDebug(appLog) << "Showing package loading view"; allLayout->setCurrentWidget(processWidget); noProcessWidget->stop(); } else { // PROCESS_FIN qCDebug(appLog) << "Process finished, hiding widgets"; noProcessWidget->stop(); } } void BackendProcessPage::setPkgProcessRate(int currentRate, int pkgCount) { qCDebug(appLog) << "Updating progress:" << currentRate << "/" << pkgCount; processWidget->setProgress(currentRate, pkgCount); } deepin-deb-installer-6.5.51/src/deb-installer/view/pages/backendprocesspage.h000066400000000000000000000015301524745214100271640ustar00rootroot00000000000000// 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初始化 APT_UPDATE_CACHE, // 更新缓存 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.51/src/deb-installer/view/pages/ddimerrorpage.cpp000066400000000000000000000046071524745214100265300ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "ddimerrorpage.h" #include "utils/ddlog.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"))) { qCDebug(appLog) << "Initializing DDIM error page"; 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); qCDebug(appLog) << "DDIM error page initialized"; 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, [this]() { qCDebug(appLog) << "Error confirmation button clicked"; comfimPressed(); }); } void DdimErrorPage::setErrorMessage(const QString &message) { qCDebug(appLog) << "Setting error message:" << message; errorMessageLabel->setText(message); } void DdimErrorPage::showEvent(QShowEvent *event) { // 每次展示时固定默认焦点,缩放后弹出也是 confimButton->setFocus(); QWidget::showEvent(event); } deepin-deb-installer-6.5.51/src/deb-installer/view/pages/ddimerrorpage.h000066400000000000000000000012771524745214100261750ustar00rootroot00000000000000// 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.51/src/deb-installer/view/pages/debinstaller.cpp000066400000000000000000001476111524745214100263570ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2026 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 "utils/ddlog.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 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)) { qCDebug(appLog) << "Initializing DebInstaller..."; initUI(); initConnections(); qCDebug(appLog) << "Starting backend initialization in background"; QtConcurrent::run([]() { qCDebug(appLog) << "Background backend initialization started"; PackageAnalyzer::instance().initBackend(); PackageAnalyzer::instance().updatePackageCache(); qCDebug(appLog) << "Background backend initialization completed"; }); qCDebug(appLog) << "DebInstaller initialization completed"; } DebInstaller::~DebInstaller() { qCDebug(appLog) << "DebInstaller destructed"; } void DebInstaller::initUI() { qCDebug(appLog) << "Initializing UI"; // 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()); qCDebug(appLog) << "UI initialized"; } void DebInstaller::initTitleBar() { qCDebug(appLog) << "Initializing title bar"; DTitlebar *tb = titlebar(); if (tb != nullptr) { // 社区版不显示设置菜单 if (DSysInfo::uosEditionType() != DSysInfo::UosCommunity) { QAction *settingAction(new QAction(tr("Settings"), this)); DMenu *menu = new DMenu; menu->addAction(settingAction); tb->setMenu(menu); connect(settingAction, &QAction::triggered, this, &DebInstaller::slotSettingDialogVisiable); } tb->setIcon(QIcon::fromTheme("deepin-deb-installer")); tb->setTitle(""); tb->setAutoFillBackground(true); tb->setDisableFlags(Qt::CustomizeWindowHint); qCDebug(appLog) << "Title bar initialized"; } else { qCWarning(appLog) << "Title bar is null"; } } void DebInstaller::initConnections() { qCDebug(appLog) << "Initializing connections"; connect(m_fileListModel, &DebListModel::signalAppendFailMessage, this, &DebInstaller::slotReceiveAppendFailed); connect(m_fileListModel, &DebListModel::signalPackageCountChanged, this, [this](int count) { qCDebug(appLog) << "Package count changed:" << 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) { qCDebug(appLog) << "Backend process state changed:" << inProcess; if (inProcess) { slotShowPkgProcessBlockPage(BackendProcessPage::APT_INIT, 0, 0); } }); // 缓存更新开始:显示 APT_UPDATE_CACHE UI,并监听事务完成事件 connect(&PackageAnalyzer::instance(), &PackageAnalyzer::cacheUpdateStarted, this, [this] { qCDebug(appLog) << "Cache update started"; slotShowPkgProcessBlockPage(BackendProcessPage::APT_UPDATE_CACHE, 0, 0); auto backend = PackageAnalyzer::instance().backendPtr(); if (!backend) { qCWarning(appLog) << "Backend pointer is null, cannot update package cache"; PackageAnalyzer::instance().setCacheUpdateFinished(true); return; } auto transaction = backend->updateCache(); if (!transaction) { qCWarning(appLog) << "Failed to create update cache transaction"; PackageAnalyzer::instance().setCacheUpdateFinished(true); return; } transaction->setLocale(".UTF-8"); connect(transaction, &Transaction::finished, this, &DebInstaller::slotUpdateCacheFinished); transaction->run(); }); // 缓存更新完成信号:仅用于显示 PROCESS_FIN(事务完成后清理由 slotUpdateCacheFinished 处理) connect(&PackageAnalyzer::instance(), &PackageAnalyzer::cacheUpdateFinished, this, [this]() { qCDebug(appLog) << "Cache update finished signal received"; slotShowPkgProcessBlockPage(BackendProcessPage::PROCESS_FIN, 0, 0); }); connect(&PackageAnalyzer::instance(), &PackageAnalyzer::runAnalyzeDeb, this, [this](bool inProcess, int currentRote, int pkgCount) { qCDebug(appLog) << "Analyze deb process state changed:" << inProcess << "rote:" << currentRote << "count:" << 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); qCDebug(appLog) << "Connections initialized"; } void DebInstaller::slotEnableCloseButton(bool enable) { qCDebug(appLog) << "Setting close button enabled state to:" << enable; if (enable) { enableCloseAndExit(); // 启用关闭按钮 } else { disableCloseAndExit(); // 禁用关闭按钮 } } void DebInstaller::slotSettingDialogVisiable() { qCDebug(appLog) << "Showing settings dialog"; m_settingDialog->setModal(true); m_settingDialog->show(); } void DebInstaller::PackagesSelected(const QStringList &debPathList) { const QStringList &pkgRealPathList = pathTransform(debPathList); qCDebug(appLog) << "Packages selected:" << pkgRealPathList; // 如果此时 软件包安装器不是处于准备状态且还未初始化完成或此时正处于正在安装或者卸载状态,则不添加 // 依赖配置过程中,不添加其他包 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) { qCWarning(appLog) << "Cannot add packages - worker status:" << m_fileListModel->getWorkerStatus(); } else { qCDebug(appLog) << "Adding packages to model"; // 开始添加包,将要添加的包传递到后端,添加包由后端处理 m_fileListModel->slotAppendPackage(pkgRealPathList); } } QString DebInstaller::startInstallPackge(const QString &debPath) { qCDebug(appLog) << "Starting package installation:" << debPath; QString message; message = m_fileListModel->checkPackageValid(debPath); if (!message.isEmpty()) { qCWarning(appLog) << "Package validation failed:" << message; return message; } if (!m_fileListModel->isWorkerPrepare()) { qCWarning(appLog) << "Installation rejected - worker busy"; 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()) { qCDebug(appLog) << "Install failed or finished"; // failed or finished. message = m_fileListModel->lastProcessError(); if (message.isEmpty()) message = "unknown error"; } else { qCDebug(appLog) << "Install finished"; // 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) { qCDebug(appLog) << "Starting package uninstallation:" << debPath; // check duplicate install if (Pkg::PackageInstallStatus::NotInstalled == checkInstallStatus(debPath)) { qCWarning(appLog) << "Uninstallation failed - package not installed"; return "currentdeb not install, uninstall package faild"; } if (!m_fileListModel->isWorkerPrepare()) { qCWarning(appLog) << "Uninstallation rejected - worker busy"; 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()) { qCDebug(appLog) << "Uninstall failed or finished"; // failed or finished. message = m_fileListModel->lastProcessError(); if (message.isEmpty()) message = "unknown error"; } else { qCDebug(appLog) << "Uninstall finished"; // 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) { qCDebug(appLog) << "Checking install status for:" << debPath; if (debPath.isEmpty()) { qCDebug(appLog) << "Empty package path for install status check"; return -1; } qCDebug(appLog) << "Checking install status for:" << debPath; return m_fileListModel->checkInstallStatus(debPath); } int DebInstaller::checkDependsStatus(const QString &debPath) { qCDebug(appLog) << "Checking dependency status for:" << debPath; if (debPath.isEmpty()) { qCWarning(appLog) << "Empty package path for dependency status check"; return -1; } return m_fileListModel->checkDependsStatus(debPath); } int DebInstaller::checkDigitalSignature(const QString &debPath) { qCDebug(appLog) << "Checking digital signature for:" << debPath; if (debPath.isEmpty()) { qCWarning(appLog) << "Empty package path for digital signature check"; return -1; } // only deb package support. if (auto *proxyModel = qobject_cast(m_fileListModel)) { auto *model = qobject_cast(proxyModel->modelFromType(Pkg::Deb)); if (model) { qCDebug(appLog) << "Found DebListModel, checking signature"; return model->checkDigitalSignature(debPath); } } qCWarning(appLog) << "Could not find DebListModel to check signature"; return -1; } QString DebInstaller::getPackageInfo(const QString &debPath) { qCDebug(appLog) << "Getting package info for:" << debPath; if (debPath.isEmpty()) { qCWarning(appLog) << "Empty package path for getPackageInfo"; return ""; } return m_fileListModel->getPackageInfo(debPath).join(";"); } void DebInstaller::slotShowSelectInstallPage(const QList &selectIndexes) { qCDebug(appLog) << "Showing select install page with" << selectIndexes.size() << "selected indexes"; QtConcurrent::run([this, selectIndexes]() { qCDebug(appLog) << "Analyzing needed packages for installation"; // 1.交给model分析需要装哪些包 auto needInstallIrs = m_ddimModel->analyzePackageInstallNeeded(selectIndexes); // 2.汇集安装路径 QStringList paths; for (auto &ir : needInstallIrs) { paths.push_back(ir.filePath); } qCDebug(appLog) << "Found" << paths.size() << "packages to install"; // 3.按老流程进行安装 emit runOldProcess(paths); }); } void DebInstaller::slotShowSelectPage(const QList &selectedInfos) { qCDebug(appLog) << "Showing select page with" << selectedInfos.size() << "selected infos"; if (selectedInfos.isEmpty() && m_ddimView == nullptr) { // 不应该能够跳转至此 qCWarning(appLog) << "Invalid DDIM process state"; return; } if (selectedInfos.isEmpty() && m_centralLayout->currentWidget() == m_ddimView) { // 此时已经判定m_ddimView界面是存在的,属于界面刷新操作 qCDebug(appLog) << "Show select install page"; slotShowSelectInstallPage({}); return; } bool haveMustInstallDeb = !m_ddimModel->mustInstallData().isEmpty(); if (m_ddimView != nullptr) { qCDebug(appLog) << "Show select install page"; if (m_centralLayout->currentWidget() == m_ddimView) { // 正处于此页面时直接刷新 qCDebug(appLog) << "Flush deb list"; m_ddimView->flushDebList(selectedInfos); m_ddimView->setHaveMustInstallDeb(haveMustInstallDeb); } else { qCDebug(appLog) << "Show select install page"; return; } } else { // 初次进入 qCDebug(appLog) << "Show select install page"; 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) { qCDebug(appLog) << "Showing package process block page with mode:" << mode << "rate:" << currentRate << "count:" << pkgCount; if (m_backendProcessPage == nullptr) { qCDebug(appLog) << "Creating new BackendProcessPage"; m_backendProcessPage = new BackendProcessPage; m_centralLayout->addWidget(m_backendProcessPage); } m_backendProcessPage->setDisplayPage(mode); if (mode == BackendProcessPage::PROCESS_FIN) { qCDebug(appLog) << "Process finished, switching back to last page"; if (m_lastPage != nullptr) { if (m_centralLayout->currentWidget() == m_backendProcessPage) { m_centralLayout->setCurrentWidget(m_lastPage); } } } else { if (mode == BackendProcessPage::READ_PKG) { qCDebug(appLog) << "Set package process rate:" << currentRate << "count:" << pkgCount; m_backendProcessPage->setPkgProcessRate(currentRate, pkgCount); } if (m_centralLayout->currentWidget() != m_backendProcessPage) { qCDebug(appLog) << "Switching to backend process page"; m_centralLayout->setCurrentWidget(m_backendProcessPage); } } } void DebInstaller::slotWorkerFinished() { qCDebug(appLog) << "Worker finished"; if (m_fileListModel->containsSignatureFailed()) { qCWarning(appLog) << "Signature verification failed, showing hierarchical verify window"; ErrorNotifyDialogHelper::showHierarchicalVerifyWindow(); } slotChangeDragFlag(); } void DebInstaller::slotUpdateCacheFinished() { Transaction *transaction = qobject_cast(sender()); if (!transaction) { PackageAnalyzer::instance().setCacheUpdateFinished(true); qCWarning(appLog) << "Update cache transaction is null"; return; } disconnect(transaction, &Transaction::finished, this, &DebInstaller::slotUpdateCacheFinished); qCDebug(appLog) << (transaction->exitStatus() == QApt::ExitSuccess ? "Package cache update succeeded" : QString("Package cache update failed: %1").arg(transaction->errorString())); transaction->deleteLater(); if (auto backend = PackageAnalyzer::instance().backendPtr()) backend->reloadCache(); PackageAnalyzer::instance().setCacheUpdateFinished(true); } void DebInstaller::disableCloseAndExit() { qCDebug(appLog) << "Disabling close and exit"; titlebar()->setDisableFlags(Qt::WindowCloseButtonHint); // 设置标题栏中的关闭按钮不可用 DTitlebar *tbar = this->titlebar(); if (tbar) { tbar->setQuitMenuDisabled(true); } } void DebInstaller::enableCloseAndExit() { qCDebug(appLog) << "Enabling close and exit"; titlebar()->setDisableFlags(titlebar()->windowFlags() & ~Qt::WindowMinimizeButtonHint & ~Qt::WindowCloseButtonHint); DTitlebar *tbar = this->titlebar(); if (tbar) { qCDebug(appLog) << "Set quit menu disabled to false"; tbar->setQuitMenuDisabled(false); } } void DebInstaller::dragEnterEvent(QDragEnterEvent *dragEnterEvent) { qCDebug(appLog) << "Drag enter event"; this->activateWindow(); // 拖入时,激活窗口 qCDebug(appLog) << "Drag enter event, worker status:" << m_fileListModel->getWorkerStatus(); if (m_fileListModel->getWorkerStatus() == AbstractPackageListModel::WorkerProcessing || m_fileListModel->getWorkerStatus() == AbstractPackageListModel::WorkerUnInstall) { // 如果当前正在安装,不允许拖入包 qCDebug(appLog) << "Rejecting drag - worker busy"; this->setAcceptDrops(false); // 不允许拖入 } else { qCDebug(appLog) << "Set accept drops to true"; m_fileChooseWidget->setAcceptDrops(true); // 允许包被拖入 if (m_dragflag == 0) { // 如果当前不允许拖入,则直接返回 qCDebug(appLog) << "Drag flag is 0, ignoring drag"; 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) { qCDebug(appLog) << "Drop event"; auto *const mime = dropEvent->mimeData(); if (!mime->hasUrls()) { qCDebug(appLog) << "Drop event, mime data has no urls"; 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) { // qCDebug(appLog) << "Drag move event"; dragMoveEvent->accept(); } void DebInstaller::slotPackagesSelected(const QStringList &packagesPathList) { const QStringList &pkgRealPathList = pathTransform(packagesPathList); qCDebug(appLog) << "Packages selected:" << pkgRealPathList; // 兼容模式下不允许追加新包 const QModelIndex existIdx = m_fileListModel->index(0); if (existIdx.isValid()) { const int existStat = existIdx.data(DebListModel::PackageDependsStatusRole).toInt(); if (Pkg::CompatibleNotInstalled == existStat || Pkg::CompatibleIntalled == existStat) { qCDebug(appLog) << "In compatible mode, refusing to append new packages"; this->showNormal(); this->activateWindow(); return; } } 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 { qCDebug(appLog) << "Add packages to file list model"; // 下一指令第1个包大小较大时,解析操作会阻塞当前线程,导致界面设置的逻辑顺序出现混乱,优先处理界面交互,然后再执行加载 qApp->processEvents(); // 开始添加包,将要添加的包传递到后端,添加包由后端处理 m_fileListModel->slotAppendPackage(pkgRealPathList); } } void DebInstaller::slotDdimSelected(const QStringList &ddimFiles) { qCDebug(appLog) << "Ddim selected:" << ddimFiles; this->activateWindow(); if (ddimFiles.isEmpty()) { qCDebug(appLog) << "Ddim files is empty"; return; } QList ddimResults; bool jsonError = false; bool versionError = false; bool haveDeb = false; for (auto item : ddimFiles) { QString eachFile = item; QUrl url(item); if (url.isLocalFile()) { eachFile = url.toLocalFile(); } // 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()) { qCDebug(appLog) << "Ddim results is not empty, run appendDdimPackages"; QtConcurrent::run([this, ddimResults]() { m_ddimModel->appendDdimPackages(ddimResults); }); } else { qCDebug(appLog) << "Ddim results is empty"; if (SingleInstallerApplication::mode == SingleInstallerApplication::DdimChannel && haveDeb) { // 处于流程中的报错 slotShowDdimFloatingMessage(tr("Installing other packages... Please open it later.")); } else { // 初次进入时的报错,未定义二次进入时的报错提示 qCDebug(appLog) << "Ddim results is empty, show error message"; 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) { qCDebug(appLog) << "Get all deb file in dir:" << dir.path(); 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) { qCDebug(appLog) << "Analyze v10 ddim"; // 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()) { qCDebug(appLog) << "Select dir exists"; getAllDebFileInDir(selectDir, result.selectList); } if (dependDir.exists()) { qCDebug(appLog) << "Depend dir exists"; getAllDebFileInDir(dependDir, result.dependList); } if (mustInstallDir.exists()) { qCDebug(appLog) << "Must install dir 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()) { qCDebug(appLog) << "Result is available"; result.token = ddimDir; result.isAvailable = true; } // 2.返回数据 qCDebug(appLog) << "Return result"; return result; } QStringList DebInstaller::pathTransform(const QStringList &pkgList) { QStringList pkgRealPathList; std::transform(pkgList.cbegin(), pkgList.cend(), std::back_inserter(pkgRealPathList), [](const QString &path) { QFileInfo info(path); return info.canonicalFilePath(); }); return pkgRealPathList; } void DebInstaller::refreshMulti() { qCDebug(appLog) << "Refresh multi install page"; // 部分场景下,由于获取后端指针 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) { qCDebug(appLog) << "Receive append failed, reason:" << reason << ", type:" << type; switch (reason) { case Pkg::PackageInvalid: qCDebug(appLog) << "Show invalid package message"; slotShowInvalidePackageMessage(type); break; case Pkg::PackageNotDdim: qCDebug(appLog) << "Show ddim floating message"; slotShowDdimFloatingMessage(tr("Installing other packages... Please open it later.")); break; case Pkg::PackageNotLocal: qCDebug(appLog) << "Show not local package message"; slotShowNotLocalPackageMessage(type); break; case Pkg::PackageNotInstallable: qCDebug(appLog) << "Show not installable package message"; slotShowNotInstallablePackageMessage(); break; case Pkg::PackageAlreadyExists: qCDebug(appLog) << "Show package already exists message"; slotShowPkgExistMessage(); break; default: break; } } void DebInstaller::slotShowInvalidePackageMessage(Pkg::PackageType type) { qCDebug(appLog) << "Show invalid package message"; 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) { qCDebug(appLog) << "Show not local package message"; 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() { qCDebug(appLog) << "Show not installable package message"; 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() { qCDebug(appLog) << "Show package already exists message"; if (SingleInstallerApplication::mode == SingleInstallerApplication::DdimChannel && m_ddimView == nullptr) { // 如果选择界面未创建,则表示是第一次进入且只有必装包和依赖包 qCDebug(appLog) << "Show select install page"; slotShowSelectInstallPage({}); return; } qCDebug(appLog) << "Show package already exists message"; 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) { qCDebug(appLog) << "Show ddim error message:" << 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) { qCDebug(appLog) << "Show ddim floating message:" << message; DFloatingMessage *floatingMsg = new DFloatingMessage; floatingMsg->setMessage(message); floatingMsg->setIcon(QIcon::fromTheme("di_warning")); DMessageManager::instance()->sendMessage(this, floatingMsg); } void DebInstaller::slotShowUninstallConfirmPage() { qCDebug(appLog) << "Show uninstall confirm page"; 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()) { qCDebug(appLog) << "Set compatible info:" << rootfs; 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() { qCDebug(appLog) << "Uninstall accepted"; // uninstall begin SingleInstallPage *singlePage = backToSinglePage(); // 获取单包安装界面(卸载页面其实也是单包安装页面的一种) if (nullptr == singlePage) { qCDebug(appLog) << "Single page is nullptr"; return; } m_fileChooseWidget->setAcceptDrops(true); // 设置文件选择界面可以拖入包 singlePage->slotUninstallCurrentPackage(); // 显示正在卸载页面 // set close button disabled while uninstalling disableCloseAndExit(); // 卸载时不允许关闭或退出 m_Filterflag = static_cast(m_dragflag); } void DebInstaller::slotUninstallCancel() { qCDebug(appLog) << "Uninstall canceled"; // Cancel uninstall this->setAcceptDrops(true); // 取消卸载,允许包被拖入 m_fileListModel->setWorkerStatus(DebListModel::WorkerPrepare); // 重置工作状态为准备状态 backToSinglePage(); // 返回单包安装页面 m_Filterflag = static_cast(m_dragflag); } void DebInstaller::slotSetAuthingStatus(const bool authing) { qCDebug(appLog) << "Set authing status:" << authing; // The authorization box pops up, the setting button is not available setEnabled(!authing); // 授权框弹出时,按钮不可用 授权框被关闭后,按钮可用 } void DebInstaller::slotReset() { qCDebug(appLog) << "Reset"; // reset page status m_dragflag = -1; // 是否被允许拖入或添加 m_Filterflag = ChoosePage; // 当前显示的页面 titlebar()->setTitle(QString()); // 重置标题栏 m_fileListModel->reset(); // 重置model Q_EMIT packagesCleared(); enableCloseAndExit(); // 确保关闭按钮可用 // 删除所有的页面 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() { qCDebug(appLog) << "Append package start"; m_packageAppending = true; MultipleInstallPage *multiplePage = qobject_cast(m_lastPage); if (multiplePage) multiplePage->setEnableButton(false); } void DebInstaller::appendFinished() { qCDebug(appLog) << "Append package finished"; MultipleInstallPage *multiplePage = qobject_cast(m_lastPage); if (multiplePage) { multiplePage->setEnableButton(true); } m_packageAppending = false; } void DebInstaller::MulRefreshPage() { qCDebug(appLog) << "Refresh multi install page"; if (m_dragflag == 1) { qCDebug(appLog) << "Refresh multi install page"; MultipleInstallPage *multiplePage = qobject_cast(m_lastPage); // 获取批量安装类的指针 if (multiplePage) multiplePage->refreshModel(); } } void DebInstaller::single2Multi() { qCDebug(appLog) << "Refresh single install page"; // 刷新文件的状态,初始化包的状态为准备状态 m_fileListModel->resetInstallStatus(); if (!m_lastPage.isNull() && m_lastPage != m_fileChooseWidget) { qCDebug(appLog) << "Delete last page"; 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); qCDebug(appLog) << "Set current widget to multiple page"; } void DebInstaller::refreshSingle() { qCDebug(appLog) << "Refresh single install page"; // 刷新文件的状态,初始化包的状态为准备状态 m_fileListModel->resetInstallStatus(); // clear widgets if needed if (!m_lastPage.isNull() && m_lastPage != m_fileChooseWidget) { m_lastPage->deleteLater(); // 清除widgets缓存 } // 安装器中只有一个包,刷新单包安装页面 // 重置标题栏(依赖不满足的界面不显示兼容模式标题,只在 checkbox 确认界面才显示) titlebar()->setTitle(QString()); // 先创建 SingleInstallPage,在其构造函数中 initUI() 会立即调用 showCompatConfirmView() // 所以必须先连接信号,确保 showCompatConfirmView() 发出的 signalSetTitlebarText 能被捕获 SingleInstallPage *singlePage = new SingleInstallPage(m_fileListModel); singlePage->setObjectName("SingleInstallPage"); connect(singlePage, &SingleInstallPage::signalSetTitlebarText, this, [this](const QString &text) { titlebar()->setTitle(text); if (!text.isEmpty()) { for (QLabel *label : titlebar()->findChildren()) { if (label->text() == text) { QFont f = label->font(); f.setBold(true); label->setFont(f); break; } } } }); connect(singlePage, &SingleInstallPage::signalBacktoFileChooseWidget, this, &DebInstaller::slotReset); connect(singlePage, &SingleInstallPage::signalRequestUninstallConfirm, this, &DebInstaller::slotShowUninstallConfirmPage); m_lastPage = singlePage; m_centralLayout->addWidget(singlePage); // 兼容模式下禁止拖入追加包,避免从兼容模式单安装页面切换到批量安装页面 // Log: task-389473 屏蔽兼容模式下添加更多包的入口 const QModelIndex idx = m_fileListModel->index(0); const int compatStat = idx.data(DebListModel::PackageDependsStatusRole).toInt(); const bool compatMode = (compatStat == Pkg::CompatibleNotInstalled || compatStat == Pkg::CompatibleIntalled); // 重置安装器拖入的状态与工作的状态 if (SingleInstallerApplication::mode == SingleInstallerApplication::DdimChannel || compatMode) { qCDebug(appLog) << "Set drag flag to 0"; m_dragflag = 0; m_Filterflag = NonePage; } else { qCDebug(appLog) << "Set drag flag to 2"; m_dragflag = 2; m_Filterflag = SinglePage; } // switch to new page. // m_centralLayout->setCurrentIndex(1); m_centralLayout->setCurrentWidget(singlePage); qCDebug(appLog) << "Single install page set"; } SingleInstallPage *DebInstaller::backToSinglePage() { qCDebug(appLog) << "Back to single page"; // 获取当前的页面并删除 QWidget *confirmPage = m_centralLayout->widget(3); if (nullptr == confirmPage) { qCDebug(appLog) << "Confirm page is nullptr"; return nullptr; } m_centralLayout->removeWidget(confirmPage); confirmPage->deleteLater(); SingleInstallPage *singleInstallPage = qobject_cast(m_centralLayout->widget(2)); // 获取单包安装widget if (!singleInstallPage) { qCDebug(appLog) << "Single install page is nullptr"; return nullptr; } // 返回单包安装页面时,允许添加包 singleInstallPage->setAcceptDrops(true); m_fileChooseWidget->setAcceptDrops(true); this->setAcceptDrops(true); qCDebug(appLog) << "Back to single page"; return singleInstallPage; } void DebInstaller::slotChangeDragFlag() { qCDebug(appLog) << "Change drag flag"; repaint(); m_dragflag = 0; // 允许包被拖入且此时程序中没有包 enableCloseAndExit(); } void DebInstaller::slotSetEnableButton(bool bButtonEnabled) { qCDebug(appLog) << "Set enable button"; // 如果正在添加包,则启用按钮 if (m_packageAppending) { qCDebug(appLog) << "Package is appending, return"; return; } // Set button enabled after installation canceled if (2 == m_dragflag) { // 单包安装按钮的启用与禁用 SingleInstallPage *singlePage = qobject_cast(m_lastPage); if (singlePage) { qCDebug(appLog) << "Set single page enable button"; singlePage->setEnableButton(bButtonEnabled); } } else if (1 == m_dragflag) { // 批量安装按钮的启用与禁用 MultipleInstallPage *multiplePage = qobject_cast(m_lastPage); if (multiplePage) { qCDebug(appLog) << "Set multiple page enable button"; multiplePage->setEnableButton(bButtonEnabled); } } } void DebInstaller::slotShowHiddenButton() { qCDebug(appLog) << "Show hidden button"; enableCloseAndExit(); m_fileListModel->resetInstallStatus(); // 授权取消,重置所有的状态,包括安装状态,依赖状态等 SingleInstallPage *singlePage = qobject_cast(m_lastPage); if (singlePage) { // 单包安装显示按钮 qCDebug(appLog) << "Show single page hidden button"; singlePage->afterGetAutherFalse(); } else { qCDebug(appLog) << "Show multiple page hidden button"; MultipleInstallPage *multiplePage = qobject_cast(m_lastPage); if (multiplePage) { // 批量安装显示按钮 multiplePage->afterGetAutherFalse(); } } } void DebInstaller::closeEvent(QCloseEvent *event) { // qCDebug(appLog) << "Close event"; DTitlebar *tbar = this->titlebar(); if (tbar && tbar->quitMenuIsDisabled()) { qCDebug(appLog) << "Quit menu is disabled, ignore close event"; event->ignore(); return; } PackageAnalyzer::instance().setUiExit(); DMainWindow::closeEvent(event); } void DebInstaller::slotDealDependResult(int authDependsStatus, QString dependName) { qCDebug(appLog) << "Deal depend result, authDependsStatus:" << authDependsStatus << ", dependName:" << 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) { qCDebug(appLog) << "Set accept drops to false"; this->setAcceptDrops(false); } else { qCDebug(appLog) << "Set accept drops to true"; this->setAcceptDrops(true); } if (authDependsStatus == DebListModel::AuthDependsSuccess) { // 依赖下载成功 m_fileListModel->resetInstallStatus(); // 清除包的状态和包的错误原因 重置包的prepare状态 } if (authDependsStatus == DebListModel::AuthBefore) { // 授权框弹出时 qCDebug(appLog) << "Set enabled to false"; this->setEnabled(false); // 设置界面不可用 } else { // 授权成功或失败后 qCDebug(appLog) << "Set enabled to true"; this->setEnabled(true); // 根据授权的结果刷新单包或者批量安装界面 if (m_fileListModel->rowCount() == OnePackage) { // 刷新单包安装界面 SingleInstallPage *singlePage = qobject_cast(m_lastPage); if (singlePage) { qCDebug(appLog) << "Deal depend result to single page"; singlePage->DealDependResult(authDependsStatus, dependName); } } else if (m_fileListModel->rowCount() >= TwoPackages) { // 刷新批量安装界面 MultipleInstallPage *multiplePage = qobject_cast(m_lastPage); if (multiplePage) { qCDebug(appLog) << "Deal depend result to multiple page"; multiplePage->DealDependResult(authDependsStatus, dependName); multiplePage->refreshModel(); // 滚动到最后一行。 } } } } bool DebInstaller::checkSuffix(QString filePath) { qCDebug(appLog) << "Check suffix for:" << filePath; const QFileInfo info(filePath); if (info.isFile() && info.suffix().toLower() == "deb") { // 大小写不敏感的判断是否为deb后缀 qCDebug(appLog) << "File is deb"; return true; } qCDebug(appLog) << "File is not deb"; return false; } deepin-deb-installer-6.5.51/src/deb-installer/view/pages/debinstaller.h000066400000000000000000000251411524745214100260150ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2026 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); void packagesCleared(); 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(); void slotUpdateCacheFinished(); 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); /** * @brief pathTransform 将安装包路径转换为真实路径 * @param pathList 路径列表 * @return 转换后的路径列表 */ QStringList pathTransform(const QStringList &pkgList); 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.51/src/deb-installer/view/pages/multipleinstallpage.cpp000066400000000000000000000704731524745214100277670ustar00rootroot00000000000000// 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 "utils/ddlog.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)) { qCDebug(appLog) << "Initializing MultipleInstallPage..."; initControlAccessibleName(); // 自动化测试 initContentLayout(); // 初始化主布局 initUI(); // 初始化控件 initConnections(); // 初始化链接 initTabOrder(); // 初始化焦点切换顺序 // 添加后默认可以调用右键删除菜单。 m_appsListView->setRightMenuShowStatus(true); // 设置批量安装右键删除菜单可用 qCDebug(appLog) << "MultipleInstallPage initialized"; } void MultipleInstallPage::initControlAccessibleName() { qCDebug(appLog) << "Initializing control accessible names"; // 添加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"); qCDebug(appLog) << "Control accessible names initialized"; } void MultipleInstallPage::initContentLayout() { qCDebug(appLog) << "Initializing content layout"; // 子布局设置控件间的间距为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 qCDebug(appLog) << "Content layout initialized"; } void MultipleInstallPage::initPkgDependsInfoView() { qCDebug(appLog) << "Initializing package depends info view"; 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); qCDebug(appLog) << "Package depends info view initialized"; } void MultipleInstallPage::initUI() { qCDebug(appLog) << "Initializing UI"; 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); qCDebug(appLog) << "UI initialized"; } void MultipleInstallPage::initTabOrder() { qCDebug(appLog) << "Initializing tab order"; // 修改焦点切换的顺序 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); qCDebug(appLog) << "Tab order initialized"; } void MultipleInstallPage::setButtonFocusPolicy() { qCDebug(appLog) << "Setting button focus policy"; // 修改焦点控制 启用焦点设置为TabFouce auto focus = Qt::TabFocus; // 设置安装、返回、确认按钮的焦点策略 m_installButton->setFocusPolicy(focus); m_acceptButton->setFocusPolicy(focus); m_backButton->setFocusPolicy(focus); // 设置ControlButton的焦点策略 m_infoControlButton->controlButton()->setFocusPolicy(focus); qCDebug(appLog) << "Button focus policy set"; } void MultipleInstallPage::setButtonAutoDefault() { qCDebug(appLog) << "Setting button auto default"; // 增加键盘enter控制按钮 m_installButton->setAutoDefault(true); m_acceptButton->setAutoDefault(true); m_backButton->setAutoDefault(true); qCDebug(appLog) << "Button auto default set"; } void MultipleInstallPage::initConnections() { qCDebug(appLog) << "Initializing connections"; // 详细信息展开 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, [=] { qCDebug(appLog) << "Worker started, showing process frame"; m_processFrame->setVisible(true); }); // 一个包安装结束后 listView滚动到其在listview中的位置 connect( m_debListModel, &DebListModel::signalCurrentProcessPackageIndex, this, &MultipleInstallPage::slotAutoScrollInstallList); // 点击安装包列表时,向后端传递当前选中行 connect(m_appsListView, &PackagesListView::signalCurrentIndexRow, this, [this](int row) { qCDebug(appLog) << "Current index row changed:" << row; QModelIndex index = m_debListModel->index(row); QVariant data = m_debListModel->data(index, AbstractPackageListModel::PackageDependsDetailRole); auto depends = data.value(); slotDependPackages(depends, GlobalStatus::winePreDependsInstalling()); }); qCDebug(appLog) << "Connections initialized"; } void MultipleInstallPage::slotWorkerFinshed() { qCDebug(appLog) << "Installation finished"; // 安装结束显示返回和确认按钮 m_acceptButton->setVisible(true); m_backButton->setVisible(true); m_acceptButton->setFocus(); m_processFrame->setVisible(false); // 隐藏进度条 // 当前安装结束后,不允许调出右键菜单 m_appsListView->setRightMenuShowStatus(false); // 安装结束不允许删除包 qCDebug(appLog) << "UI updated after installation completion"; } void MultipleInstallPage::slotOutputAvailable(const QString &output) { qCDebug(appLog) << "Output available:" << output; m_installProcessInfoView->appendText(output.trimmed()); // 添加信息到窗口 // change to install if (!m_installButton->isVisible()) { qCDebug(appLog) << "Install button not visible, show info control button"; m_infoControlButton->setVisible(true); // 如果有信息添加说明此时正在安装,进度条要显示出来 } } void MultipleInstallPage::slotProgressChanged(const int progress) { qCDebug(appLog) << "Installation progress:" << progress << "%"; m_progressAnimation->setStartValue(m_installProgress->value()); // 设置动画开始的进度 m_progressAnimation->setEndValue(progress); // 设置进度条动画结束的进度 m_progressAnimation->start(); // 开始动画 // finished if (progress == 100) { qCDebug(appLog) << "Installation completed"; slotOutputAvailable(QString()); QTimer::singleShot(m_progressAnimation->duration(), this, &MultipleInstallPage::slotWorkerFinshed); // 当前安装完成 } } void MultipleInstallPage::slotAutoScrollInstallList(int opIndex) { qCDebug(appLog) << "Auto scrolling install list to index:" << 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) { qCDebug(appLog) << "Request to remove item at index:" << index.row(); if (!m_debListModel->isWorkerPrepare()) { qCWarning(appLog) << "Worker not ready, cannot remove item"; return; // 当前未处于准备阶段,不允许删除 } const int row = index.row(); // 要删除的包的下标转换 m_showDependsButton->setVisible(false); m_debListModel->removePackage(row); // 删除指定包 qCDebug(appLog) << "Item removed at index:" << row; } void MultipleInstallPage::slotShowInfo() { qCDebug(appLog) << "Showing installation info"; 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() { qCDebug(appLog) << "Hiding installation info"; 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() { qCDebug(appLog) << "Hiding cancel button"; // 安装开始后不允许调出右键菜单。 // 安装按钮点击后清除其焦点。解决授权框消失后标题栏菜单键被focus的问题 m_installButton->clearFocus(); m_appsListView->setRightMenuShowStatus(false); // 安装开始时,不允许调用右键菜单 m_backButton->setVisible(false); // 隐藏返回按钮 m_installButton->setVisible(false); // 隐藏安装按钮 m_showDependsButton->shrinkContent(); m_showDependsButton->setVisible(false); qCDebug(appLog) << "Cancel button hidden"; } void MultipleInstallPage::slotShowDependsInfo() { qCDebug(appLog) << "Showing depends info"; 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() { qCDebug(appLog) << "Hiding depends info"; 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) { qCDebug(appLog) << "Handling depend packages, installWineDepends:" << installWineDepends; if (m_debListModel->rowCount() <= 1) { qCDebug(appLog) << "Less than 2 packages, skipping depend packages handling"; return; } // 依赖关系满足或者正在下载wine依赖,则不显示依赖关系 m_showDependsView->clearText(); m_showDependsButton->setVisible(false); if (installWineDepends) { qCDebug(appLog) << "Install wine depends, skip depend packages handling"; return; } if (dependPackages.second.isEmpty()) { qCDebug(appLog) << "No depends, show remove packages"; // 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; } qCDebug(appLog) << "Show depends info"; m_showDependsButton->setVisible(true); if (dependPackages.first.size() > 0) { qCDebug(appLog) << "Show depends in the repository"; 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) { qCDebug(appLog) << "Show missing dependencies"; 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) { qCDebug(appLog) << "Set enable button to:" << bEnable; m_installButton->setEnabled(bEnable); // 设置按钮是否可用 m_installButton->setFocus(); if (bEnable) { // 按钮可用时刷新一次model 保证所有的包都能显示出来 m_appsListView->reset(); } } void MultipleInstallPage::afterGetAutherFalse() { qCDebug(appLog) << "After get auther false"; 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() { qCDebug(appLog) << "Refresh model"; m_appsListView->reset(); } void MultipleInstallPage::DealDependResult(int authStatus, QString dependName) { qCDebug(appLog) << "Deal depend result, authStatus:" << authStatus << ", dependName:" << dependName; switch (authStatus) { case DebListModel::AuthBefore: // 授权之前 qCDebug(appLog) << "Auth before"; 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: // 授权被取消 qCDebug(appLog) << "Cancel auth"; m_appsListView->setEnabled(true); // appListView可用 m_installButton->setVisible(true); // 安装按钮可见并可用 m_installButton->setEnabled(true); m_installButton->setFocus(); break; case DebListModel::AuthConfirm: // 确认授权 qCDebug(appLog) << "Auth confirm"; 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: // 依赖验签失败 qCDebug(appLog) << "AuthDependsSuccess or AuthDependsErr or AnalysisErr or 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.51/src/deb-installer/view/pages/multipleinstallpage.h000066400000000000000000000136071524745214100274300ustar00rootroot00000000000000// 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.51/src/deb-installer/view/pages/packageselectview.cpp000066400000000000000000000116221524745214100273650ustar00rootroot00000000000000// 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 "utils/ddlog.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"))) { qCDebug(appLog) << "Initializing PackageSelectView..."; this->setFocusPolicy(Qt::NoFocus); selectAllBox->setFocusPolicy(Qt::StrongFocus); installButton->setFocusPolicy(Qt::StrongFocus); installButton->setDefault(true); qCDebug(appLog) << "PackageSelectView initialized"; 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() { qCDebug(appLog) << "Install button clicked, collecting selected packages"; QList selectIndexes; for (int i = 0; i != items.size(); ++i) { if (items[i]->isEnabled() && items[i]->isChecked()) { qCDebug(appLog) << "Package selected at index:" << i; selectIndexes.push_back(i); } } qCDebug(appLog) << "Total packages selected:" << selectIndexes.size(); emit packageInstallConfim(selectIndexes); } void PackageSelectView::showEvent(QShowEvent *e) { qCDebug(appLog) << "PackageSelectView shown"; QWidget::showEvent(e); // 首次展示焦点在全选(默认安装是被禁用的) selectAllBox->setFocus(); } void PackageSelectView::selectAll(bool select) { qCDebug(appLog) << "Setting all selectable items to:" << select; for (auto &item : items) { if (item->isEnabled()) { item->setChecked(select); } } } void PackageSelectView::checkSelect() { qCDebug(appLog) << "Checking selection state"; 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); qCDebug(appLog) << "All checked:" << isAllChecked << "Have checked:" << haveChecked << "Install button enabled:" << installButton->isEnabled(); } void PackageSelectView::clearDebList() { qCDebug(appLog) << "Clearing package list"; packageListWidget->clear(); items.clear(); } void PackageSelectView::setHaveMustInstallDeb(bool have) { qCDebug(appLog) << "Setting haveMustInstallDeb to:" << have; haveMustInstallDeb = have; if (haveMustInstallDeb) { qCDebug(appLog) << "Have must install deb, enable install button"; installButton->setEnabled(true); } else { qCDebug(appLog) << "No must install deb, check select"; checkSelect(); } } void PackageSelectView::flushDebList(const QList &selectInfos) { qCDebug(appLog) << "Refreshing package list with" << selectInfos.size() << "items"; 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); qCDebug(appLog) << "Added package:" << eachInfo.filePath; } checkSelect(); qCDebug(appLog) << "Package list refresh completed"; } deepin-deb-installer-6.5.51/src/deb-installer/view/pages/packageselectview.h000066400000000000000000000017771524745214100270440ustar00rootroot00000000000000// 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.51/src/deb-installer/view/pages/setting_translation.cpp000066400000000000000000000006111524745214100277660ustar00rootroot00000000000000// 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.51/src/deb-installer/view/pages/settingdialog.cpp000066400000000000000000000142171524745214100265370ustar00rootroot00000000000000// 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 "utils/ddlog.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() { qCDebug(appLog) << "Constructing ProceedLabel"; setObjectName("OptionProceedLabel"); setAccessibleName("OptionProceedLabel"); setWordWrap(true); setContextMenuPolicy(Qt::NoContextMenu); setOpenExternalLinks(false); updateText(); // 点击链接跳转安全中 > 应用安全 QObject::connect( this, &DLabel::linkActivated, [](const QString &) { HierarchicalVerify::instance()->proceedDefenderSafetyPage(); }); qCDebug(appLog) << "ProceedLabel constructed"; } /** @reimp */ bool ProceedLabel::event(QEvent *e) { // qCDebug(appLog) << "ProceedLabel event:" << e->type(); switch (e->type()) { case QEvent::PaletteChange: qCDebug(appLog) << "Palette changed, updating text"; 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() { qCDebug(appLog) << "Updating ProceedLabel text"; 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); qCDebug(appLog) << "ProceedLabel text updated"; } SettingDialog::SettingDialog(QWidget *parent) : DSettingsDialog(parent) { qCDebug(appLog) << "Initializing SettingDialog..."; init(); qCDebug(appLog) << "SettingDialog initialized"; } SettingDialog::~SettingDialog() { qCDebug(appLog) << "Destructing SettingDialog"; delete m_setting; } void SettingDialog::init() { qCDebug(appLog) << "Initializing settings"; 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) { qCDebug(appLog) << "Creating config directory:" << confDir; 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(); qCDebug(appLog) << "Digital verify setting changed:" << m_isDigital; }); m_isDigital = m_setting->value("basic.develop_digital_verify.").toBool(); qCDebug(appLog) << "Initial digital verify setting:" << m_isDigital; // 分级管控不同状态下切换显示信息,初始化后绑定信号 switchHierarchicalNotify(HierarchicalVerify::instance()->isValid()); connect(HierarchicalVerify::instance(), &HierarchicalVerify::validChanged, this, &SettingDialog::switchHierarchicalNotify); qCDebug(appLog) << "Settings initialized"; } bool SettingDialog::isDigitalVerified() { const bool isVerified = m_setting->value("basic.develop_digital_verify.").toBool(); qCDebug(appLog) << "Checking if digital is verified:" << isVerified; return isVerified; } /** @brief 创建前往安全中心的跳转链接,弹出分级管控安全等级设置引导提示窗口 @return 创建的跳转提示控件 */ QWidget *SettingDialog::createProceedDefenderSafetyLabel(QObject *obj) { qCDebug(appLog) << "Creating proceed defender safety label"; Q_UNUSED(obj) ProceedLabel *label = new ProceedLabel; return label; } /** @brief 处理显示事件,此处用于展示前刷新分级管控接口状态 */ void SettingDialog::showEvent(QShowEvent *e) { qCDebug(appLog) << "SettingDialog shown"; // 刷新分级管控接口状态 (void)HierarchicalVerify::instance()->isValid(); DSettingsDialog::showEvent(e); } /** @brief 跟进 @a valid 当前是否处于分级管控状态切换显示界面 */ void SettingDialog::switchHierarchicalNotify(bool valid) { qCDebug(appLog) << "Switching hierarchical notify, valid:" << valid; setGroupVisible("basic.develop_digital_verify", !valid); setResetVisible(!valid); setGroupVisible("basic.hierarachical_verify", valid); } deepin-deb-installer-6.5.51/src/deb-installer/view/pages/settingdialog.h000066400000000000000000000014651524745214100262050ustar00rootroot00000000000000// 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.51/src/deb-installer/view/pages/singleinstallpage.cpp000066400000000000000000002103371524745214100274100ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "singleinstallpage.h" #include "singleInstallerApplication.h" #include "model/deblistmodel.h" #include "view/widgets/workerprogress.h" #include "utils/utils.h" #include "utils/deb_package.h" #include "compatible/compatible_backend.h" #include "model/packageanalyzer.h" #include "utils/ddlog.h" #include #include #include #include #include #include #include #include #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); } qCDebug(appLog) << "Initializing SingleInstallPage..."; initUI(); // 初始化界面 initControlAccessibleName(); // 自动化测试 qCDebug(appLog) << "SingleInstallPage initialized"; } void SingleInstallPage::initUI() { qCDebug(appLog) << "Initializing UI"; 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(); }); // 右键菜单"兼容模式安装"入口(--compatible 强制兼容): // - 兼容环境无同名包(CompatibleNotInstalled):直接进入 checkbox 二次确认视图,跳过第一视图 // - 兼容环境有同名包(CompatibleIntalled):保持第一视图,显示"卸载/重新安装"按钮(与双击打开一致) // 双击 deb 自动识别为兼容的不受 s_forceCompatible 影响,仍走原第一视图 // 注意:不能在构造函数中直接调用 showCompatConfirmView(),因为此时信号还未连接 // 使用 QTimer::singleShot 延迟到事件循环处理,确保 showCompatConfirmView() 发出的信号能被 DebInstaller 捕获 if (SingleInstallerApplication::s_forceCompatible && m_inCompatibleMode) { const int dependsStat = index.data(DebListModel::PackageDependsStatusRole).toInt(); if (Pkg::CompatibleIntalled != dependsStat) { // 兼容环境无同名包:直接进入 checkbox 二次确认视图(showCompatConfirmView 内部会发出 titlebar 信号) QTimer::singleShot(0, this, [this]() { showCompatConfirmView(); }); } else { // 兼容环境有同名包:保留第一视图供用户选择卸载/重新安装, // 但 titlebar 仍需显示"兼容模式安装"(与主环境同名包判断界面区分) // 注意:与 showCompatConfirmView() 同理,构造期信号尚未连接,必须延迟到事件循环发出 QTimer::singleShot(0, this, [this]() { Q_EMIT signalSetTitlebarText(tr("Compatible Mode Install")); }); } } qCDebug(appLog) << "UI initialized"; } void SingleInstallPage::initControlAccessibleName() { qCDebug(appLog) << "Initializing control accessible names"; // 获取的包名 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"); qCDebug(appLog) << "Control accessible names initialized"; } void SingleInstallPage::initContentLayout() { qCDebug(appLog) << "Initializing content layout"; 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 qCDebug(appLog) << "Content layout initialized"; } void SingleInstallPage::initInstallWineLoadingLayout() { qCDebug(appLog) << "Initializing install wine loading layout"; 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); // 添加到主布局中 qCDebug(appLog) << "Install wine loading layout initialized"; } void SingleInstallPage::initPkgInfoView(int fontinfosize) { qCDebug(appLog) << "Initializing package info view with font size:" << fontinfosize; // 根据系统字体的大小设置显示字体的大小 int fontinfosizetemp = 0; int fontinfosizetemp_version = 0; if (fontinfosize > 18) { // 字体大于18说明是大字体,使用较大的字体显示 fontinfosizetemp = 23; fontinfosizetemp_version = 25; } else { fontinfosizetemp = 20; // 使用小字体显示 fontinfosizetemp_version = 20; } qCDebug(appLog) << "Using font size:" << fontinfosizetemp << "and version font size:" << fontinfosizetemp_version; 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 itemInfoWidget->setMinimumHeight(64); // 确保图标不被裁切 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); qCDebug(appLog) << "Package info view initialized"; } void SingleInstallPage::initTabOrder() { qCDebug(appLog) << "Initializing tab order"; // 调整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); // 重新安装场景 qCDebug(appLog) << "Tab order initialized"; } void SingleInstallPage::initButtonFocusPolicy() { qCDebug(appLog) << "Initializing button focus policy"; 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); qCDebug(appLog) << "Button focus policy initialized"; } void SingleInstallPage::initButtonAutoDefault() { qCDebug(appLog) << "Initializing button auto default"; m_installButton->setAutoDefault(true); m_uninstallButton->setAutoDefault(true); m_reinstallButton->setAutoDefault(true); m_confirmButton->setAutoDefault(true); m_backButton->setAutoDefault(true); m_doneButton->setAutoDefault(true); qCDebug(appLog) << "Button auto default initialized"; } void SingleInstallPage::initPkgInstallProcessView(int fontinfosize) { qCDebug(appLog) << "Initializing package install process view with font size:" << fontinfosize; int fontinfosizetemp = 0; // 根据当前字体的大小设置按钮的字体大小 if (fontinfosize > 16) { fontinfosizetemp = 21; } else { fontinfosizetemp = 18; } qCDebug(appLog) << "Using font size:" << fontinfosizetemp; // 添加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); // 允许内容自动换行 qCDebug(appLog) << "Package install process view initialized"; // 设置各个按钮的大小 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); // 安装 卸载 重新安装 返回 完成 确认按钮的布局 m_btnsLayout = new QHBoxLayout(); m_btnsLayout->addStretch(); m_btnsLayout->addWidget(m_installButton, 0, Qt::AlignBottom); m_btnsLayout->addWidget(m_uninstallButton, 0, Qt::AlignBottom); m_btnsLayout->addWidget(m_reinstallButton, 0, Qt::AlignBottom); m_btnsLayout->addWidget(m_backButton, 0, Qt::AlignBottom); m_btnsLayout->addWidget(m_confirmButton, 0, Qt::AlignBottom); m_btnsLayout->addWidget(m_doneButton, 0, Qt::AlignBottom); m_btnsLayout->addStretch(); m_btnsLayout->setSpacing(20); #ifdef DTKWIDGET_CLASS_DSizeMode // adapt compact mode auto setBtnSizeMode = [this]() { if (DGuiApplicationHelper::instance()->isCompactMode()) { m_btnsLayout->setContentsMargins(0, 0, 0, 4); } else { m_btnsLayout->setContentsMargins(0, 0, 0, 0); } }; setBtnSizeMode(); // setBtnSizeMode moved connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::sizeModeChanged, this, setBtnSizeMode); #else m_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(m_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); // compatibility mode hint label (between tips and buttons) m_compatHintLabel = new DLabel(this); m_compatHintLabel->setObjectName("CompatibleHintLabel"); m_compatHintLabel->setWordWrap(true); m_compatHintLabel->setTextFormat(Qt::RichText); m_compatHintLabel->setAlignment(Qt::AlignCenter); m_compatHintText = tr("If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode."); m_compatToolTip = tr("UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well."); updateCompatHintIcon(); connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, &SingleInstallPage::updateCompatHintIcon); m_compatHintLabel->setMouseTracking(true); m_compatHintLabel->installEventFilter(this); m_compatHintLabel->setVisible(false); Utils::bindFontBySizeAndWeight(m_compatHintLabel, Utils::loadFontFamilyByType(Utils::SourceHanSansNormal), 8, QFont::DemiBold); m_contentLayout->addWidget(m_compatHintLabel); // compatibility mode confirmation: checkbox and description m_compatCheckBox = new DCheckBox(this); m_compatCheckBox->setObjectName("CompatibleCheckBox"); m_compatCheckBox->setText(tr("Confirm to install in compatibility mode")); m_compatCheckBox->setVisible(false); Utils::bindFontBySizeAndWeight(m_compatCheckBox, Utils::loadFontFamilyByType(Utils::SourceHanSansNormal), 8, QFont::DemiBold); m_compatCheckBox->setContentsMargins(3, 0, 3, 0); m_contentLayout->addWidget(m_compatCheckBox); m_compatDescLabel = new DLabel(this); m_compatDescLabel->setObjectName("CompatibleDescLabel"); m_compatDescLabel->setWordWrap(true); m_compatDescLabel->setAlignment(Qt::AlignLeft | Qt::AlignVCenter); m_compatDescLabel->setContentsMargins(3, 0, 0, 0); m_compatDescLabel->setText(tr("UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well.")); m_compatDescLabel->setVisible(false); Utils::bindFontBySizeAndWeight(m_compatDescLabel, normalFontFamily, 12, QFont::ExtraLight); m_contentLayout->addWidget(m_compatDescLabel); 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() { qCDebug(appLog) << "Initializing package depends info view"; 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() { qCDebug(appLog) << "Initializing connections"; // 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 in compat confirm view (checkbox visible), proceed with install/reinstall if (m_inCompatibleMode && m_compatCheckBox->isVisible()) { qCDebug(appLog) << "Confirmed compatible install, proceeding to install"; m_packagesModel->setData(index, kDefaultRootfs, AbstractPackageListModel::CompatibleTargetRootfsRole); if (Pkg::CompatibleIntalled == dependsStat) { slotReinstall(); } else { slotInstall(); } return; } // first click on CompatibleIntalled -> show confirmation for reinstall if (m_inCompatibleMode && Finished != m_operate && Pkg::CompatibleIntalled == dependsStat) { qCDebug(appLog) << "Switching to compatible reinstall confirmation view"; showCompatConfirmView(); return; } // first click on Compatible Install -> show confirmation if (m_inCompatibleMode && Finished != m_operate && Pkg::CompatibleNotInstalled == dependsStat) { qCDebug(appLog) << "Switching to compatible install confirmation view"; showCompatConfirmView(); return; } qCDebug(appLog) << "Quitting application"; qApp->quit(); }); // compatibility mode: checkbox controls install button enabled state connect(m_compatCheckBox, &DCheckBox::stateChanged, this, [this]() { m_confirmButton->setEnabled(m_compatCheckBox->isChecked()); }); 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) { qCDebug(appLog) << "Initializing label width"; 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; qCDebug(appLog) << "SingleInstallPage setup completed"; } void SingleInstallPage::slotReinstall() { qCDebug(appLog) << "Slot reinstall"; // 重装按钮点击后清除焦点 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) { qCDebug(appLog) << "Compatible mode reinstall"; m_compatCheckBox->setVisible(false); m_compatDescLabel->setVisible(false); m_tipsLabel->setTextAndTips( tr("Installing in compatibility mode %1").arg(m_pkgNameDescription)); m_tipsLabel->setCustomDPalette(DPalette::TextLively); m_tipsLabel->setVisible(true); // Ensure targetRootfs is set when slotReinstall is called directly // (e.g. after auth cancel via afterGetAutherFalse), bypassing the // compat confirm flow where setData(targetRootfs) normally happens. auto idx = m_packagesModel->index(0); if (idx.data(DebListModel::CompatibleTargetRootfsRole).toString().isEmpty()) { m_packagesModel->setData(idx, kDefaultRootfs, AbstractPackageListModel::CompatibleTargetRootfsRole); } } // 重置包的工作状态 m_operate = Reinstall; // 开始安装 if (!m_packagesModel->slotInstallPackages()) { Q_EMIT signalBacktoFileChooseWidget(); return; } } void SingleInstallPage::slotInstall() { qCDebug(appLog) << "Slot install"; // 安装按钮点击后清除焦点 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) { qCDebug(appLog) << "Compatible mode install"; m_compatCheckBox->setVisible(false); m_compatDescLabel->setVisible(false); m_tipsLabel->setTextAndTips( tr("Installing in compatibility mode %1").arg(m_pkgNameDescription)); m_tipsLabel->setCustomDPalette(DPalette::TextLively); m_tipsLabel->setVisible(true); } // 重置工作状态 m_operate = Install; // 开始安装 if (!m_packagesModel->slotInstallPackages()) { // Package file no longer exists, go back to the initial file choose page. Q_EMIT signalBacktoFileChooseWidget(); return; } } void SingleInstallPage::slotUninstallCurrentPackage() { qCDebug(appLog) << "Slot uninstall"; // 卸载按钮点击后清除焦点 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) { qCDebug(appLog) << "Compatible mode uninstall"; m_compatCheckBox->setVisible(false); m_compatDescLabel->setVisible(false); m_tipsLabel->setTextAndTips( tr("Uninstalling %1 from compatibility mode").arg(m_pkgNameDescription)); m_tipsLabel->setCustomDPalette(DPalette::TextLively); m_tipsLabel->setVisible(true); } // 重置工作状态 m_operate = Uninstall; // 开始卸载 m_packagesModel->slotUninstallPackage(0); } void SingleInstallPage::slotShowInfomation() { qCDebug(appLog) << "Slot show information"; m_upDown = false; m_installProcessView->setVisible(true); m_itemInfoFrame->setVisible(false); m_infoControlButton->setContentsMargins(0, 0, 0, 4); } void SingleInstallPage::slotHideInfomation() { qCDebug(appLog) << "Slot hide information"; m_upDown = true; m_installProcessView->setVisible(false); m_itemInfoFrame->setVisible(true); m_infoControlButton->setContentsMargins(0, 0, 0, 0); } void SingleInstallPage::slotShowDependsInfo() { qCDebug(appLog) << "Slot show depends info"; m_showDependsView->setVisible(true); m_itemInfoFrame->setVisible(false); m_showDependsButton->setContentsMargins(0, 0, 0, 4); } void SingleInstallPage::slotHideDependsInfo() { qCDebug(appLog) << "Slot hide depends info"; m_showDependsView->setVisible(false); m_itemInfoFrame->setVisible(true); m_showDependsButton->setContentsMargins(0, 0, 0, 0); } void SingleInstallPage::slotShowInfo() { qCDebug(appLog) << "Slot show info"; // 显示进度信息 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) { qCDebug(appLog) << "Slot output available"; // 信息展示窗口添加进程数据 m_installProcessView->appendText(output.trimmed()); // 如果infoControlButton 未显示,则显示 if (!m_infoControlButton->isVisible()) m_infoControlButton->setVisible(true); // 切换状态为已经开始安装 if (!m_workerStarted) { m_workerStarted = true; slotShowInfo(); } } void SingleInstallPage::slotWorkerFinished() { qCDebug(appLog) << "Slot worker finished"; // 显示infoControlButton m_infoControlButton->setVisible(true); // 显示安装结果提示信息 m_tipsLabel->setVisible(true); // 隐藏进度条 m_progressFrame->setVisible(false); m_progress->setValue(0); // 显示需要显示的按钮 m_btnsFrame->setVisible(true); m_installButton->setVisible(false); m_uninstallButton->setVisible(false); m_reinstallButton->setVisible(false); m_backButton->setVisible(true); if (m_inCompatibleMode) { qCDebug(appLog) << "Setting compatible mode visible to false"; m_confirmButton->setVisible(false); m_compatHintLabel->setVisible(false); m_tipsLabel->setContentsMargins(0, 0, 0, 0); m_btnsLayout->setSpacing(20); } // 获取当前包的安装结果 QModelIndex index = m_packagesModel->index(0); const int stat = index.data(DebListModel::PackageOperateStatusRole).toInt(); if (stat == Pkg::PackageOperationStatus::Success) { // 操作成功 qCDebug(appLog) << "Operation success"; m_doneButton->setVisible(true); m_doneButton->setText(tr("Done", "button")); 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_backButton->setVisible(false); m_btnsLayout->setAlignment(m_doneButton, Qt::AlignCenter); m_tipsLabel->setTextAndTips(tr("%1 was successfully installed to compatibility mode") .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_backButton->setVisible(false); m_btnsLayout->setAlignment(m_doneButton, Qt::AlignCenter); } m_tipsLabel->setTextAndTips(tr("Uninstalled successfully")); m_tipsLabel->setCustomDPalette(DPalette::TextWarning); } } else if (stat == Pkg::PackageOperationStatus::Failed) { // 安装/卸载失败 qCDebug(appLog) << "Operation failed"; if (m_inCompatibleMode) { m_confirmButton->setVisible(false); m_compatHintLabel->setVisible(false); m_tipsLabel->setContentsMargins(0, 0, 0, 0); m_btnsLayout->setSpacing(20); } else { 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")); // 卸载只显示卸载失败 } // 数字签名校验失败时,只显示确认按钮(关闭窗口),不显示返回按钮 const int failCode = index.data(DebListModel::PackageFailCodeRole).toInt(); if (failCode == Pkg::NoDigitalSignature || failCode == Pkg::DigitalSignatureError) { m_backButton->setVisible(false); m_infoControlButton->setVisible(false); if (m_inCompatibleMode) { // In compatible mode, the confirmButton was hidden earlier; show it for // signature errors so the user can close the window. Also hide the // doneButton which shows "Cancel" from the compat confirm view. m_confirmButton->setVisible(true); m_confirmButton->setText(tr("OK", "button")); m_confirmButton->setFocus(); m_doneButton->setVisible(false); // Override tips text: PackageFailReasonRole returns the compat-depends // hint ("try compatibility mode") which is wrong for signature errors. m_tipsLabel->setTextAndTips(tr("Invalid digital signature")); } } } else { // 正常情况不会进入此分支,如果进入此分支表明状态错误。 qCDebug(appLog) << "Operate status error"; 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) { qCDebug(appLog) << "Slot worker progress changed"; if (progress < m_progress->value()) { // 进度不后退 qCDebug(appLog) << "Progress not decrease"; return; } m_progress->setValue(progress); // 进度增加 } void SingleInstallPage::slotDependPackages(Pkg::DependsPair dependPackages, bool installWineDepends) { qCDebug(appLog) << "Slot depend packages"; // 依赖关系满足或者正在下载wine依赖,则不显示依赖关系 m_showDependsView->clearText(); m_showRemovePackages = false; // if compatible valid, disable extend info if (installWineDepends || m_inCompatibleMode) { qCDebug(appLog) << "Install wine depends or in compatible mode, skip depend packages"; return; } if (dependPackages.second.isEmpty()) { qCDebug(appLog) << "Depends ok or available, show package that will be remove after install"; // 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) { qCDebug(appLog) << "Dependencies in the repository"; 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) { qCDebug(appLog) << "Missing dependencies"; 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() { qCDebug(appLog) << "Slot refresh single package depends"; if (1 == m_packagesModel->rowCount()) { qCDebug(appLog) << "Refresh single package depends"; 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() { qCDebug(appLog) << "Show package info"; 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()) { // Skip UI reset if the package already has a terminal operate status (Failed/Success). // This prevents dataChanged signals arriving during digitalVerifyFailed() from // resetting the UI before slotWorkerFinished() has a chance to display the result. const int operateStat = index.data(DebListModel::PackageOperateStatusRole).toInt(); if (operateStat == Pkg::PackageOperationStatus::Failed || operateStat == Pkg::PackageOperationStatus::Success) { qCDebug(appLog) << "Package operate status is terminal:" << operateStat << ", skipping UI reset"; return; } qCDebug(appLog) << "Show package info"; 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) { // 添加架构不匹配的处理 qCDebug(appLog) << "Depends error and depend auth status not confirm"; 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: qCDebug(appLog) << "Compatible not installed, show install and cancel buttons"; m_tipsLabel->setContentsMargins(0, 0, 0, 5); m_compatHintLabel->setVisible(true); m_btnsLayout->setSpacing(10); m_confirmButton->setText(tr("Compatible Install")); m_confirmButton->setVisible(true); m_doneButton->setText(tr("Cancel", "button")); m_doneButton->setVisible(true); break; case Pkg::CompatibleIntalled: qCDebug(appLog) << "Compatible installed, show uninstall and reinstall buttons"; m_uninstallButton->setVisible(true); m_confirmButton->setText(tr("Reinstall")); break; default: break; } } else { qCDebug(appLog) << "Not compatible mode, show back button"; m_backButton->setVisible(true); } if (resetButtonFocus) { qCDebug(appLog) << "Reset button focus"; resetButtonFocus = false; m_confirmButton->setFocus(); } return; } // 根据安装状态调整显示效果 const bool installed = installStat != Pkg::PackageInstallStatus::NotInstalled; if (dependAuthStatu == DebListModel::AuthConfirm) { // 安装wine依赖时,所有的按钮都不显示 qCDebug(appLog) << "Install wine depends, hide all buttons"; m_installButton->setVisible(false); m_uninstallButton->setVisible(false); m_reinstallButton->setVisible(false); m_infoControlButton->setVisible(false); } else { // 安装wine前或者安装完成后,根据安装状态显示对应的按钮 qCDebug(appLog) << "Install wine not depends, show buttons according to install status"; m_installButton->setVisible(!installed); m_uninstallButton->setVisible(installed); m_reinstallButton->setVisible(installed); if (resetButtonFocus) { qCDebug(appLog) << "Reset button focus"; resetButtonFocus = false; if (installed) { m_reinstallButton->setFocus(); } else { m_installButton->setFocus(); } } } m_confirmButton->setVisible(false); m_doneButton->setVisible(false); // 根据安装状态设置提示文字 if (installed) { // Ensure tips label is visible when showing status message // (it may have been hidden during uninstall operation) m_tipsLabel->setVisible(true); if (installStat == Pkg::PackageInstallStatus::InstalledSameVersion) { qCDebug(appLog) << "Same version installed"; m_tipsLabel->setCustomDPalette(DPalette::TextWarning); m_tipsLabel->setTextAndTips(tr("Same version installed")); m_reinstallButton->setText(tr("Reinstall")); } else if (installStat == Pkg::PackageInstallStatus::InstalledLaterVersion) { qCDebug(appLog) << "Later version installed"; 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 { qCDebug(appLog) << "Earlier version installed"; 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::showCompatConfirmView() { qCDebug(appLog) << "Showing compatible install confirmation view"; // hide error tips and hint m_tipsLabel->setVisible(false); m_compatHintLabel->setVisible(false); m_uninstallButton->setVisible(false); // show checkbox and description m_compatCheckBox->setChecked(false); m_compatCheckBox->setVisible(true); m_compatDescLabel->setVisible(true); // hide Cancel/Done, show install button (disabled until checkbox checked) m_doneButton->setVisible(false); m_confirmButton->setText(tr("Install", "button")); m_confirmButton->setEnabled(false); m_confirmButton->setVisible(true); m_confirmButton->setFocus(); m_btnsLayout->setSpacing(20); // 通知父窗口设置 titlebar 为兼容模式安装 const QString compatTitle = tr("Compatible Mode Install"); Q_EMIT signalSetTitlebarText(compatTitle); } void SingleInstallPage::setEnableButton(bool bEnable) { qCDebug(appLog) << "Set enable button"; // 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() { qCDebug(appLog) << "After get auther false"; // 取消授权/授权失败后,界面重绘,复位焦点 resetButtonFocus = true; // 等待dpkg启动但是授权取消后,如果详细信息是expend状态,则shrink m_infoControlButton->shrink(); m_infoControlButton->setVisible(false); m_progressFrame->setVisible(false); m_btnsFrame->setVisible(true); // Call showPackageInfo() to properly restore UI state including: // - Tips label text (fixes issue #1: prompt text not restored) // - Button visibility state (fixes issue #2: duplicate reinstall buttons) // This ensures consistent state management instead of manually managing buttons here. showPackageInfo(); if (m_showRemovePackages) { qCDebug(appLog) << "Show remove packages, show depends button"; m_showDependsButton->setVisible(true); } } void SingleInstallPage::showEvent(QShowEvent *e) { qCDebug(appLog) << "Show event"; // 兼容模式确认视图下不重置UI,避免最小化还原后界面状态被覆盖 if (!(m_inCompatibleMode && m_compatCheckBox->isVisible())) { showPackageInfo(); // 每次切换展示当前页面,复位焦点状态 resetButtonFocus = true; } QWidget::showEvent(e); } void SingleInstallPage::paintEvent(QPaintEvent *event) { // qCDebug(appLog) << "Paint event"; QWidget::paintEvent(event); DPalette palette = DPaletteHelper::instance()->palette(m_packageDescription); palette.setBrush(DPalette::WindowText, palette.color(DPalette::TextTips)); m_packageDescription->setPalette(palette); m_compatDescLabel->setPalette(palette); } void SingleInstallPage::setAuthConfirm(QString dependName) { qCDebug(appLog) << "Set auth confirm"; // 调整按钮的显示效果 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() { qCDebug(appLog) << "Set auth before"; // 显示包信息提示 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() { qCDebug(appLog) << "Set cancel auth or auth depends err"; 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)) { qCDebug(appLog) << "Depends error, show confirm and back buttons"; // 依赖不满足或依赖授权取消 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 { qCDebug(appLog) << "Depends ok, show install button"; // 依赖安装成功 m_tipsLabel->clear(); // 依赖安装成功后,去除依赖错误的提示信息。 m_confirmButton->setVisible(false); m_backButton->setVisible(false); const int installStat = index.data(DebListModel::PackageVersionStatusRole).toInt(); if (installStat == Pkg::PackageInstallStatus::NotInstalled) { // 没有安装过其他版本 qCDebug(appLog) << "Not installed, show install button"; m_installButton->setVisible(true); m_installButton->setEnabled(true); m_tipsLabel->setVisible(false); m_installButton->setFocus(); } else { // 已经安装过其他版本 qCDebug(appLog) << "Installed, show reinstall and uninstall buttons"; // 增加提示 依赖安装完成后的提示 if (installStat == Pkg::PackageInstallStatus::InstalledSameVersion) { qCDebug(appLog) << "Same version installed, show reinstall button"; m_tipsLabel->setCustomDPalette(DPalette::TextWarning); m_tipsLabel->setTextAndTips(tr("Same version installed")); m_reinstallButton->setText(tr("Reinstall")); } else if (installStat == Pkg::PackageInstallStatus::InstalledLaterVersion) { qCDebug(appLog) << "Later version installed, show downgrade button"; 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 { qCDebug(appLog) << "Earlier version installed, show update button"; 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 { qCDebug(appLog) << "Depends error check"; return status != Pkg::DependsOk && status != Pkg::DependsAvailable; } void SingleInstallPage::updateCompatHintIcon() { const auto theme = DGuiApplicationHelper::instance()->themeType(); Dtk::Gui::DDciIcon tipsIcon(QString(":/icons/deepin/uab/tips.dci")); const auto iconTheme = (theme == DGuiApplicationHelper::DarkType) ? Dtk::Gui::DDciIcon::Dark : Dtk::Gui::DDciIcon::Light; DDciIconPalette dciPalette = DDciIconPalette::fromQPalette(DPaletteHelper::instance()->palette(m_compatHintLabel)); QPixmap px = tipsIcon.pixmap(qApp->devicePixelRatio(), 16, iconTheme, DDciIcon::Normal, dciPalette); QByteArray iconData; QBuffer iconBuf(&iconData); iconBuf.open(QIODevice::WriteOnly); px.save(&iconBuf, "PNG"); m_compatHintLabel->setText(m_compatHintText + QString(" ") .arg(QString(iconData.toBase64()))); } void SingleInstallPage::DealDependResult(int authStatus, QString dependName) { qCDebug(appLog) << "Deal depend result"; dependAuthStatu = authStatus; switch (authStatus) { case DebListModel::AuthConfirm: // 授权成功 qCDebug(appLog) << "Auth confirm"; setAuthConfirm(dependName); break; case DebListModel::AuthBefore: // 授权之前 qCDebug(appLog) << "Auth before"; setAuthBefore(); break; case DebListModel::AnalysisErr: // 解析错误 qCDebug(appLog) << "Analysis error"; setCancelAuthOrAuthDependsErr(); break; case DebListModel::AuthDependsSuccess: // 下载成功 qCDebug(appLog) << "Auth depends success"; setCancelAuthOrAuthDependsErr(); break; case DebListModel::CancelAuth: // 授权取消和授权失败的提示语公用,修复授权取消后无提示的问题 case DebListModel::AuthDependsErr: qCDebug(appLog) << "Auth depends err"; setCancelAuthOrAuthDependsErr(); m_tipsLabel->setTextAndTips(tr("Failed to install %1").arg(dependName)); m_tipsLabel->setCustomDPalette(DPalette::TextWarning); break; case DebListModel::VerifyDependsErr: qCDebug(appLog) << "Verify depends err"; setCancelAuthOrAuthDependsErr(); m_tipsLabel->setTextAndTips(dependName + tr("Invalid digital signature")); m_tipsLabel->setCustomDPalette(DPalette::TextWarning); break; default: break; } } bool SingleInstallPage::eventFilter(QObject *watched, QEvent *event) { if (watched == m_compatHintLabel) { if (event->type() == QEvent::MouseMove) { auto *me = static_cast(event); QTextDocument doc; doc.setHtml(m_compatHintLabel->text()); doc.setDefaultFont(m_compatHintLabel->font()); QRect cr = m_compatHintLabel->contentsRect(); doc.setTextWidth(cr.width()); QPointF relPos(me->pos().x() - cr.x(), me->pos().y() - cr.y()); int pos = doc.documentLayout()->hitTest(relPos, Qt::FuzzyHit); bool isOverImage = false; if (pos != -1) { QTextCursor cursor(&doc); for (int offset = 0; offset <= 2; ++offset) { int checkPos = pos + offset; if (checkPos < doc.characterCount()) { cursor.setPosition(checkPos); if (cursor.charFormat().isImageFormat()) { isOverImage = true; break; } } } } if (isOverImage) { QString tooltipHtml = QString("

%1
").arg(m_compatToolTip.toHtmlEscaped()); QToolTip::showText(me->globalPos(), tooltipHtml, m_compatHintLabel); } else { QToolTip::hideText(); } return true; } else if (event->type() == QEvent::Leave) { QToolTip::hideText(); } } return QWidget::eventFilter(watched, event); } deepin-deb-installer-6.5.51/src/deb-installer/view/pages/singleinstallpage.h000066400000000000000000000227211524745214100270530ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2026 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: void showEvent(QShowEvent *e) override; void paintEvent(QPaintEvent *event) override; bool eventFilter(QObject *watched, QEvent *event) override; signals: /** * @brief back 返回fileChooseWidget界面 */ void signalBacktoFileChooseWidget() const; /** * @brief requestUninstallConfirm 卸载按钮信号,显示卸载页面 */ void signalRequestUninstallConfirm() const; /** * @brief signalSetTitlebarText 设置 titlebar 标题文本 * @param text 标题文本,为空时清除标题 */ void signalSetTitlebarText(const QString &text) 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(); /** * @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(); void showCompatConfirmView(); bool dependsError(int status) const; /** * @brief updateCompatHintIcon 根据当前主题重新渲染 tips.dci 图标并更新提示标签 */ void updateCompatHintIcon(); 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; // 主布局 QHBoxLayout *m_btnsLayout = 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) static constexpr const char *kDefaultRootfs = "uos-rootfs-20"; static constexpr const char *kDefaultRootfsOsName = "UOS 20"; DLabel *m_compatHintLabel = nullptr; QString m_compatHintText; QString m_compatToolTip; DCheckBox *m_compatCheckBox = nullptr; DLabel *m_compatDescLabel = nullptr; }; #endif // SINGLEINSTALLPAGE_H deepin-deb-installer-6.5.51/src/deb-installer/view/pages/uninstallconfirmpage.cpp000066400000000000000000000175711524745214100301340ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "uninstallconfirmpage.h" #include "utils/utils.h" #include "utils/ddlog.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)) { qCDebug(appLog) << "Initializing UninstallConfirmPage..."; 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) { qCDebug(appLog) << "Setting package for uninstall confirmation:" << 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) { qCDebug(appLog) << "Setting required packages list, count:" << requiredList.size(); // 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()) { qCDebug(appLog) << "Showing dependency warning for package uninstall"; m_infoControl->setVisible(true); } else { qCDebug(appLog) << "No dependencies found for package uninstall"; m_infoControl->setVisible(false); } m_dependsInfomation->setTextColor(DPalette::TextTitle); m_dependsInfomation->appendText(requiredList.join(", ")); } void UninstallConfirmPage::setPackageType(Pkg::PackageType type) { // qCDebug(appLog) << "Setting package type to:" << type; const QIcon icon = Utils::packageIcon(type); m_icon->setPixmap(icon.pixmap(m_icon->size())); } void UninstallConfirmPage::setCompatibleInfo(const QString &rootfs) { qCDebug(appLog) << "Setting compatible info for rootfs:" << rootfs; m_rootfs = rootfs; if (rootfs.isEmpty()) { qCDebug(appLog) << "Rootfs is empty, nothing to do"; 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())); QString tips = tr("Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed").arg(m_packageName); const QSize boundingSize = QSize(m_tips->width(), 340); m_tips->setText(Utils::holdTextInRect(m_tips->font(), tips, boundingSize)); qCDebug(appLog) << "Compatible info set"; } void UninstallConfirmPage::showEvent(QShowEvent *e) { qCDebug(appLog) << "UninstallConfirmPage shown"; // 每次展示时设置默认焦点 m_confirmBtn->setFocus(); QWidget::showEvent(e); } void UninstallConfirmPage::slotShowDetail() { qCDebug(appLog) << "Showing package dependency details"; // Show dependency information m_infoWrapperWidget->setVisible(false); m_dependsInfomation->setVisible(true); } void UninstallConfirmPage::slotHideDetail() { qCDebug(appLog) << "Hiding package dependency details"; // Hide dependency information m_infoWrapperWidget->setVisible(true); m_dependsInfomation->setVisible(false); } deepin-deb-installer-6.5.51/src/deb-installer/view/pages/uninstallconfirmpage.h000066400000000000000000000036401524745214100275710ustar00rootroot00000000000000// 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.51/src/deb-installer/view/widgets/000077500000000000000000000000001524745214100235405ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/deb-installer/view/widgets/InfoCommandLinkButton.cpp000066400000000000000000000022601524745214100304500ustar00rootroot00000000000000// 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 "utils/ddlog.h" #include InfoCommandLinkButton::InfoCommandLinkButton(QString text, QWidget *parent) : DCommandLinkButton(text, parent) { qCDebug(appLog) << "Initializing InfoCommandLinkButton with text:" << text; QString fontFamily = Utils::loadFontFamilyByType(Utils::SourceHanSansNormal); Utils::bindFontBySizeAndWeight(this, fontFamily, 12, QFont::ExtraLight); // 设置字体大小 this->setFocusPolicy(Qt::TabFocus); // 获取焦点 qCDebug(appLog) << "InfoCommandLinkButton initialized"; } void InfoCommandLinkButton::keyPressEvent(QKeyEvent *event) { qCDebug(appLog) << "Key press event:" << event->key(); // 添加回车,换行,空格键盘事件的响应 if (event->key() == Qt::Key_Return || event->key() == Qt::Key_Space || event->key() == Qt::Key_Enter) { if (this->hasFocus()) { // 只有有焦点时才响应 qCDebug(appLog) << "Triggering click via key press"; this->clicked(); } } } deepin-deb-installer-6.5.51/src/deb-installer/view/widgets/InfoCommandLinkButton.h000066400000000000000000000007771524745214100301300ustar00rootroot00000000000000// 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.51/src/deb-installer/view/widgets/ShowInstallInfoTextEdit.cpp000066400000000000000000000215031524745214100310030ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "ShowInstallInfoTextEdit.h" #include "utils/ddlog.h" #include #include #include #include #include ShowInstallInfoTextEdit::ShowInstallInfoTextEdit(QWidget *parent) : QTextEdit(parent) { qCDebug(appLog) << "Initializing ShowInstallInfoTextEdit"; setAttribute(Qt::WA_AcceptTouchEvents); // 接受触控事件 grabGesture(Qt::TapGesture); // 获取触控点击事件 grabGesture(Qt::TapAndHoldGesture); // 获取触控点击长按事件 // 滑动鼠标时选中的效果 connect(this, &ShowInstallInfoTextEdit::selectionChanged, this, &ShowInstallInfoTextEdit::onSelectionArea); qCDebug(appLog) << "ShowInstallInfoTextEdit initialized"; } void ShowInstallInfoTextEdit::onSelectionArea() { qCDebug(appLog) << "Selection area changed"; if (m_gestureAction != GA_null) { qCDebug(appLog) << "Gesture action is not null, clearing selection"; QTextCursor cursor = textCursor(); if (cursor.selectedText() != "") { cursor.clearSelection(); setTextCursor(cursor); } } } bool ShowInstallInfoTextEdit::event(QEvent *event) { if (event->type() == QEvent::Gesture) { qCDebug(appLog) << "Gesture event received"; gestureEvent(static_cast(event)); } return QTextEdit::event(event); } bool ShowInstallInfoTextEdit::gestureEvent(QGestureEvent *event) { // qCDebug(appLog) << "Processing gesture event"; if (QGesture *tap = event->gesture(Qt::TapGesture)) { // qCDebug(appLog) << "Tap gesture detected"; tapGestureTriggered(static_cast(tap)); } if (QGesture *tapAndHold = event->gesture(Qt::TapAndHoldGesture)) { // qCDebug(appLog) << "Tap and hold gesture detected"; tapAndHoldGestureTriggered(static_cast(tapAndHold)); } return true; } void ShowInstallInfoTextEdit::tapGestureTriggered(QTapGesture *tap) { if (nullptr == tap) return; this->clearFocus(); // 单指点击函数 switch (tap->state()) { // 根据点击的状态进行不同的操作 case Qt::GestureStarted: { // 开始点击,记录时间。时间不同 进行不同的操作 qCDebug(appLog) << "Tap gesture started"; m_gestureAction = GA_tap; m_tapBeginTime = QDateTime::currentDateTime().toMSecsSinceEpoch(); break; } case Qt::GestureUpdated: { qCDebug(appLog) << "Tap gesture updated - switching to slide mode"; m_gestureAction = GA_slide; // 触控滑动 break; } case Qt::GestureCanceled: { // 根据时间长短区分轻触滑动 qint64 timeSpace = QDateTime::currentDateTime().toMSecsSinceEpoch() - m_tapBeginTime; if (timeSpace < TAP_MOVE_DELAY || m_slideContinue) { // 普通滑动 qCDebug(appLog) << "Tap gesture canceled - continuing slide"; m_slideContinue = false; m_gestureAction = GA_slide; } else { // 选中滑动 qCDebug(appLog) << "Tap gesture canceled - resetting"; m_gestureAction = GA_null; } break; } case Qt::GestureFinished: { qCDebug(appLog) << "Tap gesture finished"; m_gestureAction = GA_null; break; } default: { qCWarning(appLog) << "Unknown tap gesture state"; Q_ASSERT(false); break; } } } void ShowInstallInfoTextEdit::tapAndHoldGestureTriggered(QTapAndHoldGesture *tapAndHold) { qCDebug(appLog) << "Tap and hold gesture triggered"; if (nullptr == tapAndHold) { qCWarning(appLog) << "Tap and hold gesture is null"; return; } qCDebug(appLog) << "Tap and hold gesture triggered, state:" << tapAndHold->state(); // 单指长按 switch (tapAndHold->state()) { case Qt::GestureStarted: qCDebug(appLog) << "Tap and hold gesture started"; m_gestureAction = GA_hold; break; case Qt::GestureUpdated: qCWarning(appLog) << "Unsupported tap and hold gesture state: Updated"; Q_ASSERT(false); break; case Qt::GestureCanceled: qCWarning(appLog) << "Unsupported tap and hold gesture state: Canceled"; Q_ASSERT(false); break; case Qt::GestureFinished: qCDebug(appLog) << "Tap and hold gesture finished"; m_gestureAction = GA_null; break; default: qCWarning(appLog) << "Unknown tap and hold gesture state:" << tapAndHold->state(); Q_ASSERT(false); break; } } void ShowInstallInfoTextEdit::slideGesture(qreal diff) { static qreal delta = 0.0; int step = static_cast(diff + delta); delta = diff + delta - step; qCDebug(appLog) << "Sliding with diff:" << diff << "step:" << step; verticalScrollBar()->setValue(verticalScrollBar()->value() + step); // 移动滚动条 } void ShowInstallInfoTextEdit::mouseReleaseEvent(QMouseEvent *e) { // qCDebug(appLog) << "Mouse release event"; 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) { qCDebug(appLog) << "Slide gesture finished, starting tween animation"; // 滑动结束,开始惯性滑动 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)) { qCDebug(appLog) << "Synthesized mouse event, accepting and returning"; e->accept(); return; } return QTextEdit::mouseReleaseEvent(e); } void ShowInstallInfoTextEdit::mouseMoveEvent(QMouseEvent *e) { // qCDebug(appLog) << "Mouse move event"; 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) { qCDebug(appLog) << "Slide gesture detected in mouse move event"; 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() { qCDebug(appLog) << "Initializing 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) { qCDebug(appLog) << "Starting FlashTween - change:" << c << "duration:" << d; if (c == 0.0 || d == 0.0) { qCDebug(appLog) << "FlashTween start ignored - zero change or duration"; return; } qCDebug(appLog) << "Starting FlashTween - change:" << c << "duration:" << d; 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() { qCDebug(appLog) << "FlashTween run, current time:" << m_currentTime; 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 { qCDebug(appLog) << "FlashTween completed"; m_timer->stop(); } } deepin-deb-installer-6.5.51/src/deb-installer/view/widgets/ShowInstallInfoTextEdit.h000066400000000000000000000133331524745214100304520ustar00rootroot00000000000000// 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.51/src/deb-installer/view/widgets/choosefilebutton.cpp000066400000000000000000000025101524745214100276160ustar00rootroot00000000000000// 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 "utils/ddlog.h" #include #include ChooseFileButton::ChooseFileButton(QString text, QWidget *parent) : DCommandLinkButton(text, parent) { qCDebug(appLog) << "Initializing ChooseFileButton with text:" << text; QString fontFamily = Utils::loadFontFamilyByType(Utils::SourceHanSansNormal); // 设置字体 Utils::bindFontBySizeAndWeight(this, fontFamily, 12, QFont::ExtraLight); // 设置字体样式与字体大小 this->setFocusPolicy(Qt::TabFocus); // 设置本身可以被焦点选中 // 添加AccessibleName this->setObjectName("ChooseFileButton"); this->setAccessibleName("ChooseFileButton"); qCDebug(appLog) << "ChooseFileButton initialized"; } 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()) { qCDebug(appLog) << "Triggering click via key press:" << event->key(); this->clicked(); } } } deepin-deb-installer-6.5.51/src/deb-installer/view/widgets/choosefilebutton.h000066400000000000000000000013541524745214100272700ustar00rootroot00000000000000// 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.51/src/deb-installer/view/widgets/coloredprogressbar.cpp000066400000000000000000000073151524745214100301530ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "coloredprogressbar.h" #include "utils/ddlog.h" #include #include #include #include #include #include ColoredProgressBar::ColoredProgressBar(QWidget *parent) : QProgressBar(parent) { qCDebug(appLog) << "Initializing ColoredProgressBar..."; themeChanged(); QObject::connect( DGuiApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, &ColoredProgressBar::themeChanged); qCDebug(appLog) << "ColoredProgressBar initialized"; } void ColoredProgressBar::themeChanged() { DGuiApplicationHelper::ColorType themeType = DGuiApplicationHelper::instance()->themeType(); qCDebug(appLog) << "Theme changed to:" << themeType; m_themeType = themeType; if (themeType == DGuiApplicationHelper::LightType) { qCDebug(appLog) << "Clearing thresholds for light theme"; threshmap.clear(); } else if (themeType == DGuiApplicationHelper::DarkType) { qCDebug(appLog) << "Setting dark theme colors"; DPalette pa = DebApplicationHelper::instance()->palette(this); QColor colorStart = pa.color(QPalette::Highlight); QColor colorEnd = pa.color(QPalette::HighlightedText); qCDebug(appLog) << "Using colors from:" << colorStart.name() << "to" << colorEnd.name(); threshmap.insert(0, QBrush(colorStart)); threshmap.insert(1, QBrush(colorEnd)); } else { qCDebug(appLog) << "Unknown theme type, clearing thresholds"; threshmap.clear(); } } void ColoredProgressBar::addThreshold(int threshold, QBrush brush) { qCDebug(appLog) << "Adding threshold at:" << threshold << "with brush:" << brush.color().name(); threshmap[threshold] = brush; } void ColoredProgressBar::removeThreshold(int threshold) { if (threshmap.contains(threshold)) { qCDebug(appLog) << "Removing threshold at:" << 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) { qCDebug(appLog) << "Using default painting for light theme"; QProgressBar::paintEvent(event); } else if (themeType == DGuiApplicationHelper::DarkType) { qCDebug(appLog) << "Custom painting for dark theme"; 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 qCDebug(appLog) << "Painting progress bar label"; painter.drawControl(QStyle::ControlElement::CE_ProgressBarLabel, styopt); } } else { qCDebug(appLog) << "Unknown theme type, using default painting"; QProgressBar::paintEvent(event); } } deepin-deb-installer-6.5.51/src/deb-installer/view/widgets/coloredprogressbar.h000066400000000000000000000031141524745214100276110ustar00rootroot00000000000000// 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.51/src/deb-installer/view/widgets/debinfolabel.cpp000066400000000000000000000123541524745214100266570ustar00rootroot00000000000000// 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 "utils/ddlog.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) { qCDebug(appLog) << "Initializing DebInfoLabel..."; // 设置AccessibleName this->setAccessibleName("DebInfoLabel"); this->setObjectName("DebInfoLabel"); qCDebug(appLog) << "DebInfoLabel initialized"; } void DebInfoLabel::setCustomQPalette(QPalette::ColorRole colorRole) { qCDebug(appLog) << "Setting QPalette with color role:" << colorRole; m_colorRole = colorRole; // 获取当前使用QPalette的字体颜色角色 m_bUserColorType = false; // 当前使用的不是DPalette // 判断传入的QPalette是否是WindowText 如果是则设置当前Label的Palette的画刷为DGuiApplicationHelper画刷,颜色为WindowText // 否则设置当前的Label的Palette的画刷为DebApplicationHelperr画刷,颜色为传入的颜色 if (m_colorRole == QPalette::WindowText) { qCDebug(appLog) << "Using WindowText color from DPalette"; DPalette palette = DPaletteHelper::instance()->palette(this); palette.setBrush(QPalette::Text, palette.color(QPalette::WindowText)); this->setPalette(palette); } else { qCDebug(appLog) << "Using custom color from DebApplicationHelper"; DPalette palette = DebApplicationHelper::instance()->palette(this); palette.setBrush(DPalette::Text, palette.color(m_colorRole)); this->setPalette(palette); } } void DebInfoLabel::setCustomDPalette(DPalette::ColorType colorType) { qCDebug(appLog) << "Setting DPalette with color type:" << 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); qCDebug(appLog) << "DPalette set with color:" << palette.color(m_colorType).name(); } 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) { qCDebug(appLog) << "Setting text and tooltip:" << text; setText(text); m_toolTip = text; updateTipText(); } void DebInfoLabel::paintEvent(QPaintEvent *event) { QWidget tmpWidget; if (m_bUserColorType) { // 当前使用的是DPalette if (m_bMultiIns) { qCDebug(appLog) << "Using default color (00, 130, 252)"; 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 { qCDebug(appLog) << "Using custom DPalette color type:" << m_colorType; 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) { qCDebug(appLog) << "Using WindowText from QPalette"; DLabel::paintEvent(event); } else { qCDebug(appLog) << "Using custom QPalette color role:" << m_colorRole; 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.51/src/deb-installer/view/widgets/debinfolabel.h000066400000000000000000000036701524745214100263250ustar00rootroot00000000000000// 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.51/src/deb-installer/view/widgets/droundbgframe.cpp000066400000000000000000000033161524745214100270660ustar00rootroot00000000000000// 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 "utils/ddlog.h" #include #include #include #include #include #include DRoundBgFrame::DRoundBgFrame(QWidget *parent, int bgOffsetTop, int bgOffsetBottom) : QWidget(parent) , m_bgOffsetTop(bgOffsetTop) , m_bgOffsetBottom(bgOffsetBottom) { qCDebug(appLog) << "Initializing DRoundBgFrame with offsets - top:" << bgOffsetTop << "bottom:" << bgOffsetBottom; // 添加accessibleName this->setObjectName("DRoundBgFrame"); this->setAccessibleName("DRoundBgFrame"); qCDebug(appLog) << "DRoundBgFrame initialized"; } void DRoundBgFrame::paintEvent(QPaintEvent *event) { Q_UNUSED(event) qCDebug(appLog) << "Painting DRoundBgFrame"; QPainter painter(this); painter.setRenderHint(QPainter::Antialiasing, true); // 设置边缘抗锯齿 DPalette pa = DebApplicationHelper::instance()->palette(this); qCDebug(appLog) << "Using palette color:" << pa.color(DPalette::Base).name(); 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); // 设置高度 qCDebug(appLog) << "Painting rounded rect at:" << rect << "with radius 8"; path.addRoundedRect(rect, 8, 8); painter.fillPath(path, QBrush(pa.color(DPalette::Base))); // 填充颜色 } deepin-deb-installer-6.5.51/src/deb-installer/view/widgets/droundbgframe.h000066400000000000000000000011271524745214100265310ustar00rootroot00000000000000// 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.51/src/deb-installer/view/widgets/error_notify_dialog_helper.cpp000066400000000000000000000062121524745214100316440ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "error_notify_dialog_helper.h" #include "utils/ddlog.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} { qCDebug(appLog) << "ErrorNotifyDialogHelper constructed"; } void ErrorNotifyDialogHelper::showHierarchicalVerifyWindow() { qCDebug(appLog) << "Checking hierarchical verify status"; if (!HierarchicalVerify::instance()->isValid()) { qCDebug(appLog) << "Hierarchical verify not valid, skipping dialog"; return; } qCDebug(appLog) << "Creating error notify dialog"; 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(); qCDebug(appLog) << "Error notify dialog shown"; // 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) { qCDebug(appLog) << "Setting message label minimum height"; auto *dialogStyle = dialog->style(); if (dialogStyle) { qCDebug(appLog) << "Getting dialog style"; 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) { qCDebug(appLog) << "Setting focus policy for proceed button"; btnPorceed->setFocusPolicy(Qt::TabFocus); btnPorceed->setFocus(); } connect(dialog, &DDialog::finished, [dialog](int result) { qCDebug(appLog) << "Dialog finished with result:" << result; if (QDialog::Accepted == result) { qCDebug(appLog) << "Proceeding to security center"; HierarchicalVerify::instance()->proceedDefenderSafetyPage(); } dialog->deleteLater(); }); } deepin-deb-installer-6.5.51/src/deb-installer/view/widgets/error_notify_dialog_helper.h000066400000000000000000000011301524745214100313030ustar00rootroot00000000000000// 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.51/src/deb-installer/view/widgets/filechoosewidget.cpp000066400000000000000000000146721524745214100276020ustar00rootroot00000000000000// 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 "utils/ddlog.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") { qCDebug(appLog) << "Initializing FileChooseWidget..."; setFocusPolicy(Qt::NoFocus); setAcceptDrops(true); qCDebug(appLog) << "FileChooseWidget initialized"; 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() { qCDebug(appLog) << "Choosing files..."; QString historyDir = m_settings.value("history_dir").toString(); // 获取保存的文件路径 qCDebug(appLog) << "History directory:" << historyDir; if (historyDir.isEmpty()) { historyDir = QDir::homePath(); qCDebug(appLog) << "Using default home directory:" << historyDir; } // 为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) { qCDebug(appLog) << "File dialog cancelled"; m_chooseFileBtn->setFocus(); return; } const QStringList selected_files = dialog.selectedFiles(); // 获取选中的文件 qCDebug(appLog) << "Selected files:" << selected_files; emit packagesSelected(selected_files); // 发送信号 // 判断路径信息是否为本地路径 if (!selected_files.isEmpty() && Pkg::PkgReadable == Utils::checkPackageReadable(selected_files.first())) { // 本地路径,保存当前文件路径 m_settings.setValue("history_dir", currentPackageDir); } } void FileChooseWidget::themeChanged() { qCDebug(appLog) << "Theme changed, updating icons"; // 更新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.51/src/deb-installer/view/widgets/filechoosewidget.h000066400000000000000000000024351524745214100272410ustar00rootroot00000000000000// 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.51/src/deb-installer/view/widgets/infocontrolbutton.cpp000066400000000000000000000150251524745214100300370ustar00rootroot00000000000000// 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 "utils/ddlog.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)) { qCDebug(appLog) << "Initializing InfoControlButton with tips - expand:" << expandTips << "shrink:" << shrinkTips; // 添加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); qCDebug(appLog) << "InfoControlButton initialized"; } QAbstractButton *InfoControlButton::controlButton() { // qCDebug(appLog) << "Getting control button"; return m_tipsText; } void InfoControlButton::mouseReleaseEvent(QMouseEvent *mouseEvent) { // qCDebug(appLog) << "InfoControlButton mouse release event"; QWidget::mouseReleaseEvent(mouseEvent); onMouseRelease(); // 鼠标事件的响应 } void InfoControlButton::keyPressEvent(QKeyEvent *event) { // qCDebug(appLog) << "InfoControlButton key press event, key:" << event->key(); // 添加回车键,空格键,换行键来触发展开或收缩 if (event->key() == Qt::Key_Return || event->key() == Qt::Key_Space || event->key() == Qt::Key_Enter) { if (this->hasFocus()) { qCDebug(appLog) << "Enter/Space pressed, triggering click"; m_tipsText->clicked(); } } } void InfoControlButton::onMouseRelease() { qCDebug(appLog) << "Mouse release, current state:" << (m_expand ? "expanded" : "shrunk"); if (m_expand) { // 当前已经展开 qCDebug(appLog) << "Emitting shrink signal"; emit shrink(); // 发送收缩信号 } else { qCDebug(appLog) << "Emitting expand signal"; emit expand(); // 发送展开信号 } m_expand = !m_expand; // 修改标志 qCDebug(appLog) << "New state:" << (m_expand ? "expanded" : "shrunk"); 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) { qCDebug(appLog) << "Setting expand tips to:" << text; m_expandTips = text; // 保存提示语 m_tipsText->setText(m_expandTips); // 设置提示语 } void InfoControlButton::shrinkContent() { qCDebug(appLog) << "Shrinking content, current state:" << (m_expand ? "expanded" : "shrunk"); if (m_expand) { onMouseRelease(); } } void InfoControlButton::setShrinkTips(const QString text) { qCDebug(appLog) << "Setting shrink tips to:" << text; m_shrinkTips = text; // 保存提示语 m_tipsText->setText(m_shrinkTips); // 设置提示语 } void InfoControlButton::themeChanged() { qCDebug(appLog) << "Theme changed, updating icons"; 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))); } qCDebug(appLog) << "Icons updated for current state"; } deepin-deb-installer-6.5.51/src/deb-installer/view/widgets/infocontrolbutton.h000066400000000000000000000042531524745214100275050ustar00rootroot00000000000000// 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.51/src/deb-installer/view/widgets/installprocessinfoview.cpp000066400000000000000000000131671524745214100310700ustar00rootroot00000000000000// 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 "utils/ddlog.h" #include #include #include InstallProcessInfoView::InstallProcessInfoView(int w, int h, QWidget *parent) : QWidget(parent) , m_editor(new ShowInstallInfoTextEdit(this)) // 修改为自写控件 { qCDebug(appLog) << "Initializing InstallProcessInfoView with size:" << w << "x" << h; initUI(w, h); qCDebug(appLog) << "InstallProcessInfoView initialized"; // 数据更新后,直接跳转到最后一行 connect(m_editor, &QTextEdit::textChanged, this, &InstallProcessInfoView::slotMoveCursorToEnd); // 设置TextEdit和InfoView为无焦点 this->setFocusPolicy(Qt::NoFocus); m_editor->setFocusPolicy(Qt::NoFocus); } void InstallProcessInfoView::slotMoveCursorToEnd() { qCDebug(appLog) << "Moving cursor to end"; m_editor->moveCursor(QTextCursor::End); } void InstallProcessInfoView::initUI(int w, int h) { qCDebug(appLog) << "Initializing UI with size:" << w << "x" << 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) { qCWarning(appLog) << "DebApplicationHelper instance is null"; 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); qCDebug(appLog) << "UI initialized"; } void InstallProcessInfoView::setTextFontSize(int fontSize, int fontWeight) { qCDebug(appLog) << "Setting text font size to" << fontSize << "and weight to" << fontWeight; QString textFont = Utils::loadFontFamilyByType(Utils::DefautFont); Utils::bindFontBySizeAndWeight(m_editor, textFont, fontSize, fontWeight); } void InstallProcessInfoView::setTextColor(DPalette::ColorType ct) { qCDebug(appLog) << "Setting text color to type:" << 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) { qCDebug(appLog) << "Appending text:" << text; m_editor->append(text); } InstallProcessInfoView::~InstallProcessInfoView() { qCDebug(appLog) << "InstallProcessInfoView destructed"; } void InstallProcessInfoView::paintEvent(QPaintEvent *event) { QWidget::paintEvent(event); qCDebug(appLog) << "Updating colors for theme change"; DPalette pa = m_editor->palette(); // 获取当前的主题 DGuiApplicationHelper::ColorType themeType = DGuiApplicationHelper::instance()->themeType(); qCDebug(appLog) << "Current theme type:" << 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); qCDebug(appLog) << "Colors updated for theme"; } /** * @brief 清除当前展示框中的内容 * */ void InstallProcessInfoView::clearText() { qCDebug(appLog) << "Clearing text content"; m_editor->clear(); } void InstallProcessInfoView::setTextCursor(QTextCursor::MoveOperation operation) { qCDebug(appLog) << "Setting text cursor with operation:" << operation; QTextCursor textCursor = m_editor->textCursor(); textCursor.movePosition(operation, QTextCursor::MoveAnchor); m_editor->setTextCursor(textCursor); } deepin-deb-installer-6.5.51/src/deb-installer/view/widgets/installprocessinfoview.h000066400000000000000000000037551524745214100305370ustar00rootroot00000000000000// 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.51/src/deb-installer/view/widgets/noprocesswidget.cpp000066400000000000000000000035511524745214100274670ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "noprocesswidget.h" #include "utils/utils.h" #include "utils/ddlog.h" #include #include #include #include #include NoProcessWidget::NoProcessWidget(QWidget *parent) : QWidget(parent) { qCDebug(appLog) << "Initializing NoProcessWidget..."; 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); qCDebug(appLog) << "NoProcessWidget initialized"; } void NoProcessWidget::start() { qCDebug(appLog) << "Starting spinner animation"; spinner->start(); } void NoProcessWidget::stop() { qCDebug(appLog) << "Stopping spinner animation"; 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) { qCDebug(appLog) << "Setting action text:" << text; actionTextLabel->setText(text); } deepin-deb-installer-6.5.51/src/deb-installer/view/widgets/noprocesswidget.h000066400000000000000000000012371524745214100271330ustar00rootroot00000000000000// 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.51/src/deb-installer/view/widgets/packageselectitem.cpp000066400000000000000000000106521524745214100277220ustar00rootroot00000000000000// 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 "utils/ddlog.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) { qCDebug(appLog) << "Initializing PackageSelectItem..."; 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); qCDebug(appLog) << "PackageSelectItem initialized"; } void PackageSelectItem::setDebIR(const DebIr &ir) { qCDebug(appLog) << "Setting package info - name:" << ir.appName << "version:" << ir.version << "archMatched:" << ir.archMatched; 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: // 未安装 qCDebug(appLog) << "Package not installed"; displayText = ir.shortDescription; checkBox->setChecked(true); break; case Pkg::InstalledSameVersion: // 已安装相同版本 qCDebug(appLog) << "Package installed same version"; displayText = tr("Same version installed"); break; case Pkg::InstalledEarlierVersion: // 已安装较早版本 qCDebug(appLog) << "Package installed earlier version"; displayText = tr("Earlier version installed: %1").arg(installedVersion); checkBox->setChecked(true); break; case Pkg::InstalledLaterVersion: // 已安装较新版本 qCDebug(appLog) << "Package installed later version"; displayText = tr("Later version installed: %1").arg(installedVersion); break; } descriptionLabel->setText(displayText); } else { qCDebug(appLog) << "Package architecture not matched"; descriptionLabel->setText(tr("Unmatched package architecture")); descriptionLabel->setForegroundRole(Dtk::Gui::DPalette::TextWarning); } qCDebug(appLog) << "Package info set completed"; } bool PackageSelectItem::isChecked() { qCDebug(appLog) << "Getting checked state"; return checkBox->isChecked(); } bool PackageSelectItem::isEnabled() { qCDebug(appLog) << "Getting enabled state"; return checkBox->isEnabled(); } void PackageSelectItem::setChecked(bool checked) { qCDebug(appLog) << "Setting checked state:" << checked; checkBox->setChecked(checked); qCDebug(appLog) << "Checked state changed"; } deepin-deb-installer-6.5.51/src/deb-installer/view/widgets/packageselectitem.h000066400000000000000000000013451524745214100273660ustar00rootroot00000000000000// 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.51/src/deb-installer/view/widgets/processwidget.cpp000066400000000000000000000044661524745214100271400ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "processwidget.h" #include "utils/ddlog.h" #include #include #include #include #include ProcessWidget::ProcessWidget(QWidget *parent) : QWidget(parent) { qCDebug(appLog) << "Initializing ProcessWidget..."; 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); qCDebug(appLog) << "ProcessWidget initialized"; } void ProcessWidget::setIcon(const QIcon &icon) { qCDebug(appLog) << "Setting icon"; mainIcon->setPixmap(icon.pixmap(64, 64)); } void ProcessWidget::setMainText(const QString &text) { qCDebug(appLog) << "Setting main text:" << text; mainLabel->setText(text); } void ProcessWidget::setProcessText(const QString &text) { qCDebug(appLog) << "Setting process text template:" << text; processText = text; } void ProcessWidget::setProgress(int current, int all) { qCDebug(appLog) << "Updating progress:" << current << "/" << 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); qCDebug(appLog) << "Progress updated"; } deepin-deb-installer-6.5.51/src/deb-installer/view/widgets/processwidget.h000066400000000000000000000015061524745214100265750ustar00rootroot00000000000000// 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.51/src/deb-installer/view/widgets/workerprogress.cpp000066400000000000000000000012121524745214100273360ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "workerprogress.h" #include "utils/ddlog.h" WorkerProgress::WorkerProgress(QWidget *parent) : DProgressBar(parent) { qCDebug(appLog) << "Initializing WorkerProgress"; // 进度条在为设置初始值时,值为-1 安装进度条前面一段显示为方头 setValue(0); // 设置初始进度为0 setMinimum(0); setMaximum(100); setFixedHeight(8); setFixedWidth(240); setTextVisible(false); qCDebug(appLog) << "WorkerProgress initialized with size 240x8, range 0-100"; } deepin-deb-installer-6.5.51/src/deb-installer/view/widgets/workerprogress.h000066400000000000000000000006621524745214100270130ustar00rootroot00000000000000// 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.51/src/deepin-deb-installer-dev/000077500000000000000000000000001524745214100231365ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/deepin-deb-installer-dev/CMakeLists.txt000066400000000000000000000037641524745214100257100ustar00rootroot00000000000000# 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.51/src/deepin-deb-installer-dev/DeepinDebInstallerLib.cpp000066400000000000000000000101231524745214100277630ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "DeepinDebInstallerLib.h" #include "manager/PackagesManager.h" #include Q_LOGGING_CATEGORY(devLog, "org.deepin.deb-installer.dev") DeepinDebInstallerLib::DeepinDebInstallerLib() : m_pPackageManager(new PackagesManager()) { qCDebug(devLog) << "DeepinDebInstallerLib created"; initConnections(); } void DeepinDebInstallerLib::addPackages(const QStringList &debFilePath) { qCDebug(devLog) << "Adding packages:" << debFilePath; m_pPackageManager->appendPackages(debFilePath); } void DeepinDebInstallerLib::deletePackage(int index) { qCDebug(devLog) << "Deleting package at index:" << index; m_pPackageManager->removePackage(index); } int DeepinDebInstallerLib::checkInstallStatus(int index) { qCDebug(devLog) << "Checking install status for index:" << index; return m_pPackageManager->checkInstallStatus(index); } bool DeepinDebInstallerLib::checkPackageFile(int index) { qCDebug(devLog) << "Checking package file for index:" << index; return m_pPackageManager->checkPackageValid(index); } bool DeepinDebInstallerLib::checkDigitalSignature(int index) { qCDebug(devLog) << "Checking digital signature for index:" << index; return m_pPackageManager->checkPackageSignture(index); } bool DeepinDebInstallerLib::checkPkgDependsStatus(int index) { qCDebug(devLog) << "Checking package dependency status for index:" << index; return m_pPackageManager->checkPackageDependsStatus(index); } void DeepinDebInstallerLib::install() { qCDebug(devLog) << "Starting installation process"; m_pPackageManager->install(); } void DeepinDebInstallerLib::uninstall(int index) { qCDebug(devLog) << "Starting uninstallation for index:" << index; m_pPackageManager->uninstall(index); } void DeepinDebInstallerLib::initConnections() { qCDebug(devLog) << "Initializing connections"; 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() { qCDebug(devLog) << "DeepinDebInstallerLib destroyed"; delete m_pPackageManager; this->deleteLater(); } deepin-deb-installer-6.5.51/src/deepin-deb-installer-dev/DeepinDebInstallerLib.h000066400000000000000000000110741524745214100274360ustar00rootroot00000000000000// 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.51/src/deepin-deb-installer-dev/deepin-deb-installer-lib_global.h000066400000000000000000000006721524745214100313670ustar00rootroot00000000000000// 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.51/src/deepin-deb-installer-dev/installer/000077500000000000000000000000001524745214100251335ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/deepin-deb-installer-dev/installer/PackageInstaller.cpp000066400000000000000000000211261524745214100310520ustar00rootroot00000000000000// 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 #include Q_DECLARE_LOGGING_CATEGORY(devLog) PackageInstaller::PackageInstaller(QApt::Backend *b) { qCDebug(devLog) << "Creating PackageInstaller"; m_backend = b; m_packages = nullptr; } void PackageInstaller::appendPackage(Package *packages) { qCDebug(devLog) << "Appending package:" << (packages ? packages->getName() : "nullptr"); m_packages = packages; } bool PackageInstaller::isDpkgRunning() { qCDebug(devLog) << "Checking if dpkg is running"; QProcess proc; // 获取当前的进程信息 proc.start("ps", QStringList() << "-e" << "-o" << "comm"); proc.waitForFinished(); // 获取进程信息的数据 const QString processOutput = proc.readAllStandardOutput(); // 查看进程信息中是否存在dpkg 存在说明已经正在安装其他包 if (processOutput.contains("dpkg")) { qCDebug(devLog) << "dpkg is running"; return true; // 更换判断的方式 } qCDebug(devLog) << "dpkg is not running"; return false; } void PackageInstaller::uninstallPackage() { qCDebug(devLog) << "Starting package uninstallation"; emit signal_startInstall(); if (isDpkgRunning()) { qCDebug(devLog) << "dpkg is running, waiting..."; // 缩短检查的时间,每隔1S检查当前dpkg是否正在运行。 QTimer::singleShot(1000 * 1, this, &PackageInstaller::uninstallPackage); return; } const QStringList rdepends = m_packages->getPackageReverseDependList(); // 检查是否有应用依赖到该包 qCDebug(devLog) << "Package reverse dependencies:" << rdepends; for (const auto &r : rdepends) { // 卸载所有依赖该包的应用(二者的依赖关系为depends) if (m_backend->package(r)) { // 更换卸载包的方式 qCDebug(devLog) << "Marking reverse dependency for purge:" << r; m_backend->package(r)->setPurge(); } else qCWarning(devLog) << "Reverse depend" << r << "error, please check it!"; } // 卸载当前包 更换卸载包的方式,此前的方式为markPackageForRemoval 会遗留配置文件对下次再次安装影响依赖解析 QApt::Package *uninstalledPackage = m_backend->package(m_packages->getName() + ':' + m_packages->getArchitecture()); // 如果未能成功根据包名以及架构名称获取到Package*对象,直接设置为卸载失败。并退出 if (!uninstalledPackage) { qCWarning(devLog) << "Failed to get package for uninstallation:" << m_packages->getName(); emit signal_installError(QApt::CommitError, m_pTrans->errorDetails()); return; } qCDebug(devLog) << "Marking package for purge:" << m_packages->getName(); 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) { qCWarning(devLog) << "Transaction error occurred:" << error << m_pTrans->errorDetails(); 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() { qCDebug(devLog) << "Starting package installation"; emit signal_startInstall(); if (isDpkgRunning()) { qCDebug(devLog) << "dpkg is running, waiting..."; // 缩短检查的时间,每隔1S检查当前dpkg是否正在运行。 QTimer::singleShot(1000 * 1, this, &PackageInstaller::installPackage); return; } DependsStatus packageDependsStatus = m_packages->getDependStatus(); qCDebug(devLog) << "Package dependency status:" << packageDependsStatus; switch (packageDependsStatus) { case DependsUnknown: qCDebug(devLog) << "Dependency status: Unknown"; case DependsBreak: qCDebug(devLog) << "Dependency status: Break"; case DependsAuthCancel: qCDebug(devLog) << "Dependency status: AuthCancel"; case ArchBreak: qCDebug(devLog) << "Dependency status: ArchBreak"; dealBreakPackage(); break; case DependsAvailable: qCDebug(devLog) << "Dependency status: Available"; dealAvailablePackage(); break; case DependsOk: qCDebug(devLog) << "Dependency status: Ok"; 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) { qCWarning(devLog) << "Transaction error occurred:" << error << m_pTrans->errorDetails(); emit signal_installError(error, m_pTrans->errorDetails()); }); // 卸载结束之后 删除指针 connect(m_pTrans, &QApt::Transaction::finished, m_pTrans, &QApt::Transaction::deleteLater); m_pTrans->run(); } void PackageInstaller::dealBreakPackage() { qCDebug(devLog) << "Dealing with broken package"; DependsStatus packageDependsStatus = m_packages->getDependStatus(); switch (packageDependsStatus) { case DependsBreak: qCWarning(devLog) << "Dependencies are broken"; case DependsAuthCancel: qCWarning(devLog) << "Authentication cancelled for dependencies"; emit signal_installError(packageDependsStatus, "Broken dependencies"); return; case ArchBreak: qCWarning(devLog) << "Unmatched package architecture"; emit signal_installError(packageDependsStatus, "Unmatched package architecture"); return; default: qCWarning(devLog) << "Unknown error in broken package"; emit signal_installError(packageDependsStatus, "unknown error"); return; } } void PackageInstaller::dealAvailablePackage() { qCDebug(devLog) << "Dealing with available package"; const QStringList availableDepends = m_packages->getPackageAvailableDepends(); qCDebug(devLog) << "Available dependencies:" << availableDepends; // 获取到可用的依赖包并根据后端返回的结果判断依赖包的安装结果 for (auto const &p : availableDepends) { if (p.contains(" not found")) { // 依赖安装失败 qCWarning(devLog) << "Dependency not found:" << p; emit signal_installError(DependsAvailable, p); return; } qCDebug(devLog) << "Marking for install:" << p; m_backend->markPackageForInstall(p); } m_pTrans = m_backend->commitChanges(); connect(m_pTrans, &QApt::Transaction::finished, this, &PackageInstaller::installAvailableDepends); } void PackageInstaller::installAvailableDepends() { qCDebug(devLog) << "Installing available dependencies"; const auto ret = m_pTrans->exitStatus(); if (ret) { qCWarning(devLog) << "Transaction error:" << m_pTrans->error() << m_pTrans->errorDetails() << m_pTrans->errorString(); // transaction发生错误 emit signal_installError(m_pTrans->error(), m_pTrans->errorDetails()); } qCDebug(devLog) << "Setting package dependency status to OK"; m_packages->setPackageDependStatus(DependsOk); installPackage(); } void PackageInstaller::dealInstallablePackage() { qCDebug(devLog) << "Dealing with installable package"; 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() { qCDebug(devLog) << "Destroying PackageInstaller"; } deepin-deb-installer-6.5.51/src/deepin-deb-installer-dev/installer/PackageInstaller.h000066400000000000000000000022251524745214100305160ustar00rootroot00000000000000// 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.51/src/deepin-deb-installer-dev/manager/000077500000000000000000000000001524745214100245505ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/deepin-deb-installer-dev/manager/PackagesManager.cpp000066400000000000000000000266121524745214100302740ustar00rootroot00000000000000// 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 #include Q_DECLARE_LOGGING_CATEGORY(devLog) PackagesManager::PackagesManager() : m_pPackageStatus(new PackageStatus()) , m_pPackageInstaller(new PackageInstaller(m_pPackageStatus->m_backendFuture.result())) { qCDebug(devLog) << "Creating PackagesManager"; m_pGetStatusThread = new GetStatusThread(m_pPackageStatus); initConnection(); } void PackagesManager::initConnection() { qCDebug(devLog) << "Initializing connections for PackagesManager"; 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) { // qCDebug(devLog) << "Slot: Get depends status for index" << index << "status:" << dependsStatus; Package *pkg = searchByIndex(index); if (pkg) { pkg->setPackageDependStatus(dependsStatus); // 根据获取的依赖结果,发送信号 switch (dependsStatus) { case DependsOk: qCDebug(devLog) << "Depends status: OK"; case DependsAvailable: // 依赖满足,不发送信号 qCDebug(devLog) << "Depends status: Available"; break; case DependsBreak: // 依赖不满足 qCWarning(devLog) << "Depends status: Break"; emit signal_dependStatusError(index, DependsBreak); break; case DependsAuthCancel: // 依赖下载授权被取消 qCWarning(devLog) << "Depends status: AuthCancel"; emit signal_dependStatusError(index, DependsAuthCancel); break; case DependsUnknown: // 依赖未知(下载依赖失败) qCWarning(devLog) << "Depends status: Unknown"; emit signal_dependStatusError(index, DependsUnknown); break; case ArchBreak: // 依赖架构错误 qCWarning(devLog) << "Depends status: ArchBreak"; emit signal_dependStatusError(index, ArchBreak); break; } } else { // 未获取到 当前包的下标 qCWarning(devLog) << "Package not found for index" << index; } } void PackagesManager::slot_getInstallStatus(int index, InstallStatus installStatus) { // qCDebug(devLog) << "Slot: Get install status for index" << index << "status:" << installStatus; Package *pkg = searchByIndex(index); pkg->setPackageInstallStatus(installStatus); if (!m_appendFinished) { qCDebug(devLog) << "Append finished flag set to true"; m_appendFinished = true; } else { qCDebug(devLog) << "Emitting add package success signal for index" << index; emit signal_addPackageSuccess(index); } } void PackagesManager::appendPackages(QStringList packages) { qCDebug(devLog) << "Appending packages:" << packages; for (int i = 0; i < packages.size(); i++) { getPackageInfo(packages[i], i); } } void PackagesManager::removePackage(int index) { qCDebug(devLog) << "Removing package at index:" << index; Package *pkg = searchByIndex(index); if (pkg) { m_packages.removeOne(pkg); m_packagesMd5.remove(pkg->getMd5()); emit signal_removePackageSuccess(index); } delete pkg; qCDebug(devLog) << "Package removed successfully"; } int PackagesManager::checkInstallStatus(int index) { qCDebug(devLog) << "Checking install status for index:" << index; Package *pkg = searchByIndex(index); if (pkg) { return pkg->getInstallStatus(); } else { qCWarning(devLog) << "Package not found for index" << index; return InstallStatusUnknown; } } bool PackagesManager::checkPackageValid(int index) { qCDebug(devLog) << "Checking package validity for index:" << index; Package *package = searchByIndex(index); if (package) { return package->getValid(); } else { qCWarning(devLog) << "Package not found for index" << index; return false; } } bool PackagesManager::checkPackageSignture(int index) { qCDebug(devLog) << "Checking package signature for index:" << index; Package *package = searchByIndex(index); if (package) { if (SigntureVerifySuccess == package->getSigntureStatus()) { qCDebug(devLog) << "Signature verify success for index:" << index; return true; } else { qCWarning(devLog) << "Package verify signature failed with status:" << package->getSigntureStatus(); return false; } } else { qCWarning(devLog) << "Package not found for index" << index; return false; } } bool PackagesManager::checkPackageDependsStatus(int index) { qCDebug(devLog) << "Checking package dependency status for index:" << index; Package *package = searchByIndex(index); if (package) { bool status = (package->getDependStatus() == DependsOk || package->getDependStatus() == DependsAvailable); qCDebug(devLog) << "Dependency status for index" << index << "is" << status; return status; } else { qCWarning(devLog) << "Package not found for index" << index; return false; } } bool PackagesManager::checkPackageSuffix(QString packagePath) { qCDebug(devLog) << "Checking package suffix for path:" << packagePath; const QFileInfo info(packagePath); if (info.exists() && info.isFile() && info.suffix().toLower() == "deb") { // 大小写不敏感的判断是否为deb后缀 qCDebug(devLog) << "Suffix is .deb, check passed"; return true; } qCWarning(devLog) << "Package suffix check failed for path:" << packagePath; return false; } void PackagesManager::getPackageInfo(QString packagePath, int index) { qCDebug(devLog) << "Getting package info for path:" << packagePath << "at index:" << 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()) { qCWarning(devLog) << "Package file is invalid:" << packagePath; emit signal_packageInvalid(index); return; } auto md5 = packageFile->getMd5(); if (m_packagesMd5.contains(md5)) { qCWarning(devLog) << "Package with md5" << md5 << "already exists."; emit signal_packageAlreadyExits(index); return; } if (packageFile->getSigntureStatus() != SigntureVerifySuccess) { qCWarning(devLog) << "Package signature error with status:" << packageFile->getSigntureStatus(); 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() { qCDebug(devLog) << "Starting installation"; if (m_packages.size() > 0) { m_pPackageInstaller->appendPackage(m_packages[0]); m_pPackageInstaller->installPackage(); } else { qCWarning(devLog) << "No packages to install, index invalid."; emit signal_invalidIndex(0); } } void PackagesManager::uninstall(int index) { qCDebug(devLog) << "Starting uninstallation for index:" << index; Package *package = searchByIndex(index); if (package) { if (package->getInstallStatus() <= NotInstalled) { qCWarning(devLog) << "Package is not installed, cannot uninstall. Index:" << index; emit signal_packageNotInstalled(index); return; } QStringList reverseDepends = m_pPackageStatus->getPackageReverseDependsList(package->getName(), package->getArchitecture()); if (!reverseDepends.isEmpty()) { qCDebug(devLog) << "Setting reverse dependencies:" << reverseDepends; package->setPackageReverseDependsList(reverseDepends); } m_pPackageInstaller->appendPackage(package); m_pPackageInstaller->uninstallPackage(); } else { qCWarning(devLog) << "Package not found for uninstall, index:" << index; } } Package *PackagesManager::searchByIndex(int index) { qCDebug(devLog) << "Searching for package by index:" << 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()) { qCDebug(devLog) << "Package found for index:" << index; return *iter; } emit signal_invalidIndex(index); qCWarning(devLog) << "Package not found for index:" << index; return nullptr; } void PackagesManager::slot_installFinished(QApt::ExitStatus exitStatus) { qCDebug(devLog) << "Slot: Install finished with exit status:" << exitStatus; if (QApt::ExitSuccess == exitStatus) { qCDebug(devLog) << "Installation successful, removing package from queue."; m_packagesMd5.remove(m_packages[0]->getMd5()); m_packages.removeAt(0); if (m_packages.isEmpty()) { qCDebug(devLog) << "All packages installed, emitting install finished signal."; emit signal_installFinished(); return; } qCDebug(devLog) << "More packages to install, reloading cache and continuing."; QApt::Backend *backend = m_pPackageStatus->m_backendFuture.result(); backend->reloadCache(); install(); } else { qCWarning(devLog) << "Installation failed with exit status:" << exitStatus; } } void PackagesManager::slot_uninstallFinished(QApt::ExitStatus exitStatus) { qCDebug(devLog) << "Slot: Uninstall finished with exit status:" << exitStatus; if (QApt::ExitSuccess == exitStatus) { qCDebug(devLog) << "Uninstallation successful, removing package from queue."; m_packagesMd5.remove(m_packages[0]->getMd5()); m_packages.removeAt(0); emit signal_uninstallFinished(); } else { qCWarning(devLog) << "Uninstallation failed with exit status:" << exitStatus; } } PackagesManager::~PackagesManager() { qCDebug(devLog) << "Destroying PackagesManager"; m_packages.clear(); m_packagesMd5.clear(); delete m_pPackageStatus; } deepin-deb-installer-6.5.51/src/deepin-deb-installer-dev/manager/PackagesManager.h000066400000000000000000000043261524745214100277370ustar00rootroot00000000000000// 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.51/src/deepin-deb-installer-dev/package/000077500000000000000000000000001524745214100245315ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/deepin-deb-installer-dev/package/Package.cpp000066400000000000000000000116001524745214100265660ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "Package.h" #include #include Q_DECLARE_LOGGING_CATEGORY(devLog) Package::Package() : m_pSigntureStatus(new PackageSigntureStatus) { qCDebug(devLog) << "Creating an empty Package object"; } Package::Package(const QString &packagePath) : m_packagePath(packagePath) , m_pSigntureStatus(new PackageSigntureStatus) { qCDebug(devLog) << "Creating Package object with path:" << packagePath; QApt::DebFile *pDebInfo = new QApt::DebFile(packagePath); if (!pDebInfo || !pDebInfo->isValid()) { qCWarning(devLog) << "Failed to get deb file info for path:" << packagePath; 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(); qCDebug(devLog) << "Package info loaded:" << m_name << m_version; delete pDebInfo; } Package::Package(int index, const QString &packagePath) : m_index(index) , m_packagePath(packagePath) , m_pSigntureStatus(new PackageSigntureStatus) { qCDebug(devLog) << "Creating Package object with index:" << index << "and path:" << packagePath; QApt::DebFile *pDebInfo = new QApt::DebFile(packagePath); if (!pDebInfo || !pDebInfo->isValid()) { qCWarning(devLog) << "Failed to get deb file info for path:" << packagePath; m_valid = false; return; } m_valid = pDebInfo->isValid(); m_name = pDebInfo->packageName(); m_version = pDebInfo->version(); m_architecture = pDebInfo->architecture(); m_md5 = pDebInfo->md5Sum(); qCDebug(devLog) << "Package info loaded:" << m_name << m_version; m_signtureStatus = m_pSigntureStatus->checkPackageSignture(packagePath); } void Package::setPackageReverseDependsList(const QStringList &reverseDepends) { // qCDebug(devLog) << "Setting reverse dependencies for" << m_name << ":" << reverseDepends; m_packageReverseDepends = reverseDepends; } void Package::setPackageInstallStatus(InstallStatus packageInstallStatus) { // qCDebug(devLog) << "Setting install status for" << m_name << "to" << packageInstallStatus; m_installStatus = packageInstallStatus; } void Package::setPackageIndex(int index) { // qCDebug(devLog) << "Setting package index to" << index; m_index = index; } void Package::setPackagePath(const QString &packagePath) { // qCDebug(devLog) << "Setting package path to" << packagePath; m_packagePath = packagePath; } void Package::setPackageDependStatus(DependsStatus packageDependStatus) { // qCDebug(devLog) << "Setting dependency status for" << m_name << "to" << packageDependStatus; m_dependsStatus = packageDependStatus; } void Package::setPackageAvailableDepends(const QStringList &depends) { // qCDebug(devLog) << "Setting available dependencies for" << m_name << ":" << depends; m_packageAvailableDependList.clear(); m_packageAvailableDependList << depends; } int Package::getIndex() { // qCDebug(devLog) << "Getting package index:" << m_index; return m_index; } bool Package::getValid() { // qCDebug(devLog) << "Getting package validity:" << m_valid; return m_valid; } QString Package::getName() { // qCDebug(devLog) << "Getting package name:" << m_name; return m_name; } QString Package::getPath() { // qCDebug(devLog) << "Getting package path:" << m_packagePath; return m_packagePath; } QString Package::getVersion() { // qCDebug(devLog) << "Getting package version:" << m_version; return m_version; } QString Package::getArchitecture() { // qCDebug(devLog) << "Getting package architecture:" << m_architecture; return m_architecture; } QByteArray Package::getMd5() { // qCDebug(devLog) << "Getting package md5:" << m_md5; return m_md5; } SigntureStatus Package::getSigntureStatus() { // qCDebug(devLog) << "Getting signature status:" << m_signtureStatus; return m_signtureStatus; } DependsStatus Package::getDependStatus() { // qCDebug(devLog) << "Getting dependency status:" << m_dependsStatus; return m_dependsStatus; } InstallStatus Package::getInstallStatus() { // qCDebug(devLog) << "Getting install status:" << m_installStatus; return m_installStatus; } QStringList Package::getPackageAvailableDepends() { // qCDebug(devLog) << "Getting available dependencies list for" << m_name; return m_packageAvailableDependList; } QStringList Package::getPackageReverseDependList() { // qCDebug(devLog) << "Getting reverse dependencies list for" << m_name; return m_packageReverseDepends; } Package::~Package() { // qCDebug(devLog) << "Destroying Package object for" << m_name; delete m_pSigntureStatus; } deepin-deb-installer-6.5.51/src/deepin-deb-installer-dev/package/Package.h000066400000000000000000000073601524745214100262430ustar00rootroot00000000000000// 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.51/src/deepin-deb-installer-dev/result.h000066400000000000000000000014141524745214100246250ustar00rootroot00000000000000// 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.51/src/deepin-deb-installer-dev/status/000077500000000000000000000000001524745214100244615ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/deepin-deb-installer-dev/status/GetStatusThread.cpp000066400000000000000000000021741524745214100302440ustar00rootroot00000000000000// 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.51/src/deepin-deb-installer-dev/status/GetStatusThread.h000066400000000000000000000012741524745214100277110ustar00rootroot00000000000000// 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.51/src/deepin-deb-installer-dev/status/PackageSigntureStatus.cpp000066400000000000000000000037431524745214100314540ustar00rootroot00000000000000// 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.51/src/deepin-deb-installer-dev/status/PackageSigntureStatus.h000066400000000000000000000027761524745214100311260ustar00rootroot00000000000000// 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.51/src/deepin-deb-installer-dev/status/PackageStatus.cpp000066400000000000000000000764531524745214100277430ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "PackageStatus.h" #include #include #include #include #include #include Q_DECLARE_LOGGING_CATEGORY(devLog) using namespace QApt; QApt::Backend *init_backend() { qCDebug(devLog) << "Initializing backend"; QApt::Backend *b = new QApt::Backend; if (b->init()) { qCDebug(devLog) << "Backend initialized successfully"; return b; } qCWarning(devLog) << "Backend initialization failed"; return nullptr; } PackageStatus::PackageStatus() : m_backendFuture(QtConcurrent::run(init_backend)) { qCDebug(devLog) << "Creating PackageStatus object"; } PackageStatus::PackageStatus(DependsStatus ds, const QString &pkg) : m_status(ds) , m_package(pkg) , m_backendFuture(QtConcurrent::run(init_backend)) { qCDebug(devLog) << "Creating PackageStatus object with status" << ds << "and package" << pkg; } PackageStatus &PackageStatus::operator=(const PackageStatus &other) { // qCDebug(devLog) << "Assigning PackageStatus"; m_status = other.m_status; m_package = other.m_package; m_backendFuture = other.m_backendFuture; return *this; } PackageStatus PackageStatus::max(const PackageStatus &other) { // qCDebug(devLog) << "Comparing for max status"; if (other.m_status > m_status) { // qCDebug(devLog) << "Updating to new max status:"; *this = other; } return *this; } PackageStatus PackageStatus::maxEq(const PackageStatus &other) { // qCDebug(devLog) << "Comparing for max or equal status"; if (other.m_status >= m_status) { // qCDebug(devLog) << "Updating to new max or equal status:"; *this = other; } return *this; } PackageStatus PackageStatus::min(const PackageStatus &other) { // qCDebug(devLog) << "Comparing for min status"; if (other.m_status < m_status) { // qCDebug(devLog) << "Updating to new min status:"; *this = other; } return *this; } PackageStatus PackageStatus::minEq(const PackageStatus &other) { // qCDebug(devLog) << "Comparing for min or equal status"; if (other.m_status <= m_status) { // qCDebug(devLog) << "Updating to new min or equal status:"; *this = other; } return *this; } bool PackageStatus::isBreak() const { // qCDebug(devLog) << "Checking if status is DependsBreak"; return m_status == DependsBreak; } bool PackageStatus::isAuthCancel() const { // qCDebug(devLog) << "Checking if status is DependsAuthCancel"; return m_status == DependsAuthCancel; } bool PackageStatus::isAvailable() const { // qCDebug(devLog) << "Checking if status is DependsAvailable"; return m_status == DependsAvailable; } QString PackageStatus::resolvMultiArchAnnotation(const QString &annotation, const QString &debArch, const int multiArchType) { qCDebug(devLog) << "Resolving multi-arch annotation:" << annotation << debArch << multiArchType; if (annotation == "native" || annotation == "any") { qCDebug(devLog) << "Annotation is native or any, returning empty."; return QString(); } if (annotation == "all") { qCDebug(devLog) << "Annotation is all, returning empty."; return QString(); } if (multiArchType == MultiArchForeign) { qCDebug(devLog) << "Multi-arch type is foreign, returning empty."; return QString(); } QString arch; if (annotation.isEmpty()) { qCDebug(devLog) << "Annotation is empty, using debArch:" << debArch; arch = debArch; } else { qCDebug(devLog) << "Using annotation as arch:" << annotation; arch = annotation; } if (!arch.startsWith(':') && !arch.isEmpty()) { qCDebug(devLog) << "Prepending ':' to arch:" << arch; return arch.prepend(':'); } else { return arch; } } QApt::Package *PackageStatus::packageWithArch(const QString &packageName, const QString &sysArch, const QString &annotation) { qCDebug(devLog) << "Getting package with arch:" << packageName << sysArch << annotation; Backend *backend = m_backendFuture.result(); QApt::Package *p = backend->package(packageName + resolvMultiArchAnnotation(annotation, sysArch)); do { // change: 按照当前支持的CPU架构进行打包。取消对deepin-wine的特殊处理 if (!p) { qCDebug(devLog) << "Package not found with annotation, trying without arch:" << packageName; p = backend->package(packageName); } if (p) { break; } for (QString arch : backend->architectures()) { if (!p) { // qCDebug(devLog) << "Trying with arch:" << arch; p = backend->package(packageName + ":" + arch); } if (p) { break; } } } while (false); if (p) { qCDebug(devLog) << "Package found:" << p->name(); return p; } // check virtual package providers qCDebug(devLog) << "Checking for virtual package providers for" << packageName; for (auto *ap : backend->availablePackages()) { if (ap->name() != packageName && ap->providesList().contains(packageName)) { // qCDebug(devLog) << "Found provider" << ap->name() << "for" << packageName; return packageWithArch(ap->name(), sysArch, annotation); } } qCWarning(devLog) << "Package not found:" << packageName; return nullptr; } /** * @brief isArchMatches 判断包的架构是否符合系统要求 * @param sysArch 系统架构 * @param packageArch 包的架构 * @param multiArchType 系统多架构类型 * @return 是否符合多架构要求 */ bool PackageStatus::isArchMatches(QString sysArch, const QString &packageArch, const int multiArchType) { qCDebug(devLog) << "Checking if arch matches:" << sysArch << packageArch << multiArchType; Q_UNUSED(multiArchType); if (sysArch.startsWith(':')) { sysArch.remove(0, 1); } if (sysArch == "all" || sysArch == "any") { qCDebug(devLog) << "System arch is 'all' or 'any', matches."; return true; } bool matches = (sysArch == packageArch); qCDebug(devLog) << "Arch match result:" << matches; return matches; } bool PackageStatus::dependencyVersionMatch(const int result, const RelationType relation) { qCDebug(devLog) << "Checking dependency version match, result:" << result << "relation:" << 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:; } qCDebug(devLog) << "Default case, returning true"; return true; } const ConflictResult PackageStatus::isConflictSatisfy(const QString &arch, Package *package) { qCDebug(devLog) << "Checking if conflict is satisfied for package:" << package->name(); const QString &name = package->name(); const auto ret_installed = isInstalledConflict(name, package->version(), package->architecture()); if (!ret_installed.is_ok()) { qCWarning(devLog) << "Installed conflict found for" << name; 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) { qCDebug(devLog) << "Checking if conflict is satisfied for conflicts list"; 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())) { qCWarning(devLog) << "Conflicts package installed with wrong arch:" << 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成立 qCDebug(devLog) << "Conflict is replaced by" << name; conflict_yes = false; break; } } } if (!conflict_yes) { break; } } if (!conflict_yes) { p = nullptr; continue; } qCWarning(devLog) << "Conflicts package installed:" << arch << p->name() << p->architecture() << p->multiArchTypeString() << mirror_version << conflict_version; return ConflictResult::err(name); } } } qCDebug(devLog) << "No conflict found"; return ConflictResult::ok(QString()); } bool PackageStatus::isArchError(const QString &packagePath) { qCDebug(devLog) << "Checking for arch error in package:" << packagePath; DebFile deb(packagePath); Backend *backend = m_backendFuture.result(); const QString arch = deb.architecture(); if (arch == "all" || arch == "any") { qCDebug(devLog) << "Arch is 'all' or 'any', no error."; return false; } // loongarch64 packages on a loong64 system are redirected to compatible mode, not an error // loong64 = Debian LoongArch port native arch; loongarch64 = legacy arch name in older packages const QString nativeArch = backend->nativeArchitecture(); if (nativeArch == QLatin1String("loong64") && arch == QLatin1String("loongarch64")) { qCDebug(devLog) << "Package arch" << arch << "is compatible with system arch" << nativeArch << ", skipping arch error check"; return false; } bool architectures = !backend->architectures().contains(deb.architecture()); qCDebug(devLog) << "Arch error status:" << architectures; return architectures; } const ConflictResult PackageStatus::isInstalledConflict(const QString &packageName, const QString &packageVersion, const QString &packageArch) { qCDebug(devLog) << "Checking for installed conflict for package:" << packageName << packageVersion << packageArch; static QList> sysConflicts; Backend *backend = m_backendFuture.result(); if (sysConflicts.isEmpty()) { qCDebug(devLog) << "System conflicts cache is empty, building it now."; for (QApt::Package *p : backend->availablePackages()) { if (!p->isInstalled()) { // qCDebug(devLog) << "Package" << p->name() << "is not installed, skipping."; continue; } const auto &conflicts = p->conflicts(); if (conflicts.isEmpty()) { // qCDebug(devLog) << "Package" << p->name() << "has no conflicts, skipping."; 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()) { qCWarning(devLog) << "Conflict found with" << info.first << "(version empty)"; return ConflictResult::err(info.first); } const int relation = QApt::Package::compareVersion(packageVersion, conflict.packageVersion()); // match, so is bad if (dependencyVersionMatch(relation, conflict.relationType())) { qCWarning(devLog) << "Conflict found with" << info.first; return ConflictResult::err(info.first); } } qCDebug(devLog) << "No installed conflict found for" << packageName; return ConflictResult::ok(QString()); } DependsStatus PackageStatus::checkDependsPackageStatus(QSet &choosed_set, const QString &architecture, const QList &depends) { qCDebug(devLog) << "Checking dependency status for list of dependencies"; DependsStatus ret = DependsOk; if (depends.isEmpty()) { qCDebug(devLog) << "Dependency list is empty, returning OK"; 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; } qCDebug(devLog) << "Current dependency status:" << this->m_status; if (this->m_status == DependsBreak) { qCDebug(devLog) << "Dependency broken, breaking loop."; break; } } return this->m_status; } DependsStatus PackageStatus::checkDependsPackageStatus(QSet &choosed_set, const QString &architecture, const DependencyItem &candicate) { qCDebug(devLog) << "Checking dependency status for a single dependency item (OR group)"; // 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; } qCDebug(devLog) << "Current dependency status in OR group:" << this->m_status; if (this->m_status != DependsBreak) { qCDebug(devLog) << "Found a valid dependency in OR group, breaking loop."; break; } } return this->m_status; } DependsStatus PackageStatus::checkDependsPackageStatus(QSet &choosed_set, const QString &architecture, const DependencyInfo &dependencyInfo) { const QString package_name = dependencyInfo.packageName(); qCDebug(devLog) << "Checking dependency status for:" << package_name; QApt::Package *p = packageWithArch(package_name, architecture, dependencyInfo.multiArchAnnotation()); if (!p) { qCWarning(devLog) << "Dependency break: package" << package_name << "not available"; 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)) { qCDebug(devLog) << "Dependency OK: installed version matches for" << package_name; 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)) { qCDebug(devLog) << "Dependency Available: mirror version matches for" << package_name; return DependsAvailable; } } qCWarning(devLog) << "Dependency break by" << p->name() << p->architecture() << dependencyInfo.packageVersion(); qCWarning(devLog) << "Installed version not match:" << installedVersion; return DependsBreak; } } else { const int result = QApt::Package::compareVersion(p->version(), dependencyInfo.packageVersion()); if (!dependencyVersionMatch(result, relation)) { qCWarning(devLog) << "Dependency break by" << p->name() << p->architecture() << dependencyInfo.packageVersion(); qCWarning(devLog) << "Available version not match:" << p->version(); return DependsBreak; } if (choosed_set.contains(p->name())) { qCDebug(devLog) << "Dependency OK: already chosen:" << 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()) { qCWarning(devLog) << "Multiple architecture installed:" << p->name() << p->version() << p->architecture() << "but now need" << tp->name() << tp->version() << tp->architecture(); return DependsBreak; } } } // let's check conflicts if (!isConflictSatisfy(architecture, p).is_ok()) { qCDebug(devLog) << "Conflict found for" << p->name() << ", checking providers."; for (auto *ap : backend->availablePackages()) { if (!ap->providesList().contains(p->name())) { continue; } // is that already provide by another package? if (ap->isInstalled()) { qCDebug(devLog) << "Dependency OK: provided by installed package" << ap->name(); return DependsOk; } // provider is ok, switch to provider. if (isConflictSatisfy(architecture, ap).is_ok()) { qCDebug(devLog) << "Dependency OK: switching to provider" << ap->name(); choosed_set << ap->name(); return DependsOk; } } qCWarning(devLog) << "Providers not found, still 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(); qCDebug(devLog) << "Added" << p->name() << "to chosen set, checking its dependencies."; const auto r = checkDependsPackageStatus(choosed_set, p->architecture(), p->depends()); if (r == DependsBreak) { qCDebug(devLog) << "Dependencies of" << p->name() << "are broken, removing from chosen set."; choosed_set.remove(p->name()); return DependsBreak; } qCDebug(devLog) << "Dependencies of" << p->name() << "are available."; return DependsAvailable; } } DependsStatus PackageStatus::getPackageDependsStatus(const QString &packagePath) { qCDebug(devLog) << "Getting package dependency status for path:" << packagePath; while (true) { if (m_backendFuture.isFinished()) { break; } // qCDebug(devLog) << "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)) { qCWarning(devLog) << "Architecture error for" << packagePath; return ArchBreak; } // conflicts const ConflictResult debConflitsResult = isConflictSatisfy(architecture, deb->conflicts(), deb->replaces()); if (!debConflitsResult.is_ok()) { qCWarning(devLog) << "Dependency break because of conflict for" << deb->packageName(); ret = DependsBreak; } else { const ConflictResult localConflictsResult = isInstalledConflict(deb->packageName(), deb->version(), architecture); if (!localConflictsResult.is_ok()) { qCWarning(devLog) << "Dependency break because of conflict with local package for" << deb->packageName(); ret = DependsBreak; } else { QSet choose_set; choose_set << deb->packageName(); qCDebug(devLog) << "Checking dependencies for" << deb->packageName(); ret = checkDependsPackageStatus(choose_set, deb->architecture(), deb->depends()); } } delete deb; qCDebug(devLog) << "Final dependency status for" << packagePath << "is" << ret; return ret; } const QStringList PackageStatus::getPackageAvailableDepends(const QString &packagePath) { qCDebug(devLog) << "Getting available depends for package:" << 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; qCDebug(devLog) << "Available depends for" << packagePath << "are" << choose_set.values(); return choose_set.values(); } InstallStatus PackageStatus::getPackageInstallStatus(const QString &packagePath) { qCDebug(devLog) << "Getting package install status for:" << 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) { qCDebug(devLog) << "Package not found in backend, status unknown:" << packageName; break; } const QString installedVersion = pkg->installedVersion(); if (installedVersion.isEmpty()) { qCDebug(devLog) << "Package not installed:" << packageName; return NotInstalled; } const int result = Package::compareVersion(packageVersion, installedVersion); if (result == 0) { qCDebug(devLog) << "Same version installed for:" << packageName; return InstalledSameVersion; } else if (result < 0) { qCDebug(devLog) << "Later version installed for:" << packageName; return InstalledLaterVersion; } else { qCDebug(devLog) << "Earlier version installed for:" << packageName; return InstalledEarlierVersion; } } while (false); qCDebug(devLog) << "Final install status for" << packageName << "is" << ret; return ret; } void PackageStatus::packageCandidateChoose(QSet &choosed_set, const QString &debArch, const QList &dependsList) { qCDebug(devLog) << "Choosing package candidate from list of dependencies"; for (auto const &candidate_list : dependsList) { packageCandidateChoose(choosed_set, debArch, candidate_list); } } void PackageStatus::packageCandidateChoose(QSet &choosed_set, const QString &debArch, const DependencyItem &candidateList) { qCDebug(devLog) << "Choosing package candidate from a single dependency item (OR group)"; 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)) { qCDebug(devLog) << "Candidate" << choosed_name << "already in chosen set."; break; } // 修复升级依赖时,因为依赖包版本过低,造成安装循环。 // 删除无用冗余的日志 if (Package::compareVersion(dep->installedVersion(), info.packageVersion()) < 0) { qCDebug(devLog) << "Installed version of" << dep->name() << "is older, needs upgrade."; Backend *b = m_backendFuture.result(); Package *p = b->package(dep->name() + resolvMultiArchAnnotation(QString(), dep->architecture())); if (p) { qCDebug(devLog) << "Adding" << choosed_name << "to chosen set for upgrade."; choosed_set << dep->name() + resolvMultiArchAnnotation(QString(), dep->architecture()); } else { qCWarning(devLog) << "Could not find package for upgrade:" << choosed_name; choosed_set << dep->name() + " not found"; } } if (!isConflictSatisfy(debArch, dep->conflicts(), dep->replaces()).is_ok()) { qCDebug(devLog) << "Candidate" << dep->name() << "has conflicts, skipping."; continue; } // pass if break QSet set = choosed_set; set << choosed_name; const auto stat = checkDependsPackageStatus(set, dep->architecture(), dep->depends()); if (stat == DependsBreak) { qCWarning(devLog) << "Dependency error in choosing candidate" << dep->name(); continue; } qCDebug(devLog) << "Candidate" << choosed_name << "chosen. Recursively choosing its dependencies."; choosed_set << choosed_name; packageCandidateChoose(choosed_set, debArch, dep->depends()); break; } } QMap PackageStatus::specialPackage() { qCDebug(devLog) << "Getting special package map"; 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) { qCDebug(devLog) << "Getting reverse depends list for" << packageName; 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; qCDebug(devLog) << "Added" << item << "to reverse depends list."; // fix bug:https://pms.uniontech.com/zentao/bug-view-37220.html if (specialPackage().contains(item)) { qCDebug(devLog) << "Found special package, adding" << specialPackage()[item] << "to queue."; 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); qCDebug(devLog) << "Final reverse depends list:" << ret.values(); return ret.values(); } PackageStatus::~PackageStatus() { qCDebug(devLog) << "Destroying PackageStatus object."; } deepin-deb-installer-6.5.51/src/deepin-deb-installer-dev/status/PackageStatus.h000066400000000000000000000151221524745214100273720ustar00rootroot00000000000000// 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.51/src/dfmplugin-debinstaller/000077500000000000000000000000001524745214100230265ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/dfmplugin-debinstaller/CMakeLists.txt000066400000000000000000000024561524745214100255750ustar00rootroot00000000000000cmake_minimum_required(VERSION 3.13) project(dfmplugin-debinstaller) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) include(GNUInstallDirs) if(NOT DEFINED DFM_PLUGIN_DIR) set(DFM_PLUGIN_DIR ${CMAKE_INSTALL_FULL_LIBDIR}/dde-file-manager/plugins) endif() if(NOT DEFINED DFM_PLUGIN_COMMON_EDGE_DIR) set(DFM_PLUGIN_COMMON_EDGE_DIR ${DFM_PLUGIN_DIR}/common-edge) endif() FILE(GLOB PLUGIN_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.h" "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/*/*.h" "${CMAKE_CURRENT_SOURCE_DIR}/*/*.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/*.json" ) find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Gui) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Gui Widgets DBus) find_package(dfm${DTK_VERSION_MAJOR}-framework REQUIRED) find_package(dfm${DTK_VERSION_MAJOR}-base REQUIRED) add_library(${PROJECT_NAME} SHARED ${PLUGIN_FILES}) target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) target_link_libraries(${PROJECT_NAME} Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Gui Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::DBus dfm${DTK_VERSION_MAJOR}-framework dfm${DTK_VERSION_MAJOR}-base ) install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${DFM_PLUGIN_COMMON_EDGE_DIR} ) deepin-deb-installer-6.5.51/src/dfmplugin-debinstaller/debinstallerplugin.cpp000066400000000000000000000041211524745214100274170ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "debinstallerplugin.h" #include "menu/debinstallermenuscene.h" #include inline constexpr char kParentScene[] { "ExtendMenu" }; using namespace dfmbase; using namespace dfmplugin_debinstaller; void DebInstallerPlugin::initialize() { auto translator = new QTranslator(this); Q_UNUSED(translator->load(QLocale(), "deepin-deb-installer", "_", "/usr/share/deepin-deb-installer/translations")); QCoreApplication::installTranslator(translator); if (DPF_NAMESPACE::LifeCycle::isAllPluginsStarted()) { bindMenuScene(); } else { connect(dpfListener, &DPF_NAMESPACE::Listener::pluginsStarted, this, &DebInstallerPlugin::bindMenuScene, Qt::DirectConnection); } } bool DebInstallerPlugin::start() { return true; } void DebInstallerPlugin::bindMenuScene() { dpfSlotChannel->push("dfmplugin_menu", "slot_MenuScene_RegisterScene", DebInstallerMenuCreator::name(), new DebInstallerMenuCreator); bool ret = dpfSlotChannel->push("dfmplugin_menu", "slot_MenuScene_Contains", QString(kParentScene)) .toBool(); if (ret) { dpfSlotChannel->push("dfmplugin_menu", "slot_MenuScene_Bind", DebInstallerMenuCreator::name(), QString(kParentScene)); } else { dpfSignalDispatcher->subscribe("dfmplugin_menu", "signal_MenuScene_SceneAdded", this, &DebInstallerPlugin::onMenuSceneAdded); } } void DebInstallerPlugin::onMenuSceneAdded(const QString &scene) { if (scene == kParentScene) { dpfSlotChannel->push("dfmplugin_menu", "slot_MenuScene_Bind", DebInstallerMenuCreator::name(), QString(kParentScene)); dpfSignalDispatcher->unsubscribe("dfmplugin_menu", "signal_MenuScene_SceneAdded", this, &DebInstallerPlugin::onMenuSceneAdded); } } deepin-deb-installer-6.5.51/src/dfmplugin-debinstaller/debinstallerplugin.h000066400000000000000000000012521524745214100270660ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef DEBINSTALLERPLUGIN_H #define DEBINSTALLERPLUGIN_H #include namespace dfmplugin_debinstaller { class DebInstallerPlugin : public dpf::Plugin { Q_OBJECT Q_PLUGIN_METADATA(IID "org.deepin.plugin.common" FILE "debinstallerplugin.json") DPF_EVENT_NAMESPACE(dfmplugin_debinstaller) public: void initialize() override; bool start() override; private Q_SLOTS: void bindMenuScene(); void onMenuSceneAdded(const QString &scene); }; } // namespace dfmplugin_debinstaller #endif // DEBINSTALLERPLUGIN_H deepin-deb-installer-6.5.51/src/dfmplugin-debinstaller/debinstallerplugin.json000066400000000000000000000007641524745214100276170ustar00rootroot00000000000000{ "Name" : "dfmplugin-debinstaller", "Version" : "1.0.0", "CompatVersion" : "1.0.0", "Vendor" : "UnionTech Software Technology Co., Ltd.", "Copyright" : "Copyright (C) 2025 UnionTech Software Technology Co., Ltd.", "License" : [ ], "Category" : "", "Description" : "Add compatible mode install menu item for deb packages in file manager.", "UrlLink" : "https://www.deepin.org", "Depends" : [ {"Name" : "dfmplugin-core", "Version": "1.0.0"} ] } deepin-deb-installer-6.5.51/src/dfmplugin-debinstaller/menu/000077500000000000000000000000001524745214100237725ustar00rootroot00000000000000deepin-deb-installer-6.5.51/src/dfmplugin-debinstaller/menu/debinstallermenuscene.cpp000066400000000000000000000124321524745214100310530ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include "debinstallermenuscene.h" #include "debinstallermenuscene_p.h" #include #include #include #include #include #include #include #include inline constexpr char kCompatibleInstall[] { "compatible-install" }; inline constexpr char kOpenWithActionID[] { "open-with" }; inline constexpr char kDebInstallService[] { "com.deepin.DebInstaller" }; inline constexpr char kDebInstallPath[] { "/com/deepin/DebInstaller" }; using namespace dfmplugin_debinstaller; DFMBASE_USE_NAMESPACE enum InstallerState : int { NotRunning = 0, // service not on bus, no activation risk Ready = 1, // service running, supports compat, no packages loaded Busy = 2, // service running, supports compat, has packages loaded NotSupported = 3 // service running but lacks hasPackages (old version) }; static InstallerState checkInstallerState() { auto bus = QDBusConnection::sessionBus(); auto connIface = bus.interface(); if (!connIface || !connIface->isServiceRegistered(kDebInstallService)) return NotRunning; QDBusMessage msg = QDBusMessage::createMethodCall( kDebInstallService, kDebInstallPath, "org.freedesktop.DBus.Properties", "Get"); msg << QString(kDebInstallService) << QString("hasPackages"); QDBusMessage reply = bus.call(msg, QDBus::Block, 500); if (reply.type() == QDBusMessage::ErrorMessage) return NotSupported; QVariant arg0 = reply.arguments().value(0); if (!arg0.canConvert()) return NotSupported; QVariant value = arg0.value().variant(); return value.toBool() ? Busy : Ready; } AbstractMenuScene *DebInstallerMenuCreator::create() { return new DebInstallerMenuScene(); } DebInstallerMenuScenePrivate::DebInstallerMenuScenePrivate(DebInstallerMenuScene *qq) : q(qq) { } DebInstallerMenuScene::DebInstallerMenuScene(QObject *parent) : AbstractMenuScene(parent), d(new DebInstallerMenuScenePrivate(this)) { d->predicateName[kCompatibleInstall] = tr("Install in compatible mode"); } DebInstallerMenuScene::~DebInstallerMenuScene() { } QString DebInstallerMenuScene::name() const { return DebInstallerMenuCreator::name(); } bool DebInstallerMenuScene::initialize(const QVariantHash ¶ms) { if (QStandardPaths::findExecutable("deepin-compatible-ctl").isEmpty()) return false; d->selectFiles = params.value(MenuParamKey::kSelectFiles).value>(); d->isEmptyArea = params.value(MenuParamKey::kIsEmptyArea).toBool(); if (d->isEmptyArea || d->selectFiles.size() != 1) return false; const auto &url = d->selectFiles.first(); if (!url.isLocalFile() || !url.toLocalFile().endsWith(".deb")) return false; return AbstractMenuScene::initialize(params); } AbstractMenuScene *DebInstallerMenuScene::scene(QAction *action) const { if (action == nullptr) return nullptr; if (!d->predicateAction.key(action).isEmpty()) return const_cast(this); return AbstractMenuScene::scene(action); } bool DebInstallerMenuScene::create(QMenu *parent) { if (!parent) return false; auto act = parent->addAction(d->predicateName.value(kCompatibleInstall)); d->predicateAction[kCompatibleInstall] = act; act->setProperty(ActionPropertyKey::kActionID, kCompatibleInstall); return AbstractMenuScene::create(parent); } void DebInstallerMenuScene::updateState(QMenu *parent) { if (!parent) return; auto targetAction = d->predicateAction.value(kCompatibleInstall); if (!targetAction) return AbstractMenuScene::updateState(parent); switch (checkInstallerState()) { case NotRunning: case Ready: case NotSupported: targetAction->setEnabled(true); break; case Busy: targetAction->setEnabled(false); break; } parent->removeAction(targetAction); auto actions = parent->actions(); bool inserted = false; for (auto it = actions.begin(); it != actions.end(); ++it) { auto actId = (*it)->property(ActionPropertyKey::kActionID).toString(); if (actId == kOpenWithActionID) { ++it; if (it != actions.end()) { parent->insertAction(*it, targetAction); } else { parent->addAction(targetAction); } inserted = true; break; } } if (!inserted) parent->addAction(targetAction); AbstractMenuScene::updateState(parent); } bool DebInstallerMenuScene::triggered(QAction *action) { auto actionId = action->property(ActionPropertyKey::kActionID).toString(); if (!d->predicateAction.contains(actionId)) return AbstractMenuScene::triggered(action); if (actionId == kCompatibleInstall) { if (d->selectFiles.isEmpty()) return QProcess::startDetached("deepin-deb-installer", { "--compatible" }); QString debPath = d->selectFiles.first().toLocalFile(); return QProcess::startDetached("deepin-deb-installer", { "--compatible", debPath }); } return true; } deepin-deb-installer-6.5.51/src/dfmplugin-debinstaller/menu/debinstallermenuscene.h000066400000000000000000000023061524745214100305170ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef DEBINSTALLERMENUSCENE_H #define DEBINSTALLERMENUSCENE_H #include #include namespace dfmplugin_debinstaller { class DebInstallerMenuCreator : public DFMBASE_NAMESPACE::AbstractSceneCreator { public: static QString name() { return "DebInstallerMenu"; } DFMBASE_NAMESPACE::AbstractMenuScene *create() override; }; class DebInstallerMenuScenePrivate; class DebInstallerMenuScene : public DFMBASE_NAMESPACE::AbstractMenuScene { Q_OBJECT public: explicit DebInstallerMenuScene(QObject *parent = nullptr); ~DebInstallerMenuScene() override; QString name() const override; bool initialize(const QVariantHash ¶ms) override; AbstractMenuScene *scene(QAction *action) const override; bool create(QMenu *parent) override; void updateState(QMenu *parent) override; bool triggered(QAction *action) override; private: QScopedPointer d; }; } // namespace dfmplugin_debinstaller #endif // DEBINSTALLERMENUSCENE_H deepin-deb-installer-6.5.51/src/dfmplugin-debinstaller/menu/debinstallermenuscene_p.h000066400000000000000000000012241524745214100310340ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #ifndef DEBINSTALLERMENUSCENE_P_H #define DEBINSTALLERMENUSCENE_P_H #include namespace dfmplugin_debinstaller { class DebInstallerMenuScene; class DebInstallerMenuScenePrivate { public: explicit DebInstallerMenuScenePrivate(DebInstallerMenuScene *qq); public: DebInstallerMenuScene *q; QList selectFiles; bool isEmptyArea { false }; QMap predicateAction; QMap predicateName; }; } // namespace dfmplugin_debinstaller #endif // DEBINSTALLERMENUSCENE_P_H deepin-deb-installer-6.5.51/tests/000077500000000000000000000000001524745214100167465ustar00rootroot00000000000000deepin-deb-installer-6.5.51/tests/CMakeLists.txt000066400000000000000000000144451524745214100215160ustar00rootroot00000000000000# 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) # Qt5环境不支持兼容模式(QThreadPool::start不支持lambda) if (NOT QT_DESIRED_VERSION MATCHES 6) add_definitions(-DDISABLE_COMPATIBLE) message(STATUS "Qt5 environment detected, disabling compatible mode in tests") endif() # 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}) if (QT_DESIRED_VERSION MATCHES 6) find_package(Dtk${DTK_VERSION_MAJOR} COMPONENTS Core Gui Widget REQUIRED) set(DTK_WIDGET_LIB Dtk${DTK_VERSION_MAJOR}::Widget) set(DTK_CORE_LIB Dtk${DTK_VERSION_MAJOR}::Core) set(DTK_GUI_LIB Dtk${DTK_VERSION_MAJOR}::Gui) else() find_package(DtkWidget REQUIRED) find_package(DtkGui REQUIRED) find_package(DtkCore REQUIRED) set(DTK_WIDGET_LIB ${DtkWidget_LIBRARIES}) set(DTK_CORE_LIB ${DtkCore_LIBRARIES}) if (DEFINED DtkGui_LIBRARIES) set(DTK_GUI_LIB ${DtkGui_LIBRARIES}) else() set(DTK_GUI_LIB ${DtkGUI_LIBRARIES}) endif() endif() 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_WIDGET_LIB} ${DTK_CORE_LIB} ${DTK_GUI_LIB} 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 src/compatible/*.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.51/tests/FuzzyTest/000077500000000000000000000000001524745214100207355ustar00rootroot00000000000000deepin-deb-installer-6.5.51/tests/FuzzyTest/CMakeLists.txt000066400000000000000000000033031524745214100234740ustar00rootroot00000000000000# 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.51/tests/FuzzyTest/include/000077500000000000000000000000001524745214100223605ustar00rootroot00000000000000deepin-deb-installer-6.5.51/tests/FuzzyTest/include/FuzzerBuiltins.h000066400000000000000000000023701524745214100255320ustar00rootroot00000000000000//===- 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.51/tests/FuzzyTest/include/FuzzerBuiltinsMsvc.h000066400000000000000000000045201524745214100263620ustar00rootroot00000000000000//===- 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.51/tests/FuzzyTest/include/FuzzerCommand.h000066400000000000000000000137201524745214100253200ustar00rootroot00000000000000//===- 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.51/tests/FuzzyTest/include/FuzzerCorpus.h000066400000000000000000000226021524745214100252140ustar00rootroot00000000000000//===- 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.51/tests/FuzzyTest/include/FuzzerDataFlowTrace.h000066400000000000000000000077551524745214100264350ustar00rootroot00000000000000//===- 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.51/tests/FuzzyTest/include/FuzzerDefs.h000066400000000000000000000132541524745214100246250ustar00rootroot00000000000000//===- 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.51/tests/FuzzyTest/include/FuzzerDictionary.h000066400000000000000000000065071524745214100260540ustar00rootroot00000000000000//===- 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.51/tests/FuzzyTest/include/FuzzerExtFunctions.h000066400000000000000000000020551524745214100263720ustar00rootroot00000000000000//===- 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.51/tests/FuzzyTest/include/FuzzerFork.h000066400000000000000000000014121524745214100246360ustar00rootroot00000000000000//===- 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.51/tests/FuzzyTest/include/FuzzerIO.h000066400000000000000000000065071524745214100242560ustar00rootroot00000000000000//===- 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.51/tests/FuzzyTest/include/FuzzerInterface.h000066400000000000000000000060401524745214100256370ustar00rootroot00000000000000//===- 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.51/tests/FuzzyTest/include/FuzzerInternal.h000066400000000000000000000125221524745214100255150ustar00rootroot00000000000000//===- 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.51/tests/FuzzyTest/include/FuzzerMerge.h000066400000000000000000000064041524745214100250020ustar00rootroot00000000000000//===- 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.51/tests/FuzzyTest/include/FuzzerMutate.h000066400000000000000000000151051524745214100252000ustar00rootroot00000000000000//===- 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.51/tests/FuzzyTest/include/FuzzerOptions.h000066400000000000000000000043671524745214100254040ustar00rootroot00000000000000// // 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.51/tests/FuzzyTest/include/FuzzerRandom.h000066400000000000000000000023321524745214100251570ustar00rootroot00000000000000//===- 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.51/tests/FuzzyTest/include/FuzzerSHA1.h000066400000000000000000000017221524745214100244350ustar00rootroot00000000000000//===- 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.51/tests/FuzzyTest/include/FuzzerTracePC.h000066400000000000000000000215721524745214100252270ustar00rootroot00000000000000//===- 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.51/tests/FuzzyTest/include/FuzzerUtil.h000066400000000000000000000061311524745214100246550ustar00rootroot00000000000000//===- 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.51/tests/FuzzyTest/include/FuzzerValueBitMap.h000066400000000000000000000043401524745214100261110ustar00rootroot00000000000000//===- 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.51/tests/FuzzyTest/src/000077500000000000000000000000001524745214100215245ustar00rootroot00000000000000deepin-deb-installer-6.5.51/tests/FuzzyTest/src/main.cpp000066400000000000000000000010461524745214100231550ustar00rootroot00000000000000// 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.51/tests/cmake-lcov-test.sh000066400000000000000000000011621524745214100223000ustar00rootroot00000000000000# 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.51/tests/src/000077500000000000000000000000001524745214100175355ustar00rootroot00000000000000deepin-deb-installer-6.5.51/tests/src/addr_pri.h000066400000000000000000000152471524745214100215030ustar00rootroot00000000000000#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.51/tests/src/compatible/000077500000000000000000000000001524745214100216545ustar00rootroot00000000000000deepin-deb-installer-6.5.51/tests/src/compatible/ut_compatible_json_parser.cpp000066400000000000000000000055351524745214100276240ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2025 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include #include "../stub.h" #include "../deb-installer/compatible/compatible_json_parser.h" #include "../deb-installer/compatible/compatible_backend.h" class UTCompatibleJsonParser : public ::testing::Test { protected: void SetUp() override; void TearDown() override; }; void UTCompatibleJsonParser::SetUp() {} void UTCompatibleJsonParser::TearDown() {} static const QByteArray kAppListJson = "{\"Code\":0,\"Msg\":null,\"Ext\":{\"Code\":0,\"Msg\":[\"\xE6\x88\x90\xE5\x8A\x9F [\\n {\\n \\\"name\\\": " "\\\"hello\\\",\\n \\\"version\\\": \\\"2.10-2\\\",\\n \\\"arch\\\": \\\"amd64\\\"\\n },\\n {\\n \\\"name\\\": " "\\\"tree\\\",\\n \\\"version\\\": \\\"1.8.0-1\\\",\\n \\\"arch\\\": \\\"amd64\\\"\\n }\\n]\"]}}\n"; TEST_F(UTCompatibleJsonParser, parseAppListSuccess) { auto ret = Compatible::CompatibleJsonParser::parseCommonField(kAppListJson); ASSERT_FALSE(ret.isNull()); EXPECT_EQ(ret->code, 0); EXPECT_EQ(ret->ext.code, 0); EXPECT_TRUE(ret->message.isEmpty()); auto pkgList = Compatible::CompatibleJsonParser::parseAppList(ret); ASSERT_EQ(pkgList.size(), 2); EXPECT_EQ(pkgList.value("hello")->name, QString("hello")); EXPECT_EQ(pkgList.value("hello")->version, QString("2.10-2")); EXPECT_EQ(pkgList.value("hello")->arch, QString("amd64")); EXPECT_EQ(pkgList.value("tree")->name, QString("tree")); EXPECT_EQ(pkgList.value("tree")->version, QString("1.8.0-1")); EXPECT_EQ(pkgList.value("tree")->arch, QString("amd64")); } static const QByteArray kSupportRootfsJson = "{\"Code\":0,\"Msg\":null,\"Ext\":{\"Code\":0,\"Msg\":[\"成功 [\\n " "\\\"uos-rootfs-20\\\",\\n \\\"ubuntu-18.04\\\" \\n]\"]}}"; QList stub_rootfsList() { QList rootfsList; auto uosPtr = Compatible::RootfsInfo::Ptr::create(); uosPtr->name = "uos-rootfs-20"; rootfsList.append(uosPtr); auto ubuntuPtr = Compatible::RootfsInfo::Ptr::create(); uosPtr->name = "ubuntu-18.04"; rootfsList.append(ubuntuPtr); return rootfsList; } TEST_F(UTCompatibleJsonParser, parseSupportRootfsSuccess) { auto ret = Compatible::CompatibleJsonParser::parseCommonField(kAppListJson); ASSERT_FALSE(ret.isNull()); EXPECT_EQ(ret->code, 0); EXPECT_EQ(ret->ext.code, 0); EXPECT_TRUE(ret->message.isEmpty()); auto rootfsList = Compatible::CompatibleJsonParser::parseSupportfsList(ret); ASSERT_TRUE(rootfsList.isEmpty()); Stub stub; stub.set(ADDR(Compatible::CompatibleBackend, rootfsList), stub_rootfsList); rootfsList = Compatible::CompatibleJsonParser::parseSupportfsList(ret); ASSERT_EQ(rootfsList.size(), 2); } deepin-deb-installer-6.5.51/tests/src/manager/000077500000000000000000000000001524745214100211475ustar00rootroot00000000000000deepin-deb-installer-6.5.51/tests/src/manager/ut_addpackagethread.cpp000066400000000000000000000210601524745214100256160ustar00rootroot00000000000000// 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.51/tests/src/manager/ut_dealdependthread.cpp000066400000000000000000000064061524745214100256460ustar00rootroot00000000000000// 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.51/tests/src/manager/ut_packagedependsstatus.cpp000066400000000000000000000045371524745214100265760ustar00rootroot00000000000000// 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.51/tests/src/manager/ut_packagemanager.cpp000066400000000000000000002456551524745214100253320ustar00rootroot00000000000000// 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.51/tests/src/manager/ut_packagemanager.h000066400000000000000000000004751524745214100247640ustar00rootroot00000000000000// 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.51/tests/src/model/000077500000000000000000000000001524745214100206355ustar00rootroot00000000000000deepin-deb-installer-6.5.51/tests/src/model/ut_apt_install_backend.cpp000066400000000000000000000112141524745214100260310ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later #include #include "../deb-installer/model/deblistmodel.h" #include "../deb-installer/model/backend/apt_install_backend.h" #include "../deb-installer/manager/packagesmanager.h" #include "../deb-installer/manager/PackageDependsStatus.h" #include "../deb-installer/utils/hierarchicalverify.h" #include #include #include #include using namespace QApt; namespace { const QByteArray kMd5 { "md5-deps-loop" }; bool aptBackend_backend_init() { return true; } QStringList aptBackend_backend_architectures() { return { "i386", "amd64" }; } QApt::Transaction *aptBackend_backend_commitChanges() { return nullptr; } Package *aptBackend_packageWithArch(QString, QString, QString) { return nullptr; } Package *aptBackend_backend_package(const QString &) { return nullptr; } bool aptBackend_isBackendReady() { return true; } QString aptBackend_packageManager_package(const int) { return ""; } bool aptBackend_dealInvalidPackage(QString) { return true; } bool aptBackend_stub_model_is_open() { return true; } void aptBackend_stub_model_open(const std::string &, std::ios_base::openmode) { } bool aptBackend_Hierarchical_isValid() { return false; } QApt::ExitStatus aptBackend_exitStatus_success() { return QApt::ExitSuccess; } QApt::Transaction *g_senderTransaction = nullptr; QObject *aptBackend_sender() { if (!g_senderTransaction) g_senderTransaction = new QApt::Transaction("1"); return g_senderTransaction; } DebListModel *g_model = nullptr; bool g_installNextDebCalled = false; bool g_dependsCachePresentWhenInstallNextDeb = false; void aptBackend_installNextDeb_watchCache() { g_installNextDebCalled = true; g_dependsCachePresentWhenInstallNextDeb = g_model->m_packagesManager->m_packageMd5DependsStatus.contains(kMd5); } } // namespace class ut_AptInstallBackend_test : public ::testing::Test { protected: void SetUp() override; void TearDown() override; DebListModel *m_debListModel = nullptr; Stub stub; }; void ut_AptInstallBackend_test::SetUp() { stub.set((void(std::fstream::*)(const std::string &, std::ios_base::openmode))ADDR(std::fstream, open), aptBackend_stub_model_open); stub.set((bool(std::fstream::*)())ADDR(std::fstream, is_open), aptBackend_stub_model_is_open); stub.set(ADDR(Backend, init), aptBackend_backend_init); stub.set(ADDR(Backend, architectures), aptBackend_backend_architectures); stub.set(ADDR(Backend, commitChanges), aptBackend_backend_commitChanges); stub.set(ADDR(Backend, reloadCache), aptBackend_backend_init); stub.set((Package *(Backend::*)(const QString &) const)ADDR(Backend, package), aptBackend_backend_package); stub.set(ADDR(PackagesManager, isBackendReady), aptBackend_isBackendReady); stub.set(ADDR(PackagesManager, packageWithArch), aptBackend_packageWithArch); stub.set(ADDR(PackagesManager, package), aptBackend_packageManager_package); stub.set(ADDR(PackagesManager, dealInvalidPackage), aptBackend_dealInvalidPackage); stub.set(ADDR(HierarchicalVerify, isValid), aptBackend_Hierarchical_isValid); g_installNextDebCalled = false; g_dependsCachePresentWhenInstallNextDeb = false; m_debListModel = new DebListModel(); g_model = m_debListModel; usleep(10 * 1000); } void ut_AptInstallBackend_test::TearDown() { g_model = nullptr; delete m_debListModel; if (g_senderTransaction) { delete g_senderTransaction; g_senderTransaction = nullptr; } } TEST_F(ut_AptInstallBackend_test, aptInstallBackend_UT_slotDependsInstallTransactionFinished_success_invalidatesDependsCache) { stub.set(ADDR(Transaction, exitStatus), aptBackend_exitStatus_success); stub.set(ADDR(DebListModel, installNextDeb), aptBackend_installNextDeb_watchCache); PackagesManager *pm = m_debListModel->m_packagesManager; pm->m_preparedPackages.append("/tmp/ut-deps-loop.deb"); pm->m_packageMd5.append(kMd5); pm->m_packageMd5DependsStatus.insert(kMd5, PackageDependsStatus(Pkg::DependsAvailable, "ut-deps-loop")); m_debListModel->m_operatingIndex = 0; m_debListModel->m_operatingStatusIndex = 0; m_debListModel->m_operatingPackageMd5 = kMd5; AptInstallBackend backend(m_debListModel); Stub stubSender; stubSender.set(ADDR(QObject, sender), aptBackend_sender); backend.slotDependsInstallTransactionFinished(); EXPECT_TRUE(g_installNextDebCalled); EXPECT_FALSE(g_dependsCachePresentWhenInstallNextDeb); EXPECT_FALSE(pm->m_packageMd5DependsStatus.contains(kMd5)); } deepin-deb-installer-6.5.51/tests/src/model/ut_deblistmodel.cpp000066400000000000000000001166051524745214100245310ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022-2026 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 = buffer.size(); 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.51/tests/src/model/ut_packageanalyzer.cpp000066400000000000000000000045351524745214100252210ustar00rootroot00000000000000// 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.51/tests/src/model/ut_packagelistview.cpp000066400000000000000000000070071524745214100252370ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022-2026 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, QPointF(10, 10), QPointF(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.51/tests/src/model/ut_packageslistdelegate.cpp000066400000000000000000000135141524745214100262220ustar00rootroot00000000000000// 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.51/tests/src/stub.h000066400000000000000000000164231524745214100206710ustar00rootroot00000000000000#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.51/tests/src/test_main.cpp000066400000000000000000000013341524745214100222250ustar00rootroot00000000000000// 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.51/tests/src/uab/000077500000000000000000000000001524745214100203045ustar00rootroot00000000000000deepin-deb-installer-6.5.51/tests/src/uab/ut_uab_backend.cpp000066400000000000000000000125141524745214100237410ustar00rootroot00000000000000// 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.51/tests/src/uab/ut_uab_process_controller.cpp000066400000000000000000000026531524745214100262760ustar00rootroot00000000000000// 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.51/tests/src/ut_Head.h000066400000000000000000000004031524745214100212540ustar00rootroot00000000000000// 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.51/tests/src/ut_singleInstallerApplication.cpp000066400000000000000000000067341524745214100263060ustar00rootroot00000000000000// 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.51/tests/src/utils/000077500000000000000000000000001524745214100206755ustar00rootroot00000000000000deepin-deb-installer-6.5.51/tests/src/utils/ut_hierarchicalverify.cpp000066400000000000000000000101361524745214100257550ustar00rootroot00000000000000// 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.51/tests/src/utils/ut_result.cpp000066400000000000000000000010341524745214100234250ustar00rootroot00000000000000// 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.51/tests/src/utils/ut_utils.cpp000066400000000000000000000222361524745214100232560ustar00rootroot00000000000000// 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.51/tests/src/view/000077500000000000000000000000001524745214100205075ustar00rootroot00000000000000deepin-deb-installer-6.5.51/tests/src/view/pages/000077500000000000000000000000001524745214100216065ustar00rootroot00000000000000deepin-deb-installer-6.5.51/tests/src/view/pages/ut_AptConfigMessage.cpp000066400000000000000000000031511524745214100262010ustar00rootroot00000000000000// 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.51/tests/src/view/pages/ut_backendprocesspage.cpp000066400000000000000000000027061524745214100266520ustar00rootroot00000000000000// 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.51/tests/src/view/pages/ut_ddimerrorpage.cpp000066400000000000000000000011721524745214100256470ustar00rootroot00000000000000// 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.51/tests/src/view/pages/ut_debinstaller.cpp000066400000000000000000000241671524745214100255040ustar00rootroot00000000000000// 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.51/tests/src/view/pages/ut_multipleinstallpage.cpp000066400000000000000000000144321524745214100271050ustar00rootroot00000000000000// 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.51/tests/src/view/pages/ut_packageselectview.cpp000066400000000000000000000041331524745214100265110ustar00rootroot00000000000000// 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.51/tests/src/view/pages/ut_settingdialog.cpp000066400000000000000000000037041524745214100256630ustar00rootroot00000000000000// 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.51/tests/src/view/pages/ut_singleinstallpage.cpp000066400000000000000000000444111524745214100265330ustar00rootroot00000000000000// 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.51/tests/src/view/pages/ut_uninstallconfirmpage.cpp000066400000000000000000000025021524745214100272450ustar00rootroot00000000000000// 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.51/tests/src/view/widgets/000077500000000000000000000000001524745214100221555ustar00rootroot00000000000000deepin-deb-installer-6.5.51/tests/src/view/widgets/ut_choosefilebutton.cpp000066400000000000000000000015501524745214100267460ustar00rootroot00000000000000// 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.51/tests/src/view/widgets/ut_coloredprogressbar.cpp000066400000000000000000000046441524745214100273020ustar00rootroot00000000000000// 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.51/tests/src/view/widgets/ut_debinfolabel.cpp000066400000000000000000000051121524745214100257760ustar00rootroot00000000000000// 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.51/tests/src/view/widgets/ut_droundbgframe.cpp000066400000000000000000000016721524745214100262160ustar00rootroot00000000000000// 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.51/tests/src/view/widgets/ut_filechoosewidget.cpp000066400000000000000000000017711524745214100267230ustar00rootroot00000000000000// 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.51/tests/src/view/widgets/ut_infoCommandLinkButton.cpp000066400000000000000000000014721524745214100276410ustar00rootroot00000000000000// 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.51/tests/src/view/widgets/ut_infocontrolbutton.cpp000066400000000000000000000052241524745214100271640ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022-2026 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, QPointF(10, 10), QPointF(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.51/tests/src/view/widgets/ut_installprocessinfoview.cpp000066400000000000000000000047141524745214100302130ustar00rootroot00000000000000// 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.51/tests/src/view/widgets/ut_noprocesswidget.cpp000066400000000000000000000015601524745214100266120ustar00rootroot00000000000000// 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.51/tests/src/view/widgets/ut_packageselectitem.cpp000066400000000000000000000056211524745214100270470ustar00rootroot00000000000000// 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.51/tests/src/view/widgets/ut_processwidget.cpp000066400000000000000000000025771524745214100262660ustar00rootroot00000000000000// 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.51/tests/src/view/widgets/ut_showinstallinfotextedit.cpp000066400000000000000000000077351524745214100304030ustar00rootroot00000000000000// SPDX-FileCopyrightText: 2022-2026 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, QPointF(0, 0), QPointF(0, 0), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier); 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, QPointF(0, 0), QPointF(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, QPointF(0, 0), QPointF(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.51/tests/test-prj-running.sh000066400000000000000000000020631524745214100225310ustar00rootroot00000000000000# 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.51/translations/000077500000000000000000000000001524745214100203255ustar00rootroot00000000000000deepin-deb-installer-6.5.51/translations/CMakeLists.txt000066400000000000000000000021101524745214100230570ustar00rootroot00000000000000# 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.51/translations/deepin-deb-installer.ts000066400000000000000000001067521524745214100246770ustar00rootroot00000000000000 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... Updating package cache... 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 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 Failed to install %1 Failed to install %1 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 Same version installed Same version installed Later version installed: %1 Later version installed: %1 Earlier version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Installation failed 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 Broken dependencies 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 Unable to install Unable to install Cancel button Cancel Proceed button Proceed 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. Will remove: The system has not installed Linglong environment, please install it first 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 Collapse Reinstall Reinstall Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Later version installed: %1 Downgrade Downgrade Earlier version installed: %1 Earlier version installed: %1 Compatible Mode Install Installing dependencies: %1 Installing dependencies: %1 Failed to install %1 Failed to install %1 Version: Version: Install button Install Remove button Remove OK button OK Back button Back Done button Done If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installed successfully Installed successfully Uninstalled successfully Uninstalled successfully Uninstall Failed Uninstall Failed Install %1 will remove: Dependencies in the repository Dependencies in the repository Missing dependencies Missing dependencies Compatible Install Cancel button Cancel 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 %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible 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.51/translations/deepin-deb-installer_am_ET.ts000066400000000000000000001134001524745214100257300ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button እሺ BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK እሺ DebInstaller Package Installer የምር unserialize የተመстанов 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 You can only install local %1 packages No permission to access this folder 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 መግጠም አልተቻለም: በቂ ነፃ የ ዲስክ ቦታ የለም Invalid digital signature የዲጅታል ምም የሌለ ባለስ The administrator has set policies to prevent installation of this package Installation Failed መግጠሙ አልተሳካም Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 የ%1 የመстанов መጥ vä Cancel button መሰረዣ OK button እሺ Same version installed ተመሳሳይ እትም ተገጥሟል Later version installed: %1 በኔ ያስገቡ አይነት ምልክት: %1 Earlier version installed: %1 በፊት ያስገቡ አይነት ምልክት: %1 Installation failed Failed to install %1: no valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel መሰረዣ Continue button Unable to install ይለፍ ይችላል Proceed button ይዘፍ 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 ወደ ኋላ Install %1 will remove: Install %1 አይነት ምልክት አይነት ምልክት ለማስወገድ: Dependencies in the repository ማስወገድ አይነት ምልክቶች ውስጥ Missing dependencies ማስወገድ አይነት ምልክቶች ምissing 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 በመጠ expecting Same version installed ተመሳሳይ እትም ተገጥሟል Later version installed: %1 በኔ ያስገቡ አይነት ምልክት: %1 Earlier version installed: %1 በፊት ያስገቡ አይነት ምልክት: %1 Broken dependencies 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. የተረጋግ አይነት ምልክቶች ምን ያስገቡ፣ ከመጠ expecting ውስጥ ያስገቡ፣ እና የሚገቡ አይነት ምልክቶች ምን ያስተዳደር ያስፈልገኝ Security Center > Tools > App Security መጠ expecting ውስጥ ያስገቡ > አስተዳደር > አይነት ምልክት ምን ያስተዳደር ያስፈልገኝ The system has not installed Linglong environment, please install it first የመስystem አይነት ምልክት ምን ያስተዳደር ያስፈልገኝ Linglong አይነት ምልክት ምን ያስተዳደር ያስፈልገኝ፣ የምስ ምን ያስገቡ ያስፈልገኝ 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. ዚህ ቁ绛 የድርጊ አይነት ምልክት ምልክት አልተሰጠም እና የማስወገድ/ይዘፍ ውስጥ ያስገቡ ያስፈልገኝ፣ ከመጠ expecting ውስጥ ያስገቡ > አስተዳደር > አይነት ምልክት ምን ያስተዳደር ያስፈልገኝ ያስገቡ ያስፈልገኝ Cancel button መሰረዣ Proceed button ይዘፍ Will remove: ይለፍ: SingleInstallPage Collapse ማሳነሻ Reinstall እንደገና መግጠሚያ Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 በኔ ያስገቡ አይነት ምልክት: %1 Downgrade በፊት ያስገቡ Earlier version installed: %1 በፊት ያስገቡ አይነት ምልክት: %1 Compatible Mode Install Installing dependencies: %1 ማስወገድ አይነት ምልክቶች ም: %1 Failed to install %1 የ%1 የመстанов መጥ vä Version: እትም: Install button መግጠሚያ Remove button ማስወገጃ OK button እሺ Back button ወደ ኋላ Done button ተው already If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode የ%2 የመстанов ምም የ%1 የሞድ ምረጥ Uninstalling %2 from %1 compatibility mode የ%2 የመመ ምም የ%1 የሞድ ምረጥ %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 የመነሳ ምም የተመዘገበ የምር unserialize Missing dependencies የመነሳ ምም የሌለ Compatible Install Cancel button መሰረዣ 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 ዝርዝር የተያያዝ የምር unserialize ይምረጥ 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 %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode ተመሳሳይ ሁነታ ማስገባት main Package Installer የምር unserialize የተመстанов Package Installer helps users install and remove local packages, and supports bulk installation. የምር unserialize የተመстанов የተሳካ የተመстанов እና የተሰር የተመстанов የተሳካ እና የተመዘገበ የመстанов ምም የተሳካ ነው. deepin-deb-installer-6.5.51/translations/deepin-deb-installer_ar.ts000066400000000000000000001153331524745214100253540ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: أدخل الرقم المراد تكوينه: OK button موافق BackendProcessPage Loading packages... جاري تحميل الحزم ... %1/%2 loaded تم تحميل 1% 2% Initializing... جاري التكوين... Updating package cache... جاري تحديث ذاكرة التخزين المؤقت للحزم... 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 %1 package may be broken حزمة %1 قد تكون مشكلة You can only install local %1 packages يمكنك تثبيت حزم %1 المحلية فقط No permission to access this folder لا تستطيع الوصول إلى هذا الملف夹 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% 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 موافق Same version installed نفس الإصدار مثبت بالفعل Later version installed: %1 إصدار أحدث مثبت: %1 Earlier version installed: %1 إصدار أقدم مثبت: %1 Broken dependencies, try installing the app in compatibility mode 의존يات مكسورة،حاول تثبيت التطبيق في وضع التوافق Compatibility mode installation failed فشل التثبيت في وضع التوافق Installation failed فشل التثبيت 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 السابق 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% Broken dependencies تبعيات مكسورة PackagesListView Delete حذف QApplication Collapse button طي QObject Basic أساسي Check digital signatures if the developer mode is enabled تحقق من التوقيعات الرقمية إذا تم تمكين وضع المطور Unable to install غير قادر على التثبيت Cancel button إلغاء Proceed button متابعة 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. لا تحتوي هذه الحزمة على توقيع رقمي صالح ولذا تم حظرها من تثبيتها و تشغيلها، لتغيير الإعدادات انتقل إلى مركز الأمان > أدوات > أمان التطبيقات . Will remove: سيتم إزالة: The system has not installed Linglong environment, please install it first لم يتم تثبيت بيئات Linglong في النظام، يرجى تثبيتها أولاً 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 إعادة التثبيت Installing in compatibility mode %1 جاري التثبيت في وضع التوافق %1 Uninstalling %1 from compatibility mode جاري إزالة تثبيت %1 من وضع التوافق %1 was successfully installed to compatibility mode تم تثبيت %1 بنجاح في وضع التوافق Later version installed: %1 تم تثبيت الإصدار الأحدث: 1% Downgrade الرجوع إلى إصدار أقدم Earlier version installed: %1 تم تثبيت الإصدار السابق: 1% Compatible Mode Install تثبيت وضع التوافق Installing dependencies: %1 جاري تثبيت الحزم المتطلبة (الاعتماديات): 1% Failed to install %1 فشل تثبيت 1% Version: الإصدار : Install button تثبيت Remove button إزالة OK button موافق Back button السابق Done button تم If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. إذا كان هذا البرنامج إصداراً أقدم (متكيف بالفعل مع إصدار نظام قديم)، يمكنك محاولة تثبيته في وضع التوافق. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. وضع توافق UOS V25 هو ميزة تسمح لك بمتابعة استخدام تطبيقات إصدار V20 على نظام V25. يقوم بإنشاء بيئة توافق لك، مما يمكّن البرامج التي كانت تعمل في الأصل على نظام V20 فقط من العمل بشكل صحيح على نظام V25 أيضاً. Confirm to install in compatibility mode تأكيد التثبيت في وضع التوافق Installed successfully تم التثبيت بنجاح Uninstalled successfully تم إلغاء التثبيت بنجاح Uninstall Failed فشل إزالة التثبيت Install %1 will remove: سيقوم تثبيت %1 بإزالة: Dependencies in the repository الحزم المتطلبة (الاعتماديات) التي في المستودع Missing dependencies الحزم المتطلبة (الاعتماديات) مفقودة Compatible Install تثبيت متوافق Cancel button إلغاء 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 %1 from compatibility mode? All dependencies will also be removed هل أنت متأكد من إزالة تثبيت %1 من وضع التوافق؟ سيتم أيضاً إزالة جميع التبعيات dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode تثبيت في الوضع المتوافق main Package Installer مثبّت الحزم Package Installer helps users install and remove local packages, and supports bulk installation. مثبت الحزم: يساعد المستخدمين على تثبيت وإزالة الحزم المحلية، ويدعم أيضاً الثبيت الجماعي للحزم. deepin-deb-installer-6.5.51/translations/deepin-deb-installer_ast.ts000066400000000000000000000765221524745214100255470ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Introduzca el número pa configurar: OK button Aceutar BackendProcessPage Loading packages... Cargando paquetes... %1/%2 loaded %1/%2 cargados Initializing... Inicializando... DdimErrorPage OK Aceutar DebInstaller Package Installer Xestor de paquetes Settings Configuración Installing other packages... Please open it later. Instalando otros paquetes... Por favor, abriéntolo más tarde. Parsing failed: An illegal file structure was found in the manifest file! Parseo falló: Se encontró una estructura de fichero ilegal nel fichero de manifiesto! Parsing failed: An illegal version number was found in the manifest file! Parseo falló: Se encontró un número de versión ilegal nel fichero de manifiesto! No deb packages found. Please check the folder. Nun se encontraron paquetes deb. Por favor, revise la carpeta. The %1 package may be broken El paquete %1 podría estar roto You can only install local %1 packages Só se pue instalar paquetes %1 locales No permission to access this folder Nun hai permisu pa acceder a esta carpeta The deb package may be broken El paquete deb podría estar roto You can only install local deb packages Só se pue instalar paquetes deb locales Already Added Ya añadíu %1 does not exist, please reselect %1 nun esiste, por favor, reseleccione 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 La instalación falló, por favor, revise les actualizaciones nel Centro de Control Installation failed, insufficient disk space Falló la instalación, espaciu insuficiente en discu No digital signature Nun hai firma digital Invalid digital signature Firma digital inválida The administrator has set policies to prevent installation of this package El administrador estableció polítiques pa evitar la instalación d'este paquete Installation Failed Falló la instalación current system sistema actual %2 has been installed in %1, please uninstall this package before installing it %2 ta instaláu en %1, por favor, desinstale este paquete antes de instalarlo Broken dependencies, try installing the app in compatibility mode Dependencias rotas, intente instalar l'aplicación en modu de compatibilidá Failed to install %1 Fallo na instalación de %1 Failed to install %1: no valid digital singature Fallo na instalación de %1: nun hai firma digital válida Unable to install - no digital signature Nun se pue instalar - nun hai firma digital Please go to Control Center to enable developer mode and try again. Proceed? Por favor, vaya al Centro de Control pa habilitar el modu de desenvolutor y intente nuevamente. Continuar? Cancel button Encaboxar Proceed button Continuar OK button Aceutar Failed to install %1: no valid digital signature Fallo na instalación de %1: nun hai firma digital válida This package does not have a valid digital signature. Continue with the installation? Este paquete nun tien una firma digital válida. Continuar con la instalación? Cancel Encaboxar Continue button Continua Unable to install No se puede instalar This package does not have a valid digital signature Este paquete nun tien una firma digital válida Broken dependencies: %1 Dependencias rotas: %1 Authentication failed Autenticación fallida Unmatched package architecture Arquitectura de paquete que nun concasa FileChooseWidget Drag deb packages here Arrastra paquetes deb aquí Select File Esbillar ficheru MultipleInstallPage Show details Mostrar detalles Collapse button Contrayer Install button Instalar Done button Fecho Back button Atrás Install %1 will remove: La instalación de %1 eliminará: Dependencies in the repository Dependencias nel repositorio Missing dependencies Dependencias faltantes Installing dependencies: %1 Instalando dependencias: %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 Versión posterior instalada: %1 Unmatched package architecture Arquitectura de paquete que nun concasa PackageSelectView Select all Selecciona todos Install button Instalar PackagesListDelegate Installing Instalando Installed Instalóse Failed Falló Waiting Esperando Same version installed Instalada la mesma versión Later version installed: %1 Versión posterior instalada: %1 Earlier version installed: %1 Instalóse una versión anterior: %1 PackagesListView Delete Eliminar QApplication Collapse button Contrayer QObject Basic Básico Check digital signatures if the developer mode is enabled Comproba las firmas digitales si el mode de desenvolvedor ta habilitáu To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Pa instalar aplicaciones non firmadas, vaya a Center de Seguridad > Herramientas > Seguridad de Aplicación, y seleccione los tipos d'aplicación que pueden instalase. Security Center > Tools > App Security Center de Seguridad > Herramientas > Seguridad de Aplicación The system has not installed Linglong environment, please install it first El sistema nun ta instaláu l'entornu Linglong, por favor instálalo primeru Unable to install No se puede instalar 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. Este paquete nun tien una firma digital válida y ta bloquedu pa instalar/ executar. Vaya a Center de Seguridad > Herramientas > Seguridad de Aplicación pa cambiar los parámetros. Cancel button Anula Proceed button Continua Will remove: Eliminará: SingleInstallPage Collapse Contrayer Reinstall Reinstalar Later version installed: %1 Versión posterior instalada: %1 Downgrade Descalafate Earlier version installed: %1 Instalóse una versión anterior: %1 Installing dependencies: %1 Instalando dependencias: %1 Failed to install %1 Falló l'instalación de %1 Version: Versión: Select a compatibility mode: Selecciona un modu de compatibilidad: Install button Instalar Remove button Desaniciar OK button Aceutar Back button Atrás Done button Fecho Trying to install %2 in %1 compatibility mode Intentando instalar %2 en modu de compatibilidad %1 Uninstalling %2 from %1 compatibility mode Desinstalando %2 de modu de compatibilidad %1 %2 was successfully installed to %1 compatibility mode %2 foi instaláu con éxito en modu de compatibilidad %1 Installed successfully Instalóse con ésitu %2 has been successfully uninstalled from %1 compatibility mode %2 foi desinstaláu con éxito de modu de compatibilidad %1 Uninstalled successfully Desinstalóse con ésitu Uninstall Failed Falló la desinstalación Install %1 will remove: La instalación de %1 va eliminar: Dependencies in the repository Dependencies nel repositoriu Missing dependencies Dependencias faltantes Update button Actualizar Invalid digital signature Firma digital inválida Name: Nome: Same version installed Instalada la mesma versión SingleInstallPage_Install Show details Mostrar detalles Show dependencies Mostrar dependencies SingleInstallPage_Uninstall Show details Mostrar detalles Uab::UabPackageListModel Installation Failed Falló la instalación UninstallConfirmPage Show related packages Mostrar paquetes relacionaos Collapse button Contrayer Cancel button Encaboxar Confirm Confirmar Are you sure you want to uninstall %1? All dependencies will also be removed ¿Seguro que quier desinstalar %1? Todas las dependencies serán eliminadas tamién Are you sure you want to uninstall %1? The system or other applications may not work properly ¿Seguro que quier desinstalar %1? El sistema o otras aplicaciónes pue non funcionar adecuadamente Are you sure you want to uninstall %2 from %1 compatibility mode? ¿Seguro que quier desinstalar %2 del modu de compatibilidad %1? dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Instalar en mou compatible main Package Installer Xestor de paquetes Package Installer helps users install and remove local packages, and supports bulk installation. Instalador de paquetes axuda a los usuarios a instalar y eliminar paquetes locales, y soporta instalación en masa. deepin-deb-installer-6.5.51/translations/deepin-deb-installer_az.ts000066400000000000000000001127051524745214100253640ustar00rootroot00000000000000 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... Updating package cache... 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 %1 package may be broken %1 paketi xəta olub olabilir You can only install local %1 packages Sadece yerli %1 paketlerini yükləyə bilərsiz No permission to access this folder Bu foldera ezaflı qalmadınız 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ı current system meydan qurulu %2 has been installed in %1, please uninstall this package before installing it %1-də %2 yükləndiyi üçün, yükləmək üçün onu qalxalayın Broken dependencies, try installing the app in compatibility mode Xəta olmayan əsaslar, uyğunluq modunda uygulamayı yükləyin Compatibility mode installation failed Failed to install %1 %1 quraşdırılması baş tutmadı Cancel button İmtina OK button OK 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 Installation failed 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 Proceed button Davam edin 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ə Install %1 will remove: %1 yüklənəcək və siləcək: 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 Broken dependencies 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. İmzalanmamış tətbiqləri quraşdırmaq üçün Təhlükəsilzlik Mərkəzi > Alətlər > Tətbiq təhlükəsizliyi bölməsinə keçin və quraşdırıla biləcək tətbiq növlərini seçin. Security Center > Tools > App Security Təhlükəsizlik Mərkəzi > Alətlər > Tətbiq təhlükəsizliyi The system has not installed Linglong environment, please install it first Sistem Linglong mühitini yükləmədi, ilk olaraq onu yükləyin Unable to install Quraşdırıla bilmədi 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. Bu paket etibarlı rəqəmsal imzaya malik deyil və quraşdırılmasının və başladılmasının qarşısı alınıb. Buna uyğun ayarı dəyişmək üçün Təhlükəsizlik Mərkəzi > Alətlər > Tətbiq təhlükəsizliyi bölməsinə keçin. Cancel button Vazgeç Proceed button Davam edin Will remove: Siləcək: SingleInstallPage Collapse Yığmaq Reinstall Yenidən quraşdırmaq Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode 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 Compatible Mode Install 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 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode %1 uyğunluq modunda %2 yükləyirik Uninstalling %2 from %1 compatibility mode %1 uyğunluq modundan %2 qalxalayır %2 was successfully installed to %1 compatibility mode '%2 müvəffaqiyyətlə %1 uyğunluq modunda yükləndi Installed successfully Uğurla quraşdırıldı %2 has been successfully uninstalled from %1 compatibility mode '%2 müvəffaqiyyətlə %1 uyğunluq modundan qalxalandı Uninstalled successfully Uğurla silindi Uninstall Failed Silinə bilmədi Install %1 will remove: %1 yüklənəcək və siləcək: Dependencies in the repository Bu repozitoriyadakı asılılıqlar Missing dependencies Çatışmayan asılılıqlar Compatible Install Cancel button 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 Uab::UabPackageListModel Installation Failed Quraşdırma baş tutmadı 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Uyğun rejimdə quraşdı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.51/translations/deepin-deb-installer_bg.ts000066400000000000000000001202451524745214100253400ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Въведете номера за настройка: OK button ОК BackendProcessPage Loading packages... Зареждане на пакети... %1/%2 loaded %1/%2 заредени Initializing... Инициализиране... Updating package cache... 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 %1 package may be broken Пакетът %1 може да е повреден You can only install local %1 packages Можете да инсталирате само локални %1 пакети No permission to access this folder Няма разрешение за достъп до тази папка 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 Инсталацията се провали, моля, проверете за актуализации в 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 %2 е инсталиран в %1, моля, изтрийте този пакет преди да го инсталирате Broken dependencies, try installing the app in compatibility mode Повредени зависимости, опитайте да инсталирате приложението в режим на съвместимост Compatibility mode installation failed Failed to install %1 Неуспешно инсталиране на %1 Cancel button Отказ OK button ОК Same version installed Същата версия е инсталирана Later version installed: %1 По-нова версия е инсталирана: %1 Earlier version installed: %1 Предишна версия е инсталирана: %1 Installation failed 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 Не може да се инсталира Proceed button Продължи 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 Назад 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 Broken dependencies 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 Системата не е инсталирана Linglong среда, моля инсталирайте я първо 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 Преинсталиране Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 По-нова версия е инсталирана: %1 Downgrade Намаляване Earlier version installed: %1 Предишна версия е инсталирана: %1 Compatible Mode Install Installing dependencies: %1 Инсталиране на зависимости: %1 Failed to install %1 Неуспешно инсталиране на %1 Version: Версия: Install button Инсталиране Remove button Премахване OK button ОК Back button Назад Done button Завършено If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Показване на %2 в режим на съвместимост с %1 Uninstalling %2 from %1 compatibility mode Премахване на %2 от режим на съвместимост с %1 %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 Липсващи зависимости Compatible Install Cancel button Отказ 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 %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Инсталиране в съвместим режим main Package Installer Мениджър на пакети Package Installer helps users install and remove local packages, and supports bulk installation. Deepin Мениджър на пакети се използва, за да помогне на потребителите да инсталират и премахват локален пакет, поддръжка на групово инсталиране. deepin-deb-installer-6.5.51/translations/deepin-deb-installer_bn.ts000066400000000000000000001270531524745214100253530ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: কনফিগারেট করার জন্য সংখ্যা যোগ করুন: OK button হ্যাঁ BackendProcessPage Loading packages... প্যাকেজগুলি লোড হচ্ছে... %1/%2 loaded %1/%2 লোড করা হয়েছে Initializing... সর্বোত্তম করার শুরু... Updating package cache... 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 %1 package may be broken %1 প্যাকেজটি অকোম্প্লিট হতে পারে You can only install local %1 packages আপনি কেবলমাত্র লোক্ল %1 প্যাকেজ ইনস্টল করতে পারেন No permission to access this folder এই ফোল্ডারে এক্সেস করার অনুমতি নেই 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 %2, %1 এ উপাত্তটি স্থাপিত হয়েছে, ইনস্টল করার আগে এই উপাত্তটি অনূর্ধ্ব করুন Broken dependencies, try installing the app in compatibility mode ব্রেকডাউন অনুসন্ধানসমূহ, সংস্কৃতি মোডে অ্যাপ ইনস্টল করুন Compatibility mode installation failed Failed to install %1 %1 ইনস্টল করতে ত্রুটি Cancel button রেফার্ড OK button ভালো Same version installed ইনস্টল করা হয়েছে তাঁরা একই সংস্করণ Later version installed: %1 বাদের সংস্করণ ইনস্টলড হয়েছে: %1 Earlier version installed: %1 পুরোনো সংস্করণ ইনস্টলড হয়েছে: %1 Installation failed 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 ইনস্টল করতে অক্ষম Proceed button পরিচালনা করুন 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 পিছনে 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 Broken dependencies 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 রিইনস্টল Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 বাদের সংস্করণ ইনস্টলড হয়েছে: %1 Downgrade ডাউনগ্রেড Earlier version installed: %1 পুরোনো সংস্করণ ইনস্টলড হয়েছে: %1 Compatible Mode Install Installing dependencies: %1 অবশ্যক প্রদান ইনস্টল হচ্ছে: %1 Failed to install %1 %1 ইনস্টল করতে ব্যর্থ হয়েছে Version: সংস্করণ: Install button ইনস্টল করুন Remove button বাতিল করুন OK button স্বাগতম Back button পিছনে Done button কর্মসূচী সম্পন্ন If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode 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 কমিশ্ন নির্ভরশীল উপাদান Compatible Install Cancel button 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 %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode সামঞ্জস্যপূর্ণ মোডে ইনস্টল করুন main Package Installer প্যাকেজ ইনস্টলার Package Installer helps users install and remove local packages, and supports bulk installation. প্যাকেজ ইনস্টলার সাহায্য করে ব্যবহারকারীদের স্থানীয় প্যাকেজ ইনস্টল করতে এবং মুছে ফেলতে এবং বার বার ইনস্টল করার সমর্থন করে। deepin-deb-installer-6.5.51/translations/deepin-deb-installer_bo.ts000066400000000000000000001257271524745214100253620ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: གོ་རིམ་ཨང་གྲངས་འཇུག་ནས་བགོ་སྒྲིག་བྱ་རྒྱུ། OK button ཆོག BackendProcessPage Loading packages... སྒྲིག་སྦྱོར་ཁུག་མ་སྣོན་འཇུག་བཞིན་པ། %1/%2 loaded %1/%2སྣོན་འཇུག་བྱས་ཟིན། Initializing... འགོ་འཛུགས་བཞིན་པ། Updating package cache... 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 You can only install local %1 packages No permission to access this folder 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 སྒྲིག་སྦྱོར་མི་ཐུབ། Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 %1སྒྲིག་སྦྱོར་མི་ཐུབ། Cancel button འདོར་བ། OK button ཆོག Same version installed པར་གཞི་འདྲ་མཚུངས་སྒྲིག་སྦྱོར་བྱས་ཟིན། Later version installed: %1 ཅུང་གསར་པའི་པར་གཞི་%1སྒྲིག་སྦྱོར་བྱས་ཟིན། Earlier version installed: %1 ཅུང་སྔ་བའི་པར་གཞི་%1སྒྲིག་སྦྱོར་བྱས་ཟིན། Installation failed 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 སྒྲིག་སྦྱོར་བྱེད་ཐབས་མེད། Proceed button མུ་མཐུད། 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: 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སྒྲིག་སྦྱོར་བྱས་ཟིན། Broken dependencies 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 ཡང་བསྐྱར་སྒྲིག་སྦྱོར། Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 ཅུང་གསར་པའི་པར་གཞི་%1སྒྲིག་སྦྱོར་བྱས་ཟིན། Downgrade པར་གཞི་རྙིང་པ་སྒྲིག་འཇུག་བྱེད་པ། Earlier version installed: %1 ཅུང་སྔ་བའི་པར་གཞི་%1སྒྲིག་སྦྱོར་བྱས་ཟིན། Compatible Mode Install Installing dependencies: %1 བརྟེན་པའི་འབྲེལ་བ་བཙུགས་བཞིན་པ། %1 Failed to install %1 %1སྒྲིག་སྦྱོར་མི་ཐུབ། Version: པར་གཞི། Install button སྒྲིག་སྦྱོར། Remove button བཤིག་འདོན། OK button ཆོག Back button ཕྱིར་ལོག Done button ལེགས་གྲུབ། If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installed successfully སྒྲིག་སྦྱོར་ཐུབ་སོང་། Uninstalled successfully བཤིག་འདོན་ཐུབ་སོང་། Uninstall Failed བཤིག་འདོན་མི་ཐུབ། Install %1 will remove: Dependencies in the repository མཛོད་ནང་ཡོད་པའི་རྟེན་ཁུག Missing dependencies མཛོད་ནང་མེད་པའི་རྟེན་ཁུག Compatible Install Cancel button འདོར་བ། 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 %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode མཐུན་ཆོས་ཡི་གནས་ཚུལ་ཁྱེར་ནས་གཞི་སྒྲིག་བྱ་པ། main Package Installer མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས། Package Installer helps users install and remove local packages, and supports bulk installation. མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས་ནི་སྤྱོད་མཁན་ལ་རང་སའི་མཉེན་ཆས་སྒྲིག་སྦྱོར་དང་བཤིག་འདོན་བྱེད་རོགས་བྱེད་པའི་ཡོ་བྱད་ཅིག་རེད་ལ། ཉེར་སྤྱོད་མང་པོ་མཉམ་དུ་སྒྲིག་སྦྱོར་བྱ་ཐུབ། deepin-deb-installer-6.5.51/translations/deepin-deb-installer_br.ts000066400000000000000000001136041524745214100253540ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: أدخل الرقم الذي تريد تكوينه: OK button Mat eo BackendProcessPage Loading packages... جارٍ تحميل الحزم... %1/%2 loaded %1/%2 تم تحميلها Initializing... جارٍ بدء التشغيل... Updating package cache... 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. لم يتم العثور على أي حزم deb. الرجاء التحقق من المجلد. The %1 package may be broken قد يكون حزمة %1 تالفة You can only install local %1 packages يمكنك تثبيت حزم %1 المحلية فقط No permission to access this folder لا يوجد إذن لدخول هذا المجلد Already Added Ouzhpennet endeo %1 does not exist, please reselect لا يوجد %1، الرجاء إعادة الاختيار 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 current system النظام الحالي %2 has been installed in %1, please uninstall this package before installing it تم تثبيت %2 في %1، الرجاء إزالة هذه الحزمة قبل تثبيتها Broken dependencies, try installing the app in compatibility mode توجد اعتماديات معطوبة، جرّب تثبيت التطبيق في الوضع المتوافق Compatibility mode installation failed Failed to install %1 فشل تثبيت %1 Cancel button Nullañ OK button Mat eo Same version installed Hevelep stumm staliet Later version installed: %1 Stumm war-lerc'h staliet: %1 Earlier version installed: %1 Stumm kent staliet: %1 Installation failed Failed to install %1: no valid digital signature فشل تثبيت %1: لا يوجد توقيع رقمي صحيح This package does not have a valid digital signature. Continue with the installation? لا يحتوي هذا الحزمة على توقيع رقمي صحيح. هل ترغب في المتابعة بالتحديث؟ Cancel Nullañ Continue button المتابعة Unable to install N'heller ket distaliañ Proceed button المتابعة 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 Install %1 will remove: تثبيت %1 سيقوم بإزالة: 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 Broken dependencies PackagesListView Delete Dilemel QApplication Collapse button Bihanaat 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 لم يتم تثبيت بيئة Linglong في النظام، من فضلك اثبتها أولاً Unable to install N'heller ket distaliañ 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 Nullañ Proceed button المتابعة Will remove: سيتم إزالة: SingleInstallPage Collapse Bihanaat Reinstall Adstaliañ Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Stumm war-lerc'h staliet: %1 Downgrade التحديث العكسي Earlier version installed: %1 Stumm kent staliet: %1 Compatible Mode Install Installing dependencies: %1 O staliañ an dalc'hioù: %1 Failed to install %1 فشل في تنصيب %1 Version: Stumm: Install button Staliañ Remove button Dilemel OK button Mat eo Back button Kent Done button Echuet If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode محاولة تنصيب %2 في وضع التوافق %1 Uninstalling %2 from %1 compatibility mode إزالة %2 من وضع التوافق %1 %2 was successfully installed to %1 compatibility mode تم تنصيب %2 بنجاح في وضع التوافق %1 Installed successfully Staliet gant berzh %2 has been successfully uninstalled from %1 compatibility mode تم إزالة %2 بنجاح من وضع التوافق %1 Uninstalled successfully Distaliet gant berzh Uninstall Failed Distaliañ c'hwitet Install %1 will remove: تنصيب %1 سيؤدي إلى إزالة: Dependencies in the repository الاعتماديات في المستودع Missing dependencies الاعتماديات المفقودة Compatible Install Cancel button Nullañ Update button التحديث Invalid digital signature توقيع رقمي غير صحيح Name: Anv: Same version installed Hevelep stumm staliet SingleInstallPage_Install Show details Diskouez ar munudoù Show dependencies عرض الاعتماديات SingleInstallPage_Uninstall Show details Diskouez ar munudoù Uab::UabPackageListModel Installation Failed Staliadur c'hwitet 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Staliañ er mod kevveraat 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.51/translations/deepin-deb-installer_ca.ts000066400000000000000000001131361524745214100253340ustar00rootroot00000000000000 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... Updating package cache... S'actualitza la memòria cau del paquet... 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 %1 package may be broken El paquet %1 potser està trencat. You can only install local %1 packages Només podeu instal·lar paquets locals %1. No permission to access this folder No teniu permís per accedir a aquesta carpeta. 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 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 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 Broken dependencies, try installing the app in compatibility mode Dependències trencades. Proveu d'instal·lar l'aplicació en mode de compatibilitat. Compatibility mode installation failed La instal·lació del mode de compatibilitat ha fallat. Installation failed Ha fallat la instal·lació. 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 Install %1 will remove: Instal·lar %1 eliminarà el següent: 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 Broken dependencies Dependències trencades 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. Unable to install No es pot instal·lar Cancel button Cancel·la Proceed button Continua 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. Aquest paquet no té una signatura digital vàlida i se n'ha blocat la instal·lació / execució. Aneu al Centre de seguretat > Eines > Seguretat d'aplicacions per canviar-ne la configuració. Will remove: S'eliminarà el següent: The system has not installed Linglong environment, please install it first El sistema no ha instal·lat l'entorn Linglong. Primer instal·leu-lo, si us plau. To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Per instal·lar aplicacions sense signar, aneu al Centre de seguretat > Eines > Seguretat de les aplicacions i seleccioneu els tipus d'aplicacions que es poden instal·lar. Security Center > Tools > App Security Centre de seguretat > Eines > Seguretat de les aplicacions SingleInstallPage Collapse Replega Reinstall Reinstal·la Installing in compatibility mode %1 S'instal·la en mode de compatibilitat %1 Uninstalling %1 from compatibility mode Es desinstal·la %1 des del mode de compatibilitat. %1 was successfully installed to compatibility mode %1 s'ha instal·lat correctament en mode de compatibilitat. Later version installed: %1 Darrera versió instal·lada: %1 Downgrade Degrada Earlier version installed: %1 Versió instal·lada abans: %1 Compatible Mode Install Instal·lació en mode compatible 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 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. Si aquest programari és una versió antiga (ja adaptada per a una versió de sistema de llegat), podeu provar d'instal·lar-lo en mode de compatibilitat. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. El mode de compatibilitat d'UOS V25 és una funció que permet continuar usant aplicacions de la versió V20 al sistema V25. Crea un entorn de compatibilitat i permet que el programari que originalment només podia executar-se al sistema V20 també funcioni correctament al V25. Confirm to install in compatibility mode Confirmeu la instal·lació en mode de compatibilitat Installed successfully Instal·lació correcta Uninstalled successfully Desinstal·lació correcta Uninstall Failed Ha fallat la instal·lació. Install %1 will remove: Instal·lar %1 eliminarà el següent: Dependencies in the repository Dependències al repositori Missing dependencies Dependències que manquen Compatible Install Instal·lació compatible Cancel button Cancel·la 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 Uab::UabPackageListModel Installation Failed Ha fallat la instal·lació. 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. Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed Segur que voleu desinstal·lar %1 del mode de compatibilitat? També se'n suprimiran totes les dependències. dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Instal·lació en mode de compatibilitat 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.51/translations/deepin-deb-installer_cs.ts000066400000000000000000001131011524745214100253460ustar00rootroot00000000000000 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... Inicializace… Updating package cache... 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 s otevřením na později. Parsing failed: An illegal file structure was found in the manifest file! Zpracování se nezdařilo: V souboru manifestu byla nalezena neplatná struktura souboru! Parsing failed: An illegal version number was found in the manifest file! Zpracování se nezdařilo: V souboru manifestu bylo nalezeno nesprávné číslo verze! No deb packages found. Please check the folder. Nenalezeny žádné .deb balíčky – zkontrolujte složku. The %1 package may be broken Balíček %1 může být poškozen You can only install local %1 packages Můžete nainstalovat pouze místní balíčky %1 No permission to access this folder Nemáte oprávnění k přístupu do tohoto adresáře 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 current system aktuální systém %2 has been installed in %1, please uninstall this package before installing it %2 byl nainstalován do %1, odeberte tento balíček před instalací Broken dependencies, try installing the app in compatibility mode Narušené závislosti, zkuste nainstalovat aplikaci v režimu kompatibility Compatibility mode installation failed Failed to install %1 Nepodařilo se nainstalovat %1 Cancel button Zrušit OK button OK 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 Installation failed 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 Proceed button Pokračovat 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 Install %1 will remove: Instalace %1 odebere: 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 Broken dependencies 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. Pokud chcete instalovat nepodepsané aplikace, jděte do Centrum zabezpečení > Nástroje > Zabezpečení aplikací a vyberte typy aplikací, které mohou být instalovány. Security Center > Tools > App Security Centrum zabezpečení > Nástroje > Zabezpečení aplikací The system has not installed Linglong environment, please install it first Systém nenainstaloval prostředí Linglong, než budete pokračovat, jej nainstalujte nejprve Unable to install Nelze nainstalovat 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. Tento balíček nemá platný elektronický podpis a jeho instalace/spuštění proto bylo zablokováno. Pokud chcete toto nastavení změnit, jděte do Centrum zabezpečení > Nástroje > Zabezpečení aplikací. Cancel button Zrušit Proceed button Pokračovat Will remove: Odeberou: SingleInstallPage Collapse Sbalit Reinstall Přeinstalovat Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode 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 Compatible Mode Install 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 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Pokus o instalaci %2 v režimu kompatibility %1 Uninstalling %2 from %1 compatibility mode Odinstalovávání %2 z režimu kompatibility %1 %2 was successfully installed to %1 compatibility mode %2 bylo úspěšně nainstalováno do režimu kompatibility %1 Installed successfully Úspěšně nainstalováno %2 has been successfully uninstalled from %1 compatibility mode %2 bylo úspěšně odinstalováno z režimu kompatibility %1 Uninstalled successfully Úspěšně odinstalováno Uninstall Failed Odinstalace se nezdařila Install %1 will remove: Instalace %1 odebere: Dependencies in the repository Závislosti v repozitáři Missing dependencies Chybějící závislosti Compatible Install Cancel button Zrušit 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 Uab::UabPackageListModel Installation Failed Instalace se nezdařila 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í Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Instalovat v kompatibilním režimu 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.51/translations/deepin-deb-installer_da.ts000066400000000000000000001117361524745214100253410ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Indtast nummeret for at konfigurere: OK button OK BackendProcessPage Loading packages... Indlæser pakker... %1/%2 loaded %1/%2 indlæst Initializing... Initialiserer... Updating package cache... DdimErrorPage OK OK DebInstaller Package Installer Pakkeinstallationsprogram Settings Indstillinger Installing other packages... Please open it later. Installerer andre pakker... Åbn den senere. Parsing failed: An illegal file structure was found in the manifest file! Fejl i parsering: En ugyldig filstruktur blev fundet i manifestfilen! Parsing failed: An illegal version number was found in the manifest file! Fejl i parsering: En ugyldig versionnummer blev fundet i manifestfilen! No deb packages found. Please check the folder. Ingen deb-pakker fundet. Tjek mappen. The %1 package may be broken Den %1-pakke kan være beskadiget You can only install local %1 packages Du kan kun installere lokale %1-pakker No permission to access this folder Ingen tilladelse til at tilgå denne mappe Already Added Allerede tilføjet %1 does not exist, please reselect %1 findes ikke, venligst vælg omendeligt 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 Ingen digital signatur Invalid digital signature Ugyldig digital signatur The administrator has set policies to prevent installation of this package Administratoren har sat politikker for at forhindre installation af denne pakke Installation Failed Installation mislykkedes current system det nuværende system %2 has been installed in %1, please uninstall this package before installing it %2 er installeret i %1, venligst deinstallér denne pakke før installationen Broken dependencies, try installing the app in compatibility mode Fejl i afhængigheder, prøv at installere appen i kompatibilitetsmode Compatibility mode installation failed Failed to install %1 Fejl ved installation af %1 Cancel button Annuller OK button OK Same version installed Samme version installeret Later version installed: %1 Nyere version installeret: %1 Earlier version installed: %1 Tidligere version installeret: %1 Installation failed Failed to install %1: no valid digital signature Fejl ved installation af %1: ingen gyldig digital signatur This package does not have a valid digital signature. Continue with the installation? Denne pakke har ingen gyldig digital signatur. Vil du fortsætte med installationen? Cancel Annuller Continue button Fortsæt Unable to install Kan ikke installere Proceed button Fortsæt This package does not have a valid digital signature Denne pakke har ingen gyldig digital signatur Broken dependencies: %1 Ødelagte afhængigheder: %1 Authentication failed Autentificering mislykkedes 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 Install %1 will remove: Installation af %1 vil fjerne: Dependencies in the repository Afhængigheder i repositoryet Missing dependencies Mangler afhængigheder Installing dependencies: %1 Installerer afhængigheder: %1 PackageSelectItem Same version installed Samme version installeret Earlier version installed: %1 Tidligere version installeret: %1 Later version installed: %1 Nyere version installeret: %1 Unmatched package architecture Ikke-matchet pakkearkitektur PackageSelectView Select all Vælg alt Install button Installer PackagesListDelegate Installing Installerer Installed Installeret Failed Mislykkedes Waiting Venter Same version installed Samme version installeret Later version installed: %1 Nyere version installeret: %1 Earlier version installed: %1 Tidligere version installeret: %1 Broken dependencies PackagesListView Delete Slet QApplication Collapse button Sammenfold QObject Basic Grundlæggende Check digital signatures if the developer mode is enabled Tjek digitale signaturer, hvis udviklermodus er aktiveret To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. For at installere unsigned apps, gå til Sikkerhedscenter > Verktøy > App-sikkerhed, og vælg de app-typer, der kan installeres. Security Center > Tools > App Security Sikkerhedscenter > Verktøy > App-sikkerhed The system has not installed Linglong environment, please install it first Systemet har ikke installeret Linglong miljø, venligst installer det først Unable to install Kan ikke installere 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. Denne pakke har ikke en gyldig digital signatur og er blevet blokeret fra installation/udførelse. Gå til Sikkerhedscenter > Verktøy > App-sikkerhed for at ændre indstillingerne. Cancel button Annuller Proceed button Fortsæt Will remove: Vil fjerne: SingleInstallPage Collapse Sammenfold Reinstall Geninstaller Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Nyere version installeret: %1 Downgrade Nedgradering Earlier version installed: %1 Tidligere version installeret: %1 Compatible Mode Install Installing dependencies: %1 Installerer afhængigheder: %1 Failed to install %1 Fejl i installation af %1 Version: Version: Install button Installer Remove button Fjern OK button OK Back button Tilbage Done button Færdig If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Forsøger at installere %2 i %1 kompatibilitetsmode Uninstalling %2 from %1 compatibility mode Fjerner %2 fra %1 kompatibilitetsmode %2 was successfully installed to %1 compatibility mode %2 blev succesfuldt installeret i %1 kompatibilitetsmode Installed successfully Installeret %2 has been successfully uninstalled from %1 compatibility mode %2 er succesfuldt fjernet fra %1 kompatibilitetsmode Uninstalled successfully Afinstalleret Uninstall Failed Afinstallation mislykkedes Install %1 will remove: Installering af %1 vil fjerne: Dependencies in the repository Afhængigheder i repositoryet Missing dependencies Mangler afhængigheder Compatible Install Cancel button Annuller Update button Opdater Invalid digital signature Ugyldig digital signatur Name: Navn: Same version installed Samme version installeret SingleInstallPage_Install Show details Vis detaljer Show dependencies Vis afhængigheder SingleInstallPage_Uninstall Show details Vis detaljer Uab::UabPackageListModel Installation Failed Installation mislykkedes 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Installer i kompatibel tilstand 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.51/translations/deepin-deb-installer_de.ts000066400000000000000000001124441524745214100253420ustar00rootroot00000000000000 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... Updating package cache... 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 fehlgeschlagen: In der Manifest-Datei wurde eine ungültige Dateistruktur gefunden! Parsing failed: An illegal version number was found in the manifest file! Parsing fehlgeschlagen: In der Manifest-Datei wurde eine ungültige Versionsnummer gefunden! No deb packages found. Please check the folder. Keine deb Packete gefunden. Bitte schau in den Ordner. The %1 package may be broken Das %1 Packet könnte beschädigt sein You can only install local %1 packages Du kannst nur lokale %1 Pakete installieren No permission to access this folder Keine Berechtigung um den Ordner zu öffnen 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 current system momentanes System %2 has been installed in %1, please uninstall this package before installing it %2 wurde in %1 installiert. Bitte deinstalliere das Paket, bevor du es installierst Broken dependencies, try installing the app in compatibility mode Fehlerhafte Abhängigkeiten, versuche, die App im Kompatibilitätsmodus zu installieren. Compatibility mode installation failed Failed to install %1 Konnte %1 nicht installieren Cancel button Abbrechen OK button OK Same version installed Gleiche Version installiert Later version installed: %1 Neuere Version installiert: %1 Earlier version installed: %1 Ältere Version installiert: %1 Installation failed Failed to install %1: no valid digital signature %1 konnte nicht installiert werden: Keine gültige digitale Signatur 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 Proceed button Fortfahren 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 Install %1 will remove: %1 zu installieren wird folgendes entfernen: 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 Broken dependencies PackagesListView Delete Löschen QApplication Collapse button Einklappen QObject Basic Standard Check digital signatures if the developer mode is enabled Digitale Signaturen überprüfen, wenn der Entwicklermodus aktiviert ist To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Um nicht signierte Apps zu installieren, gehe zu Sicherheitscenter > Tools > App-Sicherheit und wähle die App-Typen aus, die installiert werden dürfen. Security Center > Tools > App Security Sicherheitscenter > Tools > App-Sicherheit The system has not installed Linglong environment, please install it first Das System hat die Linglong-Umgebung nicht installiert. Bitte installiere das zuerst Unable to install Kann nicht installiert werden 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. Das Paket hat keine gültige digitale Signatur und wurde vom installieren/ausführen blockiert. Gehe zu Sicherheitscenter > Tools > App-Sicherheit um dies zu ändern Cancel button Abbrechen Proceed button Fortfahren Will remove: wird folgendes entfernen: SingleInstallPage Collapse Einklappen Reinstall Neu installieren Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Neuere Version installiert: %1 Downgrade Herabstufen Earlier version installed: %1 Ältere Version installiert: %1 Compatible Mode Install 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 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Versuche %2 im %1-Kompatibilitätsmodus zu installieren. Uninstalling %2 from %1 compatibility mode Deinstalliere %2 aus dem %1-Kompatibilitätsmodus Installed successfully Erfolgreich installiert %2 has been successfully uninstalled from %1 compatibility mode %2 wurde erfolgreich aus dem %1-Kompatilitätsmodus entfernt Uninstalled successfully Erfolgreich deinstalliert Uninstall Failed Deinstallation fehlgeschlagen Install %1 will remove: %1 zu installieren wird folgendes entfernen: Dependencies in the repository Abhängigkeiten im Repositorium Missing dependencies Fehlende Abhängigkeiten Compatible Install Cancel button Abbrechen 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 Uab::UabPackageListModel Installation Failed Installation fehlgeschlagen 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Im Kompatibilitätsmodus installieren 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.51/translations/deepin-deb-installer_en_US.ts000066400000000000000000001110531524745214100257560ustar00rootroot00000000000000 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... Updating package cache... 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 The %1 package may be broken You can only install local %1 packages You can only install local %1 packages No permission to access this folder No permission to access this folder Already Added Already Added %1 does not exist, please reselect %1 does not exist, please reselect Bulk Install Bulk Install DebListModel Authentication failed Authentication failed 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 Unmatched package architecture Unmatched package architecture current system current system %2 has been installed in %1, please uninstall this package before installing it %2 has been installed in %1, please uninstall this package before installing it Broken dependencies, try installing the app in compatibility mode Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Failed to install %1 Broken dependencies: %1 Broken dependencies: %1 Cancel button Cancel OK button OK Same version installed Same version installed Later version installed: %1 Later version installed: %1 Earlier version installed: %1 Earlier version installed: %1 Installation failed Failed to install %1: no valid digital signature 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 Proceed button Proceed This package does not have a valid digital signature This package does not have a valid digital signature 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: 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 Waiting Waiting Failed Failed Same version installed Same version installed Later version installed: %1 Later version installed: %1 Earlier version installed: %1 Earlier version installed: %1 Broken dependencies 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 Will remove: Will remove: The system has not installed Linglong environment, please install it first The system has not installed Linglong environment, please install it first To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. 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 Security Center > Tools > App Security 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. 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 SingleInstallPage Name: Name: Version: Version: Reinstall Reinstall Install button Install Remove button Remove OK button OK Back button Back Done button Done If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Trying to install %2 in %1 compatibility mode Installing in compatibility mode %1 Uninstalling %2 from %1 compatibility mode Uninstalling %2 from %1 compatibility mode %2 was successfully installed to %1 compatibility mode %2 was successfully installed to %1 compatibility mode %1 was successfully installed to compatibility mode Installed successfully Installed successfully %2 has been successfully uninstalled from %1 compatibility mode %2 has been successfully uninstalled from %1 compatibility mode Uninstalling %1 from compatibility mode Uninstalled successfully Uninstalled successfully Uninstall Failed Uninstall Failed Collapse Collapse Install %1 will remove: Install %1 will remove: Dependencies in the repository Dependencies in the repository Missing dependencies Missing dependencies Compatible Install Cancel button Cancel Same version installed Same version installed Later version installed: %1 Later version installed: %1 Downgrade Downgrade Earlier version installed: %1 Earlier version installed: %1 Update button Update Compatible Mode Install Installing dependencies: %1 Installing dependencies: %1 Failed to install %1 Failed to install %1 Invalid digital signature Invalid digital signature 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? The system or other applications may not work properly Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Install in compatible 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.51/translations/deepin-deb-installer_es.ts000066400000000000000000001121451524745214100253570ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Para configurar ingrese su respuesta: OK button Aceptar BackendProcessPage Loading packages... Cargando paquetes... %1/%2 loaded %1/%2 cargado Initializing... Inicializando... Updating package cache... Actualizando caché de paquetes... 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 %1 package may be broken El paquete %1 puede estar dañado You can only install local %1 packages Sólo puede instalar %1 paquetes locales No permission to access this folder No tiene permiso para acceder a la carpeta 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ó 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 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 Broken dependencies, try installing the app in compatibility mode Dependencias rotas, intente instalar la aplicación en modo de compatibilidad Compatibility mode installation failed Falló la instalación en modo de compatibilidad. Installation failed La instalacion falló Failed to install %1: no valid digital signature Error al instalar %1: no hay una 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 Contraer Install button Instalar Done button Finalizar Back button Atrás Install %1 will remove: La instalación %1 se eliminará: 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 Broken dependencies Dependencias rotas PackagesListView Delete Borrar QApplication Collapse button Contraer QObject Basic Básico Check digital signatures if the developer mode is enabled Comprobar las firmas digitales si el modo desarrollador está activado Unable to install No se puede instalar Cancel button Cancelar Proceed button Continuar 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. Este paquete no tiene una firma digital válida y se bloqueó su instalación/ejecución. Vaya a Centro de seguridad > Herramientas > Seguridad de aplicaciones para cambiar la configuración. Will remove: Se eliminará: The system has not installed Linglong environment, please install it first El sistema no ha instalado el entorno Linglong, instálelo primero To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Para instalar aplicaciones sin firmar, vaya a Centro de seguridad > Herramientas > Seguridad de aplicaciones y seleccione los tipos de aplicaciones que se pueden instalar. Security Center > Tools > App Security Centro de seguridad > Herramientas > Seguridad de la aplicación SingleInstallPage Collapse Contraer Reinstall Reinstalar Installing in compatibility mode %1 Instalando en modo compatible %1 Uninstalling %1 from compatibility mode Desinstalando %1 del modo de compatibilidad %1 was successfully installed to compatibility mode %1 se instaló correctamente en modo compatible 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 Compatible Mode Install Instalación en modo compatibilidad 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 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. Si este software es una versión anterior (ya adaptada para una versión de sistema heredada), puede intentar instalarlo en modo de compatibilidad. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. El modo de compatibilidad UOS V25 es una función que le permite seguir utilizando aplicaciones de la versión V20 en el sistema V25. Crea un entorno de compatibilidad que permite que el software que originalmente solo podía ejecutarse en el sistema V20 funcione correctamente también en el sistema V25. Confirm to install in compatibility mode Confirme la instalación en modo de compatibilidad. Installed successfully Instalación exitosa Uninstalled successfully Desinstalación exitosa Uninstall Failed La desinstalación falló Install %1 will remove: La instalación %1 eliminará: Dependencies in the repository Dependencias en el repositorio Missing dependencies Dependencias que faltan Compatible Install Instalación compatible Cancel button Cancelar 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 Uab::UabPackageListModel Installation Failed La instalación falló UninstallConfirmPage Show related packages Mostrar paquetes relacionados Collapse button Contraer 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed ¿Está seguro que desea desinstalar %1 del modo de compatibilidad? Se eliminarán todas las dependencias dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Instalar en modo compatible 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.51/translations/deepin-deb-installer_et.ts000066400000000000000000001116621524745214100253630ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Sisesta konfigureerimiseks number: OK button OK BackendProcessPage Loading packages... Ladutakse paakomponente... %1/%2 loaded %1/%2 laetud Initializing... Alustamine... Updating package cache... DdimErrorPage OK OK DebInstaller Package Installer Pakihaldur Settings Seaded Installing other packages... Please open it later. Paigaldatakse muude pakete... Atributsege hiljem avamiseks. Parsing failed: An illegal file structure was found in the manifest file! Analüüsi ebaõnnestus: Manifesifailis leiti ebasobiv failistruktuur! Parsing failed: An illegal version number was found in the manifest file! Analüüsi ebaõnnestus: Manifesifailis leiti ebasobiv versiooninumber! No deb packages found. Please check the folder. Deb pakete ei leitud. Palun kontrolli kaustat. The %1 package may be broken Paigutatud %1 pakett võib olla vikiga You can only install local %1 packages Sa võid paigaldada ainult kohalikke %1 pakete No permission to access this folder Ei ole sissekandimise õigust selle kausta Already Added Juba lisatud %1 does not exist, please reselect %1 ei eksisteeri, palun vali uuesti 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 Paigaldamine ebaõnnestus, palun kontrolli Kontrollimiskeskuses asutustpäringu Installation failed, insufficient disk space Paigaldamine ebaõnnestus, kettal pole piisavalt vaba ruumi No digital signature Ei ole arvutivõtete allkirju Invalid digital signature Vigane arvutivõtete allkiri The administrator has set policies to prevent installation of this package Administraator on seadistatud poliitikaid, mis eemaldavad selle paketiga paigaldamist Installation Failed Paigaldamine ebaõnnestus current system olemuslikus süsteem %2 has been installed in %1, please uninstall this package before installing it %2 on paigaldatud %1, palun eemalda seda pakett eesmärgil, et seda uuesti paigaldada Broken dependencies, try installing the app in compatibility mode Lõhke sõltuvused, proovi rakenduse parimate toimingute režiimis paigaldada Compatibility mode installation failed Failed to install %1 Ebaõnnestus %1 paigaldamisel Cancel button Loobu OK button OK Same version installed Sama versioon on juba paigaldatud Later version installed: %1 Earlier version installed: %1 Installation failed Failed to install %1: no valid digital signature Ei õnnestunud %1 installida: mitte kehtivat kriptograafilist allkirjastust This package does not have a valid digital signature. Continue with the installation? See pakett ei ole kehtivalt kriptograafiliselt allkirjastatud. Jätka installimisega? Cancel Loobu Continue button Jätka Unable to install Ei lisamist mitte võimalik Proceed button Järjekorras järgi This package does not have a valid digital signature See pakett ei ole kehtivalt kriptograafiliselt allkirjastatud Broken dependencies: %1 Lõhke sõltuvused: %1 Authentication failed Autentimine ebaõnnestus Unmatched package architecture Sobimatu paki arhidektuur FileChooseWidget Drag deb packages here Täpista siia deb pakette Select File Vali fail MultipleInstallPage Show details Näita üksikasju Collapse button Sulge Install button Paigalda Done button Valmis Back button Tagasi Install %1 will remove: Installida %1 eemaldab: Dependencies in the repository Repositooriumis olevad sõltuvused Missing dependencies Puuduvad sõltuvused Installing dependencies: %1 Installitakse sõltuvusi: %1 PackageSelectItem Same version installed Sama versioon on juba paigaldatud Earlier version installed: %1 Ancasem versioon installitud: %1 Later version installed: %1 Pärasem versioon installitud: %1 Unmatched package architecture Sobimatu paki arhidektuur PackageSelectView Select all Vali kõik Install button Paigalda PackagesListDelegate Installing Paigaldamine Installed Paigaldatud Failed Ebaõnnestus Waiting Kuulsad Same version installed Sama versioon on juba paigaldatud Later version installed: %1 Pärasem versioon installitud: %1 Earlier version installed: %1 Ancasem versioon installitud: %1 Broken dependencies PackagesListView Delete Kustuta QApplication Collapse button Sulge QObject Basic Üldine Check digital signatures if the developer mode is enabled Kontrolli kriptograafilisi allkirju, kui arendajamoodi on lubatud To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Ümestatud rakendusi installida, mene Security Center > Tools > App Security kohta ja vali installitavate rakenduste tüübid. Security Center > Tools > App Security Security Center > Tools > App Security The system has not installed Linglong environment, please install it first Süsteem Linglong kliendiüldist ei ole installitud, siis installi see enne. Unable to install Ei saa installida 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. See pakett ei ole digitaalse allkirjaga kinnitatud ja on blokeeritud installimiseks/ülevaateks. Mene Security Center > Tools > App Security kohta ja muuda seaded. Cancel button Loetle Proceed button Järjekorras järgi Will remove: Eemaldatakse: SingleInstallPage Collapse Sulge Reinstall Paigalda uuesti Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Parem versioon on installitud: %1 Downgrade Väljastada Earlier version installed: %1 Aegsem versioon on installitud: %1 Compatible Mode Install Installing dependencies: %1 Installitakse sõltuvusi: %1 Failed to install %1 Ei saa %1 installida Version: Versioon: Install button Paigalda Remove button Eemalda OK button OK Back button Tagasi Done button Valmis If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Proovitakse %2 %1 kompatüübilahenduses installida Uninstalling %2 from %1 compatibility mode %2 eemaldatakse %1 kompatüübilahendustest %2 was successfully installed to %1 compatibility mode %2 on edukalt %1 kompatüübilahenduses installitud Installed successfully Paigaldatud %2 has been successfully uninstalled from %1 compatibility mode %2 on edukalt %1 kompatüübilahendustest eemaldatud Uninstalled successfully Eemaldatud Uninstall Failed Eemaldamine ebaõnnestus Install %1 will remove: Installida %1 eemaldatakse: Dependencies in the repository Salvestusala sõltuvused Missing dependencies Puuduvad sõltuvused Compatible Install Cancel button Update button Uuenda Invalid digital signature Vigane digitaalallikas Name: Nimi: Same version installed Sama versioon on juba paigaldatud SingleInstallPage_Install Show details Näita detajeid Show dependencies Näita sõltuvusi SingleInstallPage_Uninstall Show details Näita yksikäsitteisi Uab::UabPackageListModel Installation Failed Paigaldamine ebaõnnestus UninstallConfirmPage Show related packages Näita seotud paketteid Collapse button Sulge Cancel button Loobu Confirm Kinnita Are you sure you want to uninstall %1? All dependencies will also be removed Kas soovid eemaldada %1? Kõik sõltuvused jääksid eemaldamata Are you sure you want to uninstall %1? The system or other applications may not work properly Kas soovid eemaldada %1? Põhjuslikult või teiste rakenduste tuleksid ei toimuda õigesti Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Paigalda ühilduvas režiimis main Package Installer Pakihaldur Package 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.51/translations/deepin-deb-installer_fi.ts000066400000000000000000001110111524745214100253350ustar00rootroot00000000000000 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... Updating package cache... Päivitetään välimuistia... 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 %1 package may be broken Paketti %1 voi olla rikki You can only install local %1 packages Voit asentaa vain %1-paketteja No permission to access this folder Ei ole käyttöoikeuksia tähän kansioon 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 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 Same version installed Sama versio on asennettu Later version installed: %1 Uudempi versio asennettu: %1 Earlier version installed: %1 Aiempi versio asennettu: %1 Broken dependencies, try installing the app in compatibility mode Rikkinäiset riippuvuudet, yritä asentaa sovellus yhteensopivuustilassa Compatibility mode installation failed Yhteensopivuustilan asennus epäonnistui Installation failed Asennus epäonnistui 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 Install %1 will remove: %1 asentaminen poistaa: 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 Broken dependencies Rikkoutuneet riippuvuudet 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ä Unable to install Ei voi asentaa Cancel button Peru Proceed button Hyväksy 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. Tällä paketilla ei ole kelvollista digitaalista allekirjoitusta ja sen asennus/käyttö on estetty. Siirry kohtaan Turvakeskus > Työkalut > Sovelluksen suojaus muuta asetuksia. Will remove: Poistetaan: The system has not installed Linglong environment, please install it first Linglong ei ole asennettuna tähän tietokoneeseen, asenna se ensin To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Mikäli haluat asentaa allekirjoittamattomia sovelluksia, siirry kohtaan Turvakeskus > Työkalut > Sovellusten suojaus ja valitse asennettavat sovellustyypit. Security Center > Tools > App Security Turvakeskus > Työkalut > Sovellusten suojaus SingleInstallPage Collapse Pudotus Reinstall Uudelleen Installing in compatibility mode %1 Asennetaan %1 yhteensopivuustilassa Uninstalling %1 from compatibility mode Poistetaan yhteensopivuustilasta %1 %1 was successfully installed to compatibility mode %1 asennettiin yhteensopivuustilassa Later version installed: %1 Uudempi versio asennettu: %1 Downgrade Aiempi vesio Earlier version installed: %1 Aiempi versio asennettu: %1 Compatible Mode Install Asenna yhteensopivuustilassa 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 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. Jos ohjelma on vanhempi versio (vanha järjestelmäversio), voit yrittää asentaa sen yhteensopivuustilassa. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. UOS V25 -yhteensopivuustilassa, voit jatkaa V20-version sovellusten käyttöä. Se luo sinulle ympäristön, jonka ansiosta ohjelmat, jotka alun perin toimivat vain V20-versioissa, toimivat oikein myös V25-versiossa. Confirm to install in compatibility mode Vahvista asennus yhteensopivuustilassa Installed successfully Asennettu onnistuneesti Uninstalled successfully Asennuksen poisto onnistui Uninstall Failed Poisto epäonnistui Install %1 will remove: %1 asentaminen poistaa: Dependencies in the repository Pakettivaraston riippuvuudet Missing dependencies Puuttuvat riippuvuudet Compatible Install Yhteensopiva asennus Cancel button Peru 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 Uab::UabPackageListModel Installation Failed Asennus epäonnistui 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed Haluatko varmasti poistaa %1 asennuksen yhteensopivuustilassa? Myös kaikki riippuvuudet poistetaan dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Asenna yhteensopivuustilassa 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.51/translations/deepin-deb-installer_fr.ts000066400000000000000000001132651524745214100253630ustar00rootroot00000000000000 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... Updating package cache... 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 %1 package may be broken Le paquet %1 est peut-être cassé You can only install local %1 packages Vous ne pouvez installer que %1 paquets locaux No permission to access this folder Vous n'avez pas la permission d'accéder à ce dossier 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 current system le système actuel %2 has been installed in %1, please uninstall this package before installing it %2 a été installé dans %1, veuillez désinstaller ce paquet avant de l'installer Broken dependencies, try installing the app in compatibility mode Dépendances cassées, veuillez essayer d'installer l'application en mode compatibilité Compatibility mode installation failed Failed to install %1 Échec de l'installation de %1 Cancel button Annuler OK button OK 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 Installation failed Failed to install %1: no valid digital signature Échec de l'installation de %1 : aucune signature numérique valide 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 Proceed button Procéder 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 Install %1 will remove: Installer %1 va supprimer : 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 Broken dependencies 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é To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Pour installer des applications non signées, accédez à Centre de sécurité > Outils > Sécurité des applications et sélectionnez les types d'applications pouvant être installées. Security Center > Tools > App Security Centre de sécurité > Outils > Sécurité des applications The system has not installed Linglong environment, please install it first L'environnement Linglong n'est pas installé sur ce système, veuillez d'abord l'installer Unable to install Impossible d'installer 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. Ce package n'a pas de signature numérique valide et son installation/exécution a été bloquée. Accédez à Centre de sécurité > Outils > Sécurité des applications pour modifier les paramètres. Cancel button Annuler Proceed button Procéder Will remove: Va supprimer : SingleInstallPage Collapse Réduire Reinstall Réinstaller Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Version ultérieure installée : %1 Downgrade Rétrograder Earlier version installed: %1 Version antérieure installée : %1 Compatible Mode Install 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é If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Essai de l'installation de %1 dans %1 en mode compatibilité Uninstalling %2 from %1 compatibility mode Désinstallation de %2 depuis %1 en mode compatibilité %2 was successfully installed to %1 compatibility mode %2 تم تثبيته بنجاح في وضع التوافق مع %1 Installed successfully Installé avec succès %2 has been successfully uninstalled from %1 compatibility mode %2 a été désinstallé avec succès dans %1 en mode compatibilité Uninstalled successfully Désinstallé avec succès Uninstall Failed Échec de la désinstallation Install %1 will remove: Installer %1 va supprimer : Dependencies in the repository Dépendances dans le dépôt Missing dependencies Dépendances manquantes Compatible Install Cancel button Annuler 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 Uab::UabPackageListModel Installation Failed Échec de l'installation 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Installer en mode compatible 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.51/translations/deepin-deb-installer_gl_ES.ts000066400000000000000000001122061524745214100257370ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Introduce o número para configurar: OK button Aceptar BackendProcessPage Loading packages... Cargando paquetes... %1/%2 loaded %1/%2 cargados Initializing... Inicializando... Updating package cache... DdimErrorPage OK Aceptar DebInstaller Package Installer Instalador do paquete Settings Configuración Installing other packages... Please open it later. Instalando outros paquetes... Abra esto posteriormente. Parsing failed: An illegal file structure was found in the manifest file! Falló a análise: atopouse unha estrutura de ficheiro ilegal no ficheiro manifest!! Parsing failed: An illegal version number was found in the manifest file! Falló a análise: atopouse un número de versión ilegal no ficheiro manifest!! No deb packages found. Please check the folder. Non se atoparon paquetes deb. Comprueba a carpeta. The %1 package may be broken O paquete %1 pode estar roto You can only install local %1 packages Pode instalar só paquetes %1 locais No permission to access this folder Non teña permiso para acceder a esta carpeta Already Added Xa se engadiu %1 does not exist, please reselect %1 non existe, seleccione de novo 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 Non hai firma digital Invalid digital signature Firma digital non válida The administrator has set policies to prevent installation of this package O administrador estableceu políticas para evitar a instalación deste paquete Installation Failed Fallo ao instalar current system sistema actual %2 has been installed in %1, please uninstall this package before installing it %2 instalouse en %1, desinstale este paquete antes de instalarlo Broken dependencies, try installing the app in compatibility mode Dependencias rotas, tente instalar a aplicación no modo de compatibilidade Compatibility mode installation failed Failed to install %1 Erro ao instalar %1 Cancel button Cancelar OK button Aceptar 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 Installation failed Failed to install %1: no valid digital signature Fallou instalar %1: non se atopou unha súa firma digital válida This package does not have a valid digital signature. Continue with the installation? Este paquete non tem unha súa firma digital válida. Continuar con a instalación? Cancel Cancelar Continue button Continuar Unable to install Activar a instalación Proceed button Proxigar 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 A autenticación fallou 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 Install %1 will remove: A instalación de %1 eliminará: Dependencies in the repository Dependencias no repositorio Missing dependencies Dependencias faltantes 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 Seleccionar todo 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 Broken dependencies PackagesListView Delete Eliminar QApplication Collapse button Colapsou QObject Basic Básico Check digital signatures if the developer mode is enabled Comprobar as firmas digitais se o modo de desenvolvedor está activado To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Para instalar apps sen súa firma, vai á Centro de Seguridade > Ferramentas > Seguridade de Aplicativos e seleccione os tipos de aplicación que se pode instalar. Security Center > Tools > App Security Centro de Seguridade > Ferramentas > Seguridade de Aplicativos The system has not installed Linglong environment, please install it first O sistema non instalou o entorno Linglong, instale-o primeiro Unable to install Activar a instalación 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. Este paquete non tem unha súa firma digital válida e foi bloqueado para instalación/execución. Vá ao Centro de Seguridade > Ferramentas > Seguridade de Aplicativos para cambiar as configuracións. Cancel button Cancelar Proceed button Proxigar Will remove: Irá eliminar: SingleInstallPage Collapse Colapsou Reinstall Reinstalar Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Versión máis recente instalada: %1 Downgrade Desactualizar Earlier version installed: %1 Versión máis recente instalada: %1 Compatible Mode Install 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 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode A tentar instalar %2 en modalidade de compatibilidade %1 Uninstalling %2 from %1 compatibility mode A desinstalar %2 de modalidade de compatibilidade %1 %2 was successfully installed to %1 compatibility mode %2 foi instalado con éxito en modalidade de compatibilidade %1 Installed successfully Instalado con éxito %2 has been successfully uninstalled from %1 compatibility mode %2 foi desinstalado con éxito de modalidade de compatibilidade %1 Uninstalled successfully Desinstalado con éxito Uninstall Failed Fallo ao desinstalar Install %1 will remove: A instalación de %1 eliminará: Dependencies in the repository Dependencias no repositorio Missing dependencies Dependencias ausentes Compatible Install Cancel button Cancelar Update button Actualizar Invalid digital signature Firma digital inválida Name: Nome: Same version installed Mesma versión instalada SingleInstallPage_Install Show details Amosar detalles Show dependencies Mostrar dependencias SingleInstallPage_Uninstall Show details Amosar detalles Uab::UabPackageListModel Installation Failed Fallo ao instalar 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Instalar en modo compatible 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.51/translations/deepin-deb-installer_he.ts000066400000000000000000001134441524745214100253470ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: הכנס את המספר להגדרה: OK button אישור BackendProcessPage Loading packages... טוען חבילות... %1/%2 loaded %1/%2 נטענים Initializing... מאתחל... Updating package cache... 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 %1 package may be broken החבילה %1 עלולה להיות מתקלקלה You can only install local %1 packages אתה יכול להתקין רק חבילות %1 מקומיות No permission to access this folder אין הרשאה לגשת לכתובת זו 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 %2 כבר מותקנת ב-%1, יש להסיר את החבילה זו לפני התקנתה Broken dependencies, try installing the app in compatibility mode תלות לא מותקנות, נסה להתקין את האפליקציה במצב תאימות Compatibility mode installation failed Failed to install %1 נכשל להתקין %1 Cancel button ביטול OK button אישור Same version installed אותה הגרסה מותקנת Later version installed: %1 התקנת גרסה מאוחרת: %1 Earlier version installed: %1 הותקנה גרסה מוקדמת יותר: %1 Installation failed Failed to install %1: no valid digital signature התקבלה תקלה ביצירת התקנה: אין תחתון דיגיטלי תקף This package does not have a valid digital signature. Continue with the installation? החבילה הזו אין לה תחתון דיגיטלי תקף. להמשיך עם התקנה? Cancel ביטול Continue button המשך Unable to install לא ניתן להתקין Proceed button המשך This package does not have a valid digital signature החבילה הזו אין לה תחתון דיגיטלי תקף Broken dependencies: %1 PENDENCIES שבורות: %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 חזרה Install %1 will remove: התקנה של %1 תמחק: Dependencies in the repository PENDENCIES במערכת Missing dependencies PENDENCIES חסרות Installing dependencies: %1 התקנה של PENDENCIES: %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 Broken dependencies PackagesListView Delete מחק QApplication Collapse button צמצום QObject Basic בסיס Check digital signatures if the developer mode is enabled בדוק תחתונות דיגיטליות אם מצב התפתחות נnable To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. ל📥 יישומים לא מותקנים, går למרכז הביטחון >-toolettes> ביטחון יישומים ובחן את סוגים של יישומים שיכולים להתקין. Security Center > Tools > App Security מרכז הביטחון >-toolettes> ביטחון יישומים The system has not installed Linglong environment, please install it first המערכת לא התקנת סביבת Linglong, אנא התקין אותה קודם 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. pakgpkg לא מכילחתת דיגיטלית תקינה וnze מותר להתקין או להריץ. ה转到安全中心 > 工具 > 应用程序安全,更改设置。 Cancel button ביטול Proceed button המשך Will remove: ינמח: SingleInstallPage Collapse צמצום Reinstall התקנה מחדש Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 התקנת גרסה מאוחרת: %1 Downgrade התקנת גרסה נמוכה יותר Earlier version installed: %1 הותקנה גרסה מוקדמת יותר: %1 Compatible Mode Install Installing dependencies: %1 התקנת תחנות תומכות: %1 Failed to install %1 נכשל להתקין %1 Version: גרסה: Install button התקנה Remove button הסרה OK button אישור Back button חזרה Done button סימן If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode התקנת %2 במצב תואמה %1 Uninstalling %2 from %1 compatibility mode הסרת %2 מהמצב התואמה %1 %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 תתותומכות חסרות Compatible Install Cancel button ביטול 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 %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode התקנה במצב תאימות main Package Installer מוניטור חבילות Package Installer helps users install and remove local packages, and supports bulk installation. מוניטור חבילות עוזר למשתמשים להתקין ולמחוק חבילות מקומיות, ומכיל תמיכה ביצירת חבילות בדבש deepin-deb-installer-6.5.51/translations/deepin-deb-installer_hi_IN.ts000066400000000000000000001243161524745214100257410ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: विन्यास हेतु अंक दर्ज करें : OK button ठीक है BackendProcessPage Loading packages... पैकेज लोड कर रहे हैं... %1/%2 loaded %1/%2 लोड कर रहे हैं Initializing... प्रारंभ कर रहे हैं... Updating package cache... 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 %1 package may be broken पैकेज %1 टूट गया हो सकता है You can only install local %1 packages आप केवल स्थानीय %1 पैकेज इंस्टॉल कर सकते हैं No permission to access this folder इस फ़ोल्डर के एक्सेस के लिए अनुमति नहीं है 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 %2 %1 में इंस्टॉल कर दिया गया है, इस पैकेज को इंस्टॉल करने से पहले इसे अनइंस्टॉल करें Broken dependencies, try installing the app in compatibility mode टूटे डिपेंडेंसी, संगतता मोड में ऐप इंस्टॉल करें Compatibility mode installation failed Failed to install %1 %1 इंस्टॉल विफल Cancel button रद्द करें OK button ठीक है Same version installed समान संस्करण पहले से इंस्टॉल है Later version installed: %1 नवीन संस्करण इंस्टॉल है : %1 Earlier version installed: %1 पूर्व संस्करण इंस्टॉल है : %1 Installation failed 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 इंस्टॉल करने में अक्षम Proceed button जारी रखें 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 वापस 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 Broken dependencies 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 सिस्टम ने Linglong परिवेश इंस्टॉल नहीं किया है, कृपया पहले इसे इंस्टॉल करें 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 पुनः इंस्टॉल करें Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 नवीन संस्करण इंस्टॉल है : %1 Downgrade डाउनग्रेड Earlier version installed: %1 पूर्व संस्करण इंस्टॉल है : %1 Compatible Mode Install Installing dependencies: %1 आश्रित पैकेज इंस्टॉल हो रहे हैं : %1 Failed to install %1 %1 इंस्टॉल विफल Version: संस्करण : Install button इंस्टॉल करें Remove button हटाएँ OK button ठीक है Back button वापस Done button पूर्ण हुआ If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode %2 को %1 संगतता मोड में इंस्टॉल करने की कोशिश कर रहे हैं Uninstalling %2 from %1 compatibility mode %2 को %1 संगतता मोड से अनइंस्टॉल कर रहे हैं %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 अनुपलब्ध आश्रित पैकेज Compatible Install Cancel button रद्द करें 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 %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode संगत मोड में इंस्टॉल करें main Package Installer पैकेज इंस्टॉलर Package Installer helps users install and remove local packages, and supports bulk installation. पैकेज इंस्टॉलर द्वारा उपयोक्ता लोकल पैकेज इंस्टॉल व हटा सकते हैं, यह सामूहिक इंस्टॉल की सुविधा भी प्रदान करता है। deepin-deb-installer-6.5.51/translations/deepin-deb-installer_hr.ts000066400000000000000000001121441524745214100253600ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Unesite broj za konfiguraciju: OK button U redu BackendProcessPage Loading packages... Učitavanje paketa... %1/%2 loaded %1/%2 učitano Initializing... Inicijalizacija... Updating package cache... DdimErrorPage OK U redu DebInstaller Package Installer Instaler paketa Settings Postavke Installing other packages... Please open it later. Instalacija drugih paketa... Molimo otvorite ga kasnije. Parsing failed: An illegal file structure was found in the manifest file! Parsing je pao: pronađena je nevaljana struktura datoteke u manifestu! Parsing failed: An illegal version number was found in the manifest file! Parsing je pao: pronađen je nevaljani broj verzije u manifestu! No deb packages found. Please check the folder. Nisu pronađeni deb paketi. Molimo provjerite mapu. The %1 package may be broken Paket %1 može biti oštećen You can only install local %1 packages Možete instalirati samo lokalne %1 pakete No permission to access this folder Nema dozvole za pristup ovoj mapi Already Added Već je dodan %1 does not exist, please reselect %1 ne postoji, molimo ponovno odaberite 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 Administrator je postavio politike za preprečavanje instalacije ovog paketa Installation Failed Neuspjela instalacija current system trenutni sustem %2 has been installed in %1, please uninstall this package before installing it %2 je već instaliran u %1, molimo deinstalirajte ovaj paket prije instalacije Broken dependencies, try installing the app in compatibility mode Pucana ovisnost, pokušajte instalirati aplikaciju u režimu kompatibilnosti Compatibility mode installation failed Failed to install %1 Nespjela instalacija %1 Cancel button Otkaži OK button U redu 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 Installation failed Failed to install %1: no valid digital signature Nije uspješno instaliran %1: nema valjane digitalne potpise This package does not have a valid digital signature. Continue with the installation? Ovaj paket nema valjane digitalne potpise. Dalje s instalacijom? Cancel Otkaži Continue button Nastavi Unable to install Nije moguće instalirati Proceed button Nastavi 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 Skrivite Install button Instaliraj Done button Učinjeno Back button Natrag Install %1 will remove: Instalacija %1 će ukloniti: 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 Odaberi sve 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 Broken dependencies PackagesListView Delete Izbriši QApplication Collapse button Provjerite digitalne potpise ako je omogućen režim razvijalaca QObject Basic Osnovno Check digital signatures if the developer mode is enabled Za instalaciju nepotpisanih aplikacija, idite u Bezbednosni centar > Alati > Aplikacijska sigurnost, i odaberite vrste aplikacija koje mogu biti instalirane. To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Bezbednosni centar > Alati > Aplikacijska sigurnost Security Center > Tools > App Security Sustem nije instalirao Linglong okruženje, molimo instalirajte ga prvo The system has not installed Linglong environment, please install it first Ovaj paket nema valjane digitalne potpise i bio je blokiran za instalaciju/izvođenje. Idite u Bezbednosni centar > Alati > Aplikacijska sigurnost da promijenite postavke. Unable to install Nije moguće instalirati 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. Buduće uklonjeno: Cancel button Otkaži Proceed button Nastavi Will remove: Skrivite SingleInstallPage Collapse Povratak na staru verziju Reinstall Ponovno instaliraj Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Instalirana je kasnija inačica: %1 Downgrade Povlačenje Earlier version installed: %1 Instalirana je ranija inačica: %1 Compatible Mode Install 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 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Pokušavam instalirati %2 u režim kompatibilnosti %1 Uninstalling %2 from %1 compatibility mode Deinstaliramo %2 iz režima kompatibilnosti %1 %2 was successfully installed to %1 compatibility mode '%2 je uspješno instaliran u režim kompatibilnosti %1' Installed successfully Uspješno instalirano %2 has been successfully uninstalled from %1 compatibility mode '%2 je uspješno deinstaliran iz režima kompatibilnosti %1' Uninstalled successfully Uspješno deinstalirano Uninstall Failed Neuspjela deinstalacija Install %1 will remove: Instalacija %1 će ukloniti: Dependencies in the repository Međuzavisnosti u repozitoriju Missing dependencies Međuzavisnosti koje nedostaju Compatible Install Cancel button Otkaži 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 Uab::UabPackageListModel Installation Failed Neuspjela instalacija UninstallConfirmPage Show related packages Pokaži povezane pakete Collapse button Sakrij 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Instaliraj u kompatibilnom načinu 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.51/translations/deepin-deb-installer_hu.ts000066400000000000000000001131051524745214100253610ustar00rootroot00000000000000 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... Updating package cache... 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 %1 package may be broken A %1 csomag lehet hogy sérült You can only install local %1 packages Csak helyi %1 csomagok telepíthetőek No permission to access this folder Nincs engedély a mappa elérésére 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 current system Jelenlegi rendszer %2 has been installed in %1, please uninstall this package before installing it A %2 telepítve van ide: %1, kérjük távolítsa el ezt a csomagot, mielőtt telepítené Broken dependencies, try installing the app in compatibility mode Hibás függőségek, próbálja meg kompatibilitási módban telepíteni az alkalmazást Compatibility mode installation failed Failed to install %1 A %1 telepítése sikertelen Cancel button Mégsem OK button OK 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 Installation failed 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 Proceed button Folytassa 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 Install %1 will remove: A telepített %1 eltávolítása: 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 Broken dependencies 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 The system has not installed Linglong environment, please install it first A rendszer nem telepítette a Linglong környezetet, kérjük, először telepítse Unable to install A telepítés nem lehetséges 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. Cancel button Mégsem Proceed button Folytassa Will remove: El lesz távolítva: SingleInstallPage Collapse Összecsukás Reinstall Újratelepítés Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Újabb verzió telepítve: %1 Downgrade Visszaminősítés Earlier version installed: %1 Korábbi verzió telepítve: %1 Compatible Mode Install 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 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode A %2 telepítése %1 kompatibilitási módban Uninstalling %2 from %1 compatibility mode A %2 eltávolítása %1 kompatibilitási módból %2 was successfully installed to %1 compatibility mode %2 sikeresen telepítve lett a %1 kompatibilitási módra Installed successfully Sikeresen telepítve %2 has been successfully uninstalled from %1 compatibility mode A %2 sikeresen eltávolítva a %1 kompatibilitási módból Uninstalled successfully Sikeresen eltávolítva Uninstall Failed Az eltávolítás sikertelen Install %1 will remove: A telepített %1 eltávolítása: Dependencies in the repository Függőségek a tárolóban Missing dependencies Hiányzó függőségek Compatible Install Cancel button Mégsem 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 Uab::UabPackageListModel Installation Failed A telepítés sikertelen 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Telepítés kompatibilis módban 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.51/translations/deepin-deb-installer_id.ts000066400000000000000000001114611524745214100253440ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Masukkan jumlah yang akan dikonfigurasi: OK button OK BackendProcessPage Loading packages... Memuat paket... %1/%2 loaded %1/%2 telah dimuat Initializing... Menginisialisasi... Updating package cache... DdimErrorPage OK OK DebInstaller Package Installer Pemasang Paket Settings Setelan Installing other packages... Please open it later. Menginstal paket lain... Silakan buka nanti. Parsing failed: An illegal file structure was found in the manifest file! Parsing gagal: Struktur file yang tidak sah ditemukan dalam file manifest! Parsing failed: An illegal version number was found in the manifest file! Parsing gagal: Nomor versi yang tidak sah ditemukan dalam file manifest! No deb packages found. Please check the folder. Tidak ada paket deb yang ditemukan. Silakan periksa folder. The %1 package may be broken Paket %1 mungkin rusak You can only install local %1 packages Anda hanya dapat menginstal paket %1 lokal No permission to access this folder Tidak ada izin untuk mengakses folder ini 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 current system sistem saat ini %2 has been installed in %1, please uninstall this package before installing it %2 telah terinstal di %1, silakan uninstall paket ini sebelum menginstalnya Broken dependencies, try installing the app in compatibility mode Tergantung pada dependensi yang rusak, coba instal aplikasi dalam mode kompatibilitas Compatibility mode installation failed Failed to install %1 Gagal memasang %1 Cancel button Batal OK button OK Same version installed Versi sama terpasang Later version installed: %1 Versi yang lebih baru terpasang: %1 Earlier version installed: %1 Versi sebelumnya terpasang: %1 Installation failed Failed to install %1: no valid digital signature Gagal menginstal %1: tidak ada tanda tangan digital yang sah 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 Proceed button Lanjutkan 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 Install %1 will remove: Instal %1 akan menghapus: 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 Pilih semua 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 Broken dependencies 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 To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Untuk menginstal aplikasi tanpa tanda tangan, pergi ke Security Center > Tools > App Security, dan pilih jenis aplikasi yang dapat diinstal. Security Center > Tools > App Security Security Center > Tools > App Security The system has not installed Linglong environment, please install it first Sistem belum menginstal linglong environment, silakan instal terlebih dahulu Unable to install Tidak dapat memasang 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. Paket ini tidak memiliki tanda tangan digital yang sah dan telah diblokir untuk diinstal/menyala. Pergi ke Security Center > Tools > App Security untuk mengubah pengaturan. Cancel button Batal Proceed button Lanjutkan Will remove: Akan menghapus: SingleInstallPage Collapse Jatuhkan Reinstall Pasang ulang Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Versi yang lebih baru terpasang: %1 Downgrade Turunkan versi Earlier version installed: %1 Versi sebelumnya terpasang: %1 Compatible Mode Install 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 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Mencoba menginstal %2 dalam mode kompatibilitas %1 Uninstalling %2 from %1 compatibility mode Menguninstal %2 dari mode kompatibilitas %1 %2 was successfully installed to %1 compatibility mode %2 berhasil diinstal ke mode kompatibilitas %1 Installed successfully Pemasangan berhasil %2 has been successfully uninstalled from %1 compatibility mode %2 berhasil diuninstal dari mode kompatibilitas %1 Uninstalled successfully Pelepasan berhasil Uninstall Failed Pelepasan gagal Install %1 will remove: Instal %1 akan menghapus: Dependencies in the repository Dependensi di repositori Missing dependencies Dependensi hilang Compatible Install Cancel button Batal 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 Uab::UabPackageListModel Installation Failed Pemasangan Gagal 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Instal dalam mode kompatibel 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.51/translations/deepin-deb-installer_it.ts000066400000000000000000001075111524745214100253650ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Inserisci il numero da configurare: OK button OK BackendProcessPage Loading packages... Caricamento pacchetti... %1/%2 loaded %1/%2 caricati Initializing... Inizializzazione... Updating package cache... DdimErrorPage OK OK DebInstaller Package Installer Gestore pacchetti Settings Impostazioni Installing other packages... Please open it later. Installazione altri pacchetti... Per cortesia aprilo dopo. Parsing failed: An illegal file structure was found in the manifest file! Analisi fallita: un file con struttura errata è stato trovato nel file Manifesto! Parsing failed: An illegal version number was found in the manifest file! Analisi fallita: un numero versione errata è stato rilevato nel file Manifesto! No deb packages found. Please check the folder. Nessun file Deb rilevato. Per cortesia controlla la cartella. The %1 package may be broken You can only install local %1 packages No permission to access this folder 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 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Installazione fallita per %1 Cancel button Annulla OK button OK Same version installed Medesima versione installata Later version installed: %1 Versione successiva già installata: %1 Earlier version installed: %1 Versione precedente installata: %1 Installation failed Failed to install %1: no valid digital signature Installazione di %1 fallita: firma non valida 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 Proceed button Procedi 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 Install %1 will remove: 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 Seleziona tutto 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 Broken dependencies 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 To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Per installare le app non firmate, vai in Centro sicurezza > Strumenti > Sicurezza App e seleziona il tipo di App che possono essere installate. Security Center > Tools > App Security Centro sicurezza > Strumenti > Sicurezza App The system has not installed Linglong environment, please install it first Unable to install Impossibile installare 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. Questo pacchetto non ha una firma digitale valida e la sua installazione/esecuzione è stata bloccata. Vai nel Centro sicurezza > Strumenti > Sicurezza App per modificare le impostazioni. Cancel button Annulla Proceed button Procedi Will remove: SingleInstallPage Collapse Collassa Reinstall Aggiorna Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Versione successiva già installata: %1 Downgrade Ripristina alla versione precedente Earlier version installed: %1 Versione precedente installata: %1 Compatible Mode Install 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 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installed successfully Installazione riuscita Uninstalled successfully Disinstallazione riuscita Uninstall Failed Disinstallazione fallita Install %1 will remove: Dependencies in the repository Dipendenze nel repository Missing dependencies Dipendenze mancanti Compatible Install Cancel button Annulla 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 Uab::UabPackageListModel Installation Failed Installazione fallita 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Installa in modalità compatibile 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.51/translations/deepin-deb-installer_ja.ts000066400000000000000000001105701524745214100253420ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: 構成する番号を入力してください: OK button OK BackendProcessPage Loading packages... パッケージを読み込んでいます... %1/%2 loaded %1/2 を読み込みました Initializing... 初期化しています... Updating package cache... 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. debパッケージが見つかりません。フォルダをご確認ください。 The %1 package may be broken You can only install local %1 packages No permission to access this folder このフォルダへのアクセス権限がありません 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 インストール失敗 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 %1のインストールに失敗しました Cancel button キャンセル OK button OK Same version installed 同じバージョンがインストールされています Later version installed: %1 新しいバージョンがインストールされています: %1 Earlier version installed: %1 古いバージョンがインストールされています: %1 Installation failed Failed to install %1: no valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel キャンセル Continue button 続行 Unable to install インストールできません Proceed button 確定 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 戻る Install %1 will remove: 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 Broken dependencies 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 再インストール Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 新しいバージョンがインストールされています: %1 Downgrade ダウングレード Earlier version installed: %1 古いバージョンがインストールされています: %1 Compatible Mode Install Installing dependencies: %1 依存関係をインストール中: %1 Failed to install %1 %1のインストールに失敗しました Version: バージョン: Install button インストール Remove button 消去 OK button OK Back button 戻る Done button 完了 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installed successfully インストールが完了しました Uninstalled successfully アンインストールが完了しました Uninstall Failed アンインストール失敗 Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button キャンセル 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 %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode 互換モードでインストール main Package Installer パッケージ インストーラー Package Installer helps users install and remove local packages, and supports bulk installation. パッケージ インストーラーは、ユーザーがローカル パッケージをインストールしたり削除したりするのに役立ちます。一括インストールにも対応しています。 deepin-deb-installer-6.5.51/translations/deepin-deb-installer_ko.ts000066400000000000000000001122171524745214100253610ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: 설정할 번호를 입력하세요: OK button 확인 BackendProcessPage Loading packages... 패키지 로드 중... %1/%2 loaded %1/%2 로드됨 Initializing... 초기화 중... Updating package cache... 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 %1 package may be broken %1 패키지가 손상되었을 수 있습니다 You can only install local %1 packages 로컬 %1 패키지만 설치할 수 있습니다 No permission to access this folder 이 폴더에 접근할 권한이 없습니다 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 %2가 %1에 설치되어 있습니다. 설치하기 전에 이 패키지를 제거해주세요 Broken dependencies, try installing the app in compatibility mode 파손된 종속성입니다. 호환 모드로 앱을 설치해보세요 Compatibility mode installation failed Failed to install %1 %1 설치 실패 Cancel button 취소 OK button 확인 Same version installed 동일한 버전 설치됨 Later version installed: %1 이후 버전 설치: %1 Earlier version installed: %1 이전 버전 설치: %1 Installation failed 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 설치할 수 없음 Proceed button 계속 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 뒤로 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 Broken dependencies 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 시스템에 Linglong 환경이 설치되지 않았습니다. 먼저 설치해 주세요. 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 재설치 Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 이후 버전 설치: %1 Downgrade 다운그레이드 Earlier version installed: %1 이전 버전 설치: %1 Compatible Mode Install Installing dependencies: %1 종속성 설치 중: %1 Failed to install %1 %1 설치 실패 Version: 버전: Install button 설치 Remove button 제거 OK button 확인 Back button 뒤로 Done button 완료 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode 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 결여된 종속성 Compatible Install Cancel button 취소 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 %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode 호환 모드로 설치 main Package Installer 패키지 관리자 Package Installer helps users install and remove local packages, and supports bulk installation. 패키지 설치 관리자는 사용자가 로컬 패키지를 설치하고, 제거할 수 있도록 지원하고 일괄 설치를 지원합니다. deepin-deb-installer-6.5.51/translations/deepin-deb-installer_lo.ts000066400000000000000000001245121524745214100253630ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: ໃສ່ເລກເພື່ອຕັ້ງຄ່າ: OK button אישור BackendProcessPage Loading packages... Loading packages... %1/%2 loaded %1/%2 ശ ഠ ഺ ത ഃ Initializing... Initializing... Updating package cache... 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! วิเคราะห์ล้มเหลว: พบโครงสร้างไฟล์ผิดปกติในไฟล์ manifest! Parsing failed: An illegal version number was found in the manifest file! วิเคราะห์ล้มเหลว: พบตัวเลขเวอร์ชันผิดปกติในไฟล์ manifest! No deb packages found. Please check the folder. ไม่พบ deb packages. กรุณาตรวจสอบโฟลเดอร์ The %1 package may be broken แพ็คเกจ %1 อาจเสียหาย You can only install local %1 packages คุณสามารถติดตั้ง deb packages ท้องถิ่นได้เท่านั้น No permission to access this folder ไม่มีสิทธิ์เข้าถึงโฟลเดอร์นี้ Already Added ស្លាប់បានបញ្ចុច %1 does not exist, please reselect %1 មិនមានទេ, សូមជ្រើនភ្នំត្រូវស្វែងរកវិញ 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 រចនាសម្ព័ន្ធទំនិញមិនសមស្រប current system ប្រព័ន្ធបច្ចុប្បន្ន %2 has been installed in %1, please uninstall this package before installing it ເພີ໋ມີການຕິດຕັ້ງແບບທີ່ສອດຄ່ອງໃນ %1, དີ້ນ ང་ອະທິບາຍວ່າ ང་ຕ້ອງລຸ່ມອອກອົບຮົມ ངའ່າ ཙຳນຶງ དັ້ງນີ້ ང་ຈະສາມາດຕິດຕັ້ງໄດ້. Broken dependencies, try installing the app in compatibility mode ការផ្គត់ផ្គង់មានបញ្ហា, សូមសាកល្បងដាក់បញ្ចុចក្នុងមードសមស្រប Compatibility mode installation failed Failed to install %1 ล้มเหลวในการติดตั้ง %1 Broken dependencies: %1 ຂຸມຸນີ້ມີຂຸມຸນທີ່ອົງກອນບ່າຍ: %1 Cancel button ຍົກເcacel OK button ຕິດຕັ້ງ Same version installed Later version installed: %1 Earlier version installed: %1 Installation failed Failed to install %1: no valid digital signature ນ័យភាពຕິດຕັ້ງ %1 ຈະລະເກີນ: ຈີດ຿റ്റල ສະຫມັກບໍ່ຢຸດຕໍ່ໄດ້ This package does not have a valid digital signature. Continue with the installation? ນີ້ບໍ່ມີສະຫມັກດີ digtal signature. ຂະຫຍານຕິດຕັ້ງຢື່ນ? Cancel ຍົກເລີກ Continue button ຕໍ່ຕໍ່ໄປ Unable to install ບໍ່ສາມາດຕິດຕັ້ງໄດ້ Proceed button ຕໍ່ເນື່ອງ This package does not have a valid digital signature ນີ້ບໍ່ມີສະຫມັກດີ digtal signature FileChooseWidget Drag deb packages here ວຖື້deb ສະຫຼຸບທີ້ນທີ້ນບໍ່ໄດ້ 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 ទុកបញ្ចប់ Waiting កំពិតជាមិនបានដាក់ Failed បរាញហើយ Same version installed កំណត់ទុកដោយរបស់ស្តុកដែលមានលំណ័យស្ថិតនៅលើស្ថានភាពដែលត្រូវបានដាក់ Later version installed: %1 ទាន់ត្រូវបានដាក់ឡើងនៅលើស្ថានភាពថ្មីជាងគេដែលមានលំណ័យ %1 ហើយ Earlier version installed: %1 ទាន់ត្រូវបានដាក់ឡើងនៅលើស្ថានភាពដែលមានលំណ័យមានទំនិចទាបជាងគេដែលមានលំណ័យ %1 ហើយ Broken dependencies PackagesListView Delete លើងយកចេញ QApplication Collapse button រលាក់ចុង QObject Basic មូលដ្ឋាន Check digital signatures if the developer mode is enabled ប្រសិនបើមុខងារអ្នកអភិវឌ្ឍបានបុប្បិតឡើងនោះសូមពិនិត្យសញ្ញាសូចន៍ឌីجិត Will remove: នឹងលើងយកចេញ៖ The system has not installed Linglong environment, please install it first ប្រព័ន្ធមិនទាញយកបរិស្ថានLinglongឡើងទៅនៅឡើយ,សូមទាញយកវិញជាមុន 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 ភាគប្រភេទសុវត្ថិភាព > 도구 > 보안 > แอปพลิเค이션 보안 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. ນີ້ແມ່ນບໍ້ຄວາມປະ່ອງສະຫນອງດ຿ຈ຿റັກແລະຖືກຈັບງັນຈາກການຕິດຕື່ງ/ນຳໃຊ້. ང຋ໄປ Security Center > Tools > App Security མືໜ້ອຍເພື່ອປັບປຸງຕີ້ນຕິ້ງ. Cancel button ຍົກເລື່ອງ Proceed button ຕໍ່ເນື່ອງ SingleInstallPage Name: ຊື່: Version: ສະເໜີ: Reinstall ຕິດຕື່ງໃຫ້ຄັນອັກ Install button ຕິດຕື່ງ Remove button ລື່ມ OK button ຕົວຢ່າງ Back button ກັບຄົງ Done button ສົ່ງສະໜອງແບບສົ່ງເປັນເຄື່ອງ If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode ພະລັງການຕິດຕື່ງ %2ໃນແບບຄັນອັກ %1 Installing in compatibility mode %1 Uninstalling %2 from %1 compatibility mode ລື່ມ %2ຈາກແບບຄັນອັກ %1 %2 was successfully installed to %1 compatibility mode ອົງປະຕິບັດທັງ່ %2 ເຊົ້າແລ້ວໄດ້ຖືກຕິດຕັ້ງຢຸດທາງ %1 %1 was successfully installed to compatibility mode Installed successfully ຕິດຕັ້ງສົ່ງເຖິງຄວາມສົ່ງເຖິງ %2 has been successfully uninstalled from %1 compatibility mode ອົງປະຕິບັດທັງ່ %2 ເຊົ້າແລ້ວໄດ້ຖືກແບ່ງບອກອອກຈາກຢຸດທາງ %1 Uninstalling %1 from compatibility mode Uninstalled successfully ແບ່ງບອກອອກສົ່ງເຖິງຄວາມສົ່ງເຖິງ Uninstall Failed ບໍ່ສົ່ງເຖິງຄວາມບໍ່ສົ່ງເຖິງ Collapse ກົນtract Install %1 will remove: %1 ລະບົດຈະຖືກລກງລົງ: Dependencies in the repository ຖານທີ້ານົມໃນຖານທີ້ານົມ Missing dependencies ຖານທີ້ານົມທີ້າງພາກ Compatible Install Cancel button Same version installed ລະບົດຕົວຈິງດຽວກັບທີ້າງພາກ Later version installed: %1 ລະບົດເບິ່ງຄົງຫຼາຍກວ່າ: %1 Downgrade ຕົວຈິງຫຼຸດລຸດ Earlier version installed: %1 ລະບົດເບິ່ງຄົງແໆ: %1 Update button ປັບປຸງ Compatible Mode Install Installing dependencies: %1 ກົນtractຖານທີ້ານົມ: %1 Failed to install %1 ນំឡូតລ้ม hỏng %1 Invalid digital signature ວាយសេរុទ្ធសូចមិនถูกต้อง SingleInstallPage_Install Show details ສម្រេចລើង Show dependencies ສម្រេចគាំ SingleInstallPage_Uninstall Show details ສម្រេចລើង Uab::UabPackageListModel Installation Failed ນំឡូតລ้ม hỏng 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 %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode ຕິດຕັ້ງໃນໂໝດທີ່ກົງກັນ main Package Installer ນំឡូតຄັນ Package Installer helps users install and remove local packages, and supports bulk installation. ນំឡូតຄັນຊ່ວຍຜູ້ໃຊ້ຈັດການນំឡូត ཀັນໃນທະນາຄອງທີ່ຖືກຕິດຕັ້ງຂ້ອງພວກເຂ຾້ນ, ཚະນະທີ່ຮູ້ສົ່ງເຖິງການນំລອງພາກສ່ວນຫຼາຍໆໃນການນំລອງພາກສ່ວນຫຼາຍໆ. deepin-deb-installer-6.5.51/translations/deepin-deb-installer_lt.ts000066400000000000000000001120031524745214100253600ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Įveskite norimą konfigūruoti skaičių: OK button Gerai BackendProcessPage Loading packages... Įkeliami paketai... %1/%2 loaded Įkelta %1/%2 Initializing... Inicijuojama... Updating package cache... DdimErrorPage OK Gerai DebInstaller Package Installer Paketų diegimo programa Settings Nustatymai Installing other packages... Please open it later. Yra kitų pакетų įdiegimas... Atidarykite vėliau. Parsing failed: An illegal file structure was found in the manifest file! Analizė nepavyko: rinkinio failo struktūra yra nesilaikanti kūrėjo vadovėlių! Parsing failed: An illegal version number was found in the manifest file! Analizė nepavyko: rinkinio failo rinkinio numeris yra nesilaikantis kūrėjo vadovėlių! No deb packages found. Please check the folder. Nerasta deb pакетų. Patikrinkite folderį. The %1 package may be broken Gali būti, kad %1 paketas yra sugadintas You can only install local %1 packages Galite įdiegti tik vietinius %1 pакетus No permission to access this folder Nėra leidimų priežiūrėti šio folderio Already Added Jau pridėta %1 does not exist, please reselect %1 neegzistuoja, pasirinkite iš naujo 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 Nėra skaitmeninio parašo Invalid digital signature Netinkamas elektroninis pareigos The administrator has set policies to prevent installation of this package Administratorius nustatė politikas, kad pакетas nebūtų įdiegtas Installation Failed Įdiegimas nepavyko current system dabartinis sistema %2 has been installed in %1, please uninstall this package before installing it %2 yra įdiegta %1, prašome išvalyti šį pакетą prieš jį įdiegiant Broken dependencies, try installing the app in compatibility mode Nesukurtos priklausomybės, bandykite įdiegti programą kompatibilitės režime Compatibility mode installation failed Failed to install %1 Nepavyko įdiegti %1 Cancel button Atsisakyti OK button Gerai Same version installed Įdiegta ta pati versija Later version installed: %1 Earlier version installed: %1 Installation failed Failed to install %1: no valid digital signature Nepavyko įdiegti %1: netinkama elektroninė pareigos This package does not have a valid digital signature. Continue with the installation? Šis pакетas neturi teisingos elektronios pareigos. Tęsti įdiegimą? Cancel Atsisakyti Continue button Tęsti Unable to install Nepavyko įdiegti Proceed button Tęsti This package does not have a valid digital signature Šis pакетas neturi teisingos elektronios pareigos Broken dependencies: %1 Sugadintos priklausomybės: %1 Authentication failed Nepavyko nustatyti tapatybės 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 Install %1 will remove: Instalacija %1 ištrins: Dependencies in the repository Kreipties priklausomybės Missing dependencies Trūksta priklausomybių Installing dependencies: %1 Įdiegiami priklausomybės: %1 PackageSelectItem Same version installed Įdiegta ta pati versija Earlier version installed: %1 Priešinga versija įdiegta: %1 Later version installed: %1 Tėsčiausia versija įdiegta: %1 Unmatched package architecture Neatitinkanti paketo architektūra PackageSelectView Select all Pasirinkti viską Install button Įdiegti PackagesListDelegate Installing Įdiegiama Installed Įdiegta Failed Nepavyko Waiting Laukiama Same version installed Įdiegta ta pati versija Later version installed: %1 Paskirta versija įdiegta: %1 Earlier version installed: %1 Ankstesnė versija įdiegta: %1 Broken dependencies PackagesListView Delete Ištrinti QApplication Collapse button Suskleisti QObject Basic Pagrindinė Check digital signatures if the developer mode is enabled Pereskaitėkite dirbtinio režimo skaitmeninį pareigos, jei jis įjungtas To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Norėdami įdiegti nepasirašytas programinės įrangos, perkelkite į saugumo centrą > įrankiai > programos saugumas, ir pasirinkite programos tipus, kurias galima įdiegti. Security Center > Tools > App Security Saugumo centras > įrankiai > programos saugumas The system has not installed Linglong environment, please install it first Sistemos Linglong aplinkos įdiegta nėra, prašome pirmiau ją įdiegti Unable to install Nepavyko įdiegti 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. Ši pakeitimų paketas neturi teisingo skaitmeninio pareigos ir jis buvo užblokuotas įdiegimui/vykdytui. Perkelkite į saugumo centrą > įrankiai > programos saugumas, kad pakeistumėte nustatymus. Cancel button Atšaukti Proceed button Tęsti Will remove: Pašalins: SingleInstallPage Collapse Suskleisti Reinstall Įdiegti iš naujo Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Paskirta versija įdiegta: %1 Downgrade Atsijungti Earlier version installed: %1 Ankstesnė versija įdiegta: %1 Compatible Mode Install Installing dependencies: %1 Yra įdiegiami prireikiniai: %1 Failed to install %1 Nepavyko įdiegti %1 Version: Versija: Install button Įdiegti Remove button Šalinti OK button Gerai Back button Atgal Done button Atlikta If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Bandyta įdiegti %2 %1 kompatybumo režime Uninstalling %2 from %1 compatibility mode Pašalina %2 iš %1 kompatybumo režimo %2 was successfully installed to %1 compatibility mode %2 sėkmingai įdiegta %1 kompatybumo režime Installed successfully Sėkmingai įdiegta %2 has been successfully uninstalled from %1 compatibility mode %2 sėkmingai pašalinta iš %1 kompatybumo režimo Uninstalled successfully Sėkmingai pašalinta Uninstall Failed Šalinimas nepavyko Install %1 will remove: Install %1 pašalins: Dependencies in the repository Bazėje yra prireikiniai Missing dependencies Trūksta priklausomybių Compatible Install Cancel button Update button Atnaujinti Invalid digital signature Neteisingas skaitmeninis parašas Name: Pavadinimas: Same version installed Įdiegta ta pati versija SingleInstallPage_Install Show details Rodyti išsamiau Show dependencies Rodyti priklausomybes SingleInstallPage_Uninstall Show details Rodyti išsamiau Uab::UabPackageListModel Installation Failed Įdiegimas nepavyko 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Įdiegti suderinamumo režimu 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.51/translations/deepin-deb-installer_mn.ts000066400000000000000000001172061524745214100253650ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Анхааруулга хийх тооны дугаарыг оруулна: OK button ОК BackendProcessPage Loading packages... Багажуудыг загварлах... %1/%2 loaded %1/%2 загварлагдсан Initializing... Үүсгэх... Updating package cache... 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. Деb багажууд олдсонгүй. Дүрэмийг шалгана уу. The %1 package may be broken %1 багаж нь бүтэцтэй болохыг хүсэж байна You can only install local %1 packages Хаанаас чавдартай %1 багажуудыг загварлах боломжтой No permission to access this folder Энэ дүрэмийг оролдох эрх байхгүй 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 Загварлахад амжилтгүй боллоо, 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 %2 нь %1-д загварлагдсан, түүгүй нэмэхийн тулд дараа нь энэ багажийг устгана уу Broken dependencies, try installing the app in compatibility mode Харагдах хамаарал нь буруу байна, хамааралын тулд таамаглалын хэлбэрээр загварлах Compatibility mode installation failed Failed to install %1 %1 загварлахад амжилтгүй Cancel button Цуцлах OK button ОК Same version installed Адил хувилбар суулгагдсан Later version installed: %1 Үүнээс өмнө хувилбар бүртгэгдсэн: %1 Earlier version installed: %1 Эрнээ хувилбар бүртгэгдсэн: %1 Installation failed 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 Загварлахад амжилтгүй Proceed button Үргэлжлүүлэх 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 Буцах 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 Broken dependencies 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 - р очиж, бүртгэгдэх боломжтой хөтөлбөрийн төрлүүдийг сонгоно үү. Security Center > Tools > App Security Security Center > Tools > App Security The system has not installed Linglong environment, please install it first Систем Linglong орчинг бүртгэлгүй байна, эхнийд бүртгэж өгнө үү 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. Энэ пакаж нь үнэн зөв цифрийн тэмдэгшлээгүй бөгөөд бүртгэх/үйлдэхэд блоклоно. Бүртгэлд хэрэглэх тохиргоог өөрчлөхийн тулд Security Center > Tools > App Security - р очиж өгнө үү. Cancel button Цуцлах Proceed button Үргэлжлүүлэх Will remove: Устгах: SingleInstallPage Collapse Дэлгэх Reinstall Дахин суулгах Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Үүнээс өмнө хувилбар бүртгэгдсэн: %1 Downgrade Хөнгөнөөсөх Earlier version installed: %1 Эрнээ хувилбар бүртгэгдсэн: %1 Compatible Mode Install Installing dependencies: %1 Хамааралыг бүртгэж байна: %1 Failed to install %1 %1-ийг бүртгэхэд амжилтгүй Version: Хувилбар: Install button Суулгах Remove button Устгах OK button ОК Back button Буцах Done button Дууссан If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Дара %1 хүчинчлэлтийн үед %2-г нэмж хийж байна Uninstalling %2 from %1 compatibility mode %2-г %1 хүчинчлэлтийн үед устгаж байна %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 Хамаарал багажгүй Compatible Install Cancel button Цуцлах 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 %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Нийцтэй горимд суулгах main Package Installer Багц Зохицуулагч Package Installer helps users install and remove local packages, and supports bulk installation. Деепин Багц Зохицуулагч нь хэрэглэгчдэд програм суулгах устгахад туслахаас гадна бүлэг суулгалтыг дэмждэг. deepin-deb-installer-6.5.51/translations/deepin-deb-installer_ms.ts000066400000000000000000001114101524745214100253610ustar00rootroot00000000000000 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... Updating package cache... 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 %1 package may be broken Pakej %1 mungkin rosak You can only install local %1 packages Anda hanya boleh memasang pakej %1 yang lokasl No permission to access this folder Tiada kebenaran untuk mengakses folder ini 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 current system sistem semasa %2 has been installed in %1, please uninstall this package before installing it %2 telah dipasang dalam %1, sila unistall pakej ini sebelum memasangnya Broken dependencies, try installing the app in compatibility mode Pendependen yang rosak, cuba pasang aplikasi dalam mod kompatibiliti Compatibility mode installation failed Failed to install %1 Gagal memasang %1 Cancel button Batal OK button OK Same version installed Versi serupa telah dipasang Later version installed: %1 Versi terkemudian dipasang: %1 Earlier version installed: %1 Versi lebih awal dipasang: %1 Installation failed 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 Proceed button Teruskan 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 Install %1 will remove: Pemasangan %1 akan menghapuskan: 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 Broken dependencies 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. Untuk memasang apl tiada tandatangan, pergi ke Pusat Keselamatan > Alatan > Keselamatan Apl, dan pilih jenis apl yang boleh dipasang. Security Center > Tools > App Security Pusat Keselamatan > Alatan > Keselamatan Apl The system has not installed Linglong environment, please install it first Sistem tidak memasang linglong environment, sila pasang terlebih dahulu Unable to install Tidak boleh memasang 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. Pakej ini tidak mempunyai tandatangan digital yang sah dan telah disekat daripada pemasangan/dijalankan. Pergi ke Pusat Keselamatan > Alatan > Keselamatan Apl untuk mengubah tetapan ini. Cancel button Batal Proceed button Teruskan Will remove: Akan menghapuskan: SingleInstallPage Collapse Kuncup Reinstall Pasang Semula Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Versi terkemudian dipasang: %1 Downgrade Nyahtatar Earlier version installed: %1 Versi lebih awal dipasang: %1 Compatible Mode Install 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 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Mencuba memasang %2 dalam mod kompatibiliti %1 Uninstalling %2 from %1 compatibility mode Menguninstall %2 dari mod kompatibiliti %1 %2 was successfully installed to %1 compatibility mode %2 telah dipasang dengan jayanya ke dalam mod kompatibiliti %1 Installed successfully Berjaya dipasang %2 has been successfully uninstalled from %1 compatibility mode %2 telah diuninstall dengan jayanya dari mod kompatibiliti %1 Uninstalled successfully Berjaya dinyahpasang Uninstall Failed Nyahpasang Gagal Install %1 will remove: Pemasangan %1 akan menghapuskan: Dependencies in the repository Dependensi dalam repositori Missing dependencies Dependensi hilang Compatible Install Cancel button Batal 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 Uab::UabPackageListModel Installation Failed Pemasangan Gagal 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Pasang dalam mod serasi 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.51/translations/deepin-deb-installer_ne.ts000066400000000000000000001244621524745214100253570ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: अंक दर्शाउनुहोस् जसले तपाईं विन्यास गर्नु चाहानु छ: OK button ठिक छ BackendProcessPage Loading packages... पैकेजहरू लोड गर्दैछन्... %1/%2 loaded %1/%2 लोड गरियो Initializing... इनिशियलाइज गर्दैछ... Updating package cache... 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 %1 package may be broken पैकेज %1 चाहिँ भेदभाव गर्न सकिन्छ You can only install local %1 packages तपाईंको लोकल %1 पैकेजहरू मात्र इन्स्टल गर्न सकिन्छ No permission to access this folder कुनै अनुमति यस फोल्डरमा प्रवेश गर्न नभएको छ 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 >- %2 %1 मा इन्स्टल गरियो, इन्स्टल गर्न अघि यस पैकेजलाई अप्स्टल गर्नुहोस् इन्स्टल गर्नुहोस् Broken dependencies, try installing the app in compatibility mode भेदभाव नीति, संगतता मोडमा एप इन्स्टल गर्नु चाहिँ Compatibility mode installation failed Failed to install %1 %1 इन्स्टल गर्न असफल Cancel button रद्द गर्नुहोस् OK button ठिक छ Same version installed एउटै संस्करण स्थापित Later version installed: %1 अन्य वर्जन स्थापित गरिएको: %1 Earlier version installed: %1 पहिलो वर्जन स्थापित गरिएको: %1 Installation failed 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 स्थापना गर्न असमर्थ Proceed button अग्रसर गर्नुहोस् 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 Broken dependencies 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 पुन: स्थापना गर्नुहोस् Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 अन्य वर्जन स्थापित गरिएको: %1 Downgrade अवतरण Earlier version installed: %1 पहिलो वर्जन स्थापित गरिएको: %1 Compatible Mode Install Installing dependencies: %1 आवश्यकता स्थापित गर्दै: %1 Failed to install %1 %1 स्थापना गर्न असफल Version: संस्करण Install button स्थापना Remove button हटाउनुहोस् OK button ठिक छ Back button पछाडि Done button भयो If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode 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 कम आवश्यकता Compatible Install Cancel button रद्द गर्नुहोस् 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 %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode अनुकूल मोडमा स्थापना गर्नुहोस् main Package Installer प्याकेज स्थापनाकर्ता Package Installer helps users install and remove local packages, and supports bulk installation. प्याकेज स्थापनाकर्ताले प्रयोगकर्ताहरूलाई स्थानीय प्याकेजहरू स्थापना र हटाउन मद्दत गर्दछ, र बल्क स्थापनालाई समर्थन गर्दछ। deepin-deb-installer-6.5.51/translations/deepin-deb-installer_nl.ts000066400000000000000000001124321524745214100253600ustar00rootroot00000000000000 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… Updating package cache... 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 %1 package may be broken Het %1-pakket is mogelijk beschadigd You can only install local %1 packages Je kunt alleen lokale %1-pakketten installeren No permission to access this folder Geen toegang tot deze map 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 current system Huidig systeem %2 has been installed in %1, please uninstall this package before installing it %2 is geïnstalleerd in %1. Verwijder dit pakket alvorens het nieuwe pakket te installeren. Broken dependencies, try installing the app in compatibility mode Er is een probleem met de afhankelijkheden. Probeer het pakket in compatibiliteitsmodus te installeren. Compatibility mode installation failed Failed to install %1 %1 kan niet worden geïnstalleerd Cancel button Annuleren OK button Oké 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 Installation failed 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 Proceed button Doorgaan 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 een deb-bestand hierheen Select File Kies een bestand MultipleInstallPage Show details Informatie tonen Collapse button Inklappen Install button Installeren Done button Klaar Back button Terug Install %1 will remove: Door %1 wordt het volgende verwijderd: 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 Broken dependencies PackagesListView Delete Verwijderen QApplication Collapse button Inklappen QObject Basic Algemeen Check digital signatures if the developer mode is enabled Ondertekeningen controleren in ontwikkelaarsmodus To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Ga naar Beveiligingscentrum → Hulpmiddelen → Programmabeveiliging en kies de programmasoorten die geïnstalleerd mogen worden. Security Center > Tools > App Security Beveiligingscentrum → Hulpmiddelen → Programmabeveiliging The system has not installed Linglong environment, please install it first De Linglong-omgeving is nog niet geïnstalleerd - doe dit handmatig Unable to install Installeren niet mogelijk 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. Dit pakket bevat geen geldige ondertekening en is daarom geblokkeerd. Ga naar Beveiligingscentrum → Hulpmiddelen → Programmabeveiliging om de instellingen te wijzigen. Cancel button Annuleren Proceed button Doorgaan Will remove: Wordt verwijderd: SingleInstallPage Collapse Inklappen Reinstall Opnieuw installeren Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Nieuwere versie geïnstalleerd: %1 Downgrade Afwaarderen Earlier version installed: %1 Oudere versie geïnstalleerd: %1 Compatible Mode Install 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 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Probeer %2 in de %1-compatibiliteitsmodus te installeren Uninstalling %2 from %1 compatibility mode Bezig met verwijderen van %2 uit de %1-compatibiliteitsmodus… %2 was successfully installed to %1 compatibility mode %2 is succesvol geïnstalleerd in %1 compatibiliteitsmodus Installed successfully Installatie voltooid %2 has been successfully uninstalled from %1 compatibility mode %2 is verwijderd uit de %1-compatibiliteitsmodus Uninstalled successfully Verwijderd Uninstall Failed Opnieuw installeren mislukt Install %1 will remove: Door %1 wordt het volgende verwijderd: Dependencies in the repository Afhankelijkheden in de pakketbron Missing dependencies Ontbrekende afhankelijkheden Compatible Install Cancel button Annuleren 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 Uab::UabPackageListModel Installation Failed Installatie mislukt 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. Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Installeren in compatibele modus 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.51/translations/deepin-deb-installer_pa.ts000066400000000000000000001171201524745214100253460ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: نمبر داں کرکے کانفیگر کریں: OK button ਠੀਕ ਹੈ BackendProcessPage Loading packages... پکیج لوڈ کر رہے ہیں... %1/%2 loaded %1/%2 لوڈ ہو گئے Initializing... اینیلیٹنگ... Updating package cache... DdimErrorPage OK ਠੀਕ ਹੈ DebInstaller Package Installer پکیج انSTALLر Settings سیٹنگس Installing other packages... Please open it later. دوسرے پکیجز انSTALL کر رہے ہیں ... کیا کریں اسے بعد میں چھوڑ دیں۔ 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 پکیجز انSTALL کر سکتے ہیں No permission to access this folder اس فولڈر کا اکسیس کرنے کی اجازت نہیں Already Added پہلے ہی شامل کر دیا گیا %1 does not exist, please reselect %1 موجود نہیں ہے، کیا کریں اسے دوبارہ انتخاب کریں۔ Bulk Install بک انSTALL DebListModel Installation failed, please check your network connection انSTALL ہے ناکام، اپنا نیٹ ورک کنیکشن چیک کریں۔ Installation failed, please check for updates in Control Center انSTALL ہے ناکام، کنٹرول سینٹر میں اپڈیٹس چیک کریں۔ Installation failed, insufficient disk space انSTALL ہے ناکام، ڈسک چھوٹی ہے۔ No digital signature کوئی دیجیٹل سائنچر نہیں Invalid digital signature غیر درست دیجیٹل سائنچر The administrator has set policies to prevent installation of this package اڈمن نے ایسی پالیسیاں سیٹ کی ہیں جو اس پکیج کی انSTALL کو روک دیتی ہیں Installation Failed انSTALL ہے ناکام current system current system %2 has been installed in %1, please uninstall this package before installing it >- %2 %1 میں انSTALL ہو چکا ہو سکتا ہے، اسے انSTALL کرنے سے پہلے اس پکیج کو انسٹال کریں۔ Broken dependencies, try installing the app in compatibility mode برک ڈپندنسز، کمپیٹیبلٹی میڈ کے ساتھ اپ کو انSTALL کریں۔ Compatibility mode installation failed Failed to install %1 %1 کو انSTALL کرنا ہے ناکام Cancel button انسول کریں OK button ਠੀਕ ਹੈ Same version installed ਉਹੀ ਵਰਜ਼ਨ ਇੰਸਟਾਲ ਹੈ Later version installed: %1 Earlier version installed: %1 Installation failed Failed to install %1: no valid digital signature اُنہاں کو انسٹال کرنا فیل ہو گیا: کوئی درست دیجیٹل سائنچر نہیں This package does not have a valid digital signature. Continue with the installation? اُس پیکیج میں کوئی درست دیجیٹل سائنچر نہیں ہے۔ انسٹال کرنا جاری رکھو؟ Cancel رکو Continue button جاری رکھو Unable to install انسٹال کرنا ممکن نہیں Proceed button المتابعة 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 ਪਿੱਛੇ Install %1 will remove: اُنہاں کو انسٹال کرنا ہے تو ہٹا دیا جائے گا: 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 Broken dependencies PackagesListView Delete ہٹا دیں QApplication Collapse button کولپس کریں QObject Basic اساسی Check digital signatures if the developer mode is enabled ڈیویلپر میڈ چیک کریں اگر اُس کا استعمال کرنا فعال ہے Will remove: ہٹا دیا جائے گا: The system has not installed Linglong environment, please install it first سسٹم میں لینگلون ایکیئن نہیں انسٹال کیا گیا، اُسے پہلے انسٹال کریں 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 مركز الأمان > أدوات > أمان التطبيق 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 المتابعة SingleInstallPage Collapse الانكماش Reinstall ਮੁੜ-ਇੰਸਟਾਲ ਕਰੋ Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 النسخة الأحدث تم تثبيتها: %1 Downgrade الحد من النسخة Earlier version installed: %1 النسخة الأقدم تم تثبيتها: %1 Compatible Mode Install Installing dependencies: %1 تثبيت الاعتماديات: %1 Failed to install %1 فشل في تثبيت %1 Version: ਵਰਜ਼ਨ: Install button ਇੰਸਟਾਲ ਕਰੋ Remove button ਹਟਾਓ OK button ਠੀਕ ਹੈ Back button ਪਿੱਛੇ Done button ਮੁਕੰਮਲ If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode محاولة تثبيت %2 في وضع التوافق %1 Uninstalling %2 from %1 compatibility mode إلغاء تثبيت %2 من وضع التوافق %1 %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 الاعتماديات المفقودة Compatible Install Cancel button 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 %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode ਅਨੁਕੂਲ ਮੋਡ ਵਿੱਚ ਇੰਸਟੌਲ ਕਰੋ main Package Installer ਪੈਕੇਜ ਇੰਸਟੈਲਰ Package Installer helps users install and remove local packages, and supports bulk installation. ਪੈਕੇਜ ਇੰਸਟੈਲਰ ਉਪਭੋਗਕਾਂ ਨੂੰ ਸਥਾਨੀ ਪੈਕੇਜ ਇੰਸਟਾਲ ਅਤੇ ਹਟਾਉਣ ਵਿੱਚ ਮਦਦ ਕਰਦਾ ਹੈ, ਅਤੇ ਬੈਚ ਇੰਸਟਾਲ ਸਪੱਸ਼ਟ ਕਰਦਾ ਹੈ। deepin-deb-installer-6.5.51/translations/deepin-deb-installer_pl.ts000066400000000000000000001121471524745214100253650ustar00rootroot00000000000000 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... Updating package cache... DdimErrorPage OK OK DebInstaller Package Installer Instalator pakietów Settings Ustawienia Installing other packages... Please open it later. Trwa instalacja innych pakietów... Otwórz później. Parsing failed: An illegal file structure was found in the manifest file! Wystąpił błąd parsowania: W pliku manifest znaleziono nieprawidłową strukturę! Parsing failed: An illegal version number was found in the manifest file! Wystąpił błąd parsowania: 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 %1 package may be broken Pakiet %1 może być uszkodzony You can only install local %1 packages Możesz instalować tylko lokalne pakiety %1 No permission to access this folder Brak uprawnień dostępu do tego folderu 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 current system aktualny system %2 has been installed in %1, please uninstall this package before installing it %2 został zainstalowany w %1, najpierw odinstaluj ten pakiet Broken dependencies, try installing the app in compatibility mode Zerwane zależności, spróbuj zainstalować aplikację w trybie kompatybilności Compatibility mode installation failed Failed to install %1 Nie udało się zainstalować %1 Cancel button Anuluj OK button OK Same version installed Zainstalowana ta sama wersja Later version installed: %1 Nowsza wersja zainstalowana: %1 Earlier version installed: %1 Wcześniejsza wersja zainstalowana: %1 Installation failed 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ć Proceed button Kontynuuj 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 Install %1 will remove: Instalacja %1 usunie: 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 Broken dependencies 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. Aby instalować niepodpisane aplikacje, przejdź do Centrum bezpieczeństwa > Narzędzia > Bezpieczeństwo aplikacji i zmień ustawienia. Security Center > Tools > App Security Centrum bezpieczeństwa > Narzędzia > Bezpieczeństwo aplikacji The system has not installed Linglong environment, please install it first Najpierw zainstaluj środowisko Linglong Unable to install Nie można zainstalować 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. Pakiet nie posiada prawidłowej sygnatury i został zablokowany przed uruchomieniem/instalacją. Przejdź do Centrum bezpieczeństwa > Narzędzia > Bezpieczeństwo aplikacji, aby zmienić ustawienia. Cancel button Anuluj Proceed button Kontynuuj Will remove: Do usunięcia: SingleInstallPage Collapse Zwiń Reinstall Przeinstaluj Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Nowsza wersja zainstalowana: %1 Downgrade Downgrade Earlier version installed: %1 Wcześniejsza wersja zainstalowana: %1 Compatible Mode Install 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 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Próba zainstalowania %2 w trybie kompatybilności %1 Uninstalling %2 from %1 compatibility mode Odinstalowywanie %2 z trybu kompatybilności %1 %2 was successfully installed to %1 compatibility mode %2 został pomyślnie zainstalowany w trybie zgodności %1 Installed successfully Zainstalowano pomyślnie %2 has been successfully uninstalled from %1 compatibility mode Odinstalowano pomyślnie %2 w trybie kompatybilności %1 Uninstalled successfully Odinstalowano pomyślnie Uninstall Failed Błąd odinstalowania Install %1 will remove: Instalacja %1 usunie: Dependencies in the repository Zależności w repozytorium Missing dependencies Brakujące zależności Compatible Install Cancel button Anuluj 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 Uab::UabPackageListModel Installation Failed Błąd instalacji 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 również zostaną 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Zainstaluj w trybie zgodności 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.51/translations/deepin-deb-installer_pt.ts000066400000000000000000001123321524745214100253710ustar00rootroot00000000000000 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... Updating package cache... 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 %1 package may be broken O pacote %1 pode estar danificado You can only install local %1 packages Você pode instalar apenas pacotes %1 locais No permission to access this folder Sem permissão para acessar esta pasta 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 current system sistema atual %2 has been installed in %1, please uninstall this package before installing it %2 foi instalado em %1, por favor desinstale esse pacote antes de instalá-lo Broken dependencies, try installing the app in compatibility mode Dependências quebradas, tente instalar o aplicativo no modo de compatibilidade Compatibility mode installation failed Failed to install %1 Falha ao instalar %1 Cancel button Cancelar OK button Aceitar 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 Installation failed 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 Proceed button Continuar 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 Install %1 will remove: Instalar %1 removerá: 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 Broken dependencies 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. Para instalar aplicativos não assinados, acesse Centro de Segurança > Ferramentas > Segurança do Aplicativo e selecione os tipos de aplicativo que podem ser instalados. Security Center > Tools > App Security Centro de Segurança > Ferramentas > Segurança do Aplicativo The system has not installed Linglong environment, please install it first O sistema não instalou o ambiente Linglong, por favor instale-o primeiro Unable to install Incapaz de instalar 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. Este pacote não possui uma assinatura digital válida e foi bloqueado para instalação/execução. Acesse Centro de Segurança > Ferramentas > Segurança do Aplicativo para alterar as configurações. Cancel button Cancelar Proceed button Continuar Will remove: Removerá: SingleInstallPage Collapse Ocultar Reinstall Reinstalar Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Versão posterior instalada: %1 Downgrade Desatualizar Earlier version installed: %1 Versão anterior instalada: %1 Compatible Mode Install 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 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Tentando instalar %2 no modo de compatibilidade %1 Uninstalling %2 from %1 compatibility mode Desinstalando %2 do modo de compatibilidade %1 %2 was successfully installed to %1 compatibility mode %2 foi instalado com sucesso no modo de compatibilidade %1 Installed successfully Instalado com sucesso %2 has been successfully uninstalled from %1 compatibility mode %2 foi desinstalado com sucesso do modo de compatibilidade %1 Uninstalled successfully Desinstalado com sucesso Uninstall Failed Falha na desinstalação Install %1 will remove: Instalar %1 removerá: Dependencies in the repository Dependências no repositório Missing dependencies Dependências em falta Compatible Install Cancel button Cancelar 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 Uab::UabPackageListModel Installation Failed Falha na instalação 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Instalar em modo compatível 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.51/translations/deepin-deb-installer_pt_BR.ts000066400000000000000000001115551524745214100257620ustar00rootroot00000000000000 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... Updating package cache... Atualizando cache de pacotes... DdimErrorPage OK OK DebInstaller Package Installer Instalador de Pacotes Settings Configurações Installing other packages... Please open it later. Instalando outros pacotes... Abra-o mais tarde. Parsing failed: An illegal file structure was found in the manifest file! A análise falhou: Foi encontrada uma estrutura de arquivo ilegal no arquivo de manifesto! Parsing failed: An illegal version number was found in the manifest file! A análise falhou: Foi encontrado um número de versão ilegal no arquivo de manifesto! No deb packages found. Please check the folder. Nenhum pacote .deb foi encontrado. Verifique a pasta. The %1 package may be broken O pacote %1 pode estar corrompido You can only install local %1 packages Você só pode instalar %1 pacotes locais No permission to access this folder Nenhuma permissão para acessar esta pasta 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 na instalação %1 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 Same version installed Versão já instalada Later version installed: %1 Última versão instalada: %1 Earlier version installed: %1 Versão anterior instalada: %1 Broken dependencies, try installing the app in compatibility mode As dependências estão corrompidas. Tente instalar o aplicativo em modo de compatibilidade Compatibility mode installation failed A instalação em modo de compatibilidade falhou Installation failed A instalação falhou 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 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 Ocultar Install button Instalar Done button Concluído Back button Voltar Install %1 will remove: A instalação de %1 removerá: 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 Broken dependencies Dependências quebradas PackagesListView Delete Excluir QApplication Collapse button Ocultar QObject Basic Básico Check digital signatures if the developer mode is enabled Verificar as assinaturas digitais se o modo desenvolvedor estiver ativo Unable to install Impossível instalar Cancel button Cancelar Proceed button Continuar 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. Este pacote não tem uma assinatura digital válida e foi impedido de ser instalado/executado. Acesse a Central de Segurança > Ferramentas > Segurança de Aplicativos para alterar as configurações. Will remove: Removerá: The system has not installed Linglong environment, please install it first O sistema não instalou o ambiente Linglong, instale-o primeiro To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Para instalar aplicativos não assinados, acesse a Central de Segurança > Ferramentas > Segurança de Aplicativos e selecione os tipos de aplicativos que podem ser instalados. Security Center > Tools > App Security Central de Segurança > Ferramentas > Segurança de Aplicativos SingleInstallPage Collapse Ocultar Reinstall Reinstalar Installing in compatibility mode %1 Instalando em modo de compatibilidade %1 Uninstalling %1 from compatibility mode Desinstalando %1 do modo de compatibilidade %1 was successfully installed to compatibility mode %1 foi instalado com sucesso no modo de compatibilidade Later version installed: %1 Última versão instalada: %1 Downgrade Downgrade Earlier version installed: %1 Versão anterior instalada: %1 Compatible Mode Install Instalação em modo de compatibilidade Installing dependencies: %1 Instalando dependências: %1 Failed to install %1 Falha na instalação %1 Version: Versão: Install button Instalar Remove button Remover OK button OK Back button Voltar Done button Concluído If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. Se este software for uma versão mais antiga (já adaptada para uma versão legada do sistema), você pode tentar instalá-lo em modo de compatibilidade. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. O Modo de Compatibilidade do UOS V25 é um recurso que permite continuar usando aplicativos da versão V20 no sistema V25. Ele cria um ambiente de compatibilidade, permitindo que softwares que originalmente só funcionavam no sistema V20 também possam operar corretamente no V25. Confirm to install in compatibility mode Confirmar instalação em modo de compatibilidade Installed successfully Instalado Uninstalled successfully Desinstalado Uninstall Failed A desinstalação falhou Install %1 will remove: A instalação de %1 removerá: Dependencies in the repository Dependências no repositório Missing dependencies Dependências ausentes Compatible Install Instalar em modo de compatibilidade Cancel button Cancelar 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 Uab::UabPackageListModel Installation Failed A instalação falhou UninstallConfirmPage Show related packages Exibir os pacotes relacionados Collapse button Ocultar 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed Desinstalar %1 do modo de compatibilidade? Todas as dependências também serão removidas dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Instalar pelo modo de compatibilidade 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 usuários a instalar e remover os pacotes; além de, permitir a instalação em massa. deepin-deb-installer-6.5.51/translations/deepin-deb-installer_ru.ts000066400000000000000000001222451524745214100254000ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Введите номер для настройки: OK button ОК BackendProcessPage Loading packages... Загрузка пакетов… %1/%2 loaded Загружено %1 из %2 Initializing... Инициализация… Updating package cache... Обновление кэша пакетов... 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 %1 package may be broken Пакет %1 может быть повреждён You can only install local %1 packages Вы можете устанавливать только локальные пакеты %1 No permission to access this folder Нет прав доступа к этой папке 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 %2 уже установлен в %1, пожалуйста, удалите этот пакет перед установкой Broken dependencies, try installing the app in compatibility mode Нарушенные зависимости, попробуйте установить приложение в режиме совместимости Compatibility mode installation failed Ошибка установки в режиме совместимости Failed to install %1 Не удалось установить %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 ОК Same version installed Такая же версия уже установлена Later version installed: %1 Установлена более новая версия: %1 Earlier version installed: %1 Установлена более старая версия: %1 Installation failed 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 Назад 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 Broken dependencies 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 В системе не установлена среда Linglong, пожалуйста, сначала установите её 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 Переустановить Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Установлена более новая версия: %1 Downgrade Понизить версию Earlier version installed: %1 Установлена более старая версия: %1 Compatible Mode Install Installing dependencies: %1 Установка зависимостей: %1 Failed to install %1 Не удалось установить %1 Version: Версия: Select a compatibility mode: Выберите режим совместимости: Install button Установить Remove button Удалить OK button ОК Back button Назад Done button Готово If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Попытка установки %2 в режиме совместимости %1 Uninstalling %2 from %1 compatibility mode Удаление %2 из режима совместимости %1 %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 Отсутствующие зависимости Compatible Install Cancel button Отмена 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 %1 from compatibility mode? All dependencies will also be removed Are you sure you want to uninstall %2 from %1 compatibility mode? Уверены, что хотите удалить %2 из режима совместимости %1? dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Установить в режиме совместимости main Package Installer Установщик пакетов Package Installer helps users install and remove local packages, and supports bulk installation. Установщик пакетов помогает пользователям устанавливать и удалять локальные пакеты, а также поддерживает массовую установку. deepin-deb-installer-6.5.51/translations/deepin-deb-installer_sk.ts000066400000000000000000001126501524745214100253660ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Zadajte číslo na nastavenie: OK button OK BackendProcessPage Loading packages... Načítavanie balíčkov... %1/%2 loaded %1/%2 načítaných Initializing... Inicializácia... Updating package cache... DdimErrorPage OK OK DebInstaller Package Installer Správca balíčkov Settings Nastavenia Installing other packages... Please open it later. Inštalácia iných balíčkov... Prosím, otvorte to neskôr. Parsing failed: An illegal file structure was found in the manifest file! Parsovanie zlyhalo: v manifestovom súbore sa našlo neplatné štruktúr Parsing failed: An illegal version number was found in the manifest file! Parsovanie zlyhalo: v manifestovom súbore sa našlo neplatné číslo verzie! No deb packages found. Please check the folder. Nie sú nájdené žiadne deb balíčky. Prosím, skontrolujte priečinok. The %1 package may be broken Balíčok %1 môže byť poškodený You can only install local %1 packages Môžete inštalovať len lokálne %1 balíčky No permission to access this folder Žiadna oprávnenie na prístup do tohto priečinku Already Added Už pridaný %1 does not exist, please reselect %1 neexistuje, prosím, zvoľte znovu 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 Inštalácia zlyhala, prosím, skontrolujte aktualizácie v Štandardnom centrále Installation failed, insufficient disk space Inštalácia zlyhala, nedostatočné miesto na disku No digital signature Žiadna digitálna podpis Invalid digital signature Neplatný digitálny podpis The administrator has set policies to prevent installation of this package Administrátor nastavil politiky, ktoré zabraňujú inštalácii tohto balíčka Installation Failed Inštalácia zlyhala current system súčasný systém %2 has been installed in %1, please uninstall this package before installing it %2 je nainštalovaný v %1, prosím, odstanovte tento balíčok pred inštaláciou Broken dependencies, try installing the app in compatibility mode Nerovnajúce sa závislosti, skúste inštalovať aplikáciu v režime kompatibility Compatibility mode installation failed Failed to install %1 Nepodarilo sa inštalovať %1 Cancel button Zrušiť OK button OK Same version installed Rovnaká verzia je nainštalovaná Later version installed: %1 Neskoršia verzia je nainštalovaná: %1 Earlier version installed: %1 Nainštalovaná skoršia verzia: %1 Installation failed Failed to install %1: no valid digital signature Nepodarilo sa inštalovať %1: žiadny platný digitálny podpis This package does not have a valid digital signature. Continue with the installation? Tento balíčok nemá platný digitálny podpis. Pokračovať s inštaláciou? Cancel Zrušiť Continue button Pokračovať Unable to install Nepodarilo sa inštalovať Proceed button Pokračovať This package does not have a valid digital signature Tento balíčok nemá platný digitálny podpis Broken dependencies: %1 Zlomené závislosti: %1 Authentication failed Autentifikácia neúspešná Unmatched package architecture Nezabezpečená architektúra balíčkov FileChooseWidget Drag deb packages here Pridajte balíčky deb sem Select File Vybrať súbor MultipleInstallPage Show details Zobraziť podrobnosti Collapse button Zbaliť Install button Inštalovať Done button Hotovo Back button Späť Install %1 will remove: Inštalácia %1 odstráni: Dependencies in the repository Závislosti v repozitári Missing dependencies Chýbajúce závislosti Installing dependencies: %1 Inštalácia závislostí: %1 PackageSelectItem Same version installed Rovnaká verzia je nainštalovaná Earlier version installed: %1 Nainštalovaná skoršia verzia: %1 Later version installed: %1 Neskoršia verzia je nainštalovaná: %1 Unmatched package architecture Nezabezpečená architektúra balíčkov PackageSelectView Select all Vybrať všetko Install button Inštalovať PackagesListDelegate Installing Inštalujem Installed Nainštalované Failed Neúspešné Waiting Čakanie Same version installed Rovnaká verzia je nainštalovaná Later version installed: %1 Neskoršia verzia je nainštalovaná: %1 Earlier version installed: %1 Nainštalovaná skoršia verzia: %1 Broken dependencies PackagesListView Delete Vymazať QApplication Collapse button Zbaliť QObject Basic Základný Check digital signatures if the developer mode is enabled Skontrolujte digitálne podpisy, ak je povolený režim vývojára To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Ak chcete nainštalovať nepodpísané aplikácie, pôjdite do Bezpečnostného centra > Nástroje > Bezpečnosť aplikácie a vyberte typy aplikácií, ktoré môžete nainštalovať. Security Center > Tools > App Security Bezpečnostné centrum > Nástroje > Bezpečnosť aplikácie The system has not installed Linglong environment, please install it first Systém nemá nainštalované prostredie Linglong, prosím nainštalujte ho najskôr Unable to install Nemôžem nainštalovať 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. Tento balíček nemá platný digitálny podpis a bol zablokovaný pri inštalácii/spustení. Pre zmenenie nastavení pôjdite do Bezpečnostného centra > Nástroje > Bezpečnosť aplikácie. Cancel button Zrušiť Proceed button Pokračovať Will remove: Odstráni: SingleInstallPage Collapse Zbaliť Reinstall Reinštalovať Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Neskoršia verzia je nainštalovaná: %1 Downgrade Znížiť verziu Earlier version installed: %1 Nainštalovaná skoršia verzia: %1 Compatible Mode Install Installing dependencies: %1 Inštalácia závislostí: %1 Failed to install %1 Nepodarilo sa nainštalovať %1 Version: Verzia: Install button Inštalovať Remove button Odstrániť OK button OK Back button Späť Done button Hotovo If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Skúša sa inštalovať %2 v režime kompatibility %1 Uninstalling %2 from %1 compatibility mode Odstanovanie %2 z režimu kompatibility %1 %2 was successfully installed to %1 compatibility mode %2 bol úspešne nainštalovaný do režimu kompatibility %1 Installed successfully Úspešne nainštalované %2 has been successfully uninstalled from %1 compatibility mode %2 bol úspešne odinštalovaný v režime kompatibility s %1 Uninstalled successfully Úspešne odinštalované Uninstall Failed Odinštalovanie zlyhalo Install %1 will remove: Inštalácia %1 odstráni: Dependencies in the repository Závislosti v repozitári Missing dependencies Chýbajúce závislosti Compatible Install Cancel button Zrušiť Update button Aktualizovať Invalid digital signature Neplatný digitálne podpis Name: Názov: Same version installed Rovnaká verzia je nainštalovaná SingleInstallPage_Install Show details Zobraziť podrobnosti Show dependencies Zobraziť závislosti SingleInstallPage_Uninstall Show details Zobraziť podrobnosti Uab::UabPackageListModel Installation Failed Inštalácia zlyhala UninstallConfirmPage Show related packages Zobraziť súvisiace balíčky 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 Naozaj chcete odinštalovať %1? Systém alebo iné aplikácie môžu nefungovať správne Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Inštalovať v kompatibilnom režime main Package Installer Správca balíčkov Package 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.51/translations/deepin-deb-installer_sl.ts000066400000000000000000001122011524745214100253570ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Vnesite število za konfiguracijo: OK button V redu BackendProcessPage Loading packages... Učitvanje paketov... %1/%2 loaded %1/%2 naloženo Initializing... Započetek... Updating package cache... DdimErrorPage OK V redu DebInstaller Package Installer Instalator paketov Settings Nastavitve Installing other packages... Please open it later. Nastavljanje drugih paketov... Prosim, odprite ga kasneje. Parsing failed: An illegal file structure was found in the manifest file! Analiziranje je spodletelo: Nalazena je nepravilna struktura datoteke v manifestu! Parsing failed: An illegal version number was found in the manifest file! Analiziranje je spodletelo: Nalazeno je nepravilno številko različice v manifestu! No deb packages found. Please check the folder. Ni najdenih deb paketov. Prosim, preverite mapo. The %1 package may be broken Paket %1 je možno narejeno zgrešeno You can only install local %1 packages Možno je naložiti samo lokalnih paketov %1 No permission to access this folder Ni dovoljenja za dostop do tej mape Already Added Večkrat dodano %1 does not exist, please reselect %1 ne obstaja, prosimo, ponovno izberite 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 Nastavitev je spodletela, prosimo, preverite v kontrolni vrstici za ažuriranja Installation failed, insufficient disk space Namestitev ni uspela, ni dovolj prostora na disku No digital signature Ni digitalne potrdnice Invalid digital signature Neveljavna digitalna potrdnica The administrator has set policies to prevent installation of this package Administrатор je nastavil politike, ki preprečujejo naložbo tega paketa Installation Failed Namestitev ni uspela current system slovar trenutnega sistema %2 has been installed in %1, please uninstall this package before installing it %2 je bil naložen v %1, prosimo, prenastavitev tega paketa pred naložbo Broken dependencies, try installing the app in compatibility mode Narobe odvisne pakete, poskusite naložiti aplikacijo v kompatibilnem načinu Compatibility mode installation failed Failed to install %1 Nastavitev %1 spodletela Cancel button Prekliči OK button V redu Same version installed Ista različica že nameščena Later version installed: %1 Earlier version installed: %1 Installation failed Failed to install %1: no valid digital signature Naprej prišlo je do napake: neveljavna digitalna potrdilna potovanje This package does not have a valid digital signature. Continue with the installation? Ta paket ne vsebuje veljavne digitalne potrdilne potovanja. Nadaljuj z instalacijo? Cancel Prekliči Continue button Nadaljuj Unable to install Nedosijēgo instaliranje Proceed button Nadaljji This package does not have a valid digital signature Ta paket ne vsebuje veljavne digitalne potrdilne potovanja Broken dependencies: %1 Povrečje zavestnih odvisnosti: %1 Authentication failed Overite ni uspela Unmatched package architecture Neskladna paketna arhitektura FileChooseWidget Drag deb packages here Pridite tu deb pakete Select File Izberi datoteko MultipleInstallPage Show details Pokaži podrobnosti Collapse button Skrij Install button Namesti Done button Opravljeno Back button Nazaj Install %1 will remove: Instalacija %1 bo odstranila: Dependencies in the repository Odvisnosti v zbirki Missing dependencies Manjke odvisnosti Installing dependencies: %1 Instaliranje odvisnosti: %1 PackageSelectItem Same version installed Ista različica že nameščena Earlier version installed: %1 Naravljena je instalirana ranija verzijska vrska: %1 Later version installed: %1 Naravljena je instalirana kasnija verzijska vrska: %1 Unmatched package architecture Neskladna paketna arhitektura PackageSelectView Select all Izberi vse Install button Namesti PackagesListDelegate Installing Nameščam Installed Nameščeno Failed Ni uspelo Waiting Čakaj Same version installed Ista različica že nameščena Later version installed: %1 Naravljena je instalirana kasnija verzijska vrska: %1 Earlier version installed: %1 Naravljena je instalirana ranija verzijska vrska: %1 Broken dependencies PackagesListView Delete Izbriši QApplication Collapse button Skrij QObject Basic Osnovno Check digital signatures if the developer mode is enabled Prever digitalne potrditve, če je vključen razvojni način To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Za namesto nameščenih aplikacij se pojavite v Ohranilnem centru > Alate > Zavarovanje aplikacij in izberite vrste aplikacij, ki jih je mogoče namestiti. Security Center > Tools > App Security Ohranilni center > Alate > Zavarovanje aplikacij The system has not installed Linglong environment, please install it first Sistem Linglong okolje še ni namestil, prosim namestite ga najprej. Unable to install Namestitev ni uspešna 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. Ta paket ni bil nameščen z veljavnim digitalnim potrdilom in je bil zavrnjen za nameščanje/izvajanje. Pojdite v Ohranilni center > Alate > Zavarovanje aplikacij, da spremneste nastavitve. Cancel button Prekliči Proceed button Nadaljji Will remove: Boste odstranili: SingleInstallPage Collapse Skrij Reinstall Ponovno namesti Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Nameščena je kasnejša različica: %1 Downgrade Opusti različico Earlier version installed: %1 Nameščena je ranjša različica: %1 Compatible Mode Install Installing dependencies: %1 Nameščanje ovisnosti: %1 Failed to install %1 Namestitev %1 je zavržena Version: Različica: Install button Namesti Remove button Odstrani OK button V redu Back button Nazaj Done button Opravljeno If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Namesto je %2 v kompatibilnostnem načinu %1 Uninstalling %2 from %1 compatibility mode Odstranjevanje %2 iz kompatibilnostnega načina %1 %2 was successfully installed to %1 compatibility mode %2 je uspešno nameščen v kompatibilnostnem načinu %1 Installed successfully Uspešno nameščeno %2 has been successfully uninstalled from %1 compatibility mode %2 je uspešno odstranjen iz kompatibilnostnega načina %1 Uninstalled successfully Uspešno odstranjeno Uninstall Failed Odstranjevanje neuspešno Install %1 will remove: Namestitev %1 bo odstranila: Dependencies in the repository Ovisnosti v zbirki Missing dependencies Manjkejo ovisnosti Compatible Install Cancel button Prekliči Update button Posodobi Invalid digital signature Neveljaven digitalni potrdil Name: Ime: Same version installed Ista različica že nameščena SingleInstallPage_Install Show details Pokaži podrobnosti Show dependencies Pokaž odvisnosti SingleInstallPage_Uninstall Show details Pokaž podrobnosti Uab::UabPackageListModel Installation Failed Namestitev ni uspela UninstallConfirmPage Show related packages Pokaž zvezi pakete Collapse button Skrij Cancel button Prekliči Confirm Potrdi Are you sure you want to uninstall %1? All dependencies will also be removed Ali ste prepričani, da želite odinstalirati %1? Vsene odvisnosti bodo tudi odstranjeni Are you sure you want to uninstall %1? The system or other applications may not work properly Ali ste prepričani, da želite odinstalirati %1? Sistem ali druge aplikacije ne bodo močno delovale Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Namesti v združljivem načinu main Package Installer Instalator paketov Package Installer helps users install and remove local packages, and supports bulk installation. Instalator paketov pomaga uporabnikom pri nameščanju in odstranjanju lokalnih paketov, in podpira zastopno nameščanje. deepin-deb-installer-6.5.51/translations/deepin-deb-installer_sq.ts000066400000000000000000001123651524745214100253770ustar00rootroot00000000000000 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… Updating package cache... 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 %1 package may be broken Paketa %1 mund të jetë e dëmtuar You can only install local %1 packages Mund të instaloni vetëm paketa %1 vendore No permission to access this folder S’ka leje për hyrjen në këtë dosje 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 current system sistemi i tanishëm %2 has been installed in %1, please uninstall this package before installing it %2 është instaluar te %1, ju lutemi, çinstalojeni këtë paketë, para instalimit Broken dependencies, try installing the app in compatibility mode Varësi të papërmbushura, provoni ta instaloni aplikacionin nën mënyrën përputhje Compatibility mode installation failed Failed to install %1 S’u arrit të instalohej %1 Cancel button Anuloje OK button OK 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 Installation failed 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 Proceed button Vazhdo 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 Install %1 will remove: Instalimi i %1 do të heqë: 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 Broken dependencies 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. Që të instaloni aplikacione të panënshkruar, kaloni te Qendër Sigurie > Mjete > Siguri Aplikacionesh dhe mandej përzgjidhni lloje aplikacionesh që mund të instalohen. Security Center > Tools > App Security Qendër Sigurie > Mjete > Siguri Aplikacionesh The system has not installed Linglong environment, please install it first Sistemi s’ka instaluar mjedisin Linglong, ju lutemi, së pari, instalojeni Unable to install S’arrihet të instalohet 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. Kjo paketë s’ka nënshkrim dixhital të vlefshëm dhe i është bllokuar instalimi/xhirimi. Që të ndryshoni rregullimet, kaloni te Qendër Sigurie > Mjete > Siguri Aplikacionesh. Cancel button Anuloi Proceed button Vazhdo Will remove: Do të heqë: SingleInstallPage Collapse Tkurre Reinstall Riinstaloje Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode 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 Compatible Mode Install 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ë If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Po provohet të instalohet %2 nën mënyrën përputhje %1 Uninstalling %2 from %1 compatibility mode Po çinstalohet %2 nga mënyra përputhje %1 %2 was successfully installed to %1 compatibility mode %2 ujë duke jetë suksessore instaluar në modën e kufizimeve të %1 Installed successfully U instalua me sukses %2 has been successfully uninstalled from %1 compatibility mode %2 u çinstalua me sukses te mënyrë përputhje %1 Uninstalled successfully U çinstalua me sukses Uninstall Failed Çinstalimi Dështoi Install %1 will remove: Instalimi i %1 do të heqë: Dependencies in the repository Varësi te depoja Missing dependencies Mungojnë varësi Compatible Install Cancel button 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 Uab::UabPackageListModel Installation Failed Instalimi Dështoi 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Instalo në mënyrë përputhëse 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.51/translations/deepin-deb-installer_sr.ts000066400000000000000000001173201524745214100253740ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Унесите број да прилагодите: OK button У реду BackendProcessPage Loading packages... Учитываем пакете... %1/%2 loaded %1/%2 учитываем Initializing... Иницијализација... Updating package cache... 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! Парсиранje неuspelo: У манифесту је пронађена невалидна структура датотеке! Parsing failed: An illegal version number was found in the manifest file! Парсиранje неuspelo: У манифесту је пронађен невалидан број верзије! No deb packages found. Please check the folder. Нису пронађени deb пакети. Молимо вас проверите фолдер. The %1 package may be broken Пакет %1 можда је оштећен You can only install local %1 packages Можете да инсталирате само локалне %1 пакете No permission to access this folder Нема дозволе за приступ овом фолдеру 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 %2 је инсталиран у %1, молимо вас деинсталирајте овај пакет пре инсталирања Broken dependencies, try installing the app in compatibility mode Оштећене зависности, покушајте да инсталирате апликацију у режиму компатибилности Compatibility mode installation failed Failed to install %1 Неуспешна инсталација %1 Cancel button Откажи OK button У реду Same version installed Иста верзија је инсталирана Later version installed: %1 Новија верзија је инсталирана: %1 Earlier version installed: %1 Старија верзија је инсталирана: %1 Installation failed 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 Не могу да инсталирам Proceed button Настави 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 Назад 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 Broken dependencies 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 Инсталирај Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Новија верзија је инсталирана: %1 Downgrade Снизи верзију Earlier version installed: %1 Старија верзија је инсталирана: %1 Compatible Mode Install Installing dependencies: %1 Инсталирање зависности: %1 Failed to install %1 Неуспешна инсталација %1 Version: Верзија: Install button Инсталирај Remove button Уклони OK button У реду Back button Назад Done button Готово If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Покушавајући да инсталирамо %2 у режиму компатибилности %1 Uninstalling %2 from %1 compatibility mode Деинсталирање %2 из режима компатибилности %1 %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 Недостајуће зависности Compatible Install Cancel button Откажи 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 %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Инсталирај у компатибилном режиму main Package Installer Инсталатер Пакета Package Installer helps users install and remove local packages, and supports bulk installation. Инсалатер пакета помаже корисницима да инсталирају и уклањају локалне пакете. Подржава групну инсталацију. deepin-deb-installer-6.5.51/translations/deepin-deb-installer_sv.ts000066400000000000000000001113541524745214100254010ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Ange numret som ska konfigureras: OK button OK BackendProcessPage Loading packages... Läser in paket… %1/%2 loaded %1/%2 inlästa Initializing... Initierar… Updating package cache... Uppdaterar paketcache… DdimErrorPage OK OK DebInstaller Package Installer Paketinstallerare Settings Inställningar Installing other packages... Please open it later. Andra paket installeras. Öppna det senare. Parsing failed: An illegal file structure was found in the manifest file! Tolkningen misslyckades: En otillåten filstruktur hittades i manifestfilen! Parsing failed: An illegal version number was found in the manifest file! Tolkningen misslyckades: Ett otillåtet versionsnummer hittades i manifestfilen! No deb packages found. Please check the folder. Inga deb-paket hittades. Kontrollera mappen. The %1 package may be broken Paketet %1 kan vara trasigt You can only install local %1 packages Du kan endast installera lokala %1-paket No permission to access this folder Du saknar behörighet att komma åt den här mappen Already Added Redan tillagt %1 does not exist, please reselect %1 finns inte. Välj igen. Bulk Install Bulk installation DebListModel Installation failed, please check your network connection Installationen misslyckades, var god kontrollera din internetuppkoppling Installation failed, please check for updates in Control Center Installationen misslyckades. Kontrollera uppdateringar i Kontrollcenter. Installation failed, insufficient disk space Installationen misslyckades, otillräckligt diskutrymme No digital signature Ingen digital signatur Invalid digital signature Ogiltig digital signatur The administrator has set policies to prevent installation of this package Administratören har angett policyer som hindrar installation av detta paket Installation Failed Installationen misslyckades Failed to install %1 Misslyckades med att installera %1 Unable to install - no digital signature Kan inte installera – ingen digital signatur Please go to Control Center to enable developer mode and try again. Proceed? Gå till Kontrollcenter för att aktivera utvecklarläge och försök igen. Fortsätta? Cancel button Avbryt Proceed button Fortsätt OK button OK Same version installed Samma version installerad Later version installed: %1 Nyare version installerad: %1 Earlier version installed: %1 Äldre version installerad: %1 Broken dependencies, try installing the app in compatibility mode Trasiga beroenden. Försök installera appen i kompatibilitetsläge. Compatibility mode installation failed Installationen i kompatibilitetsläge misslyckades Installation failed Installationen misslyckades Failed to install %1: no valid digital signature Misslyckades med att installera %1: ingen giltig digital signatur This package does not have a valid digital signature. Continue with the installation? Detta paket saknar en giltig digital signatur. Fortsätt med installationen? Cancel Avbryt Continue button Fortsätt Unable to install Kan inte installera This package does not have a valid digital signature Detta paket saknar en giltig digital signatur Broken dependencies: %1 Trasiga beroenden: %1 Authentication failed Autentiseringen misslyckades Unmatched package architecture Omatchad paketarkitektur FileChooseWidget Drag deb packages here Dra deb-paket hit Select File Välj fil MultipleInstallPage Show details Visa detaljer Collapse button Fäll ihop Install button Installera Done button Klart Back button Tillbaka Install %1 will remove: Installationen av %1 kommer att ta bort: Dependencies in the repository Beroenden i paketförrådet Missing dependencies Saknade beroenden Installing dependencies: %1 Installerar beroenden: %1 PackageSelectItem Same version installed Samma version installerad Earlier version installed: %1 Äldre version installerad: %1 Later version installed: %1 Nyare version installerad: %1 Unmatched package architecture Omatchad paketarkitektur PackageSelectView Select all Markera alla Install button Installera PackagesListDelegate Installing Installerar Installed Installerat Failed Misslyckades Waiting Väntar Same version installed Samma version installerad Later version installed: %1 Nyare version installerad: %1 Earlier version installed: %1 Äldre version installerad: %1 Broken dependencies Trasiga beroenden PackagesListView Delete Ta bort QApplication Collapse button Fäll ihop QObject Basic Grundläggande Check digital signatures if the developer mode is enabled Kontrollera digitala signaturer om utvecklarläget är aktiverat Unable to install Kan inte installera Cancel button Avbryt Proceed button Fortsätt 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. Detta paket saknar en giltig digital signatur och har blockerats från installation och körning. Gå till Säkerhetscenter > Verktyg > Appsäkerhet för att ändra inställningarna. Will remove: Kommer att ta bort: The system has not installed Linglong environment, please install it first Systemet har inte Linglong-miljön installerad. Installera den först. To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. För att installera osignerade appar går du till Säkerhetscenter > Verktyg > Appsäkerhet och väljer de apptyper som får installeras. Security Center > Tools > App Security Säkerhetscenter > Verktyg > Appsäkerhet SingleInstallPage Collapse Fäll ihop Reinstall Återinstallera Installing in compatibility mode %1 Installerar %1 i kompatibilitetsläge Uninstalling %1 from compatibility mode Avinstallerar %1 från kompatibilitetsläget %1 was successfully installed to compatibility mode %1 installerades utan fel i kompatibilitetsläget Later version installed: %1 Nyare version installerad: %1 Downgrade Nedgradera Earlier version installed: %1 Äldre version installerad: %1 Compatible Mode Install Installera i kompatibilitetsläge Installing dependencies: %1 Installerar beroenden: %1 Failed to install %1 Misslyckades med att installera %1 Version: Version: Install button Installera Remove button Avinstallera OK button OK Back button Tillbaka Done button Klart If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. Om programvaran är en äldre version (redan anpassad för en äldre systemversion) kan du försöka installera den i kompatibilitetsläge. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Kompatibilitetsläget UOS V25 är en funktion som låter dig fortsätta använda program för V20-versionen på V25-systemet. Den skapar en kompatibilitetsmiljö så att programvara som ursprungligen bara kunde köras på V20-systemet även fungerar korrekt på V25-systemet. Confirm to install in compatibility mode Bekräfta installation i kompatibilitetsläge Installed successfully Installationen lyckades Uninstalled successfully Avinstallationen lyckades Uninstall Failed Avinstallation misslyckades Install %1 will remove: Installationen av %1 kommer att ta bort: Dependencies in the repository Beroenden i paketförrådet Missing dependencies Saknade beroenden Compatible Install Kompatibilitetsinstallation Cancel button Avbryt Update button Uppdatera Invalid digital signature Ogiltig digital signatur Name: Namn: Same version installed Samma version installerad SingleInstallPage_Install Show details Visa detaljer Show dependencies Visa beroenden SingleInstallPage_Uninstall Show details Visa detaljer Uab::UabPackageListModel Installation Failed Installationen misslyckades UninstallConfirmPage Show related packages Visa relaterade paket Collapse button Fäll ihop Cancel button Avbryt Confirm Bekräfta Are you sure you want to uninstall %1? All dependencies will also be removed Är du säker du vill avinstallera %1 Alla beroenden kommer även tas bort Are you sure you want to uninstall %1? The system or other applications may not work properly Är du säker på att du vill avinstallera %1? Systemet eller andra program kanske inte fungerar korrekt Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed Är du säker på att du vill avinstallera %1 från kompatibilitetsläget? Alla beroenden kommer också att tas bort dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Installera i kompatibilitetsläge main Package Installer Paketinstallerare Package Installer helps users install and remove local packages, and supports bulk installation. Paketinstalleraren hjälper användare att installera och ta bort lokala paket och stöder gruppinstallation. deepin-deb-installer-6.5.51/translations/deepin-deb-installer_tr.ts000066400000000000000000001116521524745214100253770ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Yapılandırılacak numarayı gir: OK button Tamam BackendProcessPage Loading packages... Paketler yükleniyor... %1/%2 loaded %1/%2 yüklendi Initializing... Başlatılıyor... Updating package cache... DdimErrorPage OK Tamam DebInstaller Package Installer Paket Kurucu Settings Ayarlar Installing other packages... Please open it later. Diğer paketler yükleniyor... Lütfen daha sonra tekrar açınız Parsing failed: An illegal file structure was found in the manifest file! Ayrıştırma başarısız oldu: Manifest dosyasında geçersiz bir dosya yapısı bulundu! Parsing failed: An illegal version number was found in the manifest file! Ayrıştırma başarısız oldu: Manifest dosyasında geçersiz bir sürüm numarası bulundu! No deb packages found. Please check the folder. Hiçbir deb paketi bulunamadı. Lütfen klasörü kontrol edin. The %1 package may be broken %1 paketi bozulmuş olabilir You can only install local %1 packages Yalnızca yerel %1 paketlerini yükleyebilirsiniz No permission to access this folder Bu klasöre erişim izni yok 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ı current system mevcut sistem %2 has been installed in %1, please uninstall this package before installing it %2, %1' in içinde yüklendi, lütfen yüklemeden önce bu paketi kaldırın Broken dependencies, try installing the app in compatibility mode Bozuk bağımlılıklar, uygulamayı uyumluluk modunda yüklemeyi deneyin Compatibility mode installation failed Failed to install %1 %1 Kurulamadı Cancel button İptal OK button Tamam 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 Installation failed Failed to install %1: no valid digital signature %1 yüklenemedi: geçerli dijital imza yok 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 Proceed button İlerle 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 Install %1 will remove: %1 kurulumu şunları kaldıracak: 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 Tümünü seç 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 Broken dependencies 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 To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. İmzasız uygulamaları yüklemek için Güvenlik Merkezi > Araçlar > Uygulama Güvenliği'ne gidin ve yüklenebilecek uygulama türlerini seçin. Security Center > Tools > App Security Güvenlik Merkezi > Araçlar > Uygulama Güvenliği The system has not installed Linglong environment, please install it first Sistem Linglong ortamını kurmadı, lütfen ilk önce onu kurun Unable to install Kurulamıyor 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. Bu paketin geçerli bir dijital imzası yok ve yüklenmesi/çalıştırılması engellendi. Ayarları değiştirmek için Güvenlik Merkezi > Araçlar > Uygulama Güvenliği'ne gidin. Cancel button İptal Proceed button İlerle Will remove: Şunlar kaldırılacak: SingleInstallPage Collapse Daralt Reinstall Yeniden kur Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Daha sonraki sürüm kurulu: %1 Downgrade Düşür Earlier version installed: %1 Önceki sürüm kurulu: %1 Compatible Mode Install 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 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode %1'in uyumluluk modunda %2 yüklenmeye çalışılıyor Uninstalling %2 from %1 compatibility mode %1'in uyumluluk modundan %2 kaldırılıyor %2 was successfully installed to %1 compatibility mode %2, %1'in uyumluluk moduna başarıyla yüklendi Installed successfully Kuruldu %2 has been successfully uninstalled from %1 compatibility mode %2, %1'in uyumluluk modundan başarıyla kaldırıldı Uninstalled successfully Kaldırıldı Uninstall Failed Kaldırılamadı Install %1 will remove: %1 kurulumu şunları kaldıracak: Dependencies in the repository Depodaki bağımlılıklar Missing dependencies Eksik bağımlılıklar Compatible Install Cancel button İptal 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 Uab::UabPackageListModel Installation Failed Kurulum tamamlanamadı 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Uyumlu modda yükle 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.51/translations/deepin-deb-installer_ug.ts000066400000000000000000001172721524745214100253710ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: تەڭشەش ئۈچۈن نومۇرنى كىرگۈزۈڭ: OK button تامام BackendProcessPage Loading packages... قاچىلاش بولىقى يۈكلىنىۋاتىدۇ... %1/%2 loaded %1/%2 يۈكلەندى Initializing... دەسلىپىگە كەلتۈرۈۋاتىدۇ... Updating package cache... 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 بۇ كىتابخانەنى كىرەنگە ئەھۋالنى بېرىمەيدۇ 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 %2 %1 تېسىمدا ئۇچرىنىڭ، ئۇچرىنىڭنى ئۇچرىنىڭ بۇرۇن ئۇچرىنىڭ Broken dependencies, try installing the app in compatibility mode بىر قىسىم تەسىسى ئەھۋاللىرى چېكىنىپ قالدى، تېسىمدا ئۇچرىنىڭنى ئۇچرىنىڭ Compatibility mode installation failed Failed to install %1 نى قاچىلىيالمىدى %1 Cancel button ئەمەلدىن قالدۇرۇش OK button تامام Same version installed ئوخشاش نەشىرى قاچىلاندى Later version installed: %1 ئەڭ يېڭى نەشىرى قاچىلاندى %1 Earlier version installed: %1 بۇرۇنقى نەشىرى قاچىلاندى %1 Installation failed 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 قاچىلاشقا ئامالسىز Proceed button كىرىش 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 Broken dependencies 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 تېسىم Linglong ئەھۋالنى ئۇچرىنىڭ، بۇرۇن ئۇچرىنىڭ 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 قايتا قاچىلاش Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 ئەڭ يېڭى نەشىرى قاچىلاندى %1 Downgrade كونا نەشرىنى قاچىلاش Earlier version installed: %1 بۇرۇنقى نەشىرى قاچىلاندى %1 Compatible Mode Install Installing dependencies: %1 بېقىنما %1 نى قاچىلاۋاتىدۇ Failed to install %1 نى قاچىلىيالمىدى %1 Version: نەشىرى: Install button قاچىلاش Remove button ئۆچۈرۈڭ OK button تامام Back button قايتىش Done button تامام If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode %2 %1 تېسىم ئەھۋالىنى ئۇچرىنىڭ Uninstalling %2 from %1 compatibility mode %2 %1 تېسىم ئەھۋالىنى ئۇچرىنىڭ %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 ئىسكىلاتتا يوق تايانچ بولاق Compatible Install Cancel button ئەمەلدىن قالدۇرۇش 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 %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode ماس كېلىدىغان ھالەتتە ئورنىتىش main Package Installer بوغچا قاچىلىغۇچ Package Installer helps users install and remove local packages, and supports bulk installation. ئورالما ئورناتقۇچ ئىشلەتكۈچىلەرنىڭ يەرلىك ئورالمىلارنى ئورنىتىشى ۋە ئۆچۈرۈشىگە ياردەم بېرىدۇ ھەمدە توپ قاچىلاشنى قوللايدۇ. deepin-deb-installer-6.5.51/translations/deepin-deb-installer_uk.ts000066400000000000000000001200451524745214100253650ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Введіть число для налаштовування: OK button Гаразд BackendProcessPage Loading packages... Завантажуємо пакунки… %1/%2 loaded Завантажено %1 з %2 Initializing... Ініціалізуємо… Updating package cache... 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 %1 package may be broken Ймовірно, пакунок %1 пошкоджено You can only install local %1 packages Ви можете встановлювати лише локальні пакунки %1 No permission to access this folder Немає прав доступу до цієї теки 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 %2 було встановлено до %1, будь ласка, вилучіть цей пакунок, перш ніж встановлювати його Broken dependencies, try installing the app in compatibility mode Порушено залежності, спробуйте встановити програму у режимі сумісності Compatibility mode installation failed Failed to install %1 Не вдалося встановити %1 Cancel button Скасувати OK button Гаразд Same version installed Одна і та сама версія встановлена Later version installed: %1 Встановлено пізнішу версію: %1 Earlier version installed: %1 Встановлено старішу версію: %1 Installation failed 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 Неможливо встановити Proceed button Продовжити 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 Назад 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 Broken dependencies 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 У системі не встановлено середовища Linglong. Будь ласка, спочатку встановіть його 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 Перевстановити Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Встановлено пізнішу версію: %1 Downgrade Знизити версію Earlier version installed: %1 Встановлено старішу версію: %1 Compatible Mode Install Installing dependencies: %1 Встановлення залежностей: %1 Failed to install %1 Не вдалося встановити %1 Version: Версія: Install button Встановити Remove button Видалити OK button Гаразд Back button Назад Done button Завершити If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Намагаємося встановити %2 у режимі сумісності з %1 Uninstalling %2 from %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 Залежності, яких не вистачає Compatible Install Cancel button Скасувати 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 %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Встановити в режимі сумісності main Package Installer Встановлювач пакунків Package Installer helps users install and remove local packages, and supports bulk installation. За допомогою засобу встановлення пакунків користувачі можуть встановлювати і вилучати локальні пакунки. Передбачено пакетне встановлення. deepin-deb-installer-6.5.51/translations/deepin-deb-installer_vi.ts000066400000000000000000001135001524745214100253620ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: Nhập số để cấu hình: OK button OK BackendProcessPage Loading packages... Đang tải gói... %1/%2 loaded %1/%2 đã tải Initializing... Khởi tạo... Updating package cache... DdimErrorPage OK OK DebInstaller Package Installer Trình cài đặt gói Settings Cài đặt Installing other packages... Please open it later. Đang cài đặt các gói khác... Mở ứng dụng sau. Parsing failed: An illegal file structure was found in the manifest file! Phân tích thất bại: Có cấu trúc tệp bất hợp pháp được tìm thấy trong tệp manifest! Parsing failed: An illegal version number was found in the manifest file! Phân tích thất bại: Số phiên bản bất hợp pháp được tìm thấy trong tệp manifest! No deb packages found. Please check the folder. Không tìm thấy các gói deb. Vui lòng kiểm tra thư mục. The %1 package may be broken Gói %1 có thể bị hỏng You can only install local %1 packages Bạn chỉ có thể cài đặt các gói %1 cục bộ No permission to access this folder Không có quyền truy cập vào thư mục này Already Added Đã thêm %1 does not exist, please reselect %1 không tồn tại, vui lòng chọn lại 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 Không có chữ ký số Invalid digital signature Chữ ký số không hợp lệ The administrator has set policies to prevent installation of this package Quản trị viên đã thiết lập chính sách ngăn chặn việc cài đặt gói này Installation Failed Cài đặt thất bại current system hệ thống hiện tại %2 has been installed in %1, please uninstall this package before installing it %2 đã được cài đặt tại %1, vui lòng gỡ cài đặt gói này trước khi cài đặt lại Broken dependencies, try installing the app in compatibility mode Yếu tố phụ bị hỏng, hãy thử cài đặt ứng dụng ở chế độ tương thích Compatibility mode installation failed Failed to install %1 Cài đặt thất bại %1 Cancel button Hủy OK button OK Same version installed Có một phiên bản tương tự đã được cài đặt Later version installed: %1 Earlier version installed: %1 Phiên bản đã cài đặt trước đó: %1 Installation failed Failed to install %1: no valid digital signature Thất bại trong việc cài đặt %1: không có chữ ký số hợp lệ This package does not have a valid digital signature. Continue with the installation? Gói này không có chữ ký số hợp lệ. Tiếp tục cài đặt? Cancel Hủy Continue button Tiếp tục Unable to install Không thể cài đặt Proceed button Tiếp tục 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 Install %1 will remove: Cài đặt %1 sẽ gỡ cài đặt: Dependencies in the repository Tùy thuộc trong kho Missing dependencies Tùy thuộc thiếu 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 Phiên bản đã cài lần cuối: %1 Unmatched package architecture Không trùng kiến trúc gói PackageSelectView Select all Chọn tất cả 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 Broken dependencies PackagesListView Delete Xóa QApplication Collapse button Đóng lại QObject Basic Cơ bản Check digital signatures if the developer mode is enabled Kiểm tra chữ ký số nếu chế độ phát triển được kích hoạt To install unsigned apps, go to Security Center > Tools > App Security, and select the app types that can be installed. Để cài đặt ứng dụng chưa ký số, hãy chuyển đến Trung tâm Bảo mật > Công cụ > Bảo mật ứng dụng, và chọn các loại ứng dụng có thể cài đặt. Security Center > Tools > App Security Trung tâm Bảo mật > Công cụ > Bảo mật ứng dụng The system has not installed Linglong environment, please install it first Hệ thống chưa cài đặt môi trường Linglong, vui lòng cài đặt trước Unable to install Không thể cài đặt 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. gói cài đặt này không có chữ ký số hợp lệ và đã bị chặn cài đặt/thực thi. Hãy chuyển đến Trung tâm Bảo mật > Công cụ > Bảo mật ứng dụng để thay đổi cài đặt. Cancel button Huỷ bỏ Proceed button Tiếp tục Will remove: Sẽ gỡ cài đặt: SingleInstallPage Collapse Đóng lại Reinstall Cài lại Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Later version installed: %1 Phiên bản mới nhất đã cài: %1 Downgrade Giảm phiên bản Earlier version installed: %1 Phiên bản đã cài đặt trước đó: %1 Compatible Mode Install 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 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Trying to install %2 in %1 compatibility mode Đang cố gắng cài đặt %2 trong chế độ tương thích %1 Uninstalling %2 from %1 compatibility mode Gỡ cài đặt %2 từ chế độ tương thích %1 %2 was successfully installed to %1 compatibility mode %2 đã được cài đặt thành công trong chế độ tương thích %1 Installed successfully Đã cài đặt thành công %2 has been successfully uninstalled from %1 compatibility mode %2 đã được gỡ cài đặt thành công từ chế độ tương thích %1 Uninstalled successfully Gỡ cài đặt thành công Uninstall Failed Gỡ cài đặt thất bại Install %1 will remove: Cài đặt %1 sẽ gỡ cài đặt: Dependencies in the repository Tùy thuộc trong kho Missing dependencies Tùy thuộc thiếu Compatible Install Cancel button Update button Cập nhật Invalid digital signature Chữ ký số không hợp lệ 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 Hiển thị phụ thuộc SingleInstallPage_Uninstall Show details Hiện chi tiết Uab::UabPackageListModel Installation Failed Cài đặt thất bại 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 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode Cài đặt ở chế độ tương thích 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.51/translations/deepin-deb-installer_zh_CN.ts000066400000000000000000001120151524745214100257450ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: 请输入序号进行配置: OK button 确 定 BackendProcessPage Loading packages... 正在加载安装包… %1/%2 loaded 已加载%1/%2 Initializing... 正在初始化… Updating package cache... 正在更新软件包缓存... 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 没有权限访问文件夹 Already Added 已添加 %1 does not exist, please reselect %1文件不存在,请重新选择文件 Compatible Mode Install 兼容模式安装 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 依赖关系不满足,请尝试使用兼容模式安装该应用 Broken dependencies 依赖关系不满足 Compatibility mode installation failed 兼容模式安装失败 Failed to install %1 %1安装失败 Cancel button 取 消 OK button 确 定 Same version installed 已安装相同版本 Later version installed: %1 已安装较新的版本:%1 Earlier version installed: %1 已安装较早的版本:%1 Installation failed 安装失败 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 无法安装 Proceed button 前 往 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 Broken dependencies 依赖关系不满足 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 重新安装 Uninstalling %1 from compatibility mode 正在从兼容模式卸载%1 %1 was successfully installed to compatibility mode %1已成功安装到兼容模式 Later version installed: %1 已安装较新的版本:%1 Downgrade 安装旧版本 Earlier version installed: %1 已安装较早的版本:%1 Compatible Mode Install 兼容模式安装 Installing dependencies: %1 正在安装依赖:%1 Failed to install %1 %1安装失败 Version: 版本: Install button 安 装 Remove button 卸 载 OK button 确 定 Back button 返 回 Done button 完 成 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. 如该软件为旧版(已适配历史系统版本)应用,可尝试以兼容模式安装。 UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. 统信 UOS V25 兼容模式是一项让您能够在 V25 系统上继续使用 V20 版本应用程序的功能。为您创建了一个” 兼容环境”,让原本只能在 V20 系统上运行的软件,也能在 V25系统上正常工作。 Confirm to install in compatibility mode 确认使用兼容模式安装软件包 Installing in compatibility mode %1 正在使用兼容模式安装%1 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 仓库中缺失的依赖包 Compatible Install 兼容模式安装 Cancel button 取 消 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 %1 from compatibility mode? All dependencies will also be removed 您确定要从兼容模式卸载%1吗?所有依赖项也将被移除 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed 您确定要从兼容模式卸载%1吗? 所有依赖也会被一起移除 dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode 兼容模式安装 main Package Installer 软件包安装器 Package Installer helps users install and remove local packages, and supports bulk installation. 软件包安装器用于帮助用户安装和卸载本地软件,支持批量安装。 deepin-deb-installer-6.5.51/translations/deepin-deb-installer_zh_HK.ts000066400000000000000000001115731524745214100257570ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: 請輸入序號進行配置: OK button 確 定 BackendProcessPage Loading packages... 正在加載安裝包… %1/%2 loaded 已加載%1/%2 Initializing... 正在初始化… Updating package cache... 正在更新軟件包緩存... 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 沒有權限訪問文件夾 Already Added 已添加 %1 does not exist, please reselect %1文件不存在,請重新選擇文件 Compatible Mode Install 相容模式安裝 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 依賴關係不滿足,請嘗試使用兼容模式安裝該應用 Compatibility mode installation failed 兼容模式安裝失敗 Failed to install %1 %1安裝失敗 Cancel button 取 消 OK button 確 定 Same version installed 已安裝相同版本 Later version installed: %1 已安裝較新的版本:%1 Earlier version installed: %1 已安裝較早的版本:%1 Installation failed 安裝失敗 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 無法安裝 Proceed button 前 往 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 Broken dependencies 依賴關係不滿足 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 重新安裝 Uninstalling %1 from compatibility mode 正在從兼容模式卸載%1 %1 was successfully installed to compatibility mode %1已成功安裝到兼容模式 Later version installed: %1 已安裝較新的版本:%1 Downgrade 安裝舊版本 Earlier version installed: %1 已安裝較早的版本:%1 Compatible Mode Install 相容模式安裝 Installing dependencies: %1 正在安裝依賴:%1 Failed to install %1 %1安裝失敗 Version: 版本: Install button 安 裝 Remove button 卸 載 OK button 確 定 Back button 返 回 Done button 完 成 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. 如該軟件為舊版(已適配歷史系統版本)應用,可嘗試以相容模式安裝。 UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. 統信 UOS V25 相容模式是一項讓您能夠在 V25 系統上繼續使用 V20 版本應用程式的功能。為您建立了一個相容環境,讓原本只能在 V20 系統上運作的軟件,也能在 V25 系統上正常運作。 Confirm to install in compatibility mode 確認使用相容模式安裝軟件包 Installing in compatibility mode %1 正在使用兼容模式安裝%1 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 倉庫中缺失的依賴包 Compatible Install 相容模式安裝 Cancel button 取 消 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 %1 from compatibility mode? All dependencies will also be removed 您確定要從相容模式解除安裝%1嗎?所有相依項也將被移除 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed 您確定要從相容模式解除安裝%1嗎? 所有依賴也會被一起移除 dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode 相容模式安裝 main Package Installer 軟件包安裝器 Package Installer helps users install and remove local packages, and supports bulk installation. 軟件包安裝器用於幫助用戶安裝和卸載本地軟件,支持批量安裝。 deepin-deb-installer-6.5.51/translations/deepin-deb-installer_zh_TW.ts000066400000000000000000001116021524745214100260000ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: 請輸入序號進行配置: OK button 確 定 BackendProcessPage Loading packages... 正在載入安裝包… %1/%2 loaded 已載入%1/%2 Initializing... 正在初始化… Updating package cache... 正在更新軟件包緩存... 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 沒有權限訪問資料夾 Already Added 已添加 %1 does not exist, please reselect %1文件不存在,請重新選擇文件 Compatible Mode Install 相容模式安裝 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 依賴關係不滿足,請嘗試使用相容模式安裝該應用 Compatibility mode installation failed 相容模式安裝失敗 Failed to install %1 %1安裝失敗 Cancel button 取 消 OK button 確 定 Same version installed 已安裝相同版本 Later version installed: %1 已安裝較新的版本:%1 Earlier version installed: %1 已安裝較早的版本:%1 Installation failed 安裝失敗 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 無法安裝 Proceed button 前 往 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 Broken dependencies 依賴關係不滿足 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 重 裝 Uninstalling %1 from compatibility mode 正在從相容模式卸載%1 %1 was successfully installed to compatibility mode %1已成功安裝到相容模式 Later version installed: %1 已安裝較新的版本:%1 Downgrade 安裝舊版本 Earlier version installed: %1 已安裝舊版本:%1 Compatible Mode Install 相容模式安裝 Installing dependencies: %1 正在安裝依賴:%1 Failed to install %1 %1安裝失敗 Version: 版本: Install button 安 裝 Remove button 移 除 OK button 確 定 Back button 返 回 Done button 完 成 If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. 如該軟體為舊版(已適配歷史系統版本)應用,可嘗試以相容模式安裝。 UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. 統信 UOS V25 相容模式是一項讓您能夠在 V25 系統上繼續使用 V20 版本應用程式的功能。為您建立了一個相容環境,讓原本只能在 V20 系統上運作的軟體,也能在 V25 系統上正常運作。 Confirm to install in compatibility mode 確認使用相容模式安裝軟體包 Installing in compatibility mode %1 正在使用相容模式安裝%1 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 倉庫中缺失的依賴包 Compatible Install 相容模式安裝 Cancel button 取 消 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 %1 from compatibility mode? All dependencies will also be removed 您確定要從相容模式解除安裝%1嗎?所有相依項也將被移除 Are you sure you want to uninstall %1 from compatibility mode? All dependencies will also be removed 您確定要從相容模式解除安裝%1嗎? 所有依賴也會被一起移除 dfmplugin_debinstaller::DebInstallerMenuScene Install in compatible mode 相容模式安裝 main Package Installer 軟體包安裝器 Package Installer helps users install and remove local packages, and supports bulk installation. 軟體包安裝器用來幫助使用者安裝和移除本機軟體包。支援批次安裝。 deepin-deb-installer-6.5.51/translations/desktop/000077500000000000000000000000001524745214100217765ustar00rootroot00000000000000deepin-deb-installer-6.5.51/translations/desktop/deepin-deb-installer.desktop000066400000000000000000000253351524745214100273700ustar00rootroot00000000000000[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.51/translations/desktop/desktop.ts000066400000000000000000000014121524745214100240150ustar00rootroot00000000000000 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.51/translations/desktop/desktop_ar.ts000066400000000000000000001141521524745214100245050ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: أدخل الرقم للتكوين: OK button موافق BackendProcessPage Loading packages... جاري تحميل الحزم... %1/%2 loaded تم تحميل %1/%2 Initializing... جاري التهيئة... Updating package cache... جاري تحديث ذاكرة التخزين المؤقت للحزم... DdimErrorPage OK موافق DebInstaller Package Installer مثبّت الحزم Settings الإعدادات Bulk Install تثبيت جماعي 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 %1 package may be broken قد تكون الحزمة %1 مكسورة You can only install local %1 packages يمكنك تثبيت حزم %1 المحلية فقط No permission to access this folder لا يوجد إذن للوصول إلى هذا المجلد Already Added تمت الإضافة بالفعل %1 does not exist, please reselect %1 غير موجود، يرجى إعادة التحديد DebListModel Installation failed, please check your network connection فشل التثبيت، يرجى التحقق من اتصال الشبكة Installation failed, please check for updates in Control Center فشل التثبيت، يرجى التحقق من التحديثات في مركز التحكم Installation failed, insufficient disk space فشل التثبيت، مساحة القرص غير كافية Invalid digital signature توقيع رقمي غير صالح Authentication failed فشلت المصادقة The administrator has set policies to prevent installation of this package قام المسؤول بتعيين سياسات لمنع تثبيت هذه الحزمة Installation Failed فشل التثبيت Unmatched package architecture بنية الحزمة غير متطابقة Same version installed نفس الإصدار مثبت بالفعل Later version installed: %1 إصدار أحدث مثبت: %1 Earlier version installed: %1 إصدار أقدم مثبت: %1 Broken dependencies, try installing the app in compatibility mode تبعيات مكسورة، حاول تثبيت التطبيق في وضع التوافق Compatibility mode installation failed فشل التثبيت في وضع التوافق Failed to install %1 فشل تثبيت %1 Broken dependencies: %1 تبعيات مكسورة: %1 Installation failed فشل التثبيت Unable to install تعذر التثبيت OK button موافق Failed to install %1: no valid digital signature فشل تثبيت %1: لا يوجد توقيع رقمي صالح Cancel button إلغاء Proceed button متابعة This package does not have a valid digital signature لا تحتوي هذه الحزمة على توقيع رقمي صالح This package does not have a valid digital signature. Continue with the installation? لا تحتوي هذه الحزمة على توقيع رقمي صالح. هل تريد متابعة التثبيت؟ Cancel إلغاء Continue button متابعة FileChooseWidget Drag deb packages here اسحب حزم deb إلى هنا 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 مثبت Waiting في انتظار Failed فشل Same version installed نفس الإصدار مثبت بالفعل Later version installed: %1 إصدار أحدث مثبت: %1 Earlier version installed: %1 إصدار أقدم مثبت: %1 PackagesListView Delete حذف QApplication Collapse button طي QObject 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. لا تحتوي هذه الحزمة على توقيع رقمي صالح وتم حظرها من التثبيت/التشغيل. اذهب إلى مركز الأمان > الأدوات > أمان التطبيقات لتغيير الإعدادات. Will remove: سيتم الإزالة: The system has not installed Linglong environment, please install it first لم يقم النظام بتثبيت بيئة Linglong، يرجى تثبيتها أولاً 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 مركز الأمان > الأدوات > أمان التطبيقات Unable to install تعذر التثبيت Cancel button إلغاء Proceed button متابعة SingleInstallPage Name: الاسم: Version: الإصدار: Install button تثبيت Remove button إزالة Reinstall إعادة التثبيت OK button موافق Back button رجوع Done button تم If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. إذا كان هذا البرنامج إصداراً أقدم (متكيف بالفعل مع إصدار نظام قديم)، يمكنك محاولة تثبيته في وضع التوافق. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. وضع توافق UOS V25 هو ميزة تسمح لك بمتابعة استخدام تطبيقات إصدار V20 على نظام V25. يقوم بإنشاء بيئة توافق لك، مما يمكّن البرامج التي كانت تعمل في الأصل على نظام V20 فقط من العمل بشكل صحيح على نظام V25 أيضاً. Confirm to install in compatibility mode تأكيد التثبيت في وضع التوافق Installing in compatibility mode %1 جاري التثبيت في وضع التوافق %1 Uninstalling %1 from compatibility mode جاري إزالة تثبيت %1 من وضع التوافق %1 was successfully installed to compatibility mode تم تثبيت %1 بنجاح في وضع التوافق Installed successfully تم التثبيت بنجاح Uninstalled successfully تمت إزالة التثبيت بنجاح Uninstall Failed فشلت إزالة التثبيت Invalid digital signature توقيع رقمي غير صالح Collapse طي Install %1 will remove: تثبيت %1 سيؤدي إلى إزالة: Dependencies in the repository التبعيات في المستودع Missing dependencies تبعيات مفقودة Compatible Install تثبيت متوافق Cancel button إلغاء Same version installed نفس الإصدار مثبت بالفعل Later version installed: %1 إصدار أحدث مثبت: %1 Downgrade تخفيض الإصدار Earlier version installed: %1 إصدار أقدم مثبت: %1 Update button تحديث Compatible Mode Install تثبيت وضع التوافق Installing dependencies: %1 جاري تثبيت التبعيات: %1 Failed to install %1 فشل تثبيت %1 SingleInstallPage_Install Show dependencies إظهار التبعيات Show details إظهار التفاصيل 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 %1 from compatibility mode? All dependencies will also be removed هل أنت متأكد من إزالة تثبيت %1 من وضع التوافق؟ سيتم أيضاً إزالة جميع التبعيات desktop Deepin Package Installer مثبّت الحزم دبيان Package Installer مثبّت الحزم Package Installer helps users install and remove local packages, and supports bulk installation. مثبت الحزم: يساعد المستخدمين على تثبيت وإزالة الحزم المحلية، ويدعم أيضاً الثبيت الجماعي للحزم. main Package Installer مثبّت الحزم Package Installer helps users install and remove local packages, and supports bulk installation. يساعد مثبّت الحزم المستخدمين على تثبيت وإزالة الحزم المحلية، ويدعم التثبيت الجماعي. deepin-deb-installer-6.5.51/translations/desktop/desktop_ast.ts000066400000000000000000000012741524745214100246720ustar00rootroot00000000000000 desktop Package Installer Xestor de paquetes Package Installer helps users install and remove local packages, and supports bulk installation. El Instalador de Paquetes axude a los usuarios pa instalar y eliminar paquetes locales y soporta l'instalación en masa. deepin-deb-installer-6.5.51/translations/desktop/desktop_az.ts000066400000000000000000001061041524745214100245130ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Paket quraşdırıcısı Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Deepin Paket Quraşdırıcı 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. 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.51/translations/desktop/desktop_bg.ts000066400000000000000000001065231524745214100244760ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Мениджър на пакети Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Инсталатор на пакети Deepin Package Installer Мениджър на пакети Package Installer helps users install and remove local packages, and supports bulk installation. Deepin Мениджър на пакети се използва, за да помогне на потребителите да инсталират и премахват локален пакет, поддръжка на групово инсталиране. main Package Installer Мениджър на пакети Package Installer helps users install and remove local packages, and supports bulk installation. Deepin Мениджър на пакети се използва, за да помогне на потребителите да инсталират и премахват локален пакет, поддръжка на групово инсталиране. deepin-deb-installer-6.5.51/translations/desktop/desktop_bn.ts000066400000000000000000001067521524745214100245110ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer প্যাকেজ ইনস্টল্যার Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer ডিপিন প্যাকেজ ইনস্টল্যার Package Installer প্যাকেজ ইনস্টল্যার Package Installer helps users install and remove local packages, and supports bulk installation. প্যাকেজ ইনস্টল্যার মালিকানাধীন প্যাকেজ ইনস্টল এবং উন্মোচন করার সাহায্য করে এবং বার্ষিক ইনস্টলেশন সমর্থন করে। main Package Installer প্যাকেজ ইনস্টল্যার Package Installer helps users install and remove local packages, and supports bulk installation. প্যাকেজ ইনস্টল্যার মালিকানাধীন প্যাকেজ ইনস্টল এবং উন্মোচন করার সাহায্য করে এবং বার্ষিক ইনস্টলেশন সমর্থন করে। deepin-deb-installer-6.5.51/translations/desktop/desktop_bo.ts000066400000000000000000001077301524745214100245070ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས། Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer གཏིང་ཟབ་མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས། Package Installer མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས། Package Installer helps users install and remove local packages, and supports bulk installation. མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས་ནི་སྤྱོད་མཁན་ལ་རང་སའི་མཉེན་ཆས་སྒྲིག་སྦྱོར་དང་བཤིག་འདོན་བྱེད་རོགས་བྱེད་པའི་ཡོ་བྱད་ཅིག་རེད་ལ། ཉེར་སྤྱོད་མང་པོ་མཉམ་དུ་སྒྲིག་སྦྱོར་བྱ་ཐུབ། main Package Installer མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས། Package Installer helps users install and remove local packages, and supports bulk installation. མཉེན་ཆས་ཁུག་སྒྲིག་སྦྱོར་ཆས་ནི་སྤྱོད་མཁན་ལ་རང་སའི་མཉེན་ཆས་སྒྲིག་སྦྱོར་དང་བཤིག་འདོན་བྱེད་རོགས་བྱེད་པའི་ཡོ་བྱད་ཅིག་རེད་ལ། ཉེར་སྤྱོད་མང་པོ་མཉམ་དུ་སྒྲིག་སྦྱོར་བྱ་ཐུབ། deepin-deb-installer-6.5.51/translations/desktop/desktop_br.ts000066400000000000000000001060451524745214100245100ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Stalier pakadoù Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Stalier pakadoù Deepin 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. 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.51/translations/desktop/desktop_ca.ts000066400000000000000000001060351524745214100244670ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Instal·lador de paquets Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Instal·lador de paquets del Deepin 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. 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.51/translations/desktop/desktop_cs.ts000066400000000000000000001062151524745214100245110ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Instalátor balíčků Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Deepin instalátor balíčků 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. 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.51/translations/desktop/desktop_da.ts000066400000000000000000001060261524745214100244700ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Pakkeinstallationsprogram Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Deepin-pakkeinstaller 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. 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.51/translations/desktop/desktop_de.ts000066400000000000000000001061031524745214100244700ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Paket-Installationsprogramm Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Deepin Paket-Installationsprogramm 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. 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.51/translations/desktop/desktop_es.ts000066400000000000000000001057541524745214100245220ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Instalador de paquetes Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Instalador de paquetes 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. 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.51/translations/desktop/desktop_es_419.ts000066400000000000000000001055731524745214100251160ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Gestor de Paquetes Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Package Installer Gestor de Paquetes Package 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. main Package Installer Gestor de Paquetes Package 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.51/translations/desktop/desktop_et.ts000066400000000000000000001060011524745214100245050ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Pakihaldur Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Deepin paketihaldur Package Installer Pakihaldur Package 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. main Package Installer Pakihaldur Package 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.51/translations/desktop/desktop_fi.ts000066400000000000000000001056171524745214100245070ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Ohjelma-asentaja Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Deepin ohjelma-asentaja Package Installer Ohjelma-asentaja Package Installer helps users install and remove local packages, and supports bulk installation. Ohjelma-asentaja auttaa käyttäjiä asentamaan ja poistamaan ohjelmia. main Package Installer Ohjelma-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.51/translations/desktop/desktop_fil.ts000066400000000000000000001061021524745214100246510ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Deepin Package Installer Package Installer Package 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. main Package Installer Package 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.51/translations/desktop/desktop_fr.ts000066400000000000000000001060611524745214100245120ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Installateur de paquets Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Installateur de paquets Deepin Package Installer Installateur 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. main Package Installer Installateur 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.51/translations/desktop/desktop_gl_ES.ts000066400000000000000000001057731524745214100251050ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Instalador do paquete Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Instalador do paquete de Deepin 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. 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.51/translations/desktop/desktop_he.ts000066400000000000000000001060541524745214100245010ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer מונח הלוחות Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer מונח הלוחות של דינין Package Installer מונח הלוחות Package Installer helps users install and remove local packages, and supports bulk installation. מונח הלוחות עוזר למשתמשים להתקין ולמחוק לוחות מקומיים, ועוזר להתקין בדבוש main Package Installer מונח הלוחות Package Installer helps users install and remove local packages, and supports bulk installation. מונח הלוחות עוזר למשתמשים להתקין ולמחוק לוחות מקומיים, ועוזר להתקין בדבוש deepin-deb-installer-6.5.51/translations/desktop/desktop_hi_IN.ts000066400000000000000000001067031524745214100250740ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer पैकेज इंस्टॉलर Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer दीपिन पैकेज इंस्टॉलर Package Installer पैकेज इंस्टॉलर Package Installer helps users install and remove local packages, and supports bulk installation. पैकेज इंस्टॉलर द्वारा उपयोक्ता लोकल पैकेज इंस्टॉल व हटा सकते हैं, यह सामूहिक इंस्टॉल की सुविधा भी प्रदान करता है। main Package Installer पैकेज इंस्टॉलर Package Installer helps users install and remove local packages, and supports bulk installation. पैकेज इंस्टॉलर द्वारा उपयोक्ता लोकल पैकेज इंस्टॉल व हटा सकते हैं, यह सामूहिक इंस्टॉल की सुविधा भी प्रदान करता है। deepin-deb-installer-6.5.51/translations/desktop/desktop_hr.ts000066400000000000000000001057131524745214100245170ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Instaler paketa Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Deepin instaler paketa 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. 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.51/translations/desktop/desktop_hu.ts000066400000000000000000001060711524745214100245200ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Csomagtelepítő Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Deepin® Csomagtelepítő 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. 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.51/translations/desktop/desktop_id.ts000066400000000000000000001057011524745214100244770ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Pemasang Paket Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Pemasang Paket Deepin 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. 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.51/translations/desktop/desktop_it.ts000066400000000000000000001061541524745214100245220ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Gestore pacchetti Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Gestore pacchetti di Deepin 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. 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.51/translations/desktop/desktop_ja.ts000066400000000000000000001064031524745214100244750ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer パッケージ インストーラー Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Deepin パッケージ インストーラー Package Installer パッケージ インストーラー Package Installer helps users install and remove local packages, and supports bulk installation. パッケージ インストーラーは、ユーザーがローカル パッケージをインストールしたり削除したりするのに役立ちます。一括インストールにも対応しています。 main Package Installer パッケージ インストーラー Package Installer helps users install and remove local packages, and supports bulk installation. パッケージ インストーラーは、ユーザーがローカル パッケージをインストールしたり削除したりするのに役立ちます。一括インストールにも対応しています。 deepin-deb-installer-6.5.51/translations/desktop/desktop_ko.ts000066400000000000000000001060661524745214100245210ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer 패키지 관리자 Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Deepin 패키지 설치도구 Package Installer 패키지 관리자 Package Installer helps users install and remove local packages, and supports bulk installation. 패키지 설치 관리자는 사용자가 로컬 패키지를 설치하고, 제거할 수 있도록 지원하고 일괄 설치를 지원합니다. main Package Installer 패키지 관리자 Package Installer helps users install and remove local packages, and supports bulk installation. 패키지 설치 관리자는 사용자가 로컬 패키지를 설치하고, 제거할 수 있도록 지원하고 일괄 설치를 지원합니다. deepin-deb-installer-6.5.51/translations/desktop/desktop_lo.ts000066400000000000000000001073131524745214100245160ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer ກຳນຳ ອົງປະກອບ Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer ລូຫ្គិន ກියិតសຳຫຼື ກຳນຳ ອົງປະກອບ Package Installer ກຳນຳ ອົງປະກອບ Package Installer helps users install and remove local packages, and supports bulk installation. ກຳນຳ ອົງປະກອບ ກຳນຳຜູ້ໃຊ້ງານ ກຳນຳ ອົງປະກອບທ່ານຳໃນທະນາແມງແລະ ຂ້ອງກຳນຳກຳກຳກຳ ກຳນຳພາກຳພັນທະນາກຳນຳພາກຳໃຫ້ມີກວ່າໜີ້ໜີ້. ມີສະຫຼີດການນຳໃຊ້ກຳນຳພາກຳພັນທະນາ. main Package Installer ກຳນຳ ອົງປະກອບ Package Installer helps users install and remove local packages, and supports bulk installation. ກຳນຳ ອົງປະກອບ ກຳນຳຜູ້ໃຊ້ງານ ກຳນຳ ອົງປະກອບທ່ານຳໃນທະນາແມງແລະ ຂ້ອງກຳນຳກຳກຳກຳ ກຳນຳພາກຳພັນທະນາກຳນຳພາກຳໃຫ້ມີກວ່າໜີ້ໜີ້. ມີສະຫຼີດການນຳໃຊ້ກຳນຳພາກຳພັນທະນາ. deepin-deb-installer-6.5.51/translations/desktop/desktop_lt.ts000066400000000000000000001060001524745214100245130ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Paketų diegimo programa Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Deepin Paketų Įdiegėjas 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ą. 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.51/translations/desktop/desktop_mn.ts000066400000000000000000001063241524745214100245170ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Багц Зохицуулагч Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Deepin-ийн пакажи хөгжүүлэгч Package Installer Багц Зохицуулагч Package Installer helps users install and remove local packages, and supports bulk installation. Деепин Багц Зохицуулагч нь хэрэглэгчдэд програм суулгах устгахад туслахаас гадна бүлэг суулгалтыг дэмждэг. main Package Installer Багц Зохицуулагч Package Installer helps users install and remove local packages, and supports bulk installation. Деепин Багц Зохицуулагч нь хэрэглэгчдэд програм суулгах устгахад туслахаас гадна бүлэг суулгалтыг дэмждэг. deepin-deb-installer-6.5.51/translations/desktop/desktop_ms.ts000066400000000000000000001057251524745214100245300ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Pemasang Pakej Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Pemasang Pakej Deepin 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. 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.51/translations/desktop/desktop_ne.ts000066400000000000000000001070641524745214100245110ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer प्याकेज स्थापनाकर्ता Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer डीपिन पैकेज इंस्टॉलर Package Installer प्याकेज स्थापनाकर्ता Package Installer helps users install and remove local packages, and supports bulk installation. प्याकेज स्थापनाकर्ताले प्रयोगकर्ताहरूलाई स्थानीय प्याकेजहरू स्थापना र हटाउन मद्दत गर्दछ, र बल्क स्थापनालाई समर्थन गर्दछ। main Package Installer प्याकेज स्थापनाकर्ता Package Installer helps users install and remove local packages, and supports bulk installation. प्याकेज स्थापनाकर्ताले प्रयोगकर्ताहरूलाई स्थानीय प्याकेजहरू स्थापना र हटाउन मद्दत गर्दछ, र बल्क स्थापनालाई समर्थन गर्दछ। deepin-deb-installer-6.5.51/translations/desktop/desktop_nl.ts000066400000000000000000001057051524745214100245200ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Pakketinstallatie Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Deepin Pakketinstallatie 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. 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.51/translations/desktop/desktop_pa.ts000066400000000000000000001066111524745214100245040ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer ਪੈਕੇਜ ਮੈਨੇਜਰ Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer ਡੀਪਿਨ ਪੈਕੇਜ ਇੰਸਟਾਲਰ Package Installer ਪੈਕੇਜ ਮੈਨੇਜਰ Package Installer helps users install and remove local packages, and supports bulk installation. ਪੈਕੇਜ ਇੰਸਟਾਲਰ ਲੋਕਲ ਪੈਕੇਜਾਂ ਨੂੰ ਇੰਸਟਾਲ ਅਤੇ ਹਟਾਉਣ ਲਈ ਮਦਦ ਕਰਦਾ ਹੈ, ਇਹ ਵੱਡੀ ਗਿਣਤੀ ਵਿੱਚ ਇੰਸਟਾਲੇਸ਼ਨ ਲਈ ਵੀ ਸਹਾਇਕ ਹੈ। main Package Installer ਪੈਕੇਜ ਮੈਨੇਜਰ Package Installer helps users install and remove local packages, and supports bulk installation. ਪੈਕੇਜ ਇੰਸਟਾਲਰ ਲੋਕਲ ਪੈਕੇਜਾਂ ਨੂੰ ਇੰਸਟਾਲ ਅਤੇ ਹਟਾਉਣ ਲਈ ਮਦਦ ਕਰਦਾ ਹੈ, ਇਹ ਵੱਡੀ ਗਿਣਤੀ ਵਿੱਚ ਇੰਸਟਾਲੇਸ਼ਨ ਲਈ ਵੀ ਸਹਾਇਕ ਹੈ। deepin-deb-installer-6.5.51/translations/desktop/desktop_pl.ts000066400000000000000000001057751524745214100245310ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Instalator pakietów Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Instalator pakietów Deepin 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ą. 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.51/translations/desktop/desktop_pt.ts000066400000000000000000001057751524745214100245410ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Instalador de Pacotes Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Instalador de Pacotes Deepin 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. 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.51/translations/desktop/desktop_pt_BR.ts000066400000000000000000001057771524745214100251260ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Instalador de Pacotes Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Instalador de Pacotes Package Installer Instalador de Pacotes Package Installer helps users install and remove local packages, and supports bulk installation. O Instalador de Pacotes ajuda os usuários a instalar e remover os pacotes; além de, permitir a instalação em massa. 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 usuários a instalar e remover os pacotes; além de, permitir a instalação em massa. deepin-deb-installer-6.5.51/translations/desktop/desktop_ru.ts000066400000000000000000001064371524745214100245400ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Установщик пакетов Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Установщик пакетов Deepin Package Installer Установщик пакетов Package Installer helps users install and remove local packages, and supports bulk installation. Установщик пакетов помогает пользователям устанавливать и удалять локальные пакеты, а также поддерживает массовую установку. main Package Installer Установщик пакетов Package Installer helps users install and remove local packages, and supports bulk installation. Установщик пакетов помогает пользователям устанавливать и удалять локальные пакеты, а также поддерживает массовую установку. deepin-deb-installer-6.5.51/translations/desktop/desktop_sk.ts000066400000000000000000001061221524745214100245160ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Správca balíčkov Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Instalátor balíčkov Deepin Package Installer Správca balíčkov Package 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. main Package Installer Správca balíčkov Package 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.51/translations/desktop/desktop_sl.ts000066400000000000000000001057631524745214100245310ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Instalator pakitet Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Instalator pakitet Deepin Package Installer Instalator pakitet Package Installer helps users install and remove local packages, and supports bulk installation. Instalator pakitet pomaga uporabnikom namestiti in odinstalirati lokalna paketa in podpira nameščanje več paketov. main Package Installer Instalator pakitet Package Installer helps users install and remove local packages, and supports bulk installation. Instalator pakitet pomaga uporabnikom namestiti in odinstalirati lokalna paketa in podpira nameščanje več paketov. deepin-deb-installer-6.5.51/translations/desktop/desktop_sq.ts000066400000000000000000001057631524745214100245360ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Instalues Paketash Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Instalues Paketash Deepin 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ë. 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.51/translations/desktop/desktop_sr.ts000066400000000000000000001063251524745214100245320ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Инсталатер Пакета Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Дипин Инсталатер Пакета Package Installer Инсталатер Пакета Package Installer helps users install and remove local packages, and supports bulk installation. Инсалатер пакета помаже корисницима да инсталирају и уклањају локалне пакете. Подржава групну инсталацију. main Package Installer Инсталатер Пакета Package Installer helps users install and remove local packages, and supports bulk installation. Инсалатер пакета помаже корисницима да инсталирају и уклањају локалне пакете. Подржава групну инсталацију. deepin-deb-installer-6.5.51/translations/desktop/desktop_sv.ts000066400000000000000000000014271524745214100245330ustar00rootroot00000000000000 desktop Deepin Package InstallerDeepin paketinstallerare Package InstallerPaketinstallerare Package Installer helps users install and remove local packages, and supports bulk installation. Paketinstalleraren hjälper användare att installera och ta bort lokala paket och stöder gruppinstallation. deepin-deb-installer-6.5.51/translations/desktop/desktop_tr.ts000066400000000000000000001057431524745214100245360ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Paket Kurucu Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Deepin Paket Kurucu 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. 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.51/translations/desktop/desktop_ug.ts000066400000000000000000001064011524745214100245140ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer بوغچا قاچىلىغۇچ Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Deepin بوغچا قاچىلىغۇچ Package Installer بوغچا قاچىلىغۇچ Package Installer helps users install and remove local packages, and supports bulk installation. ئورالما ئورناتقۇچ ئىشلەتكۈچىلەرنىڭ يەرلىك ئورالمىلارنى ئورنىتىشى ۋە ئۆچۈرۈشىگە ياردەم بېرىدۇ ھەمدە توپ قاچىلاشنى قوللايدۇ. main Package Installer بوغچا قاچىلىغۇچ Package Installer helps users install and remove local packages, and supports bulk installation. ئورالما ئورناتقۇچ ئىشلەتكۈچىلەرنىڭ يەرلىك ئورالمىلارنى ئورنىتىشى ۋە ئۆچۈرۈشىگە ياردەم بېرىدۇ ھەمدە توپ قاچىلاشنى قوللايدۇ. deepin-deb-installer-6.5.51/translations/desktop/desktop_uk.ts000066400000000000000000001065641524745214100245320ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Встановлювач пакунків Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Засіб встановлення пакунків Deepin Package Installer Встановлювач пакунків Package Installer helps users install and remove local packages, and supports bulk installation. За допомогою засобу встановлення пакунків користувачі можуть встановлювати і вилучати локальні пакунки. Передбачено пакетне встановлення. main Package Installer Встановлювач пакунків Package Installer helps users install and remove local packages, and supports bulk installation. За допомогою засобу встановлення пакунків користувачі можуть встановлювати і вилучати локальні пакунки. Передбачено пакетне встановлення. deepin-deb-installer-6.5.51/translations/desktop/desktop_vi.ts000066400000000000000000001057521524745214100245270ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Trình cài đặt gói Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Trình cài đặt gói 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 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.51/translations/desktop/desktop_zh_CN.ts000066400000000000000000001056711524745214100251120ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer 软件包安装器 Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer 深度软件包安装器 Package Installer 软件包安装器 Package Installer helps users install and remove local packages, and supports bulk installation. 软件包安装器用于帮助用户安装和卸载本地软件,支持批量安装。 main Package Installer 软件包安装器 Package Installer helps users install and remove local packages, and supports bulk installation. 软件包安装器用于帮助用户安装和卸载本地软件,支持批量安装。 deepin-deb-installer-6.5.51/translations/desktop/desktop_zh_HK.ts000066400000000000000000001056721524745214100251150ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer 軟件包安裝器 Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Deepin 軟件包安裝器 Package Installer 軟件包安裝器 Package Installer helps users install and remove local packages, and supports bulk installation. 軟件包安裝器用於幫助用戶安裝和卸載本地軟件,支持批量安裝。 main Package Installer 軟件包安裝器 Package Installer helps users install and remove local packages, and supports bulk installation. 軟件包安裝器用於幫助用戶安裝和卸載本地軟件,支持批量安裝。 deepin-deb-installer-6.5.51/translations/desktop/desktop_zh_TW.ts000066400000000000000000001057061524745214100251430ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer 軟體包安裝器 Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed desktop Deepin Package Installer Deepin 軟體包安裝器 Package Installer 軟體包安裝器 Package Installer helps users install and remove local packages, and supports bulk installation. 軟體包安裝器用來幫助使用者安裝和移除本機軟體包。支援批次安裝。 main Package Installer 軟體包安裝器 Package Installer helps users install and remove local packages, and supports bulk installation. 軟體包安裝器用來幫助使用者安裝和移除本機軟體包。支援批次安裝。 deepin-deb-installer-6.5.51/translations/policy/000077500000000000000000000000001524745214100216245ustar00rootroot00000000000000deepin-deb-installer-6.5.51/translations/policy/CMakeLists.txt000066400000000000000000000022071524745214100243650ustar00rootroot00000000000000# 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.51/translations/policy/com.deepin.pkexec.aptInstallDepend.policy000066400000000000000000000017731524745214100316060ustar00rootroot00000000000000 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.51/translations/policy/com.deepin.pkexec.aptInstallDepend.policy.tmp000066400000000000000000000017661524745214100324070ustar00rootroot00000000000000 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.51/translations/policy/policy.ts000066400000000000000000000011421524745214100234710ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Authentication is required to continue the configuration authentication authentication deepin-deb-installer-6.5.51/translations/policy/policy_ar.ts000066400000000000000000001137561524745214100241720ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: أدخل الرقم للتكوين: OK button موافق BackendProcessPage Loading packages... جاري تحميل الحزم... %1/%2 loaded تم تحميل %1/%2 Initializing... جاري التهيئة... Updating package cache... جاري تحديث ذاكرة التخزين المؤقت للحزم... DdimErrorPage OK موافق DebInstaller Package Installer مثبّت الحزم Settings الإعدادات Bulk Install تثبيت جماعي 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 %1 package may be broken قد تكون الحزمة %1 مكسورة You can only install local %1 packages يمكنك تثبيت حزم %1 المحلية فقط No permission to access this folder لا يوجد إذن للوصول إلى هذا المجلد Already Added تمت الإضافة بالفعل %1 does not exist, please reselect %1 غير موجود، يرجى إعادة التحديد DebListModel Installation failed, please check your network connection فشل التثبيت، يرجى التحقق من اتصال الشبكة Installation failed, please check for updates in Control Center فشل التثبيت، يرجى التحقق من التحديثات في مركز التحكم Installation failed, insufficient disk space فشل التثبيت، مساحة القرص غير كافية Invalid digital signature توقيع رقمي غير صالح Authentication failed فشلت المصادقة The administrator has set policies to prevent installation of this package قام المسؤول بتعيين سياسات لمنع تثبيت هذه الحزمة Installation Failed فشل التثبيت Unmatched package architecture بنية الحزمة غير متطابقة Same version installed نفس الإصدار مثبت بالفعل Later version installed: %1 إصدار أحدث مثبت: %1 Earlier version installed: %1 إصدار أقدم مثبت: %1 Broken dependencies, try installing the app in compatibility mode تبعيات مكسورة، حاول تثبيت التطبيق في وضع التوافق Compatibility mode installation failed فشل التثبيت في وضع التوافق Failed to install %1 فشل تثبيت %1 Broken dependencies: %1 تبعيات مكسورة: %1 Installation failed فشل التثبيت Unable to install تعذر التثبيت OK button موافق Failed to install %1: no valid digital signature فشل تثبيت %1: لا يوجد توقيع رقمي صالح Cancel button إلغاء Proceed button متابعة This package does not have a valid digital signature لا تحتوي هذه الحزمة على توقيع رقمي صالح This package does not have a valid digital signature. Continue with the installation? لا تحتوي هذه الحزمة على توقيع رقمي صالح. هل تريد متابعة التثبيت؟ Cancel إلغاء Continue button متابعة FileChooseWidget Drag deb packages here اسحب حزم deb إلى هنا 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 مثبت Waiting في انتظار Failed فشل Same version installed نفس الإصدار مثبت بالفعل Later version installed: %1 إصدار أحدث مثبت: %1 Earlier version installed: %1 إصدار أقدم مثبت: %1 PackagesListView Delete حذف QApplication Collapse button طي QObject 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. لا تحتوي هذه الحزمة على توقيع رقمي صالح وتم حظرها من التثبيت/التشغيل. اذهب إلى مركز الأمان > الأدوات > أمان التطبيقات لتغيير الإعدادات. Will remove: سيتم الإزالة: The system has not installed Linglong environment, please install it first لم يقم النظام بتثبيت بيئة Linglong، يرجى تثبيتها أولاً 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 مركز الأمان > الأدوات > أمان التطبيقات Unable to install تعذر التثبيت Cancel button إلغاء Proceed button متابعة SingleInstallPage Name: الاسم: Version: الإصدار: Install button تثبيت Remove button إزالة Reinstall إعادة التثبيت OK button موافق Back button رجوع Done button تم If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. إذا كان هذا البرنامج إصداراً أقدم (متكيف بالفعل مع إصدار نظام قديم)، يمكنك محاولة تثبيته في وضع التوافق. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. وضع توافق UOS V25 هو ميزة تسمح لك بمتابعة استخدام تطبيقات إصدار V20 على نظام V25. يقوم بإنشاء بيئة توافق لك، مما يمكّن البرامج التي كانت تعمل في الأصل على نظام V20 فقط من العمل بشكل صحيح على نظام V25 أيضاً. Confirm to install in compatibility mode تأكيد التثبيت في وضع التوافق Installing in compatibility mode %1 جاري التثبيت في وضع التوافق %1 Uninstalling %1 from compatibility mode جاري إزالة تثبيت %1 من وضع التوافق %1 was successfully installed to compatibility mode تم تثبيت %1 بنجاح في وضع التوافق Installed successfully تم التثبيت بنجاح Uninstalled successfully تمت إزالة التثبيت بنجاح Uninstall Failed فشلت إزالة التثبيت Invalid digital signature توقيع رقمي غير صالح Collapse طي Install %1 will remove: تثبيت %1 سيؤدي إلى إزالة: Dependencies in the repository التبعيات في المستودع Missing dependencies تبعيات مفقودة Compatible Install تثبيت متوافق Cancel button إلغاء Same version installed نفس الإصدار مثبت بالفعل Later version installed: %1 إصدار أحدث مثبت: %1 Downgrade تخفيض الإصدار Earlier version installed: %1 إصدار أقدم مثبت: %1 Update button تحديث Compatible Mode Install تثبيت وضع التوافق Installing dependencies: %1 جاري تثبيت التبعيات: %1 Failed to install %1 فشل تثبيت %1 SingleInstallPage_Install Show dependencies إظهار التبعيات Show details إظهار التفاصيل 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 %1 from compatibility mode? All dependencies will also be removed هل أنت متأكد من إزالة تثبيت %1 من وضع التوافق؟ سيتم أيضاً إزالة جميع التبعيات main Package Installer مثبّت الحزم Package Installer helps users install and remove local packages, and supports bulk installation. يساعد مثبّت الحزم المستخدمين على تثبيت وإزالة الحزم المحلية، ويدعم التثبيت الجماعي. policy Authentication is required to continue the configuration التوثيق مطلوب لمتابعة التكوين authentication التوثيق deepin-deb-installer-6.5.51/translations/policy/policy_az.ts000066400000000000000000001054731524745214100241770ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. 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.51/translations/policy/policy_bn.ts000066400000000000000000001055431524745214100241620ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration অবসরণ করতে আутুথেন্টিকেশন প্রয়োজন authentication আউটোথেন্টিকেশন deepin-deb-installer-6.5.51/translations/policy/policy_bo.ts000066400000000000000000001055671524745214100241710ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration མུ་མཐུད་བགོ་སྒྲིག་བྱ་དགོས་དབང་བརྩལ་བྱ་དགོས། authentication དཔང་དཔྱད། deepin-deb-installer-6.5.51/translations/policy/policy_ca.ts000066400000000000000000001054301524745214100241410ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration Cal autenticació per continuar la configuració authentication autenticació deepin-deb-installer-6.5.51/translations/policy/policy_cs.ts000066400000000000000000001054531524745214100241700ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. 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.51/translations/policy/policy_de.ts000066400000000000000000001054641524745214100241550ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration Zum Fortsetzen der Konfiguration ist eine Authentifizierung erforderlich authentication Authentifizierung deepin-deb-installer-6.5.51/translations/policy/policy_es.ts000066400000000000000000001054511524745214100241700ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. 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.51/translations/policy/policy_et.ts000066400000000000000000001054341524745214100241720ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration Autentikatsioon on vajalik jätka konfigureerimist authentication autentikatsioon deepin-deb-installer-6.5.51/translations/policy/policy_fi.ts000066400000000000000000001054231524745214100241560ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration Määritysten jatkaminen edellyttää todennusta authentication todennus deepin-deb-installer-6.5.51/translations/policy/policy_fil.ts000066400000000000000000001054421524745214100243330ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration Authentication ay kailangan upang magpatuloy sa pag-ayos authentication authentication deepin-deb-installer-6.5.51/translations/policy/policy_fr.ts000066400000000000000000001054561524745214100241750ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration L'authentification est requise pour continuer la configuration authentication authentification deepin-deb-installer-6.5.51/translations/policy/policy_gl_ES.ts000066400000000000000000001054451524745214100245550ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration É necesario autenticarse para continuar a configuración authentication autenticación deepin-deb-installer-6.5.51/translations/policy/policy_he.ts000066400000000000000000001054471524745214100241620ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration ה(*)(תנתקתEMS היא חובה המשך ההגדרה authentication ה(*)(תנתקתEMS deepin-deb-installer-6.5.51/translations/policy/policy_hi_IN.ts000066400000000000000000001055611524745214100245510ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration विन्यास जारी रखने हेतु प्रमाणीकरण आवश्यक है authentication प्रमाणीकरण deepin-deb-installer-6.5.51/translations/policy/policy_hr.ts000066400000000000000000001054241524745214100241720ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration Potrebna je ovjera da bi nastavili s konfiguracijom authentication ovjera deepin-deb-installer-6.5.51/translations/policy/policy_hu.ts000066400000000000000000001054421524745214100241750ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. 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.51/translations/policy/policy_id.ts000066400000000000000000001054321524745214100241540ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration Autentikasi diperlukan untuk melanjutkan konfigurasi authentication autentikasi deepin-deb-installer-6.5.51/translations/policy/policy_it.ts000066400000000000000000001054421524745214100241750ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration Autenticazione richiesta per continuare la configurazione authentication autenticazione deepin-deb-installer-6.5.51/translations/policy/policy_ja.ts000066400000000000000000001054211524745214100241500ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration 構成を続行するには認証が必要です authentication 認証 deepin-deb-installer-6.5.51/translations/policy/policy_lo.ts000066400000000000000000001055611524745214100241750ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration ត្រូវការអាជីវកម្មដើម្បីបន្តការកំណត់ឡើងវិញ authentication អាជីវកម្ម deepin-deb-installer-6.5.51/translations/policy/policy_lt.ts000066400000000000000000001054231524745214100241770ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration Tęstymuojimo reikia tęsti konfigūraciją authentication jęstymuojimo deepin-deb-installer-6.5.51/translations/policy/policy_ms.ts000066400000000000000000001054331524745214100242000ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration Pengesahihan diperlukan untuk meneruskan konfigurasi authentication pengesahihan deepin-deb-installer-6.5.51/translations/policy/policy_nl.ts000066400000000000000000001054311524745214100241700ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration Voer je wachtwoord in om het instellen te voltooien authentication goedkeuring deepin-deb-installer-6.5.51/translations/policy/policy_pl.ts000066400000000000000000001054511524745214100241740ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration Wymagane jest uwierzytelnienie, aby kontynuować konfigurację authentication uwierzytelnienie deepin-deb-installer-6.5.51/translations/policy/policy_pt.ts000066400000000000000000001054501524745214100242030ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. 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.51/translations/policy/policy_pt_BR.ts000066400000000000000000001054571524745214100245750ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. 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.51/translations/policy/policy_ru.ts000066400000000000000000001055531524745214100242120ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration Чтобы продолжить конфигурирование необходимо авторизоваться. authentication аутентификация deepin-deb-installer-6.5.51/translations/policy/policy_sl.ts000066400000000000000000001054211524745214100241740ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration Za nadaljevanje konfiguracije je zahtevana鉴权 authentication 鉴权 deepin-deb-installer-6.5.51/translations/policy/policy_sq.ts000066400000000000000000001054361524745214100242070ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. 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.51/translations/policy/policy_sr.ts000066400000000000000000001055341524745214100242070ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration Идентификација је неопходна за наставак прилагођавања authentication идентификација deepin-deb-installer-6.5.51/translations/policy/policy_sv.ts000066400000000000000000000011421524745214100242010ustar00rootroot00000000000000 policy Authentication is required to continue the configuration Autentisering krävs för att fortsätta konfigurationen. authentication autentisering deepin-deb-installer-6.5.51/translations/policy/policy_tr.ts000066400000000000000000001054551524745214100242120ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. 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.51/translations/policy/policy_ug.ts000066400000000000000000001054511524745214100241740ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration داۋاملىق تەڭشەش ئۈچۈن ھوقۇق بېرىڭ authentication دەلىللەش deepin-deb-installer-6.5.51/translations/policy/policy_uk.ts000066400000000000000000001055401524745214100241770ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration Для продовження налаштовування слід пройти розпізнавання authentication розпізнавання deepin-deb-installer-6.5.51/translations/policy/policy_vi.ts000066400000000000000000001054261524745214100242010ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. 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.51/translations/policy/policy_zh_CN.ts000066400000000000000000001053771524745214100245710ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration 继续配置,需要授权 authentication 认证 deepin-deb-installer-6.5.51/translations/policy/policy_zh_HK.ts000066400000000000000000001053771524745214100245730ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration 繼續配置,需要授權 authentication 認證 deepin-deb-installer-6.5.51/translations/policy/policy_zh_TW.ts000066400000000000000000001053771524745214100246230ustar00rootroot00000000000000 AptConfigMessage Enter the number to configure: OK button BackendProcessPage Loading packages... %1/%2 loaded Initializing... Updating package cache... DdimErrorPage OK DebInstaller Package Installer Settings Bulk Install 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 You can only install local %1 packages No permission to access this folder Already Added %1 does not exist, please reselect DebListModel Installation failed, please check your network connection Installation failed, please check for updates in Control Center Installation failed, insufficient disk space Invalid digital signature Authentication failed The administrator has set policies to prevent installation of this package Installation Failed Unmatched package architecture Same version installed Later version installed: %1 Earlier version installed: %1 Broken dependencies, try installing the app in compatibility mode Compatibility mode installation failed Failed to install %1 Broken dependencies: %1 Installation failed Unable to install OK button Failed to install %1: no valid digital signature Cancel button Proceed button This package does not have a valid digital signature This package does not have a valid digital signature. Continue with the installation? Cancel Continue button FileChooseWidget Drag deb packages here Select File MultipleInstallPage Show details Collapse button Install button Done button Back button Install %1 will remove: 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 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. Will remove: The system has not installed Linglong environment, please install it first 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 Unable to install Cancel button Proceed button SingleInstallPage Name: Version: Install button Remove button Reinstall OK button Back button Done button If this software is an older version (already adapted for a legacy system version), you can try installing it in compatibility mode. UOS V25 Compatibility Mode is a feature that allows you to continue using V20 version applications on the V25 system. It creates a compatibility environment for you, enabling software that originally could only run on the V20 system to work properly on the V25 system as well. Confirm to install in compatibility mode Installing in compatibility mode %1 Uninstalling %1 from compatibility mode %1 was successfully installed to compatibility mode Installed successfully Uninstalled successfully Uninstall Failed Invalid digital signature Collapse Install %1 will remove: Dependencies in the repository Missing dependencies Compatible Install Cancel button Same version installed Later version installed: %1 Downgrade Earlier version installed: %1 Update button Compatible Mode Install Installing dependencies: %1 Failed to install %1 SingleInstallPage_Install Show dependencies Show details 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 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 from compatibility mode? All dependencies will also be removed main Package Installer Package Installer helps users install and remove local packages, and supports bulk installation. policy Authentication is required to continue the configuration 繼續配置,需要授權 authentication 認證