Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jul 2020 18:59:17 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r543284 - in head/security/denyhosts: . files
Message-ID:  <202007241859.06OIxHrH033392@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Fri Jul 24 18:59:17 2020
New Revision: 543284
URL: https://svnweb.freebsd.org/changeset/ports/543284

Log:
  Fix AttributeError error
  
  - Bump PORTREVISION for package change
  
  Reported by:	Frank Bartels <freebsd@knarf.de>
  Obtained from:	https://github.com/denyhosts/denyhosts/commit/d4cdd64d2e3b2c395193a141db8d3c5cbda91f28

Added:
  head/security/denyhosts/files/patch-DenyHosts-report.py   (contents, props changed)
Modified:
  head/security/denyhosts/Makefile

Modified: head/security/denyhosts/Makefile
==============================================================================
--- head/security/denyhosts/Makefile	Fri Jul 24 18:59:12 2020	(r543283)
+++ head/security/denyhosts/Makefile	Fri Jul 24 18:59:17 2020	(r543284)
@@ -4,6 +4,7 @@
 PORTNAME=	denyhosts
 PORTVERSION=	3.1
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 CATEGORIES=	security
 PKGNAMESUFFIX=	${PYTHON_PKGNAMESUFFIX}
 

Added: head/security/denyhosts/files/patch-DenyHosts-report.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/denyhosts/files/patch-DenyHosts-report.py	Fri Jul 24 18:59:17 2020	(r543284)
@@ -0,0 +1,25 @@
+Obtained from:	https://github.com/denyhosts/denyhosts/commit/d4cdd64d2e3b2c395193a141db8d3c5cbda91f28
+
+--- DenyHosts/report.py.orig	2015-09-16 19:40:15 UTC
++++ DenyHosts/report.py
+@@ -1,9 +1,6 @@
+ import logging
+ import re
+ import socket
+-# Removing this as it causes runtime errors on Python3.4
+-# from types import ListType, TupleType
+-import types
+ from .util import is_true
+ try:
+     import syslog
+@@ -39,8 +36,8 @@ class Report:
+     def add_section(self, message, iterable):
+         self.report += "%s:\n\n" % message
+         for i in iterable:
+-            # if type(i) in (TupleType, ListType):
+-            if (type(i) is types.ListType) or (type(i) is types.TupleType):
++            # checks the item type (list or tuple)
++            if isinstance(i, list) or isinstance(i, tuple):
+                 extra = ": %d\n" % i[1]
+                 i = i[0]
+             else:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007241859.06OIxHrH033392>