aboutsummaryrefslogtreecommitdiffstats
path: root/community/govendor/verbose.patch
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-12-20 14:50:49 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2016-12-20 14:53:33 +0100
commitc7d7a728310bb24da0dd65417d217487d4a53972 (patch)
treed07c2d7818c6288bd9b91963ed20e16083184132 /community/govendor/verbose.patch
parentb278832ab0ca264b259b80e724eb22e13076523e (diff)
downloadaports-c7d7a728310bb24da0dd65417d217487d4a53972.tar.bz2
aports-c7d7a728310bb24da0dd65417d217487d4a53972.tar.xz
community/govendor: moved from testing and add verbose switch
govender sync didnt have a verbose switch which made abuild process confusingly slow.
Diffstat (limited to 'community/govendor/verbose.patch')
-rw-r--r--community/govendor/verbose.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/community/govendor/verbose.patch b/community/govendor/verbose.patch
new file mode 100644
index 0000000000..ca8c9ccb94
--- /dev/null
+++ b/community/govendor/verbose.patch
@@ -0,0 +1,52 @@
+From d67fd7ee654b322fece97890c0237a3c86cd3260 Mon Sep 17 00:00:00 2001
+From: Stephen Shirley <kormat@gmail.com>
+Date: Tue, 8 Nov 2016 09:27:43 +0100
+Subject: [PATCH 1/2] Add verbose flag to govendor sync
+
+---
+ run/sync.go | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/run/sync.go b/run/sync.go
+index c2c914b..96deb67 100644
+--- a/run/sync.go
++++ b/run/sync.go
+@@ -16,6 +16,7 @@ func (r *runner) Sync(w io.Writer, subCmdArgs []string) (help.HelpMessage, error
+ flags := flag.NewFlagSet("sync", flag.ContinueOnError)
+ insecure := flags.Bool("insecure", false, "allow insecure network updates")
+ dryrun := flags.Bool("n", false, "dry run, print what would be done")
++ verbose := flags.Bool("v", false, "verbose output")
+ flags.SetOutput(nullWriter{})
+ err := flags.Parse(subCmdArgs)
+ if err != nil {
+@@ -26,7 +27,7 @@ func (r *runner) Sync(w io.Writer, subCmdArgs []string) (help.HelpMessage, error
+ return help.MsgSync, err
+ }
+ ctx.Insecure = *insecure
+- if *dryrun {
++ if *dryrun || *verbose {
+ ctx.Logger = w
+ }
+ return help.MsgNone, ctx.Sync(*dryrun)
+
+From 58a1479d0ead5a3c66b126be84c2173bafe37a37 Mon Sep 17 00:00:00 2001
+From: Stephen Shirley <kormat@gmail.com>
+Date: Tue, 8 Nov 2016 09:30:13 +0100
+Subject: [PATCH 2/2] Update help/text.go
+
+---
+ help/text.go | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/help/text.go b/help/text.go
+index ad416b6..dde6ffd 100644
+--- a/help/text.go
++++ b/help/text.go
+@@ -136,6 +136,7 @@ var helpSync = `govendor sync
+ Options:
+ -n dry run, print out action only
+ -insecure allow downloading over insecure connection
++ -v verbose output
+ `
+
+ var helpStatus = `govendor status