Merged
Conversation
"mkfs.exfat -V" returns 1 in exfatprogs and 0 in the exfat-utils package. To ensure compatibility with both packages, we only check if "mkfs.exfat" exists. Log: Adapt to exfatprogs Bug: https://pms.uniontech.com/bug-view-338971.html
As title. Log: Update version to 6.0.21
|
TAG Bot TAG: 6.0.21 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: wangrong1069 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR streamlines ExFat filesystem support by removing unnecessary version checks and debug logs in the create path, and updates the Debian changelog for the new release. Class diagram for updated ExFat filesystem supportclassDiagram
class ExFat {
+getFilesystemSupport() FS
}
class FS {
create
EXTERNAL
}
class Utils {
+findProgramInPath(program: QString): QString
+executCmd(cmd: QString, output: QString, error: QString): int
}
ExFat --> FS
ExFat --> Utils
%% The getFilesystemSupport method in ExFat now sets fs.create to FS::EXTERNAL if mkfs.exfat is found, without version check.
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review我来对这段代码变更进行审查:
潜在问题:
改进建议:
示例改进代码: const QString MIN_EXFAT_VERSION = "1.3.0"; // 定义最低版本要求
if (!Utils::findProgramInPath("mkfs.exfat").isEmpty()) {
if (Utils::executCmd("mkfs.exfat -V", output, error) == 0) {
QString version = extractVersion(output); // 提取版本号的辅助函数
if (compareVersion(version, MIN_EXFAT_VERSION) >= 0) {
qDebug() << "mkfs.exfat found, version" << version << "enabling create support";
fs.create = FS::EXTERNAL;
} else {
qDebug() << "mkfs.exfat version" << version << "is too old, minimum required:" << MIN_EXFAT_VERSION;
}
}
}这样的改进既保证了代码的简洁性,又确保了版本兼容性,同时提供了更好的错误处理和日志记录。 |
lzwind
approved these changes
Oct 30, 2025
This was referenced Oct 30, 2025
Open
Open
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by Sourcery
Enhancements: