32 lines
1.5 KiB
Diff
32 lines
1.5 KiB
Diff
From: =?utf-8?b?6LCi54Kc?= <xiewei@kylinos.cn>
|
|
Date: Thu, 16 May 2019 17:07:03 +0800
|
|
Subject: create component Release file locally
|
|
|
|
---
|
|
scripts/build/lb_binary_debian-installer | 11 ++++++++++-
|
|
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..d23b059 100755
|
|
--- a/scripts/build/lb_binary_debian-installer
|
|
+++ b/scripts/build/lb_binary_debian-installer
|
|
@@ -610,8 +610,17 @@ then
|
|
gzip -9 -c binary/dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/${_ARCHIVE_AREA}/binary-${LB_ARCHITECTURES}/Packages > binary/dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/${_ARCHIVE_AREA}/binary-${LB_ARCHITECTURES}/Packages.gz
|
|
|
|
# Fetching release
|
|
- # kylin: don't download component Release
|
|
+ # 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 > 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}
|
|
+Origin: $ORIGIN
|
|
+Label: $ORIGIN
|
|
+Architecture: ${LB_ARCHITECTURES}
|
|
+EOF
|
|
done
|
|
|
|
# Symlink firmware packages to /firmware
|