Commit graph

713 commits

Author SHA1 Message Date
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
Morgana 2f845d1a1d
Merge pull request #288 from Morganamilo/Qu
Add -Qu to the extended pacman options
2018-03-25 22:36:02 +01:00
morganamilo 4a8da38c9d
Add -Qu to the extended pacman options 2018-03-25 22:33:15 +01:00
morganamilo 82871e2172
Lint 2018-03-25 22:31:20 +01:00
J Guerreiro 91eb2585e9
Merge pull request #286 from Morganamilo/noerr
Suppress pacman error printing
2018-03-25 18:05:25 +02:00
J Guerreiro 85238c2a93
Merge pull request #277 from Morganamilo/gendb
Separate gendb from install
2018-03-25 18:04:36 +02:00
Reeto Chatterjee b103a34f3b Use exisiting util function 2018-03-24 18:31:55 +00:00
Reeto Chatterjee 51f7b14777 Remove assumption of unique provides 2018-03-24 12:40:51 +00:00
Reeto Chatterjee 21df6b1d57 Update deps properly and lint 2018-03-24 00:04:28 +00:00
Reeto Chatterjee 1b704a869d Add recursive removal of packages 2018-03-23 23:45:46 +00:00
Reeto Chatterjee 8a0bade6cd Update vendored go-alpm 2018-03-23 23:36:45 +00:00
Morgana 7fd5677678
Merge pull request #284 from qrwteyrutiyoup/offline-gpg-tests
Do not depend on the Internet for keys_test.go
2018-03-23 21:51:20 +00:00
morganamilo 7768fab978
Supress pacman error printing
add22f5957 added error checks to all the
passToPacman commands. This makes `yay -Q nonexistantpackage` return
non 0 as it should. Annoyingly it also made yay print `exit status = n`
which is the error string from passToPacman calls. This error doesn't
add much and is quite annoying, expecially when calling pacman commands
like `-Q` or `-Si` where yay should be kind of 'hidden' and print just
like pacman does.

Now set the error string to "" for pacman commands and don't print an
error if it == "" (avoids empty line printed).

Also behave more like pacman when using `yay -Qu`.
2018-03-23 19:56:28 +00:00
Sergio Correia 9c44363a7a
Do not depend on the Internet for keys_test.go
We now mock a PGP key server to provide the keys used during the
testing, making it so that we do not need the Internet anymore for
the testing of the PGP key import feature.
2018-03-23 14:17:47 -04:00
Morgana 69f44759cf
Merge pull request #285 from Morganamilo/db
Handle db/name with --redownload and similar flags
2018-03-23 17:26:18 +00:00
morganamilo 2b9437741e
Handle db/name with --redownload and similar flags
--redownload is meant to only download the targets the user provides.
If the user enters aur/foo then Yay will find the package foo from the
aur, --redownload will see thats not what the user entered and skips the
download.

This makes it so after the dep searching is done, all db/ prefixes are
dropped.
2018-03-23 17:07:20 +00:00
Jguer 6efa83d494 Update README to include past changelogs
Signed-off-by: Jguer <me@jguer.space>
2018-03-23 15:21:54 +01:00
J Guerreiro 966bb425ff
Merge pull request #280 from Morganamilo/makefile
Improve makefile
2018-03-23 15:04:47 +01:00
J Guerreiro ef91362c8d
Merge pull request #283 from Jguer/fix-zsh
Fix zsh completions
2018-03-23 09:03:25 +01:00
Jguer 686509efe3 Fix zsh completions
Signed-off-by: Jguer <me@jguer.space>
2018-03-23 09:01:46 +01:00
Morgana b715c1f223
Merge pull request #282 from Morganamilo/provides2
Support provides in -Si
2018-03-23 07:13:50 +00:00
morganamilo 549c75dfeb
Support provides in -Si 2018-03-23 07:11:57 +00:00
morganamilo 67bd8cc9a2
Improve makefile
Created .go/src which symlinks to vendor/. Running `make` now builds
yay using the packages in vendor. This can still be overiden by running
`make GOPATH=$HOME/go`

Even though the makefile calls git to get the version, that can be
overiden using `make MAJORVERSION=5 MINORVERSION=400`, skipping the call to git. This
allows building yay/yay-bin using the makefile

The yay binary is now always yay instead of taking the name of the
parent directory.

Added vet and fmt checks to `make test` for more checking.

Reordered some stuff, made sure the dependency order is correct. Any
command such as `make package` can be ran at any point, even after a
`make clean` instead of having to execute the correct make commands in
order.

Changed install form using `go install` to a traditional install. The
pkgbuilds can now use `make DESTDIR=$PKGDIR install`. Added uninstall to match.

One thing this commit does not do is have proper recepies which depend
on files instead of phonies. The reason for this is that it does not
play that well with go's build system. Go is smart enough to only
recompile needed files anyway.
2018-03-23 05:36:19 +00:00
morganamilo 7274e7d31a
Fix missing %s in callbacks.go 2018-03-23 04:45:59 +00:00
Morgana 3d7870903b
Merge pull request #278 from Morganamilo/fixerr
Add missing err check
2018-03-22 20:19:15 +00:00
morganamilo f018c0c200
Add missing err check 2018-03-22 19:48:43 +00:00
morganamilo e331c01143
Print when a vcs source has been found 2018-03-22 18:30:56 +00:00
morganamilo 1e01eafb43
Separate gendb from install 2018-03-22 18:23:20 +00:00
morganamilo 074ea4465a
Make aurInfo return a pointer 2018-03-22 18:11:00 +00:00
Morgana f1fd4a1203
Merge pull request #276 from Morganamilo/fixagain
Fix nothing to do if upgrading only repo packages
2018-03-22 17:32:41 +00:00
morganamilo 2ea16836eb
Fix nothing to do if upgrading only repo packages
Dont display clean/edit menu when upgrading only repo packages.
2018-03-22 17:12:33 +00:00
J Guerreiro 59b74e1253
Merge pull request #273 from Morganamilo/util
Add util.go and main.go
2018-03-22 17:49:13 +01:00
morganamilo 7fd2a74bd2
Lint 2018-03-22 16:39:27 +00:00
morganamilo 7655bd9c62
Add main.go 2018-03-22 16:38:21 +00:00
morganamilo 0c0cd4f883
Add utils.go 2018-03-22 16:38:21 +00:00
J Guerreiro 415659d1cd
Merge pull request #272 from Jguer/directory-change
Update version for close release
2018-03-22 17:18:17 +01:00
Jguer 82124c1b46 Update version for close release
Signed-off-by: Jguer <me@jguer.space>
2018-03-22 17:02:40 +01:00
Morgana ac02498177
Merge pull request #269 from Morganamilo/conflicts
More conflict checking
2018-03-22 15:27:39 +00:00
Morgana b28a35ccf5
Merge pull request #271 from Morganamilo/fix#270
Don't mark targets as dependencies
2018-03-22 15:23:20 +00:00
morganamilo a1a05bced4
Don't mark targets as dependencies 2018-03-22 15:22:05 +00:00
morganamilo d5015b3fe8
Add breif comments for functions in conflicts.go 2018-03-22 14:38:37 +00:00