diff --git a/build.config b/build.config index ba38035..45504a2 100644 --- a/build.config +++ b/build.config @@ -1 +1 @@ -@VERSION@=1.1.8 +@VERSION@=1.1.9 diff --git a/src/usr/bin/amber-pm-convert b/src/usr/bin/amber-pm-convert index 60b6cbc..57324aa 100755 --- a/src/usr/bin/amber-pm-convert +++ b/src/usr/bin/amber-pm-convert @@ -651,9 +651,12 @@ fi #清理 .dpkg-new 文件 log.info "搜索并清理 .dpkg-new 文件..." # 在 core 目录下查找并删除所有以 .dpkg-new 结尾的文件 -find "$CRAFT_DIR/core" -name "*.dpkg-new" 2>/dev/null | while read -r file; do - log.info "删除: $file" - sudo rm -f "$file" +# 重命名 .dpkg-new 文件(去掉后缀) +log.info "处理 .dpkg-new 文件,去掉后缀..." +find "$CRAFT_DIR/core" -name "*.dpkg-new" -type f 2>/dev/null | while read -r file; do + newfile="${file%.dpkg-new}" + log.info "重命名: $file -> $newfile" + sudo mv -f "$file" "$newfile" done # 统计清理结果