Index: security/py-certbot/Makefile =================================================================== --- security/py-certbot/Makefile (revision 440990) +++ security/py-certbot/Makefile (working copy) @@ -3,7 +3,7 @@ PORTNAME= certbot PORTVERSION= 0.13.0 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= security python MASTER_SITES= CHEESESHOP Index: security/py-certbot/files/patch-certbot_tests_util__test.py =================================================================== --- security/py-certbot/files/patch-certbot_tests_util__test.py (nonexistent) +++ security/py-certbot/files/patch-certbot_tests_util__test.py (working copy) @@ -0,0 +1,40 @@ +From 42d07d756df0cf96c9d20b44e772858391d48384 Mon Sep 17 00:00:00 2001 +From: Ryan Pineo +Date: Fri, 12 May 2017 15:45:54 -0400 +Subject: [PATCH] support version 0.12.0 of configargparse + +fixes #4648 + +--- certbot/tests/util_test.py.orig 2017-05-16 07:27:15 UTC ++++ certbot/tests/util_test.py +@@ -5,6 +5,7 @@ import os + import stat + import unittest + ++import configargparse + import mock + import six + +@@ -333,6 +334,22 @@ class AddDeprecatedArgumentTest(unittest + pass + self.assertTrue("--old-option" not in stdout.getvalue()) + ++ def test_when_configargparse(self): ++ '''In configargparse version < 0.12.0 ACTION_TYPES_THAT_DONT_NEED_A_VALUE is a set.''' ++ orig = configargparse.ACTION_TYPES_THAT_DONT_NEED_A_VALUE ++ configargparse.ACTION_TYPES_THAT_DONT_NEED_A_VALUE = set() ++ self._call("--old-option", 1) ++ self.assertEqual(len(configargparse.ACTION_TYPES_THAT_DONT_NEED_A_VALUE), 1) ++ configargparse.ACTION_TYPES_THAT_DONT_NEED_A_VALUE = orig ++ ++ def test_when_configargparse_tuple(self): ++ '''In configargparse version >= 0.12.0 ACTION_TYPES_THAT_DONT_NEED_A_VALUE is a tuple.''' ++ orig = configargparse.ACTION_TYPES_THAT_DONT_NEED_A_VALUE ++ configargparse.ACTION_TYPES_THAT_DONT_NEED_A_VALUE = tuple() ++ self._call("--old-option", 1) ++ self.assertEqual(len(configargparse.ACTION_TYPES_THAT_DONT_NEED_A_VALUE), 1) ++ configargparse.ACTION_TYPES_THAT_DONT_NEED_A_VALUE = orig ++ + + class EnforceLeValidity(unittest.TestCase): + """Test enforce_le_validity.""" Property changes on: security/py-certbot/files/patch-certbot_tests_util__test.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: security/py-certbot/files/patch-certbot_util.py =================================================================== --- security/py-certbot/files/patch-certbot_util.py (nonexistent) +++ security/py-certbot/files/patch-certbot_util.py (working copy) @@ -0,0 +1,23 @@ +From 42d07d756df0cf96c9d20b44e772858391d48384 Mon Sep 17 00:00:00 2001 +From: Ryan Pineo +Date: Fri, 12 May 2017 15:45:54 -0400 +Subject: [PATCH] support version 0.12.0 of configargparse + +fixes #4648 + +--- certbot/util.py.orig 2017-05-16 07:21:46 UTC ++++ certbot/util.py +@@ -437,7 +437,12 @@ def add_deprecated_argument(add_argument + sys.stderr.write( + "Use of {0} is deprecated.\n".format(option_string)) + +- configargparse.ACTION_TYPES_THAT_DONT_NEED_A_VALUE.add(ShowWarning) ++ # In version 0.12.0 ACTION_TYPES_THAT_DONT_NEED_A_VALUE was changed from a set ++ # to a tuple. ++ if isinstance(configargparse.ACTION_TYPES_THAT_DONT_NEED_A_VALUE, set): ++ configargparse.ACTION_TYPES_THAT_DONT_NEED_A_VALUE.add(ShowWarning) ++ else: ++ configargparse.ACTION_TYPES_THAT_DONT_NEED_A_VALUE += (ShowWarning,) + add_argument(argument_name, action=ShowWarning, + help=argparse.SUPPRESS, nargs=nargs) + Property changes on: security/py-certbot/files/patch-certbot_util.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property