View | Details | Raw Unified | Return to bug 7626
Collapse All | Expand All

(-)/usr/bin/sisyphus_check (-2 / +3 lines)
Lines 230-248 check_buildtime() Link Here
230
}
230
}
231
231
232
# check for printable summary, description, etc.
232
# check for printable summary, description, etc.
233
export no_check_printable=
233
export no_check_printable=
234
check_printable()
234
check_printable()
235
{
235
{
236
	[ -z "$no_check_printable" ] || return 0
236
	[ -z "$no_check_printable" ] || return 0
237
	local f="$1" && shift || return 1
237
	local f="$1" && shift || return 1
238
	local text
238
	local text changelog
239
239
240
	text="$rpm_name $rpm_version $rpm_release $rpm_group $rpm_packager $rpm_license $rpm_summary $rpm_description"
240
	changelog="$(rpmquery -p --changelog -- "$f")"
241
	text="$rpm_name $rpm_version $rpm_release $rpm_group $rpm_packager $rpm_license $rpm_summary $rpm_description $changelog"
241
242
242
	if [ -n "$(printf %s "$text" |LC_ALL=C tr -d '[:print:][:space:]')" ]; then
243
	if [ -n "$(printf %s "$text" |LC_ALL=C tr -d '[:print:][:space:]')" ]; then
243
		FileError "unprintable package information: $(printf %s "$text" |LC_ALL=C tr -d '[:print:][:space:]')" "$f"
244
		FileError "unprintable package information: $(printf %s "$text" |LC_ALL=C tr -d '[:print:][:space:]')" "$f"
244
		return 1
245
		return 1
245
	fi
246
	fi
246
	return 0
247
	return 0
247
}
248
}
248
249

Return to bug 7626