From bb3abe241ae9d7e62e084cde383ebe1c6b95d825 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Thu, 29 Nov 2012 15:33:36 +0000 Subject: python-smartpm: fix package metadata not being read from rpm-md feeds The XML indexes in rpm-md were being parsed incorrectly leading to the package metadata (e.g. dependencies) not being read. Signed-off-by: Paul Eggleton Signed-off-by: Saul Wold --- .../python/python-smartpm/smart-rpm-md-parse.patch | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 meta/recipes-devtools/python/python-smartpm/smart-rpm-md-parse.patch (limited to 'meta/recipes-devtools/python/python-smartpm') 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 @@ +backends/rpm: fix parsing of rpm-md metadata + +If assertions are disabled then the queue.pop() wasn't being executed, +leading to requires, recommends etc. not being read properly. + +Upstream-Status: Pending + +Signed-off-by: Paul Eggleton + +diff --git a/smart/backends/rpm/metadata.py b/smart/backends/rpm/metadata.py +index 2c54f39..dc9df22 100644 +--- a/smart/backends/rpm/metadata.py ++++ b/smart/backends/rpm/metadata.py +@@ -188,7 +188,8 @@ class RPMMetaDataLoader(Loader): + + elif event == "end": + +- assert queue.pop() is elem ++ popped = queue.pop() ++ assert popped is elem + + if skip: + if tag == skip: +-- +1.7.9.5 + -- cgit v1.2.3