File: 0005-Add-missing-shebang-to-Python-scripts.patch

package info (click to toggle)
mstflint 4.33.0%2B1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 56,212 kB
  • sloc: ansic: 224,755; cpp: 116,860; ada: 19,665; sh: 11,406; python: 8,388; makefile: 1,541
file content (36 lines) | stat: -rw-r--r-- 1,515 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 70b9ca91f264eb75177e18d9624beab685f55e58 Mon Sep 17 00:00:00 2001
From: Benjamin Drung <benjamin.drung@cloud.ionos.com>
Date: Mon, 21 Oct 2019 15:37:24 +0200
Subject: Add missing shebang to Python scripts

`mlxconfig/mstprivhost.py` and `small_utils/mstfwreset.py` are Python
scripts that are executable, but they lack a shebang.

https://github.com/Mellanox/mstflint/pull/219
Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
---
 mlxconfig/mstprivhost.py        | 2 ++
 resourcedump/mstresourcedump.py | 2 ++
 small_utils/mstfwreset.py       | 2 ++
 3 files changed, 6 insertions(+)

Index: mstflint/mlxconfig/mstprivhost.py
===================================================================
--- mstflint.orig/mlxconfig/mstprivhost.py	2022-08-14 22:58:23.864895708 +0300
+++ mstflint/mlxconfig/mstprivhost.py	2022-08-14 22:58:23.864895708 +0300
@@ -1,3 +1,5 @@
+#!/usr/bin/python3
+
 # Copyright (c) 2004-2021 Mellanox Technologies LTD. All rights reserved.
 # Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
 #
Index: mstflint/small_utils/mstfwreset.py
===================================================================
--- mstflint.orig/small_utils/mstfwreset.py	2022-08-14 22:58:23.864895708 +0300
+++ mstflint/small_utils/mstfwreset.py	2022-08-14 22:58:23.864895708 +0300
@@ -1,3 +1,5 @@
+#!/usr/bin/python3
+
 # Copyright (c) 2004-2010 Mellanox Technologies LTD. All rights reserved.
 # Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
 #