Enable the proposed pocket by default

This commit is contained in:
Stefano Rivera 2012-11-06 11:45:24 +02:00
parent 18c8eaddb4
commit 143027d9fc
2 changed files with 35 additions and 3 deletions

View File

@ -32,6 +32,10 @@ Turn on script debugging.
Do not include the \fB\-updates\fR pocket in the installed Do not include the \fB\-updates\fR pocket in the installed
\fBsources.list\fR. \fBsources.list\fR.
.TP .TP
.B \-\-skip\-proposed
Do not include the \fB\-proposed\fR pocket in the installed
\fBsources.list\fR.
.TP
.B \-\-source\-template\fR=\fIFILE .B \-\-source\-template\fR=\fIFILE
Use \fIFILE\fR as the \fBsources.list\fR template (defaults to Use \fIFILE\fR as the \fBsources.list\fR template (defaults to
\fI$HOME\fB/.mk\-sbuild.sources\fR). \fI$HOME\fB/.mk\-sbuild.sources\fR).
@ -81,6 +85,10 @@ Lines to append to schroot entries.
Do not include the \fB\-updates\fR pocket (same as Do not include the \fB\-updates\fR pocket (same as
\fB\-\-skip\-updates\fR) \fB\-\-skip\-updates\fR)
.TP .TP
.B SKIP_PROPOSED
Do not include the \fB\-proposed\fR pocket (same as
\fB\-\-skip\-proposed\fR)
.TP
.B DEBOOTSTRAP_MIRROR .B DEBOOTSTRAP_MIRROR
Mirror location (same as \fB\-\-debootstrap-mirror\fR) Mirror location (same as \fB\-\-debootstrap-mirror\fR)
.TP .TP

View File

