def _pkg(jail=None, chroot=None):
    ret = ['pkg']
    if jail:
        ret.extend(['-j', jail])
    elif chroot:
        ret.extend(['-c', chroot])
    return ret
convert domain name from hex like in RFC 1035, 3.1
dataset/ETHPy150Open saltstack/salt/salt/modules/pkgng.py/_pkg--crossover with--dataset/ETHPy150Open HenriWahl/dhcpy6d/dhcpy6/Helpers.py/ConvertBinary2DNS