mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-15 10:51:28 +00:00
Set up preferences for -proposed with NotAutomatic: yes
As of lunar, Ubuntu sets NotAutomatic: yes for its -proposed pockets. For sbuild chroots, we want to continue to explicitly install from -proposed by default; so override with apt preferences to get the correct behavior.
This commit is contained in:
parent
c1e4b14a98
commit
a69c40d403
12
mk-sbuild
12
mk-sbuild
@ -858,6 +858,13 @@ EOM
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -z "$SKIP_PROPOSED" ]; then
|
if [ -z "$SKIP_PROPOSED" ]; then
|
||||||
|
TEMP_PREFERENCES=`mktemp -t preferences-XXXXXX`
|
||||||
|
cat >> "$TEMP_PREFERENCES" <<EOM
|
||||||
|
# override for NotAutomatic: yes
|
||||||
|
Package: *
|
||||||
|
Pin: release a=$SOURCES_PROPOSED_SUITE
|
||||||
|
Pin-Priority: 990
|
||||||
|
EOM
|
||||||
cat >> "$TEMP_SOURCES" <<EOM
|
cat >> "$TEMP_SOURCES" <<EOM
|
||||||
deb ${MIRROR_ARCHS}${DEBOOTSTRAP_MIRROR} $SOURCES_PROPOSED_SUITE ${COMPONENTS}
|
deb ${MIRROR_ARCHS}${DEBOOTSTRAP_MIRROR} $SOURCES_PROPOSED_SUITE ${COMPONENTS}
|
||||||
deb-src ${DEBOOTSTRAP_MIRROR} $SOURCES_PROPOSED_SUITE ${COMPONENTS}
|
deb-src ${DEBOOTSTRAP_MIRROR} $SOURCES_PROPOSED_SUITE ${COMPONENTS}
|
||||||
@ -883,6 +890,11 @@ fi
|
|||||||
cat "$TEMP_SOURCES" | sed -e "s|RELEASE|$RELEASE|g" | \
|
cat "$TEMP_SOURCES" | sed -e "s|RELEASE|$RELEASE|g" | \
|
||||||
sudo bash -c "cat > $MNT/etc/apt/sources.list"
|
sudo bash -c "cat > $MNT/etc/apt/sources.list"
|
||||||
rm -f "$TEMP_SOURCES"
|
rm -f "$TEMP_SOURCES"
|
||||||
|
if [ -n "$TEMP_PREFERENCES" ]; then
|
||||||
|
sed -e "s|RELEASE|$RELEASE|g" < "$TEMP_PREFERENCES" | \
|
||||||
|
sudo bash -c "cat > $MNT/etc/apt/preferences"
|
||||||
|
rm -f "$TEMP_PREFERENCES"
|
||||||
|
fi
|
||||||
|
|
||||||
# Copy the timezone (comment this out if you want to leave the chroot at UTC)
|
# Copy the timezone (comment this out if you want to leave the chroot at UTC)
|
||||||
sudo cp -P --remove-destination /etc/localtime /etc/timezone "$MNT"/etc/
|
sudo cp -P --remove-destination /etc/localtime /etc/timezone "$MNT"/etc/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user