Commit Graph

503 Commits

Author SHA1 Message Date
Jguer
e86e39a21d Add left padding to number menu
Signed-off-by: Jguer <me@jguer.space>
2018-03-12 21:01:53 +00:00
Jguer
30c9862880 Update bash completions
Signed-off-by: Jguer <me@jguer.space>
2018-03-12 20:47:27 +00:00
Morgana
e0303ffad8
Merge pull request #239 from Morganamilo/makeonly
Ensure targets are never listed as make depends
2018-03-12 18:53:28 +00:00
morganamilo
6e97fa7cb6
Ensure targets are never listed as make depends
when doing `yay -S foo bar` where `bar` is a makedep of `foo` in rare
cases bar would be listed as [aur make] even thought it was explicitly
requested.
2018-03-12 18:49:03 +00:00
Morgana
b562123353
Merge pull request #238 from Morganamilo/fix-
Add full support for reading from stdin
2018-03-12 00:07:54 +00:00
morganamilo
b0961e866d
Add full support for reading from stdin
Previosuly when reading from stdin we did not redirect back to the real
stdin afterwards so it was imposible to interact with y/n questions.

Now redirect back to "/dev/tty" just like pacman does.
2018-03-12 00:04:50 +00:00
Morgana
f1aff7908d
Merge pull request #237 from Morganamilo/Sl
Pass yay -Sl to pacman
2018-03-11 23:35:20 +00:00
morganamilo
2bd4cdc590
Pass yay -Sl to pacman 2018-03-11 23:34:09 +00:00
Morgana
38e4e6bdc1
Merge pull request #236 from Morganamilo/fixgetpkgbuild
Fix -G for non split packages and support multilib
2018-03-11 23:24:07 +00:00
morganamilo
b58746d1ef
Fix -G for non split packages and support multilib
A while ago the url to download a pkgbuild was using pkg.Name(), it was
latter changed to pkg.Base() to support split packages. It seems that
pkg.Base() does not work for non split packages for some reason.

So instead try pkg.Base() and if it is empty default to pkg.Name().

Also add support for downloading from multilib
2018-03-11 23:23:24 +00:00
J Guerreiro
fbae6df81b
Merge pull request #233 from Jguer/fishCompletions
Add new completions of yay
2018-03-11 23:08:59 +00:00
J Guerreiro
3bbdd938d1
Merge pull request #234 from Morganamilo/zsh
Update zsh completion
2018-03-11 23:08:47 +00:00
morganamilo
f59729da73
Update zsh completion 2018-03-11 22:38:21 +00:00
Jguer
1232854fd4 Update vendor dependencies
Signed-off-by: Jguer <me@jguer.space>
2018-03-11 21:27:55 +00:00
Jguer
375473db7c Update vendor dependencies
Signed-off-by: Jguer <me@jguer.space>
2018-03-11 21:27:49 +00:00
Jguer
803d957282 Fix typos
Signed-off-by: Jguer <me@jguer.space>
2018-03-11 21:19:19 +00:00
Jguer
d3b028d105 Add new completions of yay
Signed-off-by: Jguer <me@jguer.space>
2018-03-11 21:17:45 +00:00
J Guerreiro
d5d9dc1cba
Merge pull request #230 from Morganamilo/manpagefiles
Add info for all files and directories that used
2018-03-11 19:47:42 +00:00
J Guerreiro
c072146190
Merge pull request #227 from Morganamilo/numbermenu
Use numbermenu for cleanBuilds and editPkgbuilds
2018-03-11 19:46:53 +00:00
morganamilo
f7abb1b0ac
Use numbermenu for cleanBuilds and editPkgbuilds 2018-03-11 18:14:16 +00:00
Morgana
5df7f2293d
Merge pull request #231 from Morganamilo/formatting
Fix formatting on upgrade menu
2018-03-11 04:15:48 +00:00
morganamilo
91757f51c7
Fix formatting on upgrade menu
commit 5286f385 broke the alignment on -> in the upgrade menu.

This commit moves the function responsable for printing the upgrade menu
from upgrade.go to print.go, fixes the formating to how it was before
and changes the padding on the number to three digits instead of two.
This allows proper alignment on numbers >100 which is not unheard of.
2018-03-11 04:13:13 +00:00
morganamilo
9399cddc1e
Add info for all files and directories that used 2018-03-10 22:03:10 +00:00
Morgana
35769036aa
Merge pull request #229 from aswild/manpage-configfiles
Mention config files in the man page
2018-03-10 17:31:04 +00:00
Allen Wild
b0f70a0d1b Mention config files in the man page
Explicitly document the location of Yay's config files in
$XDG_CONFIG_HOME/yay and mention that the color option is inherited from
pacman.conf
2018-03-10 12:13:32 -05:00
morganamilo
d03890a3c4
Remove unneeded functions 2018-03-10 03:04:54 +00:00
morganamilo
287bac04c9
Use parseNumberMenu() for yogurt mode 2018-03-10 03:04:54 +00:00
morganamilo
2aadd1931c
Refactor and improve the upgrade menu
With the planned move to number menus for askcleanbuilds and
askeditpkgbuilds a consistant way is needed to make number menus in
a clean way without rewriting the same code over and over.

The prevous commit introduced `parseNumerMenu()` to create a standard
way to handle number menus. This commit implements the new function for
the upgrade menu both as a test and to bring some new features.

Entering 1-9999999 will no longer cause ram usage to spike to 100%
(before yay would try to build an []int containing the numbers 1 to
9999999).

Suport for discarding/including entire repos by name

> "54 aur extra"
	would skip the package numbered 54 and all packages
	that are listed as aur and extra.

> "^devel ^20"
	would only install packages listed under devel and the package
	numbered 20
2018-03-10 03:04:54 +00:00
morganamilo
6988537552
Add parseNumberMenu()
This function is designed to replace the existing number menu
in upcoming commits.
2018-03-10 03:04:44 +00:00
morganamilo
f0f20269a0
Show versions when printing Packages to install 2018-03-08 23:54:18 +00:00
Morgana
4a2ea00da0
Merge pull request #223 from Morganamilo/fixsudoloop
Handle sudoloop flag
2018-03-08 16:08:07 +00:00
morganamilo
296f59f855
Handle sudoloop flag 2018-03-08 16:06:40 +00:00
Morgana
0e1182356a
Merge pull request #220 from Morganamilo/addflags
Add flags for all missing config options
2018-03-08 15:52:48 +00:00
morganamilo
2bb8070213
Add flags for all missing config options
With this The user should never have to manually edit the yay config
file. All options can be set directly through yay using
`yay --<option> <value> --save`
2018-03-08 14:56:53 +00:00
Morgana
6743af28dd
Merge pull request #222 from Morganamilo/atob
Fix min()
2018-03-08 04:08:54 +00:00
morganamilo
e6b36eaf74
Fix min() 2018-03-08 04:07:51 +00:00
Morgana
0ae0df74f1
Merge pull request #221 from Morganamilo/fix#200
Fix for yay locking when querying AUR
2018-03-08 02:28:23 +00:00
morganamilo
5f4c6e136b
Fix for yay locking when querying AUR 2018-03-08 02:26:06 +00:00
Morgana
4088d5d856
Merge pull request #215 from Morganamilo/mflags
Add --mflags option to pass args to makepkg
2018-03-07 23:37:42 +00:00
morganamilo
15409ad4e5
Add doc for --mflags 2018-03-07 23:36:09 +00:00
morganamilo
cee0d74643
Add --mflags option to pass args to makepkg 2018-03-07 23:18:00 +00:00
Morgana
c89941bf83
Merge pull request #213 from Morganamilo/gitbin
Add GitBin and tweak defaults
2018-03-07 23:16:06 +00:00
morganamilo
7e6def5a5f
Add GitBin and tweak defaults
Use cacheHome for builddir instead of hardcoding ~/.cache
Use the command names in config.*Bin options.

For example PacmanBin is changed to just "pacman" this means yay will
call the pacman commit in PATH. If the user wants to use a different
binary they can still specify a full path in the config.
2018-03-07 23:14:42 +00:00
Morgana
d3f0053ce1
Merge pull request #217 from Morganamilo/fix
Remove accidental debug string
2018-03-07 22:59:05 +00:00
morganamilo
dec395753c
Remove accidental debug string 2018-03-07 22:58:13 +00:00
Morgana
bf5f46b8f8
Merge pull request #216 from Morganamilo/save
Add --save option
2018-03-07 22:40:42 +00:00
morganamilo
5a7654909d
Add doc for --save 2018-03-07 22:37:44 +00:00
morganamilo
33b76045e7
Add --save option
Before setting options such as --topdown would be saved to the config
file automaticly when used. Now this is no longer done by default and
isntead the --save flag must be passed for this to happen.

If --save is passed the config is now saved as soon as the argument
parsing is finished apposed to before where it was saved when yay exits.
This means that config changes will now apply if the user does a ^C
before yay finishes.
2018-03-07 22:34:45 +00:00
Morgana
a7be7a839d
Merge pull request #208 from Morganamilo/redownload
Add support to skip pkgbuild downloads.
2018-03-07 21:56:18 +00:00
morganamilo
a6cab60888
Add --redownloadall option and fix manpage descs 2018-03-07 21:32:55 +00:00