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
This commit is contained in:
parent
666dc9f6f2
commit
9c062e1f8b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue