https://bugzilla.novell.com/show_bug.cgi?id=307098#c22
--- Comment #22 from Ján Kupec
(In reply to comment #19 from Michal Marek)
Right, just one note in case it's not obvious: If you're going to use this feature, you need to defer opening of the local file to the first call of the CURLOPT_WRITEFUNCTION callback, otherwise you'd truncate it.
Actually libzypp downloads to a tmp file, which is then moved to the target destination, so this is not an issue.
It seems it is at last - the tmp file is 0 lenght if not modified and thus the target is overwritten with an empty file on copy. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.