From 143027d9fcc678c56d86ce4cce6ca874c006a653 Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Tue, 6 Nov 2012 11:45:24 +0200 Subject: [PATCH] Enable the proposed pocket by default --- doc/mk-sbuild.1 | 8 ++++++++ mk-sbuild | 30 +++++++++++++++++++++++++++--- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/doc/mk-sbuild.1 b/doc/mk-sbuild.1 index 78249ef..5862876 100644 --- a/doc/mk-sbuild.1 +++ b/doc/mk-sbuild.1 @@ -32,6 +32,10 @@ Turn on script debugging. Do not include the \fB\-updates\fR pocket in the installed \fBsources.list\fR. .TP +.B \-\-skip\-proposed +Do not include the \fB\-proposed\fR pocket in the installed +\fBsources.list\fR. +.TP .B \-\-source\-template\fR=\fIFILE Use \fIFILE\fR as the \fBsources.list\fR template (defaults to \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 \fB\-\-skip\-updates\fR) .TP +.B SKIP_PROPOSED +Do not include the \fB\-proposed\fR pocket (same as +\fB\-\-skip\-proposed\fR) +.TP .B DEBOOTSTRAP_MIRROR Mirror location (same as \fB\-\-debootstrap-mirror\fR) .TP diff --git a/mk-sbuild b/mk-sbuild index c9762fc..23ac8a3 100755 --- a/mk-sbuild +++ b/mk-sbuild @@ -49,6 +49,7 @@ function usage() echo " --vg=VG use LVM snapshots, with group VG" echo " --debug Turn on script debugging" 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 " --debootstrap-mirror=URL Use URL as the debootstrap source" 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 " SCHROOT_CONF_SUFFIX Lines to append to schroot.conf entries" echo " SKIP_UPDATES Enable --skip-updates" + echo " SKIP_PROPOSED Enable --skip-proposed" echo " DEBOOTSTRAP_MIRROR Mirror location (same as --debootstrap-mirror)" echo " DEBOOTSTRAP_INCLUDE Included packages (same as --debootstrap-include)" echo " DEBOOTSTRAP_EXCLUDE Excluded packages (same as --debootstrap-exclude)" @@ -88,7 +90,7 @@ function usage() if [ -z "$1" ]; then usage 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" VG="" @@ -119,6 +121,10 @@ while :; do SKIP_UPDATES="1" shift ;; + --skip-proposed) + SKIP_PROPOSED="1" + shift + ;; --name) name="$2" shift 2 @@ -426,6 +432,9 @@ ubuntu) if [ -z "$COMPONENTS" ]; then COMPONENTS="main restricted universe multiverse" fi + if [ -z "$SOURCES_PROPOSED_SUITE" ]; then + SOURCES_PROPOSED_SUITE="RELEASE-proposed" + fi if [ -z "$SOURCES_SECURITY_SUITE" ]; then SOURCES_SECURITY_SUITE="RELEASE-security" fi @@ -475,6 +484,9 @@ debian) if [ -z "$COMPONENTS" ]; then COMPONENTS="main non-free contrib" fi + if [ -z "$SOURCES_PROPOSED_SUITE" ]; then + SOURCES_PROPOSED_SUITE="RELEASE-proposed-updates" + fi # Debian only performs security updates SKIP_UPDATES=1 if [ -z "$SOURCES_SECURITY_SUITE" ]; then @@ -487,9 +499,10 @@ debian) TARGET_MIRROR="$DEBOOTSTRAP_MIRROR" TARGET_SOURCES_SECURITY_URL="$SOURCES_SECURITY_URL" fi - # Unstable (aka "sid") does not have a security repository - if [ "$RELEASE" = 'unstable' ] || [ "$RELEASE" = 'sid' ]; then + # Unstable and Experimental do not have security or proposed repositories + if [ "$RELEASE" = 'unstable' ] || [ "$RELEASE" = 'sid' ] || [ "$RELEASE" = 'experimental' ]; then SKIP_SECURITY=1 + SKIP_PROPOSED=1 fi # Keep the chroot as minimal as possible BUILD_PKGS="--no-install-recommends $BUILD_PKGS" @@ -635,6 +648,17 @@ EOM if [ -n "$TARGET_ARCH" ]; then cat >> "$TEMP_SOURCES" <> "$TEMP_SOURCES" <> "$TEMP_SOURCES" <