From 9c062e1f8b4b9f4b6a1eb19ac8554c6d8443395b Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Sat, 29 Feb 2020 00:26:46 +0000 Subject: archives: fix deb-src entry exclusion the sed commands were missing '-i' to actually modify the file (rather than output to stdout) Gbp-Dch: Short Closes: #952842 --- scripts/build/bootstrap_archives | 4 ++-- scripts/build/chroot_archives | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'scripts/build') diff --git a/scripts/build/bootstrap_archives b/scripts/build/bootstrap_archives index 6f878b97d..27a92f02f 100755 --- a/scripts/build/bootstrap_archives +++ b/scripts/build/bootstrap_archives @@ -190,8 +190,8 @@ do if [ "${_PASS}" != "source" ] && [ "${LB_APT_SOURCE_ARCHIVES}" = "false" ] then - # Strip out source archives - sed "/^deb-src /d" "chroot/etc/apt/sources.list.d/$(basename ${FILE} .chroot)" + # Strip out source archives + sed -i "/^deb-src /d" "chroot/etc/apt/sources.list.d/$(basename ${FILE} .chroot)" fi fi done diff --git a/scripts/build/chroot_archives b/scripts/build/chroot_archives index 08d5e3202..5d005b23c 100755 --- a/scripts/build/chroot_archives +++ b/scripts/build/chroot_archives @@ -192,8 +192,8 @@ EOF if [ "${_PASS}" != "source" ] && [ "${LB_APT_SOURCE_ARCHIVES}" = "false" ] then - # Strip out source archives - sed "/^deb-src /d" "chroot/etc/apt/sources.list.d/$(basename ${FILE} .chroot)" + # Strip out source archives + sed -i "/^deb-src /d" "chroot/etc/apt/sources.list.d/$(basename ${FILE} .chroot)" fi fi done @@ -616,7 +616,7 @@ EOF if [ "${_PASS}" != "source" ] && [ "${LB_APT_SOURCE_ARCHIVES}" = "false" ] then # Strip out source archives - sed "/^deb-src /d" "chroot/etc/apt/sources.list.d/$(basename ${FILE} .binary)" + sed -i "/^deb-src /d" "chroot/etc/apt/sources.list.d/$(basename ${FILE} .binary)" fi fi done -- cgit v1.2.3