aboutsummaryrefslogtreecommitdiffstats
path: root/community/lego/b5d5eee2dd269f88f181d7a437be80194bfd0235.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-09-06 07:24:11 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-09-06 07:24:27 +0000
commit83f3edc0bd06f26b165c3746420101c0c6b5c428 (patch)
tree062f8fc0c789ca4032fbde78b7d0fc0bcc498476 /community/lego/b5d5eee2dd269f88f181d7a437be80194bfd0235.patch
parent5dc93825c3d59a2269371c108b869afc10116484 (diff)
downloadaports-83f3edc0bd06f26b165c3746420101c0c6b5c428.tar.bz2
aports-83f3edc0bd06f26b165c3746420101c0c6b5c428.tar.xz
community/lego: move from testing
Diffstat (limited to 'community/lego/b5d5eee2dd269f88f181d7a437be80194bfd0235.patch')
-rw-r--r--community/lego/b5d5eee2dd269f88f181d7a437be80194bfd0235.patch86
1 files changed, 86 insertions, 0 deletions
diff --git a/community/lego/b5d5eee2dd269f88f181d7a437be80194bfd0235.patch b/community/lego/b5d5eee2dd269f88f181d7a437be80194bfd0235.patch
new file mode 100644
index 0000000000..b039ebf074
--- /dev/null
+++ b/community/lego/b5d5eee2dd269f88f181d7a437be80194bfd0235.patch
@@ -0,0 +1,86 @@
+From b5d5eee2dd269f88f181d7a437be80194bfd0235 Mon Sep 17 00:00:00 2001
+From: xenolf <xenolf@users.noreply.github.com>
+Date: Thu, 12 May 2016 19:52:59 +0200
+Subject: [PATCH] Update usage of codegangster/cli to remove deprecation
+ warning. Fixes #206.
+
+---
+ cli.go | 4 +++-
+ cli_handlers.go | 14 ++++++++++----
+ 2 files changed, 13 insertions(+), 5 deletions(-)
+
+diff --git a/cli.go b/cli.go
+index 052fc76..10cd705 100644
+--- a/cli.go
++++ b/cli.go
+@@ -144,7 +144,7 @@ func main() {
+ app.Run(os.Args)
+ }
+
+-func dnshelp(c *cli.Context) {
++func dnshelp(c *cli.Context) error {
+ fmt.Printf(
+ `Credentials for DNS providers must be passed through environment variables.
+
+@@ -175,4 +175,6 @@ Here is an example bash command using the CloudFlare DNS provider:
+ fmt.Println(`
+ For a more detailed explanation of a DNS provider's credential variables,
+ please consult their online documentation.`)
++
++ return nil
+ }
+diff --git a/cli_handlers.go b/cli_handlers.go
+index 1601c43..5585bcf 100644
+--- a/cli_handlers.go
++++ b/cli_handlers.go
+@@ -196,7 +196,7 @@ func handleTOS(c *cli.Context, client *acme.Client, acc *Account) {
+ }
+ }
+
+-func run(c *cli.Context) {
++func run(c *cli.Context) error {
+ conf, acc, client := setup(c)
+ if acc.Registration == nil {
+ reg, err := client.Register()
+@@ -245,9 +245,11 @@ func run(c *cli.Context) {
+ }
+
+ saveCertRes(cert, conf)
++
++ return nil
+ }
+
+-func revoke(c *cli.Context) {
++func revoke(c *cli.Context) error {
+
+ conf, _, client := setup(c)
+
+@@ -269,9 +271,11 @@ func revoke(c *cli.Context) {
+ logger().Print("Certificate was revoked.")
+ }
+ }
++
++ return nil
+ }
+
+-func renew(c *cli.Context) {
++func renew(c *cli.Context) error {
+ conf, _, client := setup(c)
+
+ if len(c.GlobalStringSlice("domains")) <= 0 {
+@@ -299,7 +303,7 @@ func renew(c *cli.Context) {
+ }
+
+ if int(expTime.Sub(time.Now()).Hours()/24.0) > c.Int("days") {
+- return
++ return nil
+ }
+ }
+
+@@ -330,4 +334,6 @@ func renew(c *cli.Context) {
+ }
+
+ saveCertRes(newCert, conf)
++
++ return nil
+ }