The xorg package hooks contain something similar to what I had in mind e.g.:
version_signature = report.get('ProcVersionSignature', '')
if version_signature and not version_signature.startswith('Ubuntu '): report['UnreportableReason'] = 'The running kernel is not an Ubuntu kernel: %s' %version_signature
return False
The xorg package hooks contain something similar to what I had in mind e.g.:
version_ signature = report. get('ProcVersio nSignature' , '') signature. startswith( 'Ubuntu '):
report[ 'UnreportableRe ason'] = 'The running kernel is not an Ubuntu kernel: %s' %version_signature
if version_signature and not version_
return False