test01_pkgquality: when a file is detected as problematic do add its mime type

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-08-23 19:45:17 +02:00
parent 616d130d55
commit 82b35315ec
3 changed files with 11 additions and 0 deletions

View File

@ -4,6 +4,10 @@ Changes in version 1.12.4
* lib/libapse.lib - Davide Madrisan:
Coding style fixes.
+ improvement
* test/test01_pkgquality - Davide Madrisan:
When a file is detected as problematic do add its mime type.
-------------------------------------------------------------------------------
Changes in version 1.12.3

View File

@ -67,6 +67,9 @@ msgstr "ignorato"
msgid "checking for \\`$BUILDDIR' (%_builddir) strings"
msgstr "ricerca della stringa \\`$BUILDDIR' (%_builddir)"
msgid "mime type:"
msgstr "tipo mime:"
msgid "checking for suspicious plugins in devel packages"
msgstr "controllo di plugin sospetti nei pacchetti devel"

View File

@ -138,6 +138,8 @@ $"checking for \`$SPEC_BUILDROOT' (%buildroot) strings"
notify.warning "${NOTE}${pck##*/}${NORM}"
notify.note "\
${NOTE}$(echo $f | sed "s,$tmpextractdir/$i,," )${NORM}"
notify.note "\
"$"mime type: ""${NOTE}$(file --brief --mime --uncompress $f)${NORM}"
notify.note "$(\
strings -a $f | grep "^$SPEC_BUILDROOT" | sort -bu | \
sed "s,$SPEC_BUILDROOT\(.*\), - [%buildroot]\1,")"
@ -166,6 +168,8 @@ $"checking for \`$BUILDDIR' (%_builddir) strings""${NORM}... "
notify.warning "${NOTE}${pck##*/}${NORM}"
notify.note "\
${NOTE}$(echo $f | sed "s,$tmpextractdir/$i,," )${NORM}"
notify.note "\
"$"mime type: ""${NOTE}$(file --brief --mime --uncompress $f)${NORM}"
notify.note "$(\
strings -a $f | grep "$BUILDDIR" | sort -bu | \
sed "s,$BUILDDIR,[%_builddir],g;s,.*, - &,")"