Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ufw: fix python shebang #344

Closed
wants to merge 1 commit into from
Closed

ufw: fix python shebang #344

wants to merge 1 commit into from

Commits on Apr 26, 2021

  1. ufw: fix python shebang

    [meta-openembedded ticket openembedded#327] --
    openembedded#327
    
    The python version in the shebang at the begining of the ufw script
    should be the same one as the version the setup.py script was called
    with.
    
    The fix in patch "setup-only-make-one-reference-to-env.patch"
    depends on sys.executable returning "/usr/bin/env pythonX". However,
    it returns "/usr/bin/pythonX". Using sys.version_info we can get the
    major version of the python used to called the script and append
    that to the shebang line so it works as intended.
    
    Signed-off-by: Silcet <camorga1@gmail.com>
    Silcet committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    e8d3877 View commit details
    Browse the repository at this point in the history