Commit Graph

827 Commits

Author SHA1 Message Date
morganamilo
06406d7cee
More formatting tweaks
Ensure aurWarnings will always be printed out in one block
use '->' for printing aur warnings and ignored upgrades
use '->' for conflict printing
use '->' for key importing
Say PGP keys not GPG keys
Add back green for input prompts
Use 4 spcaces over \t
2018-04-11 20:23:43 +01:00
morganamilo
191b5ebe47
Make colours more consistent and less ott
Use yellow ==> for warning messages
Keep white text no matter the colour of ==>
Use cyan for pkgname printing like it already is in places
2018-04-11 20:23:43 +01:00
Jguer
0aae012eb5 Update Readme
Signed-off-by: Jguer <me@jguer.space>
2018-04-11 11:34:31 +01:00
Morgana
53a31c2437
Merge pull request #348 from Morganamilo/fix#347
Don't mark repo upgrades as deps during sysupgrade
2018-04-11 05:36:52 +01:00
morganamilo
906748ebde
Don't mark repo upgrades as deps during sysupgrade
Before `yay -Syu` called `pacman -Sy <pkgs to upgrade>`
We then later switched to it calling `pacman -Syu` this lead to yay
seeing no targets to when it was upgrading a bunch of packages it
assumed they must be deps. Correct this by adding repo packages to the
targets list.

Also ensure we dont mark packages as dependencies if they are already
installed. For example we install `foo` which requires `bar>5` but we
only have `bar=4` installed. In this case installing `foo` will pull bar
in as a dependency but it should not be marked as such because it
already exists.
2018-04-11 05:35:44 +01:00
Morgana
960109d513
Merge pull request #345 from Morganamilo/fix#343
Support flags when using the editor
2018-04-09 21:09:47 +01:00
morganamilo
60b111545a
Tweak editor input loop
New line before output
Use less bold
Highlight editor and visual variables
Use cyan for highlighting
Use arrow prefix
Use loop instead of goto
2018-04-09 21:04:57 +01:00
morganamilo
f1e98e45a6
Support flags when using the editor
Added --editorflags alongside --editor
$VISUAL and $EDITOR are split on whitespace
2018-04-09 20:50:18 +01:00
Morgana
13ef6f66ab
Merge pull request #275 from ratorx/master
Recursively remove dependencies when using yay -Yc
2018-04-09 17:01:00 +01:00
Morgana
2aaf5f8694
Merge pull request #329 from AlexWayfer/improve_versions_output
Highlight diff between old and new versions better
2018-04-09 16:15:40 +01:00
Jguer
0026701888 Update README for release
Signed-off-by: Jguer <me@jguer.space>
2018-04-09 12:33:57 +01:00
Jguer
bc9439b26e Merge branch 'Morganamilo-fix#337' 2018-04-09 12:24:34 +01:00
Jguer
0507bebee9 Merge branch 'fix#337' of https://github.com/Morganamilo/yay into Morganamilo-fix#337 2018-04-09 12:22:37 +01:00
J Guerreiro
0c7ae56301
Merge pull request #341 from Jguer/fish
add fish completions
2018-04-09 12:21:43 +01:00
Jguer
adbc47a4f9 add fish completions
Signed-off-by: Jguer <me@jguer.space>
2018-04-09 12:20:51 +01:00
J Guerreiro
6ad06696d9
Merge pull request #339 from Morganamilo/doc2
Document fcf0ee34d1
2018-04-09 12:08:47 +01:00
J Guerreiro
a057050e33
Merge pull request #340 from Morganamilo/completion
Update bash and zsh completion
2018-04-09 12:08:11 +01:00
morganamilo
6f223786ef
Update bash and zsh completion 2018-04-08 21:49:27 +01:00
Alexander Popov
f7a636573b
Add tests for upgrade (getVersionDiff function) 2018-04-08 22:46:33 +03:00
Alexander Popov
38b5680619
Fix make test (gofmt threw "Files need to be linted") 2018-04-08 22:46:33 +03:00
Alexander Popov
1e4c029a2e
Add common stylize function for reduce code repeation
Also check for input length, don't create empty stylized strings.
2018-04-08 22:46:28 +03:00
morganamilo
e05d86b31b
Document fcf0ee34d1 2018-04-08 15:49:56 +01:00
Alexander Popov
46cffa6ba6
Highlight diff between old and new versions better
Split by dots, pluses, dashes, tilds, etc., not only `Version` and `Pkgrel`.

Don't make new version different bold.

Inspired by [`pikaur`](https://github.com/actionless/pikaur).
2018-04-08 02:16:31 +03:00
morganamilo
9ba9b03396
Show pkgver during -Ss when package is out of date 2018-04-07 23:02:10 +01:00
Reeto Chatterjee
992c27e82e
Merge branch 'master' into master 2018-04-07 16:42:56 +00:00
J Guerreiro
ec71a5bb87
Merge pull request #332 from Morganamilo/doc
Update usage and man page for new flags
2018-04-07 00:12:54 +01:00
morganamilo
855c6c841c
Update usage and man page for new flags 2018-04-05 19:25:17 +01:00
Morgana
6eb3dccf06
Merge pull request #330 from Morganamilo/fixnm
Fix number menu
2018-04-05 14:17:03 +01:00
morganamilo
072e8e6189
Fix number menu 2018-04-05 14:10:30 +01:00
Morgana
922a591b64
Merge pull request #328 from Morganamilo/flags
Repect --answer* flags when --noconfirm is set
2018-04-04 22:40:04 +01:00
morganamilo
a33414b723
Repect --answer* flags when --noconfirm is set
This means that menus are now printed in noconfirm mode, I don't see
this as a problem because Pacman still prints its questions during
noconfirm.

When the user has edited pkgbuilds Yay will prompt if they want to
continue with the intall. This prompt is also enabled during noconfirm
to ensure the user is happy with the pkgbuilds.
2018-04-04 22:22:33 +01:00
Morgana
b0445028e2
Merge pull request #327 from Morganamilo/flags
Add flags for sort order and automating menu input
2018-04-04 21:59:48 +01:00
morganamilo
00a1baf509
Fix number menu 2018-04-04 21:54:03 +01:00
morganamilo
8556acdd5f
Add flags for sort order and automating menu input
Added:

--sortby <votes|popularity|id|baseid|name|base|submitted|modified>
--answerclean
--answeredit
--answerupgrade
--noanswerclean
--noansweredit
--noanswerupgrade

TODO: docs and completion
2018-04-04 21:53:32 +01:00
Morgana
794e8dd3c7
Merge pull request #325 from Morganamilo/fix#324
Fix sysupgrade and extend help to work with other operators
2018-04-03 18:04:48 +01:00
morganamilo
faf607c624
Allow help to be used with all Operators 2018-04-03 18:01:18 +01:00
morganamilo
b8ef531b76
Strip request targets instead of making a new one 2018-04-03 17:48:56 +01:00
Morgana
0ccfd1a19f
Merge pull request #322 from Morganamilo/fix#316
Don't abort during AUR search error
2018-04-03 06:53:24 +01:00
morganamilo
5bcb51bf00
Don't abort during AUR search error 2018-04-03 06:49:41 +01:00
Morgana
c8f6145a18
Merge pull request #318 from ZenixTheHusky/Fix#310
Skip SRCINFOs that cannot be parsed during gendb
2018-04-03 01:58:14 +01:00
Morgana
87943743ef
Merge pull request #320 from Morganamilo/fix#319
Fix versioned dep checking
2018-04-03 01:54:41 +01:00
morganamilo
6125dd979e
Fix versioned dep checking
Before versioned deps with the same name would be combined into a single
version range.

For example:
`foo>1 foo>3 foo<4 foo<5` would be merged into the range `3<foo<4`

This was assumed to be fine because of course no package is going to
have conflicting dependencies `foo>3 foo<1` but what was not thought
about it that a package or packages could provide multiple versions of
a provider. Java being example, you could have 8 and 9 provided for at
the same time.

This then causes a problem when you try to install two packages at once,
one requiring `java<8` and the other `java>9` when combined this leads
to a range that can not be satisfied.

Instead we now never merge dependencies but check them all individually.

We also make sure to pull in all already installed providers. The reason
for this is, before if a package did not apear in the dep tree we
assumed it to be satisfied because of the .FindSatisfier in the dep
resolving. So if you installed a package that needs `foo=1` and you
already had a package providing that it would not be in the dep tree and
we assume it is fine. But if you install a package that needs `foo=1`
and install a package that prvoides `foo=2` then foo will all of
a sudden be in the dep tree but only version 2 will be there. For this
reason we also load all the already installed packages in so that the
`foo=1` will be there.
2018-04-03 01:47:42 +01:00
Peter Dyer
4400ebc31e Skip SRCINFOs that cannot be parsed during gendb
Install will still abort if a SRCINFO cannot be parsed.
2018-04-02 19:27:16 +01:00
Morgana
f986895aa2
Merge pull request #317 from Morganamilo/fix#316again
Strip db prefix from request targets
2018-04-02 17:50:51 +01:00
morganamilo
e5c99778df
Strip db prefix from request targets 2018-04-02 17:50:04 +01:00
Morgana
13ba261977
Merge pull request #315 from Morganamilo/fix#314
Try each search term against RPC if one fails
2018-04-02 15:31:06 +01:00
morganamilo
fe3743c5ba
Try each search term against RPC if one fails
Allows searching the RPC for words that may be too short or have
too many results as long as another word in the search will work.

If no words can be used without error then the last error will be
returned and the program will exit.
2018-04-02 15:27:07 +01:00
Morgana
bf73d29ade
Merge pull request #313 from Morganamilo/fix#312
Try alpmArch and any when looking for built pkgs.
2018-04-02 14:59:00 +01:00
morganamilo
ed964bf04d
Try alpmArch and any when looking for built pkgs.
Instead of trying to figure out if the package is of arch any just try
both.
2018-04-02 14:56:07 +01:00
J Guerreiro
5b7daa129a
Merge pull request #302 from Morganamilo/fix#287
Only pass needed upgrades to deptree
2018-04-02 12:48:53 +02:00