Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Íñigo Huguet
d91434575c pathfix.py: Don't fail on symbolic links
The script ignores symlinks for obvious reasons. Don't return an error
code in that case, though, as it makes the rpm builds fail if there
are symlinks in /usr/bin and `pathfix.py ... /usr/bin/*` is used
(e.g. via %pyproject_install from pyproject-rpm-macros).

(cherry picked from commit 5cdc4d85a7)
2025-07-21 15:31:01 +02:00
2 changed files with 4 additions and 2 deletions

View file

@ -56,7 +56,6 @@ def main():
if recursedown(arg): bad = 1
elif os.path.islink(arg):
err(arg + ': will not process symbolic links\n')
bad = 1
else:
if fix(arg): bad = 1
sys.exit(bad)

View file

@ -53,7 +53,7 @@ elseif posix.stat('macros.python-srpm') then
end
}
Version: %{__default_python3_version}
Release: 4%{?dist}
Release: 5%{?dist}
BuildArch: noarch
@ -163,6 +163,9 @@ grep -E '^#[^%%]*%%[^%%]' %{buildroot}%{rpmmacrodir}/macros.* && exit 1 || true
%changelog
* Mon Jul 21 2025 Íñigo Huguet <ihuguet@riseup.net> - 3.13-5
- pathfix.py: Don't fail on symbolic links
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.13-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild