diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-23 00:12:05 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-23 01:05:56 -0500 |
commit | f308ac796b6e24b216b68aeac0d456d21c3b37f3 (patch) | |
tree | 6a43226c9d4e2923d43f469d53120c7f51b5a376 /aurweb/scripts/mkpkglists.py | |
parent | e3dfb09aec084fc6bd119309ce949eaab714eae7 (diff) |
Make the instance name and domain configurable.
Diffstat (limited to 'aurweb/scripts/mkpkglists.py')
-rwxr-xr-x | aurweb/scripts/mkpkglists.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/aurweb/scripts/mkpkglists.py b/aurweb/scripts/mkpkglists.py index 8a0f2e9..4c5c2fb 100755 --- a/aurweb/scripts/mkpkglists.py +++ b/aurweb/scripts/mkpkglists.py @@ -8,14 +8,14 @@ import aurweb.db packagesfile = aurweb.config.get('mkpkglists', 'packagesfile') pkgbasefile = aurweb.config.get('mkpkglists', 'pkgbasefile') - +branding_name = aurweb.config.get('options', 'branding_shortname'); def main(): conn = aurweb.db.Connection() datestr = datetime.datetime.utcnow().strftime("%a, %d %b %Y %H:%M:%S GMT") - pkglist_header = "# AUR package list, generated on " + datestr - pkgbaselist_header = "# AUR package base list, generated on " + datestr + pkglist_header = "# " + branding_name + " package list, generated on " + datestr + pkgbaselist_header = "# " + branding_name + " package base list, generated on " + datestr with gzip.open(packagesfile, "w") as f: f.write(bytes(pkglist_header + "\n", "UTF-8")) |