summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-09-03 10:50:15 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-09-03 10:50:15 +0200
commit9fe77b84437fd26211d5dda7b6ccb0b64040677e (patch)
tree2b40bfa6827798e153a73b82e2efb85c058042f4
parentd41c367b6d5e2b75e6b7a3521da8d20b4d57ad6f (diff)
downloadbin-9fe77b84437fd26211d5dda7b6ccb0b64040677e.tar.gz
bin-9fe77b84437fd26211d5dda7b6ccb0b64040677e.tar.xz
find-broken-perl-packages.sh: Detect missing modules
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xfind-broken-perl-packages.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/find-broken-perl-packages.sh b/find-broken-perl-packages.sh
index faa2bb6..edc7a55 100755
--- a/find-broken-perl-packages.sh
+++ b/find-broken-perl-packages.sh
@@ -31,6 +31,9 @@ testmodule() {
elif grep -q "loadable library and perl binaries are mismatched" <<< $output; then
echo $file >> "$tmpdir/${prefix}raw.txt"
echo "$module" >> "$tmpdir/${prefix}perl-modules.txt"
+ elif grep -q "you may need to install the .* module" <<< $output; then
+ echo $file >> "$tmpdir/${prefix}raw.txt"
+ sed -n 's|.*you may need to install the \(.*\) module.*|\1|p' <<< $output >> "$tmpdir/${prefix}perl-modules.txt"
fi
}