Added a test for the vendor prefix for desktop entries

This commit is contained in:
Pierre Pronchery 2013-11-25 01:54:34 +01:00
parent c610c4a62b
commit ff2d044705

View File

@ -69,6 +69,15 @@ _deforaos_release()
return $?
fi
for i in data/*.desktop; do
[ ! -e "$i" ] && break
basename="${i#data/}"
if [ "$basename" = "${basename#deforaos-}" ]; then
_error "data/$basename has no vendor prefix"
return $?
fi
done
if test -f "po/$PACKAGE.pot"; then
_info "Checking the translations..."
$RM -- "po/$PACKAGE.pot" || return 2