[entropy.server] move ChangeLog date format string to etpConst
This commit is contained in:
@@ -390,6 +390,7 @@ def const_default_settings(rootdir):
|
||||
'distro_website_url': "http://www.sabayon.org",
|
||||
'changelog_filename': "ChangeLog",
|
||||
'changelog_filename_compressed': "ChangeLog.bz2",
|
||||
'changelog_date_format': "%a, %d %b %Y %X +0000",
|
||||
# enable/disable packages RSS feed feature
|
||||
'rss-feed': True,
|
||||
# default name of the RSS feed
|
||||
|
||||
@@ -922,7 +922,7 @@ class ServerPackagesRepositoryUpdater(object):
|
||||
msg = msg.rstrip()
|
||||
|
||||
def _write_changelog_entry(changelog_f, atom, pkg_meta):
|
||||
this_time = time.strftime("%a, %d %b %Y %X +0000")
|
||||
this_time = time.strftime(etpConst['changelog_date_format'])
|
||||
changelog_str = """\
|
||||
commit %s; %s; %s
|
||||
Machine: %s; %s; %s
|
||||
|
||||
Reference in New Issue
Block a user