Commit Graph
902 Commits
Author SHA1 Message Date
Alexander Popov 6eded7c4a3 Support commas in parserNumberMenu 2018-07-02 18:21:00 +03:00
Anna 3406575f9d Merge pull request #521 from Morganamilo/nativecompletion
Add bash and zsh completion for new flags
2018-07-01 17:28:44 +01:00
morganamilo 4f1a46eed8 Add bash and zsh completion for new flags 2018-07-01 17:21:54 +01:00
J Guerreiro 9f9a10e8f4 Merge pull request #520 from Jguer/fix-Docs
Fix invalid uppercasing in flags
2018-07-01 14:54:27 +01:00
Jguer 89b5a1b798 Fix invalid uppercasing in flags
Signed-off-by: Jguer <me@jguer.space>
2018-07-01 14:53:48 +01:00
J Guerreiro 664e9c7808 Merge pull request #519 from Jguer/fish
Add fish native pacman completions
2018-07-01 14:45:29 +01:00
Anna 38f9df54fd Merge pull request #518 from Morganamilo/docnativepacman
Document --[no]useask and --[no]combinedupgrade
2018-07-01 14:40:17 +01:00
morganamilo a91dc9e557 Document --[no]useask and --[no]combinedupgrade 2018-07-01 14:35:01 +01:00
Jguer 52f5c8878f Add native pacman completions
Signed-off-by: Jguer <me@jguer.space>
2018-07-01 11:59:25 +01:00
Anna 38b4e2bec7 Merge pull request #516 from Morganamilo/combine
Separate Pacman upgrade and AUR Upgrade by default
2018-07-01 00:23:45 +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
Anna 77a5cf5c69 Merge pull request #504 from Morganamilo/noask
Remove default usage of --ask
2018-06-24 16:30:28 +01:00
Anna ae24228aed Merge pull request #507 from Morganamilo/fix#506
Return when no packages are to be installed.
2018-06-23 16:21:35 +01:00
morganamilo 67817e2a19 Return when no packages are to be installed. 2018-06-23 16:19:25 +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
Anna da466ba8bf Merge pull request #503 from Morganamilo/fix#502
Correctly handle AUR providers during noconfirm
v7.887
2018-06-19 22:25:27 +01:00
morganamilo f5a35d4d1d Correctly handle AUR providers during noconfirm 2018-06-19 22:20:24 +01:00
Jguer 2e8d2b4d2c Bump MAJOR_VERSION v7.885 2018-06-19 11:33:07 +01:00
J Guerreiro 0c46a22125 Merge pull request #501 from Jguer/fix-fish
Include print in noopt
2018-06-19 11:03:19 +01:00
Jguer e5bb23d9c6 Include print in noopt 2018-06-19 11:02:11 +01:00
Jguer 6d04c2ebce Update vendored dependencies 2018-06-19 11:00:47 +01:00
J Guerreiro fbe04c8658 Merge pull request #499 from Jguer/update-fish
Fix some fish completions. Fixes #498. Add missing flags
2018-06-19 10:56:50 +01:00
J Guerreiro 7e74d93866 Merge pull request #500 from Jguer/fix-zsh
Add missing editorflags
2018-06-19 10:55:39 +01:00
Jguer 21a8569fb0 Add missing editorflags 2018-06-19 10:54:27 +01:00
Jguer a8d9166113 Fix some fish completions. Fixes #498. Add missing flags 2018-06-19 10:51:10 +01:00
J Guerreiro 87daef421e Update for yay release
Prepare README for predicted issues so when they do appear users can be shamed for not reading `READMEs`
2018-06-19 10:13:56 +01:00
Anna 1002a4f5e5 Merge pull request #488 from Morganamilo/comp
Update bash and zsh completion
2018-06-12 21:36:10 +01:00
morganamilo 07b3d76a66 Update bash and zsh completion 2018-06-12 21:33:29 +01:00
morganamilo 1952f88c34 Remove a space 2018-06-12 21:10:41 +01:00
Anna 8edaee6136 Merge pull request #489 from Morganamilo/reset
Reset before editing
2018-06-12 21:09:25 +01:00
morganamilo 9ecc604558 Reset before editing
Edits where reset via git before building packages. This allows edits to
actually effect the build package.
2018-06-12 21:08:15 +01:00
Anna 2718cd3d23 Merge pull request #487 from StephenBrown2/remove-showdifs-config
Remove ShowDiffs from config struct
2018-06-11 21:14:38 +01:00
Stephen Brown II b76fbc8694 Remove ShowDiffs from config struct
Following the improvements in #480, #485, #486, a tiny bit of cleanup for a lone, forgotten line.

Plus the typo had been bugging me since I first saw it.
2018-06-11 15:11:16 -05:00
Anna 14eaf467a1 Merge pull request #486 from Morganamilo/doc3
Add flags for diff and upgrade to match the rest and document it all
2018-06-11 20:14:50 +01:00
morganamilo 4bfa5f6128 Document --[no]upgrademenu 2018-06-11 20:12:17 +01:00
morganamilo 42f0508625 Add upgrademenu to match {clean,diff,edit}menu 2018-06-11 20:12:17 +01:00
morganamilo d0bc1d70d9 Document new flags 2018-06-11 20:11:38 +01:00
morganamilo 01fa34093f Support answerdiff to match answer{clean,edit} 2018-06-11 20:11:38 +01:00
Anna 0960f9a135 Merge pull request #485 from Morganamilo/cleanmenutrue
Enable clean menu by default
2018-06-11 19:56:10 +01:00
morganamilo 065efdbcc0 Enable clean menu by default
I swear set this to true before merging 8430c41 but apparently I didnt.
2018-06-11 19:50:03 +01:00
Anna 0f89e09b6d Merge pull request #484 from Morganamilo/repoonly
Correctly set op and ignore for repo only installs
2018-06-11 18:53:13 +01:00
morganamilo ab38507bea Correctly set op and ignore for repo only installs 2018-06-11 18:49:35 +01:00
Anna 09ad692864 Merge pull request #481 from Morganamilo/hidemessage
Pass to pacman when there's no AUR packages
2018-06-11 00:44:04 +01:00
morganamilo fcb8c35046 Pass to pacman when there's no AUR packages
Instead of doing all the AUR stuff just pass to pacman and return. No
need for any of Yay's stuff when there's no AUR involved.

Of couse everything before that still happens. Upgrade menu ect.
2018-06-11 00:41:39 +01:00
Anna 08af51892b Merge pull request #480 from Morganamilo/git2
Rework editing and diff showing
2018-06-11 00:19:37 +01:00
morganamilo 8430c41be9 Rework editing and diff showing
Clean build needs to happen before downloading pkgbuilds so that they
can be deletd before downloading.

Editing and diff viewing needs to happen after downloading the
pkgbuilds.

Prevously we asked to clean and edit at the same time. Then clean,
download pkgbuilds and open the editor.

This poeses a problem for diff viewing and editing. It's likley that the
user will see the diff and use that to decide if they want to edit the
pkgbuild. Using the current method, the user will be asked to view diffs
and edit before actually seeing any diffs.

Instead split cleaning diff showing and editing to three seperate menus
in the following order:
	show clean menu
	clean
	download pkgbuilds
	show diff menu
	show diffs
	show edit menu
	edit pkgbuilds

Also each menu is seperatly enableable. By default only the diff menu is
shows. If the user wishes to clean build, edit pkgbuilds or disable
diffs then the user can use the --[no]{clean,diff,edit}menu flags. This
replaces the --[no]showdiffs flags.
2018-06-10 16:11:23 +01:00
Anna 91d3adc8e1 Merge pull request #478 from Morganamilo/git
Show diffs before merging
2018-06-10 16:10:08 +01:00
Anna 4d6c49b64a Merge pull request #479 from reisub0/master
Fixed trivial typo
2018-06-10 09:41:13 +01:00
Govind KP 219e50e668 Fixed trivial typo
packags -> packages
2018-06-10 13:58:21 +05:30
morganamilo 00da26a3ce Always show diffs for newly cloned packages
Newly cloned packages already start out at origin/master, so there is no
diff to show. Track if we cloned a package and if so make sure to show
the full diff
2018-06-10 03:41:25 +01:00