Commit Graph

1877 Commits

Author SHA1 Message Date
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
morganamilo
e015c612d8
Remove -s from makepkg
The -s was kept aroung because the package base `python-virtualfish`
failed to build without it. I first blamed this on some aur rpc bug
because it was missing some deps that were listed in python-virtualfish.
As is turned out python-virtualfish actually does some things wrong in
it's package build and if it was formated correctly this wouldnt be
a problem.

I kept the -s in just so it would build even though it might have had
some side affects. makepkg not respecting the --dbpath for example.

From now on python-virtualfish will fail to build when you dont have all
the deps installed. This is their fault and will not be fixed here.
2018-02-27 02:02:33 +00:00
morganamilo
4a142425ec
Add support fot CheckDepends
Note when installing CheckDepends are still refered to as MakeDepends.
They are both only needed during build time so technically that is
correct. I don't see much of a use creating a third field so I'm leaving
it as is for now.
2018-02-27 02:02:33 +00:00
morganamilo
c189a98018
Re enable -Pu and -Pn 2018-02-27 02:02:33 +00:00
morganamilo
2f39f5ddc4
Only print "querying aur" when using the aur 2018-02-27 02:02:33 +00:00
morganamilo
716d775d5f
Improve formatting
Ignorepkg also colours version differences like the upgrade menu
Tweaked formatting when asking for users to eneter number
2018-02-27 02:02:33 +00:00
morganamilo
dab8f1b5d2
Improve gendb and formatting
Exit after parsing srcinfo with db do it actually does something.
when using gendb dont bother generating srcinfos.
Improved the formatting for some things mainly downloading and parsing.
2018-02-27 02:02:33 +00:00
morganamilo
46cc1f2c09
Display missing, orphans and out of date in groups
Instead of printing each warning on a seperate line, group up the
warnings by type (missing, orphan, out of date) and display each
group on its own line.
2018-02-27 02:02:33 +00:00
morganamilo
3f7c731f99
Make aurInfo concurrent 2018-02-27 02:02:33 +00:00
morganamilo
2856a7276c
Refactoring and improving insall process
This commit mostly focuses on merging the install() and upgradePkgs()
functions to be more integrated. Instead of both making their own aur
queries they now both combine theyre needes into one query. This gives
us a speed up and allows us to easily print orphands, misising and out
of date in one clean block.
2018-02-27 02:02:33 +00:00