mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-04-14 20:01:07 +00:00
mk-sbuild: disable recommends also within the chroot
LP: #1268684 Thanks: Steve Beattie for the patch. Signed-off-by: Mattia Rizzolo <mattia@debian.org>
This commit is contained in:
parent
c41f57686b
commit
dc5e586b99
12
mk-sbuild
12
mk-sbuild
@ -525,6 +525,7 @@ ubuntu)
|
||||
# Disable recommends for a smaller chroot (gutsy and later only)
|
||||
if ubuntu_dist_ge "$RELEASE" "gutsy"; then
|
||||
BUILD_PKGS="--no-install-recommends $BUILD_PKGS"
|
||||
SKIP_RECOMMENDS=1
|
||||
fi
|
||||
# Add pkg-create-dbgsym (edgy through zesty)
|
||||
if ! ubuntu_dist_ge "$RELEASE" "artful"; then
|
||||
@ -561,6 +562,7 @@ debian)
|
||||
fi
|
||||
# Keep the chroot as minimal as possible
|
||||
BUILD_PKGS="--no-install-recommends $BUILD_PKGS"
|
||||
SKIP_RECOMMENDS=1
|
||||
;;
|
||||
*)
|
||||
echo "Unknown --distro '$DISTRO': aborting" >&2
|
||||
@ -846,6 +848,16 @@ EOF
|
||||
fi
|
||||
EOM
|
||||
|
||||
if [ -n "$SKIP_RECOMMENDS" ]; then
|
||||
sudo bash -c "cat >> $MNT/finish.sh" <<EOM
|
||||
mkdir -p /etc/apt/apt.conf.d/
|
||||
cat > /etc/apt/apt.conf.d/99mk-sbuild-no-recommends <<EOF
|
||||
// disable install recommends
|
||||
APT::Install-Recommends "0";
|
||||
EOF
|
||||
EOM
|
||||
fi
|
||||
|
||||
if [ -n "$TARGET_ARCH" ]; then
|
||||
sudo bash -c "cat >> $MNT/finish.sh" <<EOM
|
||||
# Configure target architecture
|
||||
|
Loading…
x
Reference in New Issue
Block a user