Package: b4 Version: 0.16.0-1 Severity: normal Tags: patch X-Debbugs-Cc: [email protected]
Debian uses pybuid which relocates misc scripts folder and the upstream patch changes and it fails to be searched. This change makes vim and emacs plugins searcheable in pybuild path. --- a/src/tests/test_editor_plugins.py +++ b/src/tests/test_editor_plugins.py @@ -44,7 +44,18 @@ from b4.review._review import ( # Locations of the plugin files under test. # -------------------------------------------------------------------------- -_MISC = pathlib.Path(__file__).resolve().parents[2] / 'misc' +# Resolve 'misc' relative to the repository root. +# We walk up from this file until we find a 'misc' directory. +def _find_misc_dir() -> pathlib.Path: + base = pathlib.Path(__file__).resolve() + for parent in [base] + list(base.parents): + misc = parent / 'misc' + if misc.is_dir(): + return misc + # Fallback: assume parents[2] is repo root + return pathlib.Path(__file__).resolve().parents[2] / 'misc' + +_MISC = _find_misc_dir() _VIM_RTP = _MISC / 'vim' _VIM_FTPLUGIN = _VIM_RTP / 'ftplugin' / 'b4review.vim' _EL_MODE = _MISC / 'emacs' / 'b4-review-mode.el' -- System Information: Debian Release: forky/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 7.1.8+deb14.1-amd64 (SMP w/8 CPU threads; PREEMPT) Kernel taint flags: TAINT_CPU_OUT_OF_SPEC, TAINT_USER Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=ca_ES:ca Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages b4 depends on: ii git-filter-repo 2.47.0-3 ii python3 3.14.6-1 ii python3-dkim 1.1.8-3 ii python3-dnspython 2.8.0-5 ii python3-ezgb 0.2.0-1 ii python3-liblore 0.8.2-1 ii python3-patatt 0.8.0-1 ii python3-pygit2 1.19.3-1 ii python3-requests 2.34.2-1 b4 recommends no packages. b4 suggests no packages. -- no debconf information

