mirror of
https://git.yoctoproject.org/poky
synced 2026-02-05 16:28:43 +01:00
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. (From OE-Core rev: bb3abe241ae9d7e62e084cde383ebe1c6b95d825) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e60be76f43
commit
81dded6e95
@@ -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 <paul.eggleton@linux.intel.com>
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user