diff options
author | Tomas Mlcoch <tmlcoch@redhat.com> | 2013-06-04 11:18:46 +0400 |
---|---|---|
committer | Tomas Mlcoch <tmlcoch@redhat.com> | 2013-06-04 11:18:46 +0400 |
commit | c10c0275a1caba842826672ffdd4773545c62d59 (patch) | |
tree | 73b97047962b328f9d3362302689568c4fdbbd1d /examples | |
parent | 81c6ba764689d0d3a08ec0b13b08234b3c76c6c2 (diff) |
examples: Update python example
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/python/simple_createrepo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/python/simple_createrepo.py b/examples/python/simple_createrepo.py index 7765863..e6624a6 100755 --- a/examples/python/simple_createrepo.py +++ b/examples/python/simple_createrepo.py @@ -74,12 +74,12 @@ def do_repodata(path): ("filelists_db", fil_db_path, None), ("other_db", oth_db_path, None)) for name, path, db_to_update in repomdrecords: - record = cr.RepomdRecord(path) + record = cr.RepomdRecord(name, path) record.fill(cr.SHA256) if (db_to_update): db_to_update.dbinfo_update(record.checksum) db_to_update.close() - repomd.set_record(record, name) + repomd.set_record(record) # Write repomd.xml open(repomd_path, "w").write(repomd.xml_dump()) |