summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2017-04-20 12:16:10 +0100
committerJonathan Maw <jonathan.maw@codethink.co.uk>2017-04-20 12:16:10 +0100
commit27f2b33f891d3bbe33060c8b41151b15b4627170 (patch)
tree7fb5ba7b4945eab7b5a5cfa5745c1d41e3500c7f
parent6492cbc069460aa68e7ffee2234f35c0cda0bc83 (diff)
downloadybd-jonathan/rpm-export-fix-whitelist.tar.gz
rpm: Fix undefined 'result' when generating rpms with a whitelistjonathan/rpm-export-fix-whitelist
-rw-r--r--ybd/rpm.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ybd/rpm.py b/ybd/rpm.py
index 257a9d7..1aea768 100644
--- a/ybd/rpm.py
+++ b/ybd/rpm.py
@@ -78,6 +78,7 @@ def foreach_def(dn, callback, user_data, traversed=None, whitelist=None):
item, callback, user_data, traversed, whitelist):
yield res[0], res[1]
+ result = True
if whitelist is None or dn.get('name') in whitelist:
result = callback(dn, user_data)