From 568ba6a4711f8e89e92ac67fc53e9149703adb08 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 20 Mar 2012 11:21:38 +0100 Subject: [PATCH] use Digest::SHA instead of Digest::SHA1 --- Makefile | 2 +- data/PVE/Tools.pm | 4 ++-- debian/changelog | 6 ++++++ debian/control | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index dac4643..b244fa5 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ RELEASE=2.0 VERSION=1.0 -PKGREL=20 +PKGREL=21 PACKAGE=libpve-common-perl diff --git a/data/PVE/Tools.pm b/data/PVE/Tools.pm index 66bc644..12b5ba2 100644 --- a/data/PVE/Tools.pm +++ b/data/PVE/Tools.pm @@ -12,7 +12,7 @@ use Fcntl qw(:DEFAULT :flock); use base 'Exporter'; use URI::Escape; use Encode; -use Digest::SHA1; +use Digest::SHA; use Text::ParseWords; use String::ShellQuote; @@ -742,7 +742,7 @@ sub decode_utf8_parameters { sub random_ether_addr { - my $rand = Digest::SHA1::sha1_hex(rand(), time()); + my $rand = Digest::SHA::sha1_hex(rand(), time()); my $mac = ''; for (my $i = 0; $i < 6; $i++) { diff --git a/debian/changelog b/debian/changelog index 125d073..3844561 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +libpve-common-perl (1.0-21) unstable; urgency=low + + * use Digest::SHA instead of Digest::SHA1 + + -- Proxmox Support Team Tue, 20 Mar 2012 11:21:02 +0100 + libpve-common-perl (1.0-20) unstable; urgency=low * fix bug #116, #103: try to keep ordering in /etc/network/interfaces diff --git a/debian/control b/debian/control index 496b271..60cfe2e 100644 --- a/debian/control +++ b/debian/control @@ -7,6 +7,6 @@ Standards-Version: 3.8.4 Package: libpve-common-perl Architecture: all -Depends: ${perl:Depends} ${misc:Depends}, libdevel-cycle-perl, libwww-perl, libjson-perl, liblinux-inotify2-perl, libio-stringy-perl, liburi-perl, libdigest-sha1-perl, libstring-shellquote-perl +Depends: ${perl:Depends} ${misc:Depends}, libdevel-cycle-perl, libwww-perl, libjson-perl, liblinux-inotify2-perl, libio-stringy-perl, liburi-perl, libstring-shellquote-perl Description: Proxmox VE base library This package contains the base library used by other Proxmox VE components. -- 2.39.2