summaryrefslogtreecommitdiffstats
path: root/find-broken-perl-packages.sh
diff options
context:
space:
mode:
Diffstat (limited to 'find-broken-perl-packages.sh')
-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
}