summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVictor Gavro <vgavro@gmail.com>2020-05-19 02:14:20 +0300
committerRaphaƫl Hertzog <raphael@offensive-security.com>2020-09-14 11:02:51 +0200
commit990dcf2eed4e5b3a9d6b4e9edefb255de095e922 (patch)
treeae2cb1b0b6c9e3ef407c8ff894a53f28967142bd /scripts
parent56186add3c47969678b74ce956c32d0dc9600e04 (diff)
downloadvyos-live-build-990dcf2eed4e5b3a9d6b4e9edefb255de095e922.tar.gz
vyos-live-build-990dcf2eed4e5b3a9d6b4e9edefb255de095e922.zip
chroot_apt: fixed adding Pin-Priority (broken in da1fab11)
Fixes !201
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/chroot_apt4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build/chroot_apt b/scripts/build/chroot_apt
index 466d1fe2e..557f1a2c9 100755
--- a/scripts/build/chroot_apt
+++ b/scripts/build/chroot_apt
@@ -121,11 +121,11 @@ case "${_ACTION}" in
then
CHROOT_FILE="chroot/etc/apt/preferences"
echo >> ${CHROOT_FILE}
- echo "# Added by lb_chroot_apt ${@}" >> ${CHROOT_FILE}
+ echo "# Added by lb_chroot_apt ${_ACTION} ${@}" >> ${CHROOT_FILE}
echo "Package: *" >> ${CHROOT_FILE}
echo "Pin: release o=config/packages.chroot" >> ${CHROOT_FILE}
- case "${1}" in
+ case "${_ACTION}" in
install)
# Ensure local packages have priority
echo "Pin-Priority: 1001" >> ${CHROOT_FILE}