Commit graph

885 commits

Author SHA1 Message Date
Jguer 2e8d2b4d2c
Bump MAJOR_VERSION 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
morganamilo 2b925aefa3
Lint 2018-06-10 03:21:08 +01:00
morganamilo 4f8b43cd60
Show diffs before merging
This is what 5775e3..43d2a6 has been leading up to. Git fetch will be
called on all pkgbuilds, then the user is offered a chance to view the
diffs. If they choose to continue, merging happens. This allows users to
abort the install after viewing diffs and still be able to see thoes
diffs again if they try to install later on.

This also makes the git stuff a little more modular which should help in
organzing diff showing + pkgbuild editing.
2018-06-10 03:21:08 +01:00
morganamilo 43d2a6601a
Split pkgbuild downloading and merging 2018-06-10 03:18:50 +01:00
morganamilo 73bd713217
Split hash fetching and pkgbuild downloading 2018-06-10 03:17:59 +01:00
morganamilo 1b8d9317e4
Split pkgbuild downloading and up to date checks 2018-06-10 03:17:28 +01:00
morganamilo 5775e3c0b7
Split git clone/pull and merge function 2018-06-10 03:17:23 +01:00
Anna 2c6cff36da
Merge pull request #475 from alanjjenkins/ajj/fix-failing-tests
Fix failing tests
2018-06-09 15:45:01 +01:00
Alan Jenkins c3a94edd20 Fix failing tests
There were several calls to fmt.Errorf in setPaths where the returned error was not
being used. This was indicated by ```make test``` as shown here:

```
make test
gofmt -l *.go
go vet
./main.go:16: result of fmt.Errorf call not used
./main.go:21: result of fmt.Errorf call not used
./main.go:25: result of fmt.Errorf call not used
./main.go:30: result of fmt.Errorf call not used
./main.go:35: result of fmt.Errorf call not used
./main.go:39: result of fmt.Errorf call not used
make: *** [Makefile:43: test] Error 2
```

With these changes the tests now all pass with no errors.
2018-06-09 15:40:30 +01:00
Anna 218a5e6d6e
Merge pull request #468 from Morganamilo/fixver
Print true pkgver when skipping build
2018-06-05 14:49:58 +01:00
morganamilo 64ab60f4b4
Print true pkgver when skipping build 2018-06-05 14:49:18 +01:00
Anna cf6068dbd3
Merge pull request #467 from Morganamilo/fix#466
Fix file paths
2018-06-05 14:19:04 +01:00
morganamilo 7fdb5c2007
Make sure enviroment paths are not empty 2018-06-05 14:17:07 +01:00
morganamilo e5d7cce49c
Fix file paths 2018-06-05 14:14:49 +01:00
Anna 0f6effbdbb
Merge pull request #462 from Morganamilo/fix#460
Tweek config and cache dir initialization
2018-06-04 23:35:46 +01:00
morganamilo 3aea877ab9
Tweek config and cache dir initialization
Check if enviroment variables are set instead if they are empty strings.
Don't care if the dir exists just take the path at face value.
Error if $HOME and the respective $XDG.. variables are not set.
2018-06-04 23:31:50 +01:00
Anna b56afaaee3
Merge pull request #461 from Morganamilo/repoaur
Support --aur/--repo for -Ss and -Y
2018-06-04 20:37:07 +01:00
morganamilo ced35af515
Support --aur/--repo for -Ss and -Y 2018-06-04 20:36:10 +01:00