commit 9be03f7601428c68a40bd457c000329e2ad41314
parent 2bac6dd4bdc7f666057df1943d80d7c0cf31efd8
Author: Erik Mackdanz <erikmack@gmail.com>
Date: Thu, 20 Mar 2014 02:00:13 -0600
Keepass import should include root-level entries
Repro steps:
1. In KeePass, add some entries as children of the root node
2. Export the KeePass to foo.xml
3. 'keepass2pass.py -f foo.xml'
Expect: all entries imported
Actual: root-level entries are skipped
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/contrib/keepass2pass.py b/contrib/keepass2pass.py
@@ -90,6 +90,7 @@ def import_passwords(xml_file, root_path=None):
xml_tree = ElementTree.XML(text)
root = xml_tree.find('Root')
root_group = root.find('Group')
+ import_group(entries,root_group,'')
if root_path is None: root_path = root_group.find('Name').text
groups = root_group.findall('Group')
for group in groups: