Commit a8b68f8e authored by Philipp Kern's avatar Philipp Kern Committed by Philipp Kern

Allow codenames in base-installer/debootstrap_script.

Fix warning given for absolute path "debootstrap_script" values.
Update "debootstrap_script" logic to allow bareword script names
like "sid" as well as absolute paths. (Closes: #742671)

Patch by Tianon Gravi <admwiggin@gmail.com>
parent 5457d744
......@@ -23,7 +23,9 @@ EXCLUDES="$(printf '%s' "$RET" | sed 's/ /,/g')" || true
# Check if a specific script should be used
db_get base-installer/debootstrap_script
DEBOOTSTRAP_SCRIPT="$RET"
if [ ! -e /usr/share/debootstrap/scripts/"$DEBOOTSTRAP_SCRIPT" ]; then
if [ -e /usr/share/debootstrap/scripts/"$DEBOOTSTRAP_SCRIPT" ]; then
DEBOOTSTRAP_SCRIPT=/usr/share/debootstrap/scripts/"$DEBOOTSTRAP_SCRIPT"
elif [ ! -e "$DEBOOTSTRAP_SCRIPT" ]; then
error "debootstrap script '$DEBOOTSTRAP_SCRIPT' doesn't exist"
fi
......
base-installer (1.166) UNRELEASED; urgency=medium
[ Tianon Gravi ]
* Fix warning given for absolute path "debootstrap_script" values.
* Update "debootstrap_script" logic to allow bareword script names
like "sid" as well as absolute paths. (Closes: #742671)
-- Philipp Kern <pkern@debian.org> Thu, 27 Oct 2016 21:06:09 +0200
base-installer (1.165) unstable; urgency=medium
[ Updated translations ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment