Created an attachment (id=324747) --> (http://bugzilla.novell.com/attachment.cgi?id=324747) [details] patch to guard against empty .osc/_packages
This patch may be incomplete, it fixes only one place. This patch just adds robustness. It does not address the cause for the empty file.
Checked in into svn head, please extend. The patch itself is complete (there are no other places where the _packages file is read). So far I couldn't reproduce the problem and it seems that it only occurs from time to time. The best might be to raise an exception in "write_packages()" in case it tries to write an empty file so that we get a helpful traceback (although I've no idea what "an empty file" is, e.g. "self.pac_root == None"?
http://bugzilla.novell.com/show_bug.cgi?id=551147
User suse-tux@gmx.de added comment
http://bugzilla.novell.com/show_bug.cgi?id=551147#c3
--- Comment #3 from Marcus Hüwe