ci-test-sample/debian/patches/0089-use-APT_OPTIONS-in-get...

44 lines
1.3 KiB
Diff
Raw Normal View History

From: =?utf-8?b?6LCi54Kc?= <xiewei@kylinos.cn>
Date: Wed, 29 Jul 2020 11:18:42 +0800
Subject: use APT_OPTIONS in get-udeb
---
scripts/build/lb_binary_debian-installer | 2 +-
share/bin/get-udeb | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/scripts/build/lb_binary_debian-installer b/scripts/build/lb_binary_debian-installer
index 78b313a..79e9822 100755
--- a/scripts/build/lb_binary_debian-installer
+++ b/scripts/build/lb_binary_debian-installer
@@ -647,7 +647,7 @@ EOF
then
cp /usr/share/live/build/bin/get-udeb chroot/bin
cp config/package-lists/*.list.udeb chroot/root/
- Chroot chroot "/bin/get-udeb"
+ Chroot chroot "/bin/get-udeb ${APT_OPTIONS}"
rm -f chroot/bin/get-udeb
rm -f chroot/root/*.list.udeb
mv chroot/root/binary.udeb ./
diff --git a/share/bin/get-udeb b/share/bin/get-udeb
index b65bfef..87a0ef6 100755
--- a/share/bin/get-udeb
+++ b/share/bin/get-udeb
@@ -2,6 +2,7 @@
cd /root
APTDIR="`pwd`/udeb_tmp"
+APT_OPTIONS=$*
rm -rf ${APTDIR}
@@ -17,7 +18,7 @@ APT_GET="apt-get --assume-yes \
-o Dir::Cache=$APTDIR/cache \
-o Acquire::Retries=3 \
-o Dir::State::Status=$APTDIR/state/status \
- --allow-unauthenticated \
+ $APT_OPTIONS \
"
set -e