Some installed Python scripts need to be executable
During mhrlpr fixmsg
at least these two scripts needs to be marked as executable (chmod +x
) otherwise it fails.
/usr/lib/python3.12/site-packages/mrhlpr/data/msg_filter_add_commit_id.py
and /usr/lib/python3.12/site-packages/mrhlpr/data/msg_filter_add_label.py
$ mrhlpr -v fixmsg -b
DEBUG:root:+ git remote get-url origin
DEBUG:root:https://gitlab.com/postmarketOS/pmaports.git
DEBUG:root:+ git rev-parse --abbrev-ref HEAD
DEBUG:root:mrhlpr/5321
DEBUG:root:+ git remote get-url origin
DEBUG:root:https://gitlab.com/postmarketOS/pmaports.git
DEBUG:root:Download https://gitlab.com/api/v4/projects/postmarketOS%2Fpmaports/merge_requests/5321 (cached)
DEBUG:root: -> /home/luca/.cache/mrhlpr/http/026b29c0d45d354edf37485ff534a052454a1e1b511e8de265d5805a13c51957
DEBUG:root:Download https://gitlab.com/api/v4/projects/8065375 (cached)
DEBUG:root: -> /home/luca/.cache/mrhlpr/http/91f7a12a72046947e60e6a4d7fb47fc52ad4867e4f292188ea13cdac8da16546
DEBUG:root:+ git rev-parse --show-toplevel
DEBUG:root:/home/luca/dev/postmarketOS/aports1
Appending ' (MR 5321)' to commits and signing them...
DEBUG:root:+ git filter-branch -f --msg-filter /usr/lib/python3.12/site-packages/mrhlpr/data/msg_filter_add_commit_id.py --commit-filter git commit-tree -S "$@" origin/master..HEAD
Rewrite 87d4ed96a45a03b62eebfa704eaa43e18248796f (1/1) (0 seconds passed, remaining 0 predicted) /usr/lib/git-core/git-filter-branch: linio 468: /usr/lib/python3.12/site-packages/mrhlpr/data/msg_filter_add_commit_id.py: Mankas permeso
msg filter failed: /usr/lib/python3.12/site-packages/mrhlpr/data/msg_filter_add_commit_id.py
ERROR: git filter-branch failed. Do you have git commit signing set up properly? (Run with -v to see the failing command.)
("Mankas permeso" is Permission denied error if you try to run a Python script directly without chmod +x)