Commit graph

1783 commits

Author SHA1 Message Date
morganamilo a33ef81794
Fix numbermenu not working with new install alg 2018-01-21 11:48:09 +00:00
J Guerreiro 69c8bf37c8
Merge pull request #106 from Jguer/print
Basic new Print option implementation
2018-01-21 08:05:02 +09:00
Jguer 63bc57e99e Merge branch 'Morganamilo-reorderinstall' 2018-01-21 08:04:02 +09:00
Jguer 3c9a31994c
Linted using Neoformat, all linters enabled 2018-01-21 07:37:10 +09:00
Jguer 5d43852a11 Merge branch 'reorderinstall' of https://github.com/Morganamilo/yay into Morganamilo-reorderinstall 2018-01-21 03:57:43 +09:00
Jguer 9d55882ce2
Added statistics to new interface. Removed old. 2018-01-21 03:39:53 +09:00
Jguer 8fd8cd65fa
Fixed bash completion 2018-01-21 02:58:18 +09:00
Jguer 19edd5a139
Fixed ZSH completion 2018-01-21 02:52:55 +09:00
Jguer 42889821d3
New print option, added new completion syntax, fixed fish completion 2018-01-21 02:48:40 +09:00
Jguer 14f83053a5
Missing vendor files added 2018-01-21 01:49:24 +09:00
morganamilo 3275f8d8ac
New install algorithm
I have replaced the old install and dependancy algorithms with a new
design that attemps to be more pacaur like. Mostly in minimizing user
input. Ask every thing first then do everything with no need for more
user input.

It is not yet fully complete but is finished enough so that it works,
should not fail in most cases and provides a base for more contributors
to help address the existing problems.

The new install chain is as follows:
	Source info about the provided targets
	Fetch a list of all dependancies needed to install targets
		I put alot of effort into fetching the dependancy tree
		while making the least amount of aur requests as
		possible. I'm actually very happy with how it turned out
		and yay wil now resolve dependancies noticably faster
		than pacaur when there are many aur dependancies.
	Install repo targets by passing to pacman
	Print dependancy tree and ask to confirm
	Ask to clean build if directory already exists
	Download all pkgbuilds
	Ask to edit all pkgbuilds
	Ask to continue with the install
	Download the sources for each packagebuild
	Build and install every package
		using -s to get repo deps and -i to install
	Ask to remove make dependancies

There are still a lot of things that need to be done for a fully working
system. Here are the problems I found with this system, either new or
existing:
	Formating
		I am not so good at formatting myself, I thought best to
		leave it until last so I could get feedback on how it
		should look and help implementing it.
	Dependancy tree
		The dependancy tree is usually correct although I have
		noticed times where it doesnt detect all the
		dependancies that it should. I have only noticed this
		when there are circular dependancies so i think this
		might be the cause. It's not a big deal currently
		because makepkg -i installed repo deps for us which
		handles the repo deps for us and will get the correct
		ones. So yay might not list all the dependancies. but
		they will get installed so I consider this a visual bug.
		I have yet to see any circular dependancies in the AUR
		so I can not say what will happend but I#m guessing that
		it will break.
	Versioned packages/dependencies
		Targets and dependancies with version constriants such
		as 'linux>=4.1' will not be checked on the aur side of
		things but will be checked on the repo side.
	Ignorepkg/Ignoregroup
		Currently I do not handle this in any way but it
		shouldn't be too hard to implement.
	Conflict checking
		This is not currently implemented either
	Split Paclages
		Split packages are not Handles properly. If we only
		specify one package so install from a split package
		makepkg -i ends up installing them all anyway. If we
		specify more than one (n) package it will actually build the
		package base n times and reinstall every split package
		n times.
	Makepkg
		To get things working I decided to keep using the
		makepkg -i method. I plan to eventually replace this
		with a pacman -U based method. This should allow passing
		args such as --dbpath and --config to aur packages
		aswell as help solve some problems such as the split
		packages.
	Clean build
		I plan to improve the clean build choice to be a little
		more smart and instead of check if the directory exists,
		check if the package is already build and if so skip the
		build all together.
2018-01-20 10:00:12 +00:00
Jguer 61065dc930
Satisfied linter 2018-01-19 23:51:18 +09:00
Jguer 4218a47ef2
Updated vendored packages 2018-01-19 23:32:07 +09:00
J Guerreiro 51b2f02eb8
Merge pull request #92 from l4foss/fix_query_info
fix query info with -Si
2018-01-19 00:23:44 +09:00
J Guerreiro 7c4aa993f7
Merge pull request #102 from Morganamilo/countfrom0again
Count from 0 on upgrade prompt
2018-01-18 21:13:55 +09:00
morganamilo 91662d7e9d
Count from 0 on upgrade prompt 2018-01-18 12:08:40 +00:00
J Guerreiro 479e2f0ce0
Merge pull request #97 from samosaara/master
Support for ranges when selecting packages
2018-01-18 21:02:35 +09:00
J Guerreiro abdb1aeca5
Merge pull request #101 from Morganamilo/fixdumbbug
Fix makepkg not behaving correctly
2018-01-18 21:00:44 +09:00
morganamilo 93a861c725
Fix makepkg not behaving correctly
This bug was caused by me not thinking when passing flags to aurInstall.
Currently a bunch of functions take an array of flags but we don't really
use them any more after the argument parsing update. These should be
refactored out eventually but I'm holding off until I'm more sure about
how these functions should look.
2018-01-17 04:14:44 +00:00
J Guerreiro bb22e8e889
Merge pull request #98 from Morganamilo/fixes
Small fix and manpage update.
2018-01-16 09:45:50 +09:00
l4 8c1d64c06b local repo goes first
remove the old function

local repo goes first

exit on err passToPacman()
2018-01-16 00:09:32 +07:00
l4 b1e01b3af5
Merge branch 'master' into fix_query_info 2018-01-15 21:02:44 +07:00
morganamilo d21f7ed373
Update manpage 2018-01-14 20:34:08 +00:00
morganamilo 4da65a6a22
Fix error when no vsc_config exists 2018-01-14 20:26:30 +00:00
Samuel Henrique Oliveira da Silva 12641befac Keeping up with master
- Minor linting fixes.
2018-01-14 17:17:15 -02:00
Samuel Henrique Oliveira da Silva d737c99c81 Excluding from installation
#ItWoksOnMyMachine
2018-01-14 16:53:37 -02:00
Samuel Henrique Oliveira da Silva 0301eb0440 Negation for upgrading 2018-01-14 15:48:16 -02:00
Jguer 41e9f8694e Merge branch 'Morganamilo-fix#71' 2018-01-15 02:23:36 +09:00
Jguer 4abddaab66
Satisfied linter 2018-01-15 02:23:29 +09:00
Jguer b18724ac7e Merge branch 'fix#71' of https://github.com/Morganamilo/yay into Morganamilo-fix#71 2018-01-15 02:22:41 +09:00
Jguer 92e9eed230
Updated go-alpm vendored version 2018-01-15 02:21:50 +09:00
Jguer 9cbef8d643 Merge branch 'Morganamilo-fix#62' 2018-01-15 02:13:19 +09:00
Jguer 62af87bb0f
Merged argument parsing system 2018-01-15 02:12:51 +09:00
Samuel Henrique Oliveira da Silva 6d2dcad091 Replicates the range functionally to upgrade 2018-01-14 14:04:15 -02:00
Samuel Henrique Oliveira da Silva 29cd864bbe Support for ranges when selecting packages
- Also, minor formatting to cmd.go
2018-01-14 13:15:32 -02:00
J Guerreiro efbda98094
Merge pull request #94 from Morganamilo/fixnl
Fix formatting on -Si for aur packages
2018-01-14 00:50:58 +09:00
J Guerreiro 45e0b5509f
Merge pull request #93 from Morganamilo/addbottomup
Add missing --bottomup option
2018-01-14 00:48:44 +09:00
J Guerreiro ed6f05eb19
Merge pull request #84 from Morganamilo/fix#78
Fix crash when package version is "invalid"
2018-01-14 00:47:14 +09:00
morganamilo 0fb4b3bab3
Use go-alpm for ignorepkg/ignoregroup 2018-01-10 00:38:32 +00:00
morganamilo a3df41368b
Merge branch 'master' into fix#62 2018-01-07 21:59:39 +00:00
morganamilo 92683dc3ed
Fix formatting on -Si for aur packages
Add missing \n
Remove trailing [ and ] on slices
2018-01-07 17:36:31 +00:00
morganamilo 40a881927c
Add missing --bottomup option 2018-01-06 23:28:07 +00:00
l4 ba143bdb36 fix query info with -Si 2018-01-06 20:50:54 +07:00
J Guerreiro 32ecd8b1dd
Merge pull request #83 from Morganamilo/searchfrom1
Count from 1 instead of 0 when searching packages
2018-01-06 22:47:45 +09:00
J Guerreiro 65c0c52a75
Merge pull request #91 from Jguer/revert-82-master
Revert "Add missing --bottomup option"
2018-01-06 22:46:47 +09:00
J Guerreiro 04ebd39b53
Revert "Add missing --bottomup option" 2018-01-06 22:46:07 +09:00
J Guerreiro 82a4b30484
Merge pull request #82 from Morganamilo/master
Add missing --bottomup option
2018-01-06 09:46:34 +09:00
morganamilo 60deeb2ceb
Update manpage 2018-01-05 22:29:49 +00:00
morganamilo 142cb25f95
Fix deps not being passed to pacman properly 2018-01-05 22:15:12 +00:00
morganamilo c0fc086a07
Pass command line arguments to alpmConf before init
This allows us to use command line options such as '--root' and '-b' when
performing operations that use out alom handle.

Sadly this does not apply to passToMakepkg which will ignore options
such as '--root' and because we pass '-i' to makepkg it installs for us
using the default options.

Currently I have not planned a solution for this but one which I thought
of but not looked into is. Always call makepkg without arguments (except
from '--noconfirm' and others which might still be needed) and manage
the dependancies and post install outselves.

Another option might be to use makepkg's $PACMAN enviroment variable and
redirect the pacman calls to yay. Although I am unsure about both
stratergys they are just my current thoughts.

Also while editing the flow of cmd.go, I managed to refactor away all
os.Exit calls apart from the very last so it should be more clear as to
where the program exits.
2018-01-04 22:48:54 +00:00