Handle Errors when reading/writing SPEC file.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
Handle error when creating XML for pkgdiff

Signed-off-by: Tomas Hozza <thozza@redhat.com>
Patch: Use StringIO, not temporary files; remove run_process method, use ProcessHelper directly

Signed-off-by: Tomas Hozza <thozza@redhat.com>
Remove get_temporary_name, remove_temporary_name, get_content_file, write_to_file

Use StringIO instead of temporary files on disc

Read/write files directly and handle exceptions there. It is also more descriptive if it is obvious in the code if list of lines or one big string are read/written, instead of cryptive methods that do something automagically

Signed-off-by: Tomas Hozza <thozza@redhat.com>
Fix copy-paste error

Signed-off-by: Tomas Hozza <thozza@redhat.com>
Logging modifications

Rename the output tool logger so it does not logg everything twice

change the debug and results log names to be more descriptive

Signed-off-by: Tomas Hozza <thozza@redhat.com>
Fix output tool test

Signed-off-by: Tomas Hozza <thozza@redhat.com>
Modifications, fixes, tests, comments for SpecFile

SpecFile removed all comments from rebased spec file. This is now fixed

Renamed some methods and variables to better express the purpose

Added some TODO comments with questions and thoughts

Signed-off-by: Tomas Hozza <thozza@redhat.com>