Skip to content

Commit

Permalink
restrict shebangs removal
Browse files Browse the repository at this point in the history
change only files rpmlint complained about,
otherwise tempest scripts get broken!

Change-Id: I7aa8036aacb22c028cca58d6114ccdf1ea7bee59
  • Loading branch information
apevec committed May 13, 2015
1 parent a7ef65e commit 2233d08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openstack-tempest.spec
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ other specific tests useful in validating an OpenStack deployment.
%prep
%setup -q -n tempest-%{upstream_version}
# remove shebangs and fix permissions
find -type f -a \( -name '*.py' -o -name 'py.*' \) \
-exec sed -i '1{/^#!/d}' {} \; \
-exec chmod u=rw,go=r {} \;
RPMLINT_OFFENDERS="tempest/cmd/cleanup_service.py tempest/common/api_discovery.py tempest/stress/cleanup.py"
sed -i '1{/^#!/d}' $RPMLINT_OFFENDERS
chmod u=rw,go=r $RPMLINT_OFFENDERS

%install
mkdir -p %{buildroot}%{_datarootdir}/%{name}-%{version}
Expand Down

0 comments on commit 2233d08

Please sign in to comment.