create component Release file locally

This commit is contained in:
谢炜 2019-05-17 10:36:24 +08:00
parent 1b55371b0d
commit 56c410a83f
2 changed files with 9 additions and 2 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
live-build (3.0~a57-1ubuntu33k44) bionic; urgency=medium
[ 谢炜 ]
* create component Release file locally (fix)
-- Xie Wei <xiewei@kylinos.cn> Fri, 17 May 2019 10:36:28 +0800
live-build (3.0~a57-1ubuntu33k43) bionic; urgency=medium
[ 谢炜 ]

View File

@ -7,7 +7,7 @@ Subject: create component Release file locally
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/scripts/build/lb_binary_debian-installer b/scripts/build/lb_binary_debian-installer
index 6fd8270..88ab0ac 100755
index 6fd8270..d23b059 100755
--- a/scripts/build/lb_binary_debian-installer
+++ b/scripts/build/lb_binary_debian-installer
@@ -610,8 +610,17 @@ then
@ -18,7 +18,7 @@ index 6fd8270..88ab0ac 100755
+ # kylin: not download component Release, but create locally
# Download_file binary/dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/${_ARCHIVE_AREA}/binary-${LB_ARCHITECTURES}/Release "${LB_PARENT_MIRROR_CHROOT}"/dists/"${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}"/${_ARCHIVE_AREA}/binary-"${LB_ARCHITECTURES}"/Release
+ ORIGIN="$(echo $LB_ISO_VOLUME | cut -d '-' -f 1)"
+ cat > "${LB_PARENT_MIRROR_CHROOT}"/dists/"${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}"/${_ARCHIVE_AREA}/binary-"${LB_ARCHITECTURES}"/Release << EOF
+ cat > binary/dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/${_ARCHIVE_AREA}/binary-${LB_ARCHITECTURES}/Release << EOF
+Archive: ${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}
+Version: ${_VERSION}
+Component: ${_ARCHIVE_AREA}