summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch
diff options
context:
space:
mode:
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.patch23
1 files changed, 6 insertions, 17 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
index 428b14ed5e..829c0c8b78 100644
--- 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
@@ -1,17 +1,18 @@
1From 6e82af54714392dcdf74a8aedaae7de7d0af1080 Mon Sep 17 00:00:00 2001 1From ddbefd80d74c3baaae328332458db447e1666240 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Thu, 27 Apr 2017 16:37:24 +0300 3Date: Thu, 27 Apr 2017 16:37:24 +0300
4Subject: [PATCH] Move python helper scripts (used only in tests) to Python 3 4Subject: [PATCH] Move python helper scripts (used only in tests) to Python 3
5 5
6Upstream-Status: Pending 6Upstream-Status: Pending
7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> 7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
8
8--- 9---
9 tests/gpt-header-move | 2 +- 10 tests/gpt-header-move | 2 +-
10 tests/msdos-overlap | 4 ++-- 11 tests/msdos-overlap | 2 +-
11 2 files changed, 3 insertions(+), 3 deletions(-) 12 2 files changed, 2 insertions(+), 2 deletions(-)
12 13
13diff --git a/tests/gpt-header-move b/tests/gpt-header-move 14diff --git a/tests/gpt-header-move b/tests/gpt-header-move
14index 05cdc65..3cbcb7e 100755 15index 3dda5cb..a2b9508 100755
15--- a/tests/gpt-header-move 16--- a/tests/gpt-header-move
16+++ b/tests/gpt-header-move 17+++ b/tests/gpt-header-move
17@@ -1,4 +1,4 @@ 18@@ -1,4 +1,4 @@
@@ -21,7 +22,7 @@ index 05cdc65..3cbcb7e 100755
21 # open img file, subtract 33 from altlba address, and move the last 33 sectors 22 # open img file, subtract 33 from altlba address, and move the last 33 sectors
22 # back by 33 sectors 23 # back by 33 sectors
23diff --git a/tests/msdos-overlap b/tests/msdos-overlap 24diff --git a/tests/msdos-overlap b/tests/msdos-overlap
24index 5bddfb0..3de7d2e 100755 25index d6ae8d6..2c6747b 100755
25--- a/tests/msdos-overlap 26--- a/tests/msdos-overlap
26+++ b/tests/msdos-overlap 27+++ b/tests/msdos-overlap
27@@ -1,4 +1,4 @@ 28@@ -1,4 +1,4 @@
@@ -30,15 +31,3 @@ index 5bddfb0..3de7d2e 100755
30 """ 31 """
31 Write an overlapping partition to a msdos disk 32 Write an overlapping partition to a msdos disk
32 33
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--
432.11.0
44