summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-update-auto
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-01-24 00:38:34 +0000
committerKarl Berry <karl@freefriends.org>2011-01-24 00:38:34 +0000
commite2a7756df6a69b1285382d47d185837b6a538e7f (patch)
tree08802c4780a387617a187ef868bd2d9d0a32c04d /Master/tlpkg/bin/tl-update-auto
parente3a07c6b3c77cb83eb47a68450217d96bd0e7b40 (diff)
try to check for empty result of tl-update-keywords.
git-svn-id: svn://tug.org/texlive/trunk@21160 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/tl-update-auto')
-rwxr-xr-xMaster/tlpkg/bin/tl-update-auto5
1 files changed, 4 insertions, 1 deletions
diff --git a/Master/tlpkg/bin/tl-update-auto b/Master/tlpkg/bin/tl-update-auto
index 600440ae842..68eb87a50f7 100755
--- a/Master/tlpkg/bin/tl-update-auto
+++ b/Master/tlpkg/bin/tl-update-auto
@@ -234,7 +234,10 @@ $mydir/tl-update-keywords -input $cat_dump | tee $temp.keywords \
#
keywordfile=texmf/scripts/texlive/var/texcatalogue.keywords
grep -v '# Generated' $keywordfile >$temp.keywords.cur
-if $diff $temp.keywords.cur $temp.keywords.new >$temp.keywords.diff; then
+#
+if test ! -s $temp.keywords.new; then
+ $verbose " $temp.keywords.new empty, skipping."
+elif $diff $temp.keywords.cur $temp.keywords.new >$temp.keywords.diff; then
$verbose " $keywordfile ok."
else
$chicken $cp $temp.keywords.new $keywordfile