openSUSE/open-build-service — pull request #804 by Fishwaldo (2014-10-17 16:02:48+00:00)
Title: [backend] Fix parsing of Package files for debs

the Debmd.pm file incorrectly assumes that the Package files distributed by Deb based distributions will always terminate individual package descriptions with the Size: entry. This is not the case with raspbian for example, which does not seem to have any specific order to the fields associated with each package (a example can be seen here: http://archive.raspbian.org/raspbian/dists/wheezy/main/binary-armhf/Packages

This was breaking Download on Demand functionaility for some packages, as often the Filename: entry would appear after the Size: entry, and thus we would have no path entry for some packages. When the DOD was kicked off, the repserver "fetchdodbinary" function would return a empty path around line 208 which just blew everything up.

Change the Debmd.pm file to instead recongise the termination of Individual packages as a empty line, rather than size. This fixes it for me and DOD functionality works for Rasbian Wheezy distro's now.