From 2858d7fb625e7f0a0105c719335d0750dd5e6bd7 Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Tue, 26 Sep 2017 22:39:09 -0400 Subject: [PATCH] Print the documentation files which could not be restored by unminimize --- live-build/auto/build | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/live-build/auto/build b/live-build/auto/build index 63ca2699..d3afccc1 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -99,8 +99,13 @@ if [ -f /etc/dpkg/dpkg.cfg.d/excludes ] || [ -f /etc/dpkg/dpkg.cfg.d/excludes.dp dpkg --verify --verify-format rpm | awk '/..5...... \/usr\/share\/doc/ {print $2}' | sed 's|/[^/]*$||' | sort |uniq \ | xargs dpkg -S | sed 's|, |\n|g;s|: [^:]*$||' | uniq | DEBIAN_FRONTEND=noninteractive xargs apt-get install --reinstall -y if dpkg --verify --verify-format rpm | awk '/..5...... \/usr\/share\/doc/ {exit 1}'; then - echo "Documentation has been restored successfully." - rm /etc/dpkg/dpkg.cfg.d/excludes.dpkg-tmp + echo "Documentation has been restored successfully." + rm /etc/dpkg/dpkg.cfg.d/excludes.dpkg-tmp + else + echo "There are still files missing from /usr/share/doc/:" + dpkg --verify --verify-format rpm | awk '/..5...... \/usr\/share\/doc/ {print " " $2}' + echo "You may want to try running this script again or you can remove" + echo "/etc/dpkg/dpkg.cfg.d/excludes.dpkg-tmp and restore the files manually." fi fi