projects
/
services
/
createrepo_c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81c6ba7
)
examples: Update python example
author
Tomas Mlcoch
<tmlcoch@redhat.com>
Tue, 4 Jun 2013 07:18:46 +0000
(09:18 +0200)
committer
Tomas Mlcoch
<tmlcoch@redhat.com>
Tue, 4 Jun 2013 07:18:46 +0000
(09:18 +0200)
examples/python/simple_createrepo.py
patch
|
blob
|
history
diff --git
a/examples/python/simple_createrepo.py
b/examples/python/simple_createrepo.py
index
7765863
..
e6624a6
100755
(executable)
--- 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())