Commit graph

653 commits

Author SHA1 Message Date
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
Jguer 307daf32e7 Rename functions to more standard go form and typo fix some variables 2018-04-01 19:54:33 +02:00
Morgana f979d010ca
Merge pull request #309 from Morganamilo/fix#306
Fix missing -P in example.
2018-03-31 22:50:11 +01:00
morganamilo b268b0a9ce
Fix missing -P in example. 2018-03-31 22:49:17 +01:00
Morgana b14073a00f
Merge pull request #308 from DL6AKU/fix_default_syu
Default action (running yay without any args) is now to -Syu.
2018-03-31 22:44:55 +01:00
Michael Düll fcf0ee34d1 Default action (running yay without any args) is now to -Syu. 2018-03-31 22:55:15 +02:00
Morgana 42b7df44e0
Merge pull request #304 from agsimmons/patch-1
Fix typo in man page
2018-03-31 08:29:01 +01:00
Andrew Simmons 81381cb943
Fix typo in man page
Changed "databse" to "database"
2018-03-31 02:33:14 -04:00
J Guerreiro 5bf291b3a3
Merge pull request #301 from Morganamilo/fix#279
Save provides seperatly from pkgnames
2018-03-30 08:24:59 +02:00
morganamilo a04dd94282
Only pass needed upgrades to deptree
To know what AUR packages need updating a rpc request is needed for all
packages. The dep tree is designed to cache everything to minimize the
amount of rpc requests. The downside of this is the dep tree ends up
with all sorts of packages in cache that it doesn't need. Then the
deptree tries to resolve deps for all of thoes packages.

By spliting the sysupgrade from the dep tree this stops this from
happening, it uses one more rpc request but also may lower the amount of
total rpc requests needed lated on.

This fixes a couple of tiny bugs such as triggering providers prompts
and printing AUR out of date messages for packages that are not going
to be installed.

This also fixes another display bug where repo packages from -Su would
not apear when printing the packages to be installed under [Repo].
2018-03-29 19:05:38 +01:00
morganamilo 2e7bb5e7a3
Save provides separately from pkgnames
Now if `foo` wants to install `bar`

if you do `yay -S foo bar-git` Yay will detect bar is satisfied and not
try to install `bar` as well as `bar-git`.
2018-03-29 16:38:20 +01:00
Morgana bb9f7a6205
Merge pull request #300 from Morganamilo/fix#299
Don't check versioning for devel packages
2018-03-29 14:45:51 +01:00
morganamilo 31fecc3ec2
Don't check versioning for devel packages
Devel packages can't be trusted to sho their real provides. Pretend that
that the provide applies to all versions. In the rare case where the
dependency is unsatisfied pacman will refuse to install so no harm can
be caused.
2018-03-29 14:43:22 +01:00
Morgana ec066fdfc7
Merge pull request #290 from Morganamilo/sortupgrade
Sort upgrade menu by pacman.conf order.
2018-03-28 19:29:03 +01:00
Jguer d7ef9a9d27 Update README for release
Signed-off-by: Jguer <me@jguer.space>
2018-03-28 19:59:02 +02:00
J Guerreiro 090af6dce4
Merge pull request #296 from Morganamilo/shell
update shell completion
2018-03-28 11:06:30 +02:00
morganamilo 590030525b
Add shell completion for --rebuild* flags 2018-03-27 17:46:04 +01:00
morganamilo 7e20d2d8a3
Remove duplicate config option 2018-03-27 17:13:21 +01:00
J Guerreiro 0767c66e78
Merge pull request #294 from qrwteyrutiyoup/fish
Update fish completion regarding GPG options
2018-03-27 12:11:55 +02:00
J Guerreiro 9c852a9c84
Merge pull request #295 from Morganamilo/fixman
Fix \n in man page.
2018-03-27 12:11:38 +02:00
morganamilo 2cb5a6b6d6
Fix \n in man page. 2018-03-26 22:51:52 +01:00
Sergio Correia 51ad78cb69
Update fish completion regarding GPG options
Added completion for --gpg and --gpgflags.
This was forgotten in #256.
2018-03-26 15:24:32 -04:00
J Guerreiro 75098040ac
Merge pull request #293 from Jguer/Fix#292
Fix #292
2018-03-26 10:19:15 +02:00
Jguer eb07acbe6b Fix #292
Signed-off-by: Jguer <me@jguer.space>
2018-03-26 10:18:50 +02:00
morganamilo e807cd637f
Sort upgrade menu by pacman.conf order.
When printing the upgrade menu, sort the repos in the order they are
defined in pacman.conf (or more technically, the order they are
registered in alpm). Packages in the same repo are still sorted
alphabetically.

If a repo is not in pacman.conf or the database query fails it will
fallback to alphabetical.
2018-03-26 02:43:58 +01:00