@ -49,6 +49,7 @@ function usage()
echo " --vg=VG use LVM snapshots, with group VG" echo " --vg=VG use LVM snapshots, with group VG"
echo " --debug Turn on script debugging" echo " --debug Turn on script debugging"
echo " --skip-updates Do not include -updates pocket in sources.list" echo " --skip-updates Do not include -updates pocket in sources.list"
echo " --skip-proposed Do not include -proposed pocket in sources.list"
echo " --source-template=FILE Use FILE as the sources.list template" echo " --source-template=FILE Use FILE as the sources.list template"
echo " --debootstrap-mirror=URL Use URL as the debootstrap source" echo " --debootstrap-mirror=URL Use URL as the debootstrap source"
echo " --debootstrap-include=list Comma separated list of packages to include" echo " --debootstrap-include=list Comma separated list of packages to include"
@ -71,6 +72,7 @@ function usage()
echo " CHROOT_SNAPSHOT_DIR Directory to mount open btrfs snaphshot chroots (default ${CHROOT_SNAPSHOT_DIR})" echo " CHROOT_SNAPSHOT_DIR Directory to mount open btrfs snaphshot chroots (default ${CHROOT_SNAPSHOT_DIR})"
echo " SCHROOT_CONF_SUFFIX Lines to append to schroot.conf entries" echo " SCHROOT_CONF_SUFFIX Lines to append to schroot.conf entries"
echo " SKIP_UPDATES Enable --skip-updates" echo " SKIP_UPDATES Enable --skip-updates"
echo " SKIP_PROPOSED Enable --skip-proposed"
echo " DEBOOTSTRAP_MIRROR Mirror location (same as --debootstrap-mirror)" echo " DEBOOTSTRAP_MIRROR Mirror location (same as --debootstrap-mirror)"
echo " DEBOOTSTRAP_INCLUDE Included packages (same as --debootstrap-include)" echo " DEBOOTSTRAP_INCLUDE Included packages (same as --debootstrap-include)"
echo " DEBOOTSTRAP_EXCLUDE Excluded packages (same as --debootstrap-exclude)" echo " DEBOOTSTRAP_EXCLUDE Excluded packages (same as --debootstrap-exclude)"
@ -88,7 +90,7 @@ function usage()
if [ -z "$1" ]; then if [ -z "$1" ]; then
usage usage
fi fi
OPTS=`getopt -o 'h' --long "help,debug,skip-updates,eatmydata,arch:,name:,source-template:,debootstrap-mirror:,debootstrap-include:,debootstrap-exclude:,debootstrap-proxy:,personality:,distro:,vg:,type:,target:" -- "$@"` OPTS=`getopt -o 'h' --long "help,debug,skip-updates,skip-proposed,eatmydata,arch:,name:,source-template:,debootstrap-mirror:,debootstrap-include:,debootstrap-exclude:,debootstrap-proxy:,personality:,distro:,vg:,type:,target:" -- "$@"`
eval set -- "$OPTS" eval set -- "$OPTS"
VG="" VG=""
@ -119,6 +121,10 @@ while :; do
SKIP_UPDATES="1" SKIP_UPDATES="1"
shift shift
;; ;;
--skip-proposed)
SKIP_PROPOSED="1"
shift
;;
--name) --name)
name="$2" name="$2"
shift 2 shift 2
@ -426,6 +432,9 @@ ubuntu)
if [ -z "$COMPONENTS" ]; then if [ -z "$COMPONENTS" ]; then
COMPONENTS="main restricted universe multiverse" COMPONENTS="main restricted universe multiverse"
fi fi
if [ -z "$SOURCES_PROPOSED_SUITE" ]; then
SOURCES_PROPOSED_SUITE="RELEASE-proposed"
fi
if [ -z "$SOURCES_SECURITY_SUITE" ]; then if [ -z "$SOURCES_SECURITY_SUITE" ]; then
SOURCES_SECURITY_SUITE="RELEASE-security" SOURCES_SECURITY_SUITE="RELEASE-security"
fi fi
@ -475,6 +484,9 @@ debian)
if [ -z "$COMPONENTS" ]; then if [ -z "$COMPONENTS" ]; then
COMPONENTS="main non-free contrib" COMPONENTS="main non-free contrib"
fi fi
if [ -z "$SOURCES_PROPOSED_SUITE" ]; then
SOURCES_PROPOSED_SUITE="RELEASE-proposed-updates"
fi
# Debian only performs security updates # Debian only performs security updates
SKIP_UPDATES=1 SKIP_UPDATES=1
if [ -z "$SOURCES_SECURITY_SUITE" ]; then if [ -z "$SOURCES_SECURITY_SUITE" ]; then
@ -487,9 +499,10 @@ debian)
TARGET_MIRROR="$DEBOOTSTRAP_MIRROR" TARGET_MIRROR="$DEBOOTSTRAP_MIRROR"
TARGET_SOURCES_SECURITY_URL="$SOURCES_SECURITY_URL" TARGET_SOURCES_SECURITY_URL="$SOURCES_SECURITY_URL"
fi fi
# Unstable (aka "sid") does not have a security repository # Unstable and Experimental do not have security or proposed repositories
if [ "$RELEASE" = 'unstable' ] || [ "$RELEASE" = 'sid' ]; then if [ "$RELEASE" = 'unstable' ] || [ "$RELEASE" = 'sid' ] || [ "$RELEASE" = 'experimental' ]; then
SKIP_SECURITY=1 SKIP_SECURITY=1
SKIP_PROPOSED=1
fi fi
# Keep the chroot as minimal as possible # Keep the chroot as minimal as possible
BUILD_PKGS="--no-install-recommends $BUILD_PKGS" BUILD_PKGS="--no-install-recommends $BUILD_PKGS"
@ -635,6 +648,17 @@ EOM
if [ -n "$TARGET_ARCH" ]; then if [ -n "$TARGET_ARCH" ]; then
cat >> "$TEMP_SOURCES" <<EOM cat >> "$TEMP_SOURCES" <<EOM
deb [arch=$TARGET_ARCH] $TARGET_MIRROR RELEASE-updates $COMPONENTS deb [arch=$TARGET_ARCH] $TARGET_MIRROR RELEASE-updates $COMPONENTS
EOM
fi
fi
if [ -z "$SKIP_PROPOSED" ]; then
cat >> "$TEMP_SOURCES" <<EOM
deb ${MIRROR_ARCHS}${DEBOOTSTRAP_MIRROR} $SOURCES_PROPOSED_SUITE ${COMPONENTS}
deb-src ${DEBOOTSTRAP_MIRROR} $SOURCES_PROPOSED_SUITE ${COMPONENTS}
EOM
if [ -n "$TARGET_ARCH" ]; then
cat >> "$TEMP_SOURCES" <<EOM
deb [arch=$TARGET_ARCH] $TARGET_MIRROR RELEASE-proposed $COMPONENTS
EOM EOM
fi fi
fi fi