Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 237624
Collapse All | Expand All

(-)a/src/etcproposals_lib.py (-2 / +2 lines)
Lines 9-15 __author__ = 'Björn Michaelsen' Link Here
9
__version__ = '1.4.2'
9
__version__ = '1.4.2'
10
__date__ = '2008-01-08'
10
__date__ = '2008-01-08'
11
11
12
import ConfigParser, anydbm, shelve, difflib, os, os.path, re, shutil, md5
12
import ConfigParser, anydbm, shelve, difflib, os, os.path, re, shutil, hashlib
13
from etcproposals.portage_stubs import PortageInterface
13
from etcproposals.portage_stubs import PortageInterface
14
    
14
    
15
STATEFILE = '/var/state/etcproposals.state'
15
STATEFILE = '/var/state/etcproposals.state'
Lines 296-302 class EtcProposalConfigFile(object): Link Here
296
296
297
    def md5hexdigest(self):
297
    def md5hexdigest(self):
298
        "calculates the md5sum of the file in the fs"
298
        "calculates the md5sum of the file in the fs"
299
        return md5.md5(open(self.path).read()).hexdigest()
299
        return hashlib.md5(open(self.path).read()).hexdigest()
300
    
300
    
301
    def is_unmodified(self):
301
    def is_unmodified(self):
302
        "True, if the file in the fs has the same md5 as recorded"
302
        "True, if the file in the fs has the same md5 as recorded"
(-)a/src/portage_stubs.py (-1 / +1 lines)
Lines 4-10 Link Here
4
# based on gentoo portage 2.1.1, Copyright 1998-2007 Gentoo Foundation
4
# based on gentoo portage 2.1.1, Copyright 1998-2007 Gentoo Foundation
5
# Distributed under the terms of the GNU General Public License v2
5
# Distributed under the terms of the GNU General Public License v2
6
6
7
import re, string, os, md5
7
import re, string, os
8
from etcproposals.etcproposals_tools import get_command_output_iterator
8
from etcproposals.etcproposals_tools import get_command_output_iterator
9
9
10
# portage constants
10
# portage constants

Return to bug 237624