- new_head = chunk.commit(etree.tostring(t, encoding=unicode),
- author_name='platforma redakcyjna',
- description='auto-update rdf:about'
- )
- # retain the publishable status
- if old_head.publishable:
- new_head.set_publishable(True)
+ if not dry_run:
+ new_head = chunk.commit(etree.tostring(t, encoding=unicode),
+ author_name='platforma redakcyjna',
+ description='auto-update rdf:about'
+ )
+ # retain the publishable status
+ if old_head.publishable:
+ new_head.set_publishable(True)