Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
salt.10418
retire-md5-checksum-for-pkg-mgmt-plugins.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File retire-md5-checksum-for-pkg-mgmt-plugins.patch of Package salt.10418
From 708945d42cfb1126f2f70c1a2cd75c210bf1cb6c Mon Sep 17 00:00:00 2001 From: Bo Maryniuk <bo@suse.de> Date: Thu, 13 Sep 2018 12:00:55 +0200 Subject: [PATCH] Retire MD5 checksum for pkg mgmt plugins Use SHA256 algorithm for zyppnotify plugin Remove an empty line --- scripts/suse/yum/plugins/yumnotify.py | 2 +- scripts/suse/zypper/plugins/commit/zyppnotify | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/suse/yum/plugins/yumnotify.py b/scripts/suse/yum/plugins/yumnotify.py index 268e1e9531..dd2485c886 100644 --- a/scripts/suse/yum/plugins/yumnotify.py +++ b/scripts/suse/yum/plugins/yumnotify.py @@ -32,7 +32,7 @@ def _get_checksum(): Returns: hexdigest """ - digest = hashlib.md5() + digest = hashlib.sha256() with open(RPM_PATH, "rb") as rpm_db_fh: while True: buff = rpm_db_fh.read(0x1000) diff --git a/scripts/suse/zypper/plugins/commit/zyppnotify b/scripts/suse/zypper/plugins/commit/zyppnotify index 268298b108..b64badb119 100755 --- a/scripts/suse/zypper/plugins/commit/zyppnotify +++ b/scripts/suse/zypper/plugins/commit/zyppnotify @@ -35,7 +35,7 @@ class DriftDetector(Plugin): Returns: hexdigest ''' - digest = hashlib.md5() + digest = hashlib.sha256() with open(self.rpm_path, "rb") as rpm_db_fh: while True: buff = rpm_db_fh.read(0x1000) -- 2.20.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor