File: python-path.patch

package info (click to toggle)
createrepo-c 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,632 kB
  • sloc: ansic: 31,242; python: 4,868; xml: 2,669; sh: 363; makefile: 26; perl: 7
file content (69 lines) | stat: -rw-r--r-- 1,621 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Description: Use /usr/bin/python3 for examples and tests.
Forwarded: not-needed
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2021-02-12

--- a/examples/python/contenthash_calculation.py
+++ b/examples/python/contenthash_calculation.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 
 import sys
 import os
--- a/examples/python/manual_repodata_parsing.py
+++ b/examples/python/manual_repodata_parsing.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 
 import os
 import os.path
--- a/examples/python/repomd_parsing.py
+++ b/examples/python/repomd_parsing.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 
 import os
 import os.path
--- a/examples/python/manual_createrepo.py
+++ b/examples/python/manual_createrepo.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 
 import os
 import sys
--- a/examples/python/simple_modifyrepo.py
+++ b/examples/python/simple_modifyrepo.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 """
 An example of inserting updateinfo.xml into repodata.
 """
--- a/examples/python/updateinfo_gen_01.py
+++ b/examples/python/updateinfo_gen_01.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 
 import datetime
 import createrepo_c as cr
--- a/examples/python/updateinfo_gen_02.py
+++ b/examples/python/updateinfo_gen_02.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 
 import datetime
 import createrepo_c as cr
--- a/examples/python/updateinfo_parsing.py
+++ b/examples/python/updateinfo_parsing.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 
 import os
 import os.path