convert 只输入最表层的依赖

Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
2025-10-27 06:49:31 +00:00
committed by Gitee
parent 48b06ca964
commit 910216a457

View File

@@ -368,19 +368,19 @@ calculate_directory_size() {
} }
# 构建依赖字符串 - 包含所有base # 构建依赖字符串 - 包含所有base
DEPENDS_STR=$(IFS=,; echo "${BASENAMES[*]}") DEPENDS_STR=$(IFS=,; echo "${BASENAMES_ORIG[*]}")
# 创建control文件 # 创建control文件
cat > "${PKG_BUILD_DIR}/DEBIAN/control" << EOF cat > "${PKG_BUILD_DIR}/DEBIAN/control" << EOF
Package: $NEW_PKGNAME Package: $NEW_PKGNAME
Version: $NEW_VERSION Version: $NEW_VERSION
Architecture: $ORIG_ARCH Architecture: $ORIG_ARCH
Maintainer: APM Converter <apm@localhost> Maintainer: APM Converter <apm-convert@spark-app.store>
Depends: $DEPENDS_STR Depends: $DEPENDS_STR
Installed-Size: $(calculate_directory_size $PKG_BUILD_DIR) Installed-Size: $(calculate_directory_size $PKG_BUILD_DIR)
Description: APM converted package from $ORIG_PKGNAME Description: APM converted package from $ORIG_PKGNAME
This package was automatically converted from the original deb package. This package was automatically converted from the original deb package.
Based on: ${BASENAMES[*]} Based on: ${BASENAMES_ORIG[*]}
EOF EOF
# 生成输出文件名 # 生成输出文件名