summaryrefslogtreecommitdiff
path: root/scripts/mkpkglists.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mkpkglists.py')
-rwxr-xr-xscripts/mkpkglists.py7
1 files changed, 5 insertions, 2 deletions
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"))