Ver código fonte

Update docs for --redownload and --noredownload

morganamilo 7 anos atrás
pai
commit
d5fc1e0de5
2 arquivos alterados com 13 adições e 0 exclusões
  1. 2 0
      cmd.go
  2. 11 0
      yay.8

+ 2 - 0
cmd.go

@@ -46,6 +46,8 @@ Permanent configuration options:
     --noafterclean       Do not remove package sources after successful build
     --timeupdate         Check package's AUR page for changes during sysupgrade
     --notimeupdate       Do not checking of AUR page changes
+    --redownload         Always download pkgbuilds
+    --noredownload       Skip pkgbuild download if in cache and up to date
 
 Print specific options:
     -c --complete        Used for completions

+ 11 - 0
yay.8

@@ -151,6 +151,17 @@ the last modification time of each package's AUR page\&.
 .RS 4
 Do not consider build times during sysupgrade\&.
 .RE
+.PP
+\fB\-\-redownload\fR
+.RS 4
+When downloading pkgbuilds if the pkgbuild is found in cache and is equal or
+newer than the AUR's version use that instead of downloading a new one\&.
+.RE
+.PP
+\fB\-\-noredownload\fR
+.RS 4
+Always download pkgbuilds even when a copy is avaliable in cache\&.
+.RE
 .SH "EXAMPLES"
 .PP
 yay \fIfoo\fR