From c7ee61616a3915f29dc5dd038a9cb58d0566712e Mon Sep 17 00:00:00 2001 From: Paul Barker Date: Mon, 30 Aug 2021 12:37:50 +0200 Subject: [PATCH] Drop unnecessary shebang lines When packaging kas for OpenSUSE, rpmlint threw the following warnings: RPMLINT report: =============== kas.noarch: W: non-executable-script /usr/lib/python3.6/site-packages/kas/__main__.py 644 /usr/bin/env python3 kas.noarch: W: non-executable-script /usr/lib/python3.6/site-packages/kas/kas.py 644 /usr/bin/env python3 This text file contains a shebang or is located in a path dedicated for executables, but lacks the executable bits and cannot thus be executed. If the file is meant to be an executable script, add the executable bits, otherwise remove the shebang or move the file elsewhere. 2 packages and 0 specfiles checked; 0 errors, 2 warnings. The Python files inside the kas module don't need shebang lines as they are not executed directly so we can just remove them. Signed-off-by: Paul Barker Signed-off-by: Jan Kiszka --- kas/__main__.py | 2 -- kas/kas.py | 2 -- 2 files changed, 4 deletions(-) diff --git a/kas/__main__.py b/kas/__main__.py index d729ab5..0c4b68e 100644 --- a/kas/__main__.py +++ b/kas/__main__.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # kas - setup tool for bitbake based projects # # Copyright (c) Siemens AG, 2017-2018 diff --git a/kas/kas.py b/kas/kas.py index 272c509..7316efa 100644 --- a/kas/kas.py +++ b/kas/kas.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # kas - setup tool for bitbake based projects # # Copyright (c) Siemens AG, 2017-2018