Commit graph

19 commits

Author SHA1 Message Date
morganamilo
a8e4f18e6b
MultiError: add new lines between errors 2018-08-18 17:12:42 +01:00
morganamilo
58240bdc3d
Steal multierror from aurlib 2018-08-09 16:25:05 +01:00
Anna
5b6c4101f8
Merge pull request #447 from Morganamilo/fix#131
Implement diffs for pkgbuild viewing.
2018-06-01 19:11:52 +01:00
morganamilo
f20fbd25c1
Implement diffs for pkgbuild viewing.
diff viewing can be toggled via --[no]showdiffs. When enabled diffs will
be shown for packages between the current HEAD and upstream's HEAD.
Packages downloaded via tarballs will be shown in full using the editor

git diff is used to show diffs. Therefore the pager for diffs can be
set via the PAGER and GIT_PAGER enviroment variables.
2018-06-01 18:11:13 +01:00
morganamilo
444ccce925
Filter out invalid tatgets instead of ignoring them
Invalid targets that occur when combining aur/foo with --repo or db/foo
with --aur. Instead of ignoring them, filter them out and give a warning
as it happens.
2018-06-01 05:06:58 +01:00
morganamilo
9afd671905
Support any PKGDEST and PKGEXT
Pacman 5.1 removes the symlink to the current directory for built
packages. This causes Yay to break for people who have set an external
PKGDEST.

Pacman 5.1 also brings an improved --packagelist option. This makes
it much simpler to find where packages will be placed. Hence this fix
also simplifies the code.

Yay has an -Sc option to clear it's cache. If using an external PKGDEST
this is now mostly useful for clearing out old pkgbuilds and sources.
paccache should be used for cleaning build packages.
2018-05-31 05:42:03 +01:00
morganamilo
8c77ad061e
Clean up unused code 2018-05-29 13:13:33 +01:00
morganamilo
b2d3eb5c49
Add new dependency code to replace the old code
This is a rewrite of the dependency system, It aims to be cleaner
written, with a better idea of what is needed from the start, meaning
less new code being hacked on for things that were not thought about.
This version also aims to use as many small functions as possible, for
cleaner code and better testing.

Added dep.go:
    general dependency functions
Added depPool.go:
    Replacement of depTree, dependencies were never ordered so
    a tree did not really make sense. Instead the term pool
    makes more sense.
Added depOrder.go:
    Replacement of depCatagories, This simply orders the
    dependencies, dependencies are still catagorized as repo and AUR
    but I believe this to be a better name
Added depCheck.go:
    Replaces conflicts.go and also contains the missing dependency
    code

This version is mostly the same as the old version with a few
improvments:
    Missing packages will print the full dependency tree
    Versioned dependency checking errors should be fixed
    Make depends should be calculated properly
    Experimental AUR provide searcher

This code has been added along side the old code for testing and is not
currently used by the install process. Once the install process is moved
to use this code, the old code will be removed.
2018-05-29 13:13:27 +01:00
morganamilo
ef7e8acb13
Refactor complex map types into their own type
map[string][]string  -> mapStringSlice
mao[string]stringSet -> mapStringSet
2018-05-07 23:42:41 +01:00
morganamilo
110a905a0c
Use filepath.Join() for adding paths together 2018-04-17 01:32:31 +01:00
morganamilo
0c0cd4f883
Add utils.go 2018-03-22 16:38:21 +00:00
Jguer
73f8c32176 Refactoring and Implemented Human sizes from alpm 2017-07-10 18:10:51 +01:00
Jguer
bd2842841a Killed util, config is now saved 2017-05-07 02:44:07 +01:00
Jguer
0473084ed2 More porting from util to config 2017-05-06 18:32:33 +01:00
Jguer
9ca98f7981 Transfer a lot of functions to Config. Establish global handle 2017-05-06 17:35:14 +01:00
Jguer
9b4667344e Refactored yay to use mikkeloscars aur package 2017-05-02 16:46:14 +01:00
Jguer
9f781c0411 Added Save info to vcs 2017-05-02 11:50:11 +01:00
Jguer
5c0650fe5a Minor bug fixed in completions. Github updates progressing. Info fetching done 2017-05-02 01:06:16 +01:00
Jguer
38617c2781 Refactored cmd/yay 2017-04-29 18:12:12 +01:00