Skip to content

Commit

Permalink
Fix shebang for a python scripts in test dir
Browse files Browse the repository at this point in the history
Introduced in https://review.opendev.org/533028.

Change-Id: If74b611ffd13d11c308459ab935b45ad94aff14a
  • Loading branch information
karelyatin committed Mar 4, 2021
1 parent 0465021 commit cb45d85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openstack-swift.spec
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: git-core
BuildRequires: /usr/bin/pathfix.py

BuildRequires: systemd
Obsoletes: openstack-swift-auth <= 1.4.0
Expand Down Expand Up @@ -334,6 +335,9 @@ rm -f %{buildroot}%{python3_sitelib}/swift/locale/*/LC_*/swift*po
rm -f %{buildroot}%{python3_sitelib}/swift/locale/*pot
mv %{buildroot}%{python3_sitelib}/swift/locale %{buildroot}%{_datadir}/locale

# Fix shebangs for Python 3-only distros
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{python3_sitelib}/swift/test

# Find language files
%find_lang swift --all-name

Expand Down

0 comments on commit cb45d85

Please sign in to comment.