diff options
-rw-r--r-- | meta/recipes-devtools/python/python-smartpm/smart-rpm-md-parse.patch | 26 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python-smartpm_1.4.1.bb | 3 |
2 files changed, 28 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python-smartpm/smart-rpm-md-parse.patch b/meta/recipes-devtools/python/python-smartpm/smart-rpm-md-parse.patch new file mode 100644 index 0000000000..97cecc124d --- /dev/null +++ b/meta/recipes-devtools/python/python-smartpm/smart-rpm-md-parse.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | backends/rpm: fix parsing of rpm-md metadata | ||
2 | |||
3 | If assertions are disabled then the queue.pop() wasn't being executed, | ||
4 | leading to requires, recommends etc. not being read properly. | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
9 | |||
10 | diff --git a/smart/backends/rpm/metadata.py b/smart/backends/rpm/metadata.py | ||
11 | index 2c54f39..dc9df22 100644 | ||
12 | --- a/smart/backends/rpm/metadata.py | ||
13 | +++ b/smart/backends/rpm/metadata.py | ||
14 | @@ -188,7 +188,8 @@ class RPMMetaDataLoader(Loader): | ||
15 | |||
16 | elif event == "end": | ||
17 | |||
18 | - assert queue.pop() is elem | ||
19 | + popped = queue.pop() | ||
20 | + assert popped is elem | ||
21 | |||
22 | if skip: | ||
23 | if tag == skip: | ||
24 | -- | ||
25 | 1.7.9.5 | ||
26 | |||
diff --git a/meta/recipes-devtools/python/python-smartpm_1.4.1.bb b/meta/recipes-devtools/python/python-smartpm_1.4.1.bb index ff153a77d0..2d0f7cd641 100644 --- a/meta/recipes-devtools/python/python-smartpm_1.4.1.bb +++ b/meta/recipes-devtools/python/python-smartpm_1.4.1.bb | |||
@@ -11,7 +11,7 @@ LICENSE = "GPLv2" | |||
11 | LIC_FILES_CHKSUM = "file://LICENSE;md5=393a5ca445f6965873eca0259a17f833" | 11 | LIC_FILES_CHKSUM = "file://LICENSE;md5=393a5ca445f6965873eca0259a17f833" |
12 | 12 | ||
13 | DEPENDS = "python rpm" | 13 | DEPENDS = "python rpm" |
14 | PR = "r1" | 14 | PR = "r2" |
15 | SRCNAME = "smart" | 15 | SRCNAME = "smart" |
16 | 16 | ||
17 | SRC_URI = "\ | 17 | SRC_URI = "\ |
@@ -19,6 +19,7 @@ SRC_URI = "\ | |||
19 | file://smartpm-rpm5-nodig.patch \ | 19 | file://smartpm-rpm5-nodig.patch \ |
20 | file://smart-rpm-root.patch \ | 20 | file://smart-rpm-root.patch \ |
21 | file://smart-recommends.patch \ | 21 | file://smart-recommends.patch \ |
22 | file://smart-rpm-md-parse.patch \ | ||
22 | " | 23 | " |
23 | 24 | ||
24 | SRC_URI[md5sum] = "573ef32ba177a6b3c4bf7ef04873fcb6" | 25 | SRC_URI[md5sum] = "573ef32ba177a6b3c4bf7ef04873fcb6" |