Fix shebang interperter for dependency generation

This address the following error from rpmlint:
[    7s] worker-utils.noarch: E: env-script-interpreter (Badness: 9) /usr/bin/topology.py /usr/bin/env python
[    7s] This script uses 'env' as an interpreter. For the rpm runtime dependency
[    7s] detection to work, the shebang #!/usr/bin/env python  needs to be patched into
[    7s] #!/usr/bin/python  otherwise the package dependency generator merely adds a
[    7s] dependency on /usr/bin/env rather than the actual interpreter /usr/bin/python.
[    7s] Alternatively, if the file should not be executed, then ensure that it is not
[    7s] marked as executable or don't install it in a path that is reserved for
[    7s] executables.

Story: 2006564
Task: 36742
Change-Id: Ib788065d542573d5d7b239f206011d3d5c92ff41
Signed-off-by: Saul Wold <sgw@linux.intel.com>
This commit is contained in:
Saul Wold 2019-09-20 08:41:15 -07:00
parent 52d534b3a1
commit 08dc159ff4

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python
################################################################################
# Copyright (c) 2013 Wind River Systems, Inc.
#