mk-sbuild-lv: skip security repo for Debian unstable, thanks to

Ryan Niebur (LP: #371569).
This commit is contained in:
Kees Cook 2009-05-04 09:16:24 -07:00
parent 23b776e222
commit e4da9b9daf
2 changed files with 14 additions and 1 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
ubuntu-dev-tools (0.74) UNRELEASED; urgency=low
* mk-sbuild-lv: skip security repo for Debian unstable, thanks to
Ryan Niebur (LP: #371569).
-- Kees Cook <kees@ubuntu.com> Mon, 04 May 2009 09:11:42 -0700
ubuntu-dev-tools (0.73) karmic; urgency=low
[ Siegfried-Angel Gevatter Pujals ]

View File

@ -258,6 +258,10 @@ debian)
if [ -z "$SOURCES_SECURITY_URL" ]; then
SOURCES_SECURITY_URL="http://security.debian.org/"
fi
# Unstable (aka "sid") does not have a security repository
if [ "$RELEASE" = 'unstable' ] || [ "$RELEASE" = 'sid' ]; then
SKIP_SECURITY=1
fi
;;
*)
echo "Unknown --distro '$DISTRO': aborting" >&2
@ -291,10 +295,12 @@ deb ${DEBOOTSTRAP_MIRROR} RELEASE-updates ${COMPONENTS}
deb-src ${DEBOOTSTRAP_MIRROR} RELEASE-updates ${COMPONENTS}
EOM
fi
cat >> "$TEMP_SOURCES" <<EOM
if [ -z "$SKIP_SECURITY" ]; then
cat >> "$TEMP_SOURCES" <<EOM
deb ${SOURCES_SECURITY_URL} ${SOURCES_SECURITY_SUITE} ${COMPONENTS}
deb-src ${SOURCES_SECURITY_URL} ${SOURCES_SECURITY_SUITE} ${COMPONENTS}
EOM
fi
fi
cat "$TEMP_SOURCES" | sed -e "s|RELEASE|$RELEASE|g" | \
sudo bash -c "cat > $MNT/etc/apt/sources.list"