This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: adjusted debuginfo test script -- pack-debuginfo.sh


Hmm, the "file" output details must have changed since I did that.
I think I only ran it on F-10 before.

Does this change (instead of your patch) fix it?


Thanks,
Roland


diff --git a/pack-debuginfo.sh b/pack-debuginfo.sh
index 21432f2..0000000 100755  
--- a/pack-debuginfo.sh
+++ b/pack-debuginfo.sh
@@ -29,7 +29,7 @@ do_collect()
   find usr/lib* -type f -print0 | xargs --no-run-if-empty -0 file -N -F ' ' -i |
   awk -v dir="$dir" -v src="$size" '
 BEGIN { e = d = r = u = a = 0 }
-NF > 2 && $2 ~ "application/x-" { sub(/, .*$/, "") }
+NF > 2 && $2 ~ "application/x-" { sub(/[;,] .*$/, "") }
 NF == 2 && $2 == "application/x-executable" { print $1 > "exec" ; ++e; next }
 NF == 2 && $2 == "application/x-sharedlib" { print $1 > "dyn" ; ++d; next }
 NF == 2 && $2 == "application/x-object" { print $1 > "rel" ; ++r; next }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]