ci-test-sample/debian/patches/kylin_fix_archive_prefs.patch

31 lines
930 B
Diff

From: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Date: Tue, 18 Jul 2017 17:21:08 +0800
Subject: kylin_fix_archive_prefs
---
scripts/build/lb_chroot_archives | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/build/lb_chroot_archives b/scripts/build/lb_chroot_archives
index 9f5b458..dcfc260 100755
--- a/scripts/build/lb_chroot_archives
+++ b/scripts/build/lb_chroot_archives
@@ -291,7 +291,7 @@ EOF
do
if [ -e "${FILE}" ]
then
- cp config/archives/$(basename ${_FILE} .chroot) chroot/etc/apt/preferences.d
+ cp config/archives/$(basename ${FILE} .chroot) chroot/etc/apt/preferences.d
fi
done
fi
@@ -846,7 +846,7 @@ EOF
do
if [ -e "${FILE}" ]
then
- cp config/archives/$(basename ${_FILE} .binary) chroot/etc/apt/preferences.d
+ cp config/archives/$(basename ${FILE} .binary) chroot/etc/apt/preferences.d
fi
done
fi