Hello community, here is the log from the commit of package rpmlint-mini for openSUSE:Factory checked in at 2020-06-14 18:16:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rpmlint-mini (Old) and /work/SRC/openSUSE:Factory/.rpmlint-mini.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rpmlint-mini" Sun Jun 14 18:16:17 2020 rev:101 rq:814109 version:1.10 Changes: -------- --- /work/SRC/openSUSE:Factory/rpmlint-mini/rpmlint-mini.changes 2020-04-13 12:49:09.820532564 +0200 +++ /work/SRC/openSUSE:Factory/.rpmlint-mini.new.3606/rpmlint-mini.changes 2020-06-14 18:16:23.287025274 +0200 @@ -1,0 +2,13 @@ +Fri Jun 12 08:50:17 UTC 2020 - matthias.gerst...@suse.com + +- Update to version master: + * cron-whitelist: adjust bug reference to point to real bug, not the sr# + (opa-ff bsc#1172859) + +------------------------------------------------------------------- +Wed Jun 10 08:57:19 UTC 2020 - matthias.gerst...@suse.com + +- Update to version master: + * cron-whitelist: follow-up digest for opa-ff + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.mOhdI7/_old 2020-06-14 18:16:24.459028282 +0200 +++ /var/tmp/diff_new_pack.mOhdI7/_new 2020-06-14 18:16:24.459028282 +0200 @@ -1,4 +1,4 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/openSUSE/rpmlint-security-whitelistings</param> - <param name="changesrevision">7397591e1344b4d1932060ab8175599e8decf2b0</param></service></servicedata> \ No newline at end of file + <param name="changesrevision">05677256f75309a270a32c6ae7357d92ac1df9d7</param></service></servicedata> \ No newline at end of file ++++++ rpmlint-security-whitelistings-master.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-security-whitelistings-master/cron-whitelist.json new/rpmlint-security-whitelistings-master/cron-whitelist.json --- old/rpmlint-security-whitelistings-master/cron-whitelist.json 2020-04-09 15:30:35.000000000 +0200 +++ new/rpmlint-security-whitelistings-master/cron-whitelist.json 2020-06-12 10:48:10.000000000 +0200 @@ -114,6 +114,12 @@ "digests": { "/etc/cron.daily/opa-cablehealth": "sha256:7e837d9ba6f1361d63bdb5e716e1f5ce9ac774f22fa79ef32d51a9e0c925c11b" } + }, + "bsc#1172859": { + "comment": "just a version string changed in the script", + "digests": { + "/etc/cron.daily/opa-cablehealth": "sha256:56fda31f1bfbda32d628250ed17a72ef04823b120ad1449045b380b9983d86e8" + } } } }, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-security-whitelistings-master/verify.py new/rpmlint-security-whitelistings-master/verify.py --- old/rpmlint-security-whitelistings-master/verify.py 2020-04-09 15:30:35.000000000 +0200 +++ new/rpmlint-security-whitelistings-master/verify.py 2020-06-12 10:48:10.000000000 +0200 @@ -4,6 +4,8 @@ import subprocess import glob import json +import urllib.request +import tempfile def printerr(*args, **kwargs): @@ -74,6 +76,40 @@ return len(errors) == 0 +whitelisting = None + +def fetchWhitelistingModule(): + whitelisting_module_url = "https://raw.githubusercontent.com/openSUSE/rpmlint-checks/master/Whitelisting.py" + + # only available from python3.5 and newer + import importlib.util + + with tempfile.NamedTemporaryFile(suffix = ".py") as temp: + req = urllib.request.urlopen(whitelisting_module_url) + temp.write(req.read()) + temp.flush() + + spec = importlib.util.spec_from_file_location("Whitelisting", temp.name) + whitelisting = importlib.util.module_from_spec(spec) + spec.loader.exec_module(whitelisting) + return whitelisting + + +def checkParsing(path): + + global whitelisting + if not whitelisting: + whitelisting = fetchWhitelistingModule() + + parser = whitelisting.WhitelistParser(path) + + try: + entries = parser.parse() + return True + except Exception as e: + printerr(e) + return False + our_dir = os.path.dirname(os.path.realpath(__file__)) pathspec = os.path.join( our_dir, "*.json" ) res = 0 @@ -86,4 +122,7 @@ if not checkDuplicateEntries(json_file): res = 1 + if not checkParsing(json_file): + res = 1 + sys.exit(res)