[entropy.server] move ChangeLog date format string to etpConst

This commit is contained in:
Fabio Erculiani
2011-06-18 23:36:54 +02:00
parent 2995a70a7e
commit c7569661bd
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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
+1 -1
View File
@@ -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