- if self[:content] and self[:source]
- fail('The properties content and source are mutually exclusive.')
+ if self[:refresh] == true && self[:ensure] == :absent
+ raise(_('ensure => absent and refresh => true are mutually exclusive'))
+ end
+ if self[:content] && self[:source]
+ raise(_('The properties content and source are mutually exclusive.'))
+ end
+ if self[:id].length < 40
+ warning(_('The id should be a full fingerprint (40 characters), see README.'))