[packages/aircrack-ng] improve python shebang update

atler atler at pld-linux.org
Thu Nov 9 04:39:07 CET 2023


commit d18bfee05436ac90690d9ae45f0d0cfd249a00fd
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Nov 9 02:21:57 2023 +0100

    improve python shebang update

 aircrack-ng.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/aircrack-ng.spec b/aircrack-ng.spec
index 55d23b4..3921c6d 100644
--- a/aircrack-ng.spec
+++ b/aircrack-ng.spec
@@ -85,7 +85,7 @@ Pliki deweloperskie dla %{name}
 %prep
 %setup -q
 # Force python3 interpreter
-sed -i -e 's|#!%{_bindir}/env python|#!%{_bindir}/python3|g' scripts/versuck-ng/versuck-ng
+grep -r -l '#!/usr/bin/env python' scripts | xargs sed -i -e 's|#!/usr/bin/env python|#!%{__python3}|g'
 
 %build
 # GCC LTO objects must be "fat" to avoid assembly errors
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/aircrack-ng.git/commitdiff/ccd45a2f43b6cf7962dbf78fb60a5a1071f2675c



More information about the pld-cvs-commit mailing list