Comment 4 for bug 710104

Revision history for this message
Loïc Minier (lool) wrote :

Yes, this is to copy it into the chroot (not sure how that relates?)

The problem is that the source path is hardcoded:
    # FIXME: This is an ugly hack to make sure we use the l-h-i script from
    # the current development tree when possible.
    here = os.path.dirname(__file__)
    linaro_hwpack_install_path = os.path.join(
        here, '..', 'linaro-hwpack-install')
    if not os.path.exists(linaro_hwpack_install_path):
        linaro_hwpack_install_path = '/usr/bin/linaro-hwpack-install'
    copy_file(linaro_hwpack_install_path,
              os.path.join(chroot_dir, 'usr', 'bin'))

(the chroot/usr/bin dest path is ok, usr/local/bin or custom dir might be more elegant though)