122 Commits

Author SHA1 Message Date
Jguer
203b49321e
Bump version to 9.4.2 for -G patching 2019-10-23 12:11:44 +01:00
Jguer
446db893f0
Fixes #1086 2019-10-23 11:43:28 +01:00
Jguer
1257a6df08
Bump version to 9.4.1 for arm bin release once pacman 5.2 hits arm core 2019-10-22 21:15:11 +01:00
J Guerreiro
e1403861c0
Merge pull request #1077 from Jguer/pacman-next
Update go-alpm for pacman-next
2019-10-22 09:40:57 +02:00
Jguer
211b96867c
Bump version for release. 9.4.0 2019-10-21 16:50:17 +01:00
morganamilo
1d2855ab76
Update go-alpm for pacman-next 2019-10-21 12:50:09 +01:00
morganamilo
bbeef9d237
Move abs cloning to it's down directory
As mentioned it is possible for stuff to clash in cache if you were to
-G a package from the repos, then -S an AUR package by the same name. To
avoid that give abs cloning its own directory.

It is still possible for a clash to occur if there was a package named
abs. However currently there is not.

Idealy the aur cloning would also get it's own subdir, but that will
invalidate everyone's cache so leaving it for a time with more breaking
changes.

This is also under its own config option so that AURDEST does not
interfere with it.
2019-10-18 08:48:58 +01:00
morganamilo
4d91acc749
Re-add --batchinstall and fix dep issues 2019-10-16 20:59:52 +01:00
J Guerreiro
7b710b796b
Merge pull request #1056 from Morganamilo/searchby
Add --searchby
2019-10-13 23:38:28 +01:00
Jguer
422a5931af
Check fields length to avoid panic in editor prompt. Fixes #834 2019-10-13 00:48:12 +01:00
morganamilo
ab2101ab49
Add --searchby
Allow using the RPC's &by= field during -Ss
2019-10-10 17:43:22 +01:00
Jguer
2214bc0cb2
Revert "Merge pull request #778 from Morganamilo/group-transactions"
This reverts commit 6cd47dd83c49689f0bd84c650feea9c71ed1aaf2, reversing
changes made to 16fddae8b6e5b0adb0265f4f8f44bff607394dcc.

Signed-off-by: Jguer <me@jguer.space>
2019-10-04 19:42:17 +01:00
Jguer
fd9a62ddb8 Bump version 2019-09-20 18:37:42 +01:00
morganamilo
80e66ce479
Allow many aur packages to be installed at once.
After building an AUR package don't install it right away. Instead queue
it for install.

Then when a package comes along that does not have all of its
dependencies satisfied, install the queued packages before builting.

This allows a standard AUR update to be done with one transaction, while
building AUR packages with long dependency chains will work as normal.

This feature is behind the `--batchinstall` flag.
2019-06-17 14:25:59 +01:00
Jguer
86b73689a3
Should fix #960. Bumps patchversion 2019-06-03 23:39:30 +01:00
morganamilo
112046853b
Use correct case on go-alpm import 2019-04-23 16:53:20 +01:00
J Guerreiro
888a289a1b
Revert "Add SudoBin" 2019-03-29 22:09:27 +00:00
Pierre-Alain TORET
877c794bc2 Add SudoBin and SudoFlags 2019-03-27 15:16:39 +01:00
Motkov Kirill
14ac756298 Code improvements
- Removed yoda condition.
- Renamed/removed variables which shadows built-in names.
- Rewrited if-else-if-else chains to switch statements.
2019-03-10 16:36:01 +03:00
Motkov Kirill
0878b485ae remove suspicious err reassigns 2019-03-05 23:10:04 +03:00
Motkov.Kirill
a33801615c miss assignment to err 2019-03-05 11:10:56 +03:00
morganamilo
5ce4a49687
Update go-alpm 2019-02-04 16:56:02 +00:00
Jguer
0f57ed0ba8
Update to version 9.1.0 2019-01-20 15:52:21 +00:00
Jguer
d3a9082f2a
Update patch version of yay to reflect makefile changes 2018-12-07 14:00:17 +00:00
Jguer
47373c5631
update version 2018-12-06 08:09:05 +00:00
Jguer
5bcadc58ac
Fix tests and prepare for release 2018-12-01 15:03:46 +00:00
morganamilo
556a76c38d
Fix each iota not starting at 0 2018-11-29 20:42:06 +00:00
Joe Groocock
52bf777e67
Print errors on stderr
This makes a start on fixing https://github.com/Jguer/yay/issues/715
It is by no means a complete solution, but instead a start
2018-11-20 22:27:30 +00:00
Jguer
2ed7df4f5a
Unexport consts. Make default a literal
Signed-off-by: Jguer <me@jguer.space>
2018-10-22 21:00:16 +01:00
Jguer
1f1cee7023
Update manual config version 2018-10-18 09:19:45 +01:00
Jguer
621b8aac43
Update constant version. Add transitional support for patch version 2018-10-08 18:46:51 +01:00
morganamilo
4fc6a1a711
Fix provider menu showing when it shouldn't
If the package is already installed, we need to check if it is in the
repos to see if it aplies to rebuild tree. Normally alpm will not prompt
us to select a provider if we already have one installed. An exception
comes up when we have a provider installed that is from the AUR. In this
case FindSatisfier() still asks us to select a provider.

