[backend] Fix empty packages.gz test 69/197869/1 release-20190125 submit/devel/20190730.075427 submit/trunk/20190927.012743
authorRiku Voipio <riku.voipio@linaro.org>
Tue, 29 Aug 2017 08:02:42 +0000 (11:02 +0300)
committerYonghee Han <onstudy@samsung.com>
Thu, 17 Jan 2019 00:58:11 +0000 (09:58 +0900)
commitbe57d19ae0bd21f2de48dc3e54c1f78aa0013de7
tree7bd190116d8c3fefa503c0ed43467c74947688e1
parentf4119b6fdb054fc7782874c7edebcd2cbd7a95d6
[backend] Fix empty packages.gz test

in case no packages are produced, dpkg-scanpackages outputs nothing,
causing and empty Packages.new. test against non-zero filesize, and
remove Packages.new if it exists.

Change-Id: I97061e4c8a5bf12c708dae56efba77ad1940aae0
src/backend/bs_publish