Sync charmhelpers
Cherry pick the fix to use pkgrevno comparisons from charmhelpers, from next
Cherry pick the fix to use pkgrevno comparisons from charmhelpers, from next [a=gnuoy] [r=davidpbritton,tribaal]