Now make sure to never to never show the menu if the package exists in
the local repo.
2018-09-25 14:33:25 +01:00
Jguer
9ac4ab6c25
Update to 1138 2018-09-24 17:35:13 +01:00
Peter Dyer
e6238d32fa Set SigLevel to 0
Previous default SigLevels caused 3rd party databases to take a very long time to
load and also to not load properly. Probably due to missing keys(?).
Pacman takes a long time to check the databases. For now, always set to
SigLevel 0 like how go-alpm did in its config parsing. Needs more
looking into for a proper fix.
2018-09-19 19:52:58 +01:00
morganamilo
b2f636d93b
Use go-pacmanconf for config parsing
This moves the config parsing from out of alpm and into the
go-pacmanconf libary plus some boilerplate code to get it into our alpm
config.

This makes sense as many config options such as UseColor and CleanMethod
have nothing to do with alpm and only relate to pacman.

pacman-conf is used instead of direct config parsing. This tool resolves
defaults and includes for us, so we don't need to handle it.

It is now safe to drop all the config parsing from go-alpm.
2018-09-10 23:07:34 +01:00
Jguer
6e0797a8c7
Set version manually for gcc-go
Signed-off-by: Jguer <me@jguer.space>
2018-09-05 09:21:11 +01:00
morganamilo
c004364864
Fix builddir defaulting to config instead of cache 2018-09-04 23:19:31 +01:00
Jguer
a109ea480c
Set version manually for gcc-go
Signed-off-by: Jguer <me@jguer.space>
2018-09-04 20:18:33 +01:00
morganamilo
00b880baf9
Fix depends sometimes being ordered incorrectly 2018-09-04 17:48:59 +01:00
morganamilo
8c1658df0b
Expand environment variables in config 2018-08-31 21:20:40 +01:00
Jguer
b757d0abd3
Set correct version for manual builds
Signed-off-by: Jguer <me@jguer.space>
2018-08-31 13:33:01 +01:00
morganamilo
0454e8918b
Add --aururl 2018-08-19 05:10:24 +01:00
Alexander F. Rødseth
29f3e011ec Only minor changes 2018-07-31 11:15:17 +02:00
morganamilo
bc6028348b
Make the completion refresh time configurable
The default setting is 7 days. The user can specify a different time in
days. -1 can be set to never refresh while 0 can be used to always
refresh.
2018-07-26 13:54:13 +01:00
Anna
96532c0b27
Merge pull request #562 from Morganamilo/#560
Add --makepkgconf
2018-07-24 13:08:21 +01:00
morganamilo
4af671afac
Add --[no]makepkgconf 2018-07-24 13:07:17 +01:00
morganamilo
e28f4f3431
Refactor continueTask()
The main reason behind this is for future localisation. yes and no can
be set to the localized equivalent and it should just work.

This Refactor also changes the function in ways which make it much less
confusing.

The param is no longer reversed and changed to a boolean. Before you had
to pass in Yy to get a default of no and vice versa.

The function now retuens false for no and true for yes. Before it would
return true if the default option was choosen.
2018-07-23 13:49:45 +01:00
morganamilo
ec48698f35
Add --{no,ask}removemake 2018-07-21 14:20:00 +01:00
morganamilo
3bdb534321
Separate Pacman upgrade and AUR Upgrade by default
Currently When performing a system upgrade, Yay will first refresh the
database then perform the repo and AUR upgrade. This allows Yay to add
some features such as better batch interaction, showing potential
dependency problems before the upgrade starts and combined menus
showing AUR and repo upgrades together.

There has been discussion that this approach is a bad idea. The main issue
people have is that the separation of the database refresh and the upgrade
could lead to a partial upgrade if Yay fails between the two stages.

Personally I do not like this argument, there are valid reasons to Yay
to fail between these points. For example there may be dependency or
conflict issues during the AUR upgrade. Yay can detect these before any
installing actually starts and exit, just like how pacman will when
there are dependency problems.

If Yay does fail between these points, for the previously mentioned
reasons or even a crash then a simple refresh will not cause a
partial upgrade by itself. It is then the user's responsibility
to either resolve these issues or instead perform an upgrade using
pacman directly.

My opinions aside, The discussions on the Arch wiki has reached
a decision, this method is not recommended. So to follow the decided
best practises this behaviour has been disabled by default.

This behaviour can be toggled using the --[no]combinedupgrade flag

It should be noted that Yay's upgrade menu will not show repo packages
unless --combinedupgrade is used.
2018-06-30 03:40:19 +01:00
morganamilo
ea5a94e0f8
Remove default usage of --ask
--ask is no longer used when installing AUR packages, instead pass no
confirm when we know there are no conflicts and wait for manual
confirmation when there are.

This means that when there are no conflicts there should be no change in
behaviour and the user will not need to intervene at all.

The old behaviour can still be used with --useask.
2018-06-22 15:17:34 +01:00