buffers must be handled properly for package distributions
fixed bug in return code for distribution fetching