| |
@@ -59,6 +59,8 @@
|
| |
PKGDB2_VERIFY = True
|
| |
# Valid for both koji and the download server
|
| |
DL_VERIFY = True
|
| |
+ # Whether to publish to Fedora Messaging.
|
| |
+ PUBLISH_CHANGES = True
|
| |
|
| |
|
| |
repomd_xml_namespace = {
|
| |
@@ -412,8 +414,12 @@
|
| |
|
| |
download_db(name, repomd_url, archive)
|
| |
decompress_db(name, archive, tempdb)
|
| |
- packages = compare_dbs(name, tempdb, destfile, cache1, cache2)
|
| |
- publish_changes(name, packages, repomd_url)
|
| |
+ if PUBLISH_CHANGES:
|
| |
+ packages = compare_dbs(name, tempdb, destfile, cache1, cache2)
|
| |
+ publish_changes(name, packages, repomd_url)
|
| |
+ else:
|
| |
+ print(f'{name.ljust(padding)} Not publishing to Fedora '
|
| |
+ f'messaging; not comparing DBs.')
|
| |
install_db(name, tempdb, destfile)
|
| |
|
| |
|
| |
@@ -436,11 +442,13 @@
|
| |
return 1
|
| |
|
| |
global PKGDB2_URL, KOJI_REPO, DL_SERVER, PKGDB2_VERIFY, DL_VERIFY
|
| |
+ global PUBLISH_CHANGES
|
| |
PKGDB2_URL = CONFIG.get('PKGDB2_URL', PKGDB2_URL)
|
| |
KOJI_REPO = CONFIG.get('KOJI_REPO', KOJI_REPO)
|
| |
DL_SERVER = CONFIG.get('DL_SERVER', DL_SERVER)
|
| |
PKGDB2_VERIFY = CONFIG.get('PKGDB2_VERIFY', PKGDB2_VERIFY)
|
| |
DL_VERIFY = CONFIG.get('DL_VERIFY', DL_VERIFY)
|
| |
+ PUBLISH_CHANGES = CONFIG.get('PUBLISH_CHANGES', PUBLISH_CHANGES)
|
| |
|
| |
if not DL_VERIFY or not PKGDB2_VERIFY:
|
| |
# Suppress urllib3's warning about insecure requests
|
| |
Running locally, there's no need to publish changes, since you don't have access to Fedora Messaging. This breaks the script halfway through since this happens before installing the database.