diff --git a/src/etcproposals_lib.py b/src/etcproposals_lib.py index d2e38cb..db99214 100644 --- a/src/etcproposals_lib.py +++ b/src/etcproposals_lib.py @@ -9,7 +9,7 @@ __author__ = 'Björn Michaelsen' __version__ = '1.4.2' __date__ = '2008-01-08' -import ConfigParser, anydbm, shelve, difflib, os, os.path, re, shutil, md5 +import ConfigParser, anydbm, shelve, difflib, os, os.path, re, shutil, hashlib from etcproposals.portage_stubs import PortageInterface STATEFILE = '/var/state/etcproposals.state' @@ -296,7 +296,7 @@ class EtcProposalConfigFile(object): def md5hexdigest(self): "calculates the md5sum of the file in the fs" - return md5.md5(open(self.path).read()).hexdigest() + return hashlib.md5(open(self.path).read()).hexdigest() def is_unmodified(self): "True, if the file in the fs has the same md5 as recorded" diff --git a/src/portage_stubs.py b/src/portage_stubs.py index 9cf2437..c6d73a1 100644 --- a/src/portage_stubs.py +++ b/src/portage_stubs.py @@ -4,7 +4,7 @@ # based on gentoo portage 2.1.1, Copyright 1998-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -import re, string, os, md5 +import re, string, os from etcproposals.etcproposals_tools import get_command_output_iterator # portage constants