contrib: cgi: remove bundle only on error in HTTP PUT path
contrib: cgi: remove bundle only on error in HTTP PUT path

Removing the bundle due to errors in HTTP GET status/progress methods
does not make sense. This might lead to errors like..

  mount: /tmp/bundle.raucb: failed to setup loop device: No such file or
  directory

..caused by a deleted bundle just between finished upload and started
rauc install. Fix this by skipping bundle deletion on errors other than
in HTTP PUT.

Signed-off-by: Bastian Stender <591dbcb2d48f405f0cb405f5aa6519451f40ad30@pengutronix.de>

jluebbe/rauc,ejoerns/rauc,rauc/rauc,ejoerns/rauc,jluebbe/rauc,ejoerns/rauc,jluebbe/rauc,rauc/rauc,rauc/rauc