Base64-encode %policy files to ensure it can be presented as strings
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 26 Jun 2009 09:31:57 +0000 (12:31 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 26 Jun 2009 09:31:57 +0000 (12:31 +0300)
commitedbc9ead961fcbeb1733b47405041b653b521bcb
treeae8895429ad08b754b55545456622070c9cbd3a2
parent8c5437b37914bd098a9f13366e53aba5a1c9cf15
Base64-encode %policy files to ensure it can be presented as strings
- RPMTAG_POLICIES is a string array but there's no guarantee that
  something marked %policy is a plaintext file that can be represented
  as \0-terminated string, base64-encoding them fixes that. Baby steps
  towards making %policy remotely usable, related to RhBug:505066.
- Also remove unnecessary failure code setting, processMetadataFile()
  assumes failure already, and dont try to insert NULL strings in case
  b64encode() or pgpArmorWrap() fails
build/files.c