diff options
Diffstat (limited to 'meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch')
-rw-r--r-- | meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch b/meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch new file mode 100644 index 0000000000..428b14ed5e --- /dev/null +++ b/meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | From 6e82af54714392dcdf74a8aedaae7de7d0af1080 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Thu, 27 Apr 2017 16:37:24 +0300 | ||
4 | Subject: [PATCH] Move python helper scripts (used only in tests) to Python 3 | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
8 | --- | ||
9 | tests/gpt-header-move | 2 +- | ||
10 | tests/msdos-overlap | 4 ++-- | ||
11 | 2 files changed, 3 insertions(+), 3 deletions(-) | ||
12 | |||
13 | diff --git a/tests/gpt-header-move b/tests/gpt-header-move | ||
14 | index 05cdc65..3cbcb7e 100755 | ||
15 | --- a/tests/gpt-header-move | ||
16 | +++ b/tests/gpt-header-move | ||
17 | @@ -1,4 +1,4 @@ | ||
18 | -#!/usr/bin/python | ||
19 | +#!/usr/bin/env python3 | ||
20 | |||
21 | # open img file, subtract 33 from altlba address, and move the last 33 sectors | ||
22 | # back by 33 sectors | ||
23 | diff --git a/tests/msdos-overlap b/tests/msdos-overlap | ||
24 | index 5bddfb0..3de7d2e 100755 | ||
25 | --- a/tests/msdos-overlap | ||
26 | +++ b/tests/msdos-overlap | ||
27 | @@ -1,4 +1,4 @@ | ||
28 | -#!/usr/bin/python | ||
29 | +#!/usr/bin/env python3 | ||
30 | """ | ||
31 | Write an overlapping partition to a msdos disk | ||
32 | |||
33 | @@ -14,7 +14,7 @@ BAD_ENTRY = (0x72, 0xf5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
34 | OFFSET = 0x1b8 | ||
35 | |||
36 | if len(sys.argv) < 2: | ||
37 | - print "%s: <image or device>" | ||
38 | + print("%s: <image or device>") | ||
39 | sys.exit(1) | ||
40 | |||
41 | data = "".join(chr(c) for c in BAD_ENTRY) | ||
42 | -- | ||
43 | 2.11.0 | ||
44 | |||