Commit Graph
304 Commits
Author SHA1 Message Date
Jonas Platte 9c524a4ece s/PKGBuild/PKGBUILD 2018-02-01 10:13:32 +01:00
J Guerreiro bd25a45829 Merge pull request #126 from Morganamilo/fix#122
Fixes #122 properly
v2.303
2018-01-31 17:50:23 +00:00
morganamilo 0f0100b4d0 Fixes #122 properly
Options such as --devel are now striped from the parser before handling
the command but the option is still processed so that config.devel would
be true.

Also changed `changedConfig` to a global in config.go
2018-01-31 17:44:15 +00:00
Jguer ce1b09c94d Fixes #125 2018-01-31 17:25:18 +00:00
J Guerreiro 3f09df3703 Merge pull request #124 from Morganamilo/fix#122
Filter out yay command line options
v2.300
2018-01-31 17:04:31 +00:00
morganamilo 66f2c8f869 Filter out yay command line options 2018-01-31 16:09:15 +00:00
Jguer fb220d45d5 Resolves #115. Ignore aur/package on install 2018-01-31 16:01:16 +00:00
Jguer 2f5c4df661 Updates var version so yay-git can update program version v2.297 2018-01-31 19:49:16 +09:00
Jguer fa479c2670 Updates fish completions
Updates man page and usage
Changes -G to -Yg but doesn't remove previous option yet.
2018-01-31 19:27:11 +09:00
J Guerreiro 57741cd9c1 Merge pull request #118 from heyitswither/master
add yay-git to the packages list
2018-01-31 09:04:52 +00:00
Tucker Boniface 553535e082 i missed a - :( 2018-01-28 22:26:22 -08:00
Tucker Boniface 7ce03949bc add yay-git to the packages list 2018-01-28 22:22:35 -08:00
J Guerreiro b69bab8c51 Merge pull request #113 from Jguer/colorPrint
Color print
2018-01-26 15:27:50 +00:00
Jguer a25ed83b21 Fixes version colouring. Semi-fixes collumn allignment 2018-01-26 15:27:47 +00:00
Jguer ecc337c29f Finishes porting text to new colour format. 2018-01-26 15:04:10 +00:00
Jguer f466fc74f5 Ports more text to new colour format. 2018-01-26 11:30:33 +00:00
Jguer 5286f3858c References #109. Begins to add escape codes and string constants 2018-01-26 10:18:49 +09:00
Jguer a4d0ef108f Fixes #75. Needs sudo. Prints number of updates and update list. 2018-01-25 20:39:26 +00:00
J Guerreiro b65dd862cc Merge pull request #111 from Morganamilo/installalg
Fix install not listing all dependencies
2018-01-22 14:02:46 +00:00
morganamilo 5100fea56a Fix install not listing all dependencies
Sometimes yay will not list all of the dependancies it needs when
installing packages. I mostly noticed this on libjpeg-turbo and the
issue was that the packages requring libjpeg-turbo were only requesting
libjpeg which was provided by libjpeg-turbo.

Now when we cache package info from the syncdb also alias the package name
to all of it's provides.
2018-01-22 12:46:30 +00:00
J Guerreiro adf9758932 Merge pull request #107 from Morganamilo/fixparser
Fix numbermenu not working with new install alg
2018-01-22 07:49:59 +00:00
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