packaging: Updated parsing of the tasks
packaging: Updated parsing of the tasks

This patch replaces the execRemoteSql call with
the parseRemoteSqlCall, which allows easier parsing
of the output during tasks and compensation check.

Then the lenght of the output is tested and actual
list of tasks is returned if necessary.

Change-Id: I3b1f24ef5e83cf09c01c3ebbb00375098ddc52c1
Bug-Url: https://bugzilla.redhat.com/921578
Bug-Url: https://bugzilla.redhat.com/912426
Signed-off-by: Alex Lourie <9b6bd04ec8ec26165955e5c2df3f157a49c49dc0@redhat.com>
Signed-off-by: Sandro Bonazzola <fcb014d63786651910af5db2ecc5316c668188ef@redhat.com>

zerodengxinchao/ovirt-engine,yapengsong/ovirt-engine,OpenUniversity/ovirt-engine,yapengsong/ovirt-engine,yapengsong/ovirt-engine,yingyun001/ovirt-engine,zerodengxinchao/ovirt-engine,halober/ovirt-engine,eayun/ovirt-engine,OpenUniversity/ovirt-engine,walteryang47/ovirt-engine,OpenUniversity/ovirt-engine,OpenUniversity/ovirt-engine,walteryang47/ovirt-engine,zerodengxinchao/ovirt-engine,yapengsong/ovirt-engine,yingyun001/ovirt-engine,eayun/ovirt-engine,walteryang47/ovirt-engine,halober/ovirt-engine,walteryang47/ovirt-engine,eayun/ovirt-engine,yingyun001/ovirt-engine,yapengsong/ovirt-engine,yingyun001/ovirt-engine,yingyun001/ovirt-engine,zerodengxinchao/ovirt-engine,zerodengxinchao/ovirt-engine,halober/ovirt-engine,halober/ovirt-engine,walteryang47/ovirt-engine,eayun/ovirt-engine,OpenUniversity/ovirt-engine,eayun/ovirt-engine