@@ -78,6 +78,8 @@ def set_argparser(parser):
78
78
parser .add_argument ("--hide-author" , action = "store_true" ,
79
79
help = _ ("Hide the authors name and email address"
80
80
"in the changelog." ))
81
+ parser .add_argument ("--hide-timestamp" , action = "store_true" ,
82
+ help = _ ("Hide the timestamp in the changelog." ))
81
83
parser .add_argument ("--summary" , action = "store_true" ,
82
84
help = _ ("Sum up changes after all changes have been listed." ))
83
85
@@ -183,12 +185,16 @@ def report_modified(pkg_old, pkg_new=None, sub_pkgs=[]):
183
185
chlog ['author' ] == old_chlog ['author' ] and
184
186
chlog ['text' ] == old_chlog ['text' ]):
185
187
break
186
- msgs .append ('### %s %s\n %s' % (
187
- chlog ['timestamp' ].strftime ("%a %b %d %Y" ),
188
- dnf .i18n .ucd (chlog ['author' ])
189
- if not self .opts .hide_author else
190
- "- %s" % (re .search (".+ - (.+?)$" , chlog ['author' ]).group (1 )),
191
- dnf .i18n .ucd (chlog ['text' ])))
188
+ if not self .opts .hide_timestamp :
189
+ msgs .append ('### %s %s\n %s' % (
190
+ chlog ['timestamp' ].strftime ("%a %b %d %Y" ),
191
+ dnf .i18n .ucd (chlog ['author' ])
192
+ if not self .opts .hide_author else
193
+ "- %s" % (re .search (".+ - (.+?)$" , chlog ['author' ]).group (1 )),
194
+ dnf .i18n .ucd (chlog ['text' ])))
195
+ else :
196
+ msgs .append (dnf .i18n .ucd (chlog ['text' ]))
197
+
192
198
if not self .opts .size :
193
199
msgs .append ("" )
194
200
if self .opts .size :
0 commit comments