File: 50cdrom

package info (click to toggle)
apt-setup 1%3A0.20etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 956 kB
  • ctags: 8
  • sloc: sh: 479; makefile: 26
file content (29 lines) | stat: -rwxr-xr-x 503 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
set -e

. /usr/share/debconf/confmodule

file="$1"

logoutput=""
if [ "$CATCHLOG" ]; then
	logoutput="log-output -t apt-setup"
fi

chroot=
if [ "$ROOT" ]; then
	chroot=chroot
fi

tmp=$($chroot $ROOT tempfile)
# apt-cdrom can be interactive, avoid that
$logoutput $chroot $ROOT apt-cdrom add \
	-o Dir::Etc::SourceList=$tmp \
	</dev/null
cat $ROOT$tmp >> $file
rm -f $ROOT$tmp $ROOT$tmp~

if ! apt-setup-verify $file; then
	db_input critical apt-setup/cdrom/failed || true
	db_go || exit 10
fi