From 08b0bbd0587b891ca9a4c8fa3a22cf7524c36265 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 22 Nov 2016 23:58:00 -0500 Subject: these changes were sitting here --- scripts/mkpkglists.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/mkpkglists.py b/scripts/mkpkglists.py index a6f8a19..4bc6de4 100755 --- a/scripts/mkpkglists.py +++ b/scripts/mkpkglists.py @@ -11,6 +11,9 @@ docroot = os.path.dirname(os.path.realpath(__file__)) + "/../web/html/" config = configparser.RawConfigParser() config.read(os.path.dirname(os.path.realpath(__file__)) + "/../conf/config") + +branding_name = config.get('options', 'branding_shortname'); + aur_db_host = config.get('database', 'host') aur_db_name = config.get('database', 'name') aur_db_user = config.get('database', 'user') @@ -23,8 +26,8 @@ db = mysql.connector.connect(host=aur_db_host, user=aur_db_user, cur = db.cursor() 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(docroot + "packages.gz", "w") as f: f.write(bytes(pkglist_header + "\n", "UTF-8")) -- cgit v1.2.3-54-g00ecf