diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-22 23:58:00 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-22 23:58:00 -0500 |
commit | 08b0bbd0587b891ca9a4c8fa3a22cf7524c36265 (patch) | |
tree | 9acb330c10ed60d6559f7fbe3420460894bd925e /scripts/mkpkglists.py | |
parent | 38b1bbe78df3a518f0688e50f1d6361221b95ea1 (diff) |
these changes were sitting herepurweb/master0
Diffstat (limited to 'scripts/mkpkglists.py')
-rwxr-xr-x | scripts/mkpkglists.py | 7 |
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")) |