Commit Graph

653 Commits

Author SHA1 Message Date
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
J Guerreiro
1a8be08a3e
Update README.md 2018-03-01 16:13:46 +00:00
morganamilo
4934d24643
Revert "Fix duplicate packages when printing dependencies"
This reverts commit e01c4b3969.
2018-03-01 14:30:16 +00:00
J Guerreiro
35599cdccf
Merge pull request #193 from Morganamilo/updatemanpage
Update manpage and usage
2018-03-01 09:47:49 +00:00
J Guerreiro
2c2cb22d6a
Merge pull request #192 from Morganamilo/fixdeps
Correctly mark packages as dependencies
2018-03-01 09:45:58 +00:00
morganamilo
8e7af3e186
Update manpage and usage
Reword a lot of manpage and usage options.

Remove the `-Yg` and `-Y --getpkgbuild` options from documentation and
code as they have moved to `-G` and `--getpgkbuild`.

Update the version in the man page. Because our version is based on our
commit number added a `+` after the version number to indicated that
this is the version the manpage was written at but it also applies to
newer versions.

Added missing `-c --complete` and `-f --fish` options to the manpage.
But left them out of usage.

Added myself to the authors section. I do feel a bit bad about adding
myself and only myself but I thought it was not a good idea to add 20
names and fill up the page. There's currently no rules on who should be
added and not really a huge need for them right now. I guess we can just
add more people when we deem they belong there whatever that criteria
is.
2018-03-01 02:09:24 +00:00
morganamilo
111a7f73dc
Hide pacman output when setting install reason
Stderr is shown if Pacman returns non 0.
2018-02-28 17:41:42 +00:00
morganamilo
0b6e4e0872
Correctly mark packages as dependencies
Previously Installing repo targets and repo dependencies of aur targets
was done in two steps.

doing `yay -S repo1 repo2 aur1 aur2` would lead to yay calling
`pacman -S repo1 repo2`. Then after we find all the dependencies of the
aur packages we call `pacman -S --asdeps <all repo dependencies>`. This
was an easy way to correctly mark dependencies. Since 005635b4 Both
these calls were merged into one command but dependency marking was
forgoten about.

Now correctly mark the dependencies through `pacman -D`
2018-02-28 15:29:54 +00:00
J Guerreiro
3fa502c92c
Merge pull request #189 from Jguer/issue-template
Create issue template
2018-02-28 14:13:16 +00:00
Jguer
5d708c7fbb Fix strange linting applied
Signed-off-by: Jguer <me@jguer.space>
2018-02-28 14:11:40 +00:00
Morgana
83a4b9a44f
Merge pull request #190 from Morganamilo/fix#140
Abort if editor does not return 0
2018-02-28 11:49:12 +00:00
morganamilo
695927c4cd
Abort if editor does not return 0
This allows the user to abort the install by telling the editor to exit
with a non zero status. e.g. `:cq` in vim. This should also catch errors
if the editor does actually fail or if the configured editor does not
exist.
2018-02-28 11:39:19 +00:00
Morgana
238d3a0b6c
Merge pull request #187 from Morganamilo/fix#10
Better dep checking on split packages
2018-02-28 11:15:59 +00:00
Jguer
a23a75ff5c Make the issue template more versatile
Signed-off-by: Jguer <me@jguer.space>
2018-02-28 09:26:10 +00:00
morganamilo
d14654a141
Better dep checking on split packages
Split packages are built at the same time so make sure the dependancies
for all packages in the base are installed before building.
2018-02-28 03:55:23 +00:00
Jguer
94b1892609 Create issue template
Signed-off-by: Jguer <me@jguer.space>
2018-02-27 23:38:07 +00:00