Cherry pick the fix to use pkgrevno comparisons from charmhelpers, from next
Merging stable-pkgrevno-from-charmhelpers [a=gnuoy] [r=tribaal,fcorrea]