summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-update-tlnet
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-09-13 18:20:37 +0000
committerKarl Berry <karl@freefriends.org>2009-09-13 18:20:37 +0000
commit325d9b4f35ba6602fc65ef48c0c5903ce040d662 (patch)
treecaf83da199b10a27ad1547477fba42bd7d862286 /Master/tlpkg/bin/tl-update-tlnet
parent0cbce46e95fac68cb0d058729db89dd195d24638 (diff)
tlnet: test everything before moving; images: build tar files
git-svn-id: svn://tug.org/texlive/trunk@15262 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/tl-update-tlnet')
-rwxr-xr-xMaster/tlpkg/bin/tl-update-tlnet26
1 files changed, 19 insertions, 7 deletions
diff --git a/Master/tlpkg/bin/tl-update-tlnet b/Master/tlpkg/bin/tl-update-tlnet
index ae7858591b4..b538ac90a2a 100755
--- a/Master/tlpkg/bin/tl-update-tlnet
+++ b/Master/tlpkg/bin/tl-update-tlnet
@@ -163,14 +163,26 @@ if test -n "$unexpected_output"; then
echo "$0: Test installation failed." >&2
echo "$0: Here is the unexpected output:" >&2
echo "$unexpected_output" >&2
+fi
-else
- # install worked, how about tlmgr?
- tlmgr=$tltryinst/$yyyy/bin/*/tlmgr
- if $tlmgr update --list; then :; else
- failure=true
- echo "$0: tlmgr update --list failed ($tlmgr)." >&2
- fi
+# more consistency checks.
+if test $failure = false; then
+ for cmd in \
+ "$tltryinst/$yyyy/bin/*/tlmgr update --list" \
+ "$Master/tlpkg/bin/check-tlnet-consistency --location=$tlnet_dir" \
+ "$Master/tlpkg/bin/tl-compare-tlpdbs $tlnet_dir/tlpkg/texlive.tlpdb" \
+ ; do
+ basecmd=`basename $cmd`
+ echo "$0: Running $basecmd ($cmd)"
+ outfile=/tmp/tlcheck.`echo "$cmd" | awk '{print $1}'`
+ if $cmd >$outfile 2>&1; then :; else
+ echo "$0: $basecmd failed ($cmd):" >&2
+ sed 8q $outfile >&2
+ echo "... see $outfile for full output ..." >&2
+ echo >&2
+ failure=true
+ fi
+ done
fi
if $failure; then