Commit Graph

1668 Commits

Author SHA1 Message Date
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
morganamilo
cfd391b423
Add comments to describe certain functions
Comments have been added to a couple of functions here and there
where I feel warrent some explanation. Hopefully this makes it a little
easier for people to contribute.

I commented on a couple of functions but my main focus is:
	DepTree
	DepCatagories
	StringSet
	Arguments

These are parts that have been mostly written by me and might seem
confusing without taking a while to study the code. Especially the first
two mentioned. They're a little complex, I'm not sure if they need to be
This is just how I came up with them. Hopefully helping other people
understand them will let them come up with improvments I did not see.
I'm not the best at explaining things but I did try my best here.
2018-03-03 01:34:39 +00:00
Morgana
4738c96809
Merge pull request #196 from Morganamilo/fix#128
Improve printing
2018-03-02 23:16:24 +00:00
morganamilo
55bfd619dc
Improve printing
Add ( and ) to "installed" to match groups and out of date
Show popularity as well as voted in yogurt mode
Show download and install size in yogurt mode
Remove printing of white and black
Fix incorrect message on number menu
Yellow is now almost never used
Use `v` instead of `r` when printing version
show when a page was marked out of date on search and info
2018-03-02 20:32:33 +00:00
Jguer
28d6f17933 Vendor update
Signed-off-by: Jguer <me@jguer.space>
2018-03-02 13:28:18 +00:00
Jguer
76a766c840 Small lint of project
Signed-off-by: Jguer <me@jguer.space>
2018-03-02 11:32:35 +00:00
morganamilo
ed2c231a72
Refactor printing
Drop the Fb suffix for printing colours
Seperate bold, fb and bg printing into individual functions
2018-03-02 04:39:16 +00:00
morganamilo
181663b7cb
Refactor f() to a dedicated function colourHash()
Also enable colourHash() for yogurt mode.
2018-03-02 01:08:14 +00:00
Morgana
3109ae759e
Merge pull request #195 from Morganamilo/fixprovides
Fix duplicate packages when printing dependencies
2018-03-01 22:01:38 +00:00
morganamilo
2fbfbc4de1
Fix duplicate packages when printing dependencies
e01c4b3969 made some bad assumptions.
Removing the aliases caused packages to not installed when required only
through provides and not their package name. This fixes that by
re enabling the aliases and simply removing duplicates at the end.
2018-03-01 21:57:52 +00:00
J Guerreiro
17a24f5d46
Add color output explanation to README 2018-03-01 16:15:31 +00:00