1) do not write it if there is nothing 2) cleaning buildroot is unnecessary since EL5
rebased onto 26c899c5061393eef51c0dcee766283e21b0dc1b
Pull-Request has been merged by jhutar
Thank you!
1) do not write it if there is nothing
2) cleaning buildroot is unnecessary since EL5