diff options
author | Christoph Goehre <chris@sigxcpu.org> | 2010-08-22 11:04:12 +0200 |
---|---|---|
committer | Christoph Goehre <chris@sigxcpu.org> | 2010-08-22 21:19:02 +0200 |
commit | 6072e9cf6c76c39c81d47e8cc3ad2c1c068af471 (patch) | |
tree | fdeb7aef7bd65e90600478e3eba47070683a2d0a | |
parent | e4640c86461ba77eb653349a7bd085bde60a527e (diff) | |
download | mini-dinstall-6072e9cf6c76c39c81d47e8cc3ad2c1c068af471.tar.bz2 mini-dinstall-6072e9cf6c76c39c81d47e8cc3ad2c1c068af471.tar.xz mini-dinstall-6072e9cf6c76c39c81d47e8cc3ad2c1c068af471.tar.zst |
hashlib can handle sha256, so we didn't need python-crypto anymore
-rw-r--r-- | debian/control | 2 | ||||
-rw-r--r-- | minidinstall/misc.py | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/debian/control b/debian/control index c861498..6bdd848 100644 --- a/debian/control +++ b/debian/control @@ -11,7 +11,7 @@ Vcs-Browser: http://git.debian.org/?p=mini-dinstall/mini-dinstall.git Package: mini-dinstall Architecture: all -Depends: ${python:Depends}, python-apt (>= 0.7.93), apt-utils, python-crypto, ${misc:Depends} +Depends: ${python:Depends}, python-apt (>= 0.7.93), apt-utils, ${misc:Depends} Recommends: gpgv Suggests: debian-keyring Description: daemon for updating Debian packages in a repository diff --git a/minidinstall/misc.py b/minidinstall/misc.py index b8f323a..7efd426 100644 --- a/minidinstall/misc.py +++ b/minidinstall/misc.py @@ -60,8 +60,7 @@ def _get_internal_file_sum(self ,type, filename): elif type == 'sha1': sum = hashlib.sha1() elif type == 'sha256': - from Crypto.Hash import SHA256 - sum = SHA256.new() + sum = hashlib.sha256() self._logger.debug("Generate %s (python-internal) for %s" % (type, filename)) f = open(filename) buf = f.read(8192) |