From 9fe77b84437fd26211d5dda7b6ccb0b64040677e Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 3 Sep 2017 10:50:15 +0200 Subject: find-broken-perl-packages.sh: Detect missing modules Signed-off-by: Florian Pritz --- find-broken-perl-packages.sh | 3 +++ 1 file changed, 3 insertions(+) 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 } -- cgit v1.2.3-24-g4f1b