Commit Graph

478 Commits

Author SHA1 Message Date
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
Morgana
2456a05437
Merge pull request #214 from Morganamilo/fix#211
Fix group installs
2018-03-07 16:49:16 +00:00
morganamilo
fd95855a49
Fix group installs 2018-03-07 16:42:26 +00:00
Morgana
7af8555109
Merge pull request #212 from Morganamilo/fixconfig
Set default config in the correct place
2018-03-07 16:27:07 +00:00
morganamilo
9b4264f346
Set default config in the correct place 2018-03-07 16:26:15 +00:00
J Guerreiro
edfc941e4f
Fix yay -G on README 2018-03-07 12:11:48 +00:00
Morgana
e436017bbe
Merge pull request #210 from Morganamilo/fix#209
Fix error when cacheHome does not exist
2018-03-07 05:29:22 +00:00
morganamilo
74ef0beaed
Fix error when cacheHome does not exist
And refactor initYay out into smaller parts
2018-03-07 05:27:54 +00:00
Morgana
251d31c970
Merge pull request #206 from Morganamilo/lsremote
Use git ls-remote to track devel updates
2018-03-06 23:55:37 +00:00
morganamilo
1d3a87bd70
Move ~/.config/yay_vcs.json to ~/.cache/vcs.json
And refactor the file paths to constants in config.go
2018-03-06 17:43:57 +00:00
morganamilo
fc72bdfcd0
Update vcs_test.go for new vcs method 2018-03-06 15:20:53 +00:00
morganamilo
d5fc1e0de5
Update docs for --redownload and --noredownload 2018-03-06 15:17:55 +00:00
morganamilo
f66349696e
Add support to skip pkgbuild downloads.
If a pkgbuild is already in cache and matches the version on
the aur skip the download.

The version we check comes from the .SRCINFO file on disk which is never
updated. (updates through pkgver() edit the pkgbuild but do not effect
the .SRCINFO). Therefore if the the version of the .SRCINFO matches the
AUR's version there must not be  an update.

In the case of the on disk version being newer than the AUR version we
can assume user interaction and they probably do not want it overwitten
so in that case also skip the download.
2018-03-06 04:08:37 +00:00
morganamilo
80c59a74cc
Use git ls-remote to track devel updates
Use the command `git ls-remote <url> <branch>` to track devel updates
rather than relying on the GitHub API.

This allows devel update to work for every git based source and
elimantes the rate limiting from GitHub.

The yay_vcs.json format has changed to better support packages which
multiple vcs sources and to track the protocols each source uses. And
track the branch that each source tracks in it's fragment.
2018-03-05 23:05:13 +00:00
J Guerreiro
01afc61f0d
Merge pull request #203 from Jguer/bash-completion
add missing options to bash. Closes #121.
2018-03-04 01:18:36 +00:00
Jguer
95883fddbd add missing options to bash. Closes #121.
Signed-off-by: Jguer <me@jguer.space>
2018-03-04 01:17:22 +00:00
J Guerreiro
c934a56a1d
Merge pull request #202 from Jguer/zsh-completion
Zsh completion
2018-03-04 01:03:37 +00:00
Jguer
9a6596f6c6 add missing options and operations to zsh
Signed-off-by: Jguer <me@jguer.space>
2018-03-04 01:00:11 +00:00
Jguer
fc3738c060 add missing options and operations to zsh
Signed-off-by: Jguer <me@jguer.space>
2018-03-04 00:12:19 +00:00
J Guerreiro
e5470c88c6
Merge pull request #201 from ZenixTheHusky/fixFormatting
Add missing space before devel update
2018-03-03 23:51:20 +00:00
Peter Dyer
66225b949d Add missing space before devel update 2018-03-03 23:42:12 +00:00
J Guerreiro
b7a0062e2e
Update README.md 2018-03-03 12:04:29 +00:00
Morgana
0f322cbcb6
Merge pull request #199 from Morganamilo/fixprompt
Fix Yay showing AUR prompts when it shouldnt
2018-03-03 04:15:56 +00:00
morganamilo
1597fb1cf0
Fix Yay showing AUR prompts when it shouldnt
In a very specific case where the user runs `yay -Syu` then uses the
number menu to ignore all AUR upgrades after the Repo install the user
will still be prompted to install and download packages.
2018-03-03 04:14:35 +00:00
Morgana
2ced41e6e6
Merge pull request #198 from Morganamilo/doc
Add comments, spellchecking and formatting
2018-03-03 03:17:46 +00:00
Peter Dyer
c0402e61a6
Spellchecked comments and formatted to commenting standards.
Reformatted comments to have a space between // and the start of the
comment.
Added capital letters and punctuation.
Fixed most grammar and spelling mistakes.
Fixed date to yyyy/mm/dd.
2018-03-03 02:57:30 +00:00