Commit 23bbc537 authored by Daniel Bissani Furlin's avatar Daniel Bissani Furlin

Initial Commit / Issue SCRUM#140: Removed deb-src from CDRom repository

parent 9a8fb94a

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

File added
File added
File added
File added
File added
#! /bin/sh
set -e
PATH=/usr/sbin:/usr/bin:/sbin:/bin
# Only do this once.
if [ -z "$DEBCONF_REDIR" ]; then
exec <&4
export DEBIAN_HAS_FRONTEND=1
export DEBCONF_REDIR=1
fi
root="$1"
. "$root/usr/share/debconf/confmodule"
question="$2"
value="$3"
seen="$4"
[ "$seen" ] || seen=true
if ! db_set "$question" "$value"; then
db_register debian-installer/dummy "$question"
db_set "$question" "$value"
fi
db_fset "$question" seen "$seen"
exit 0
#! /bin/sh
set -e
export PATH=/usr/bin:/usr/sbin:/sbin:/bin
frontend=noninteractive
findcommandinroot() {
ROOT="$1/"
shift
while [ "$#" -ge 1 ]; do
P="$PATH"
while [ "$P" ]; do
D=${P%%:*}
P=${P#*:}
if [ "$D" = "$P" ]; then
P=
fi
if [ -z "$D" ]; then
D=.
fi
if [ -x "$ROOT$D/$1" ]; then
echo "$D/$1"
return 0
fi
done
shift
done
return 1
}
runcommandinroot() {
C=$(findcommandinroot "$1" "$2")
ROOT="$1"
shift
shift
[ -n "$C" ] && chroot "$ROOT" "$C" "$@"
}
root="$1"
package="$2"
version=$(runcommandinroot "$root" dpkg-query -W --showformat='${Version}' "$package" 2>/dev/null) || version=""
if [ -z "$version" ]; then
echo >&2 "$0: package '$package' is not installed"
exit 0
fi
unset DEBIAN_HAS_FRONTEND
unset DEBIAN_FRONTEND
unset DEBCONF_REDIR
runcommandinroot "$root" dpkg-reconfigure -fnoninteractive --no-reload "$package"
exit 0
#!/bin/sh
# Cloned-and-hacked from preseed/debconf-set-selections for casper.
set -e
OLDIFS="$IFS"
CR=$(echo -en "\r")
NL="
"
. /scripts/casper-functions
load_confmodule
# Returns the first field in the current line
first_field() {
echo "$line" | grep -q "[[:space:]]" || return 1
echo "$line" | sed -r 's/^([^[:space:]]*).*/\1/'
}
# Returns any fields after the first field in the current line
rest_line() {
if echo "$line" | grep -q "[[:space:]]"; then
echo "$line" | sed 's/^[^[:space:]]*[[:space:]]*//'
fi
}
SEEN=1
if [ "$1" = --unseen ]; then
SEEN=
shift
fi
file="$1"
parse_error() {
echo "Error parsing preconfiguration file: $*" >&2
exit 1
}
IFS="$NL"
multiline=""
# TODO: this squashes \r elsewhere in the line too
for line in $(grep -v '^#\|^[[:space:]]*$' "$file" | sed "s/$CR//g"); do
IFS="$OLDIFS"
line="$(echo "$line" | sed 's/^[[:space:]]*//')"
if echo "$line" | grep -q '\\$'; then
multiline="${multiline:+$multiline }$(echo "$line" | \
sed 's/[[:space:]]*\\$//')"
continue
elif [ -n "$multiline" ]; then
line="$multiline $line"
multiline=""
fi
echo "$line" >>/tmp/casper-preseed.log
package=""
var=""
type=""
val=""
if ! package="$(first_field)"; then
parse_error "Syntax error: unable to determine template owner"
fi
line="$(rest_line)"
if ! var="$(first_field)"; then
parse_error "Syntax error: unable to determine template name"
fi
line="$(rest_line)"
if ! type="$(first_field)"; then
# Allow for lines without separator before an empty value
if [ "$line" ]; then
type="$line"
else
parse_error "Syntax error: unable to determine template type"
fi
fi
line="$(rest_line)"
val="$line"
if [ "$type" = seen ]; then
# Set seen flag.
db_fset "$var" "$type" "$val" || true # how to handle this error?
else
if ! db_set "$var" "$val"; then
# Question does not exist yet.
db_register debian-installer/dummy "$var"
db_set "$var" "$val"
db_subst "$var" ID "$var"
fi
if [ "$SEEN" ]; then
db_fset "$var" seen true
fi
fi
done
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added