Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rpm-software-management/createrepo_c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Mlcoch <tmlcoch@redhat.com>2013-06-04 11:18:46 +0400
committerTomas Mlcoch <tmlcoch@redhat.com>2013-06-04 11:18:46 +0400
commitc10c0275a1caba842826672ffdd4773545c62d59 (patch)
tree73b97047962b328f9d3362302689568c4fdbbd1d /examples
parent81c6ba764689d0d3a08ec0b13b08234b3c76c6c2 (diff)
examples: Update python example
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/python/simple_createrepo.py4
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())