Commit graph

636 commits

Author SHA1 Message Date
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
Morgana
296890f9cf
Merge pull request #186 from Morganamilo/fix#185
Check for groups when creating the depTree
2018-02-27 21:06:42 +00:00
morganamilo
d75bb2bafb
Check for groups when creating the depTree
And if we do find a group just ignore it completley and pass it to
pacman.

Because it's ignored by the depTree it fails to show up when printing
whats to be installed under [Repo]. This is a minor visual thing for now
so I think it's probably best to figure that out at another point.
2018-02-27 20:48:25 +00:00
Morgana
dc3ed4575a
Merge pull request #184 from Morganamilo/fix#182
Fix duplicate packages when printing dependencies
2018-02-27 19:08:11 +00:00
Morgana
9c4b4d73f9
Merge pull request #183 from Morganamilo/fix#88
Save the VSC info when install finishes.
2018-02-27 19:08:01 +00:00
morganamilo
e01c4b3969
Fix duplicate packages when printing dependencies
The depTree holds info on all packages by name ready for the
depCatagories to catagorize and order them. To make things easier when
a repo package was added to the deptree it was also aliased to all of
its provides. So to find a package in the deptree you could search for
its provides instead of it's name and still find it.

The depCatagories is meant to filter out unneeded packages such as the
aliases but as it turns out if a package depends on a package and
something it provides then that alias is no longer unneeded and will end
up in the depCatagories.

Because these are just alias provieds still points to the original
package so you end up with the package name displaed to the user twice
when printing dependencies.

This commit just comments out the aliasing. It should have no effect
on package finding because where it used to seach by alias to find the
package it should instead fail then try to preform a lookup itself using
findSatisfyer and find the package.

This is probably a little less efficient than before but the database is
already on disk so there should be no real perfomance difference.
2018-02-27 19:03:52 +00:00
morganamilo
8fb83f3e70
Save the VSC info when install finishes.
Save the VSC Info as soon as the package install finishes. This should
ensure the VSC db does not end up in an incorrect state if an install
fails or is cancelled by the user.

This also adds better support for split packages. When one or more
packages are installed from the same base each individual package is
added to the db not just the base. This allows us to track individual
updates from the same base so that if one package gets updated we don't
assume all packages in the base are updated.
2018-02-27 17:14:40 +00:00
Morgana
f656794c7b
Merge pull request #167 from mvdan/patches
Remove unused code, prune dependencies, appease vet and gofmt
2018-02-27 11:15:48 +00:00
Daniel Martí
73d6f9b1ab all: remove unused code
And simplify some code too.
2018-02-27 10:16:53 +00:00
Daniel Martí
5ceab57504 dep: prune all dependencies by default 2018-02-27 10:14:26 +00:00
Morgana
49fe3b5a28
Merge pull request #180 from Morganamilo/fixtests
Fix tests
2018-02-27 03:44:08 +00:00
morganamilo
04a9830e0b
Fix tests 2018-02-27 03:41:39 +00:00
Morgana
005635b4ab
Merge pull request #164 from Morganamilo/warnings
Improvements to install algorithm
2018-02-27 02:57:11 +00:00
morganamilo
4cdcdc30e9
Further formatting tweaks
Ask clean builds is now asked early and remembers what you choose when
the install finishes.
Fixup "there is nothing to do" message.
2018-02-27 02:52:06 +00:00
morganamilo
4ef282c54e
go fmt 2018-02-27 02:02:33 +00:00
morganamilo
31d6a95c2a
Tweak some of the printting and fix formatting 2018-02-27 02:02:33 +00:00
morganamilo
b50fae1dd4
Reword conflicting package message
The old message was probably easy to confuse with the `replaces` term.
2018-02-27 02:02:33 +00:00
morganamilo
deed5e6794
Fix yay not installing repo deps properly 2018-02-27 02:02:33 +00:00