Commit graph

396 commits

Author SHA1 Message Date
Daniel Martí 73d6f9b1ab all: remove unused code
And simplify some code too.
2018-02-27 10:16:53 +00:00
Daniel Martí 5ceab57504 dep: prune all dependencies by default 2018-02-27 10:14:26 +00:00
Morgana 49fe3b5a28
Merge pull request #180 from Morganamilo/fixtests
Fix tests
2018-02-27 03:44:08 +00:00
morganamilo 04a9830e0b
Fix tests 2018-02-27 03:41:39 +00:00
Morgana 005635b4ab
Merge pull request #164 from Morganamilo/warnings
Improvements to install algorithm
2018-02-27 02:57:11 +00:00
morganamilo 4cdcdc30e9
Further formatting tweaks
Ask clean builds is now asked early and remembers what you choose when
the install finishes.
Fixup "there is nothing to do" message.
2018-02-27 02:52:06 +00:00
morganamilo 4ef282c54e
go fmt 2018-02-27 02:02:33 +00:00
morganamilo 31d6a95c2a
Tweak some of the printting and fix formatting 2018-02-27 02:02:33 +00:00
morganamilo b50fae1dd4
Reword conflicting package message
The old message was probably easy to confuse with the `replaces` term.
2018-02-27 02:02:33 +00:00
morganamilo deed5e6794
Fix yay not installing repo deps properly 2018-02-27 02:02:33 +00:00
morganamilo e015c612d8
Remove -s from makepkg
The -s was kept aroung because the package base `python-virtualfish`
failed to build without it. I first blamed this on some aur rpc bug
because it was missing some deps that were listed in python-virtualfish.
As is turned out python-virtualfish actually does some things wrong in
it's package build and if it was formated correctly this wouldnt be
a problem.

I kept the -s in just so it would build even though it might have had
some side affects. makepkg not respecting the --dbpath for example.

From now on python-virtualfish will fail to build when you dont have all
the deps installed. This is their fault and will not be fixed here.
2018-02-27 02:02:33 +00:00
morganamilo 4a142425ec
Add support fot CheckDepends
Note when installing CheckDepends are still refered to as MakeDepends.
They are both only needed during build time so technically that is
correct. I don't see much of a use creating a third field so I'm leaving
it as is for now.
2018-02-27 02:02:33 +00:00
morganamilo c189a98018
Re enable -Pu and -Pn 2018-02-27 02:02:33 +00:00
morganamilo 2f39f5ddc4
Only print "querying aur" when using the aur 2018-02-27 02:02:33 +00:00
morganamilo 716d775d5f
Improve formatting
Ignorepkg also colours version differences like the upgrade menu
Tweaked formatting when asking for users to eneter number
2018-02-27 02:02:33 +00:00
morganamilo dab8f1b5d2
Improve gendb and formatting
Exit after parsing srcinfo with db do it actually does something.
when using gendb dont bother generating srcinfos.
Improved the formatting for some things mainly downloading and parsing.
2018-02-27 02:02:33 +00:00
morganamilo 46cc1f2c09
Display missing, orphans and out of date in groups
Instead of printing each warning on a seperate line, group up the
warnings by type (missing, orphan, out of date) and display each
group on its own line.
2018-02-27 02:02:33 +00:00
morganamilo 3f7c731f99
Make aurInfo concurrent 2018-02-27 02:02:33 +00:00
morganamilo 2856a7276c
Refactoring and improving insall process
This commit mostly focuses on merging the install() and upgradePkgs()
functions to be more integrated. Instead of both making their own aur
queries they now both combine theyre needes into one query. This gives
us a speed up and allows us to easily print orphands, misising and out
of date in one clean block.
2018-02-27 02:02:33 +00:00
morganamilo 7558f8fcf8
Use aurInfo for -S and -Su
This also improves the dependency by switching to stringSets for some
structures that previously contained duplicates.
2018-02-27 02:02:33 +00:00
morganamilo e71d66f3c6
use aurInfo() for -Ps 2018-02-27 02:02:33 +00:00
morganamilo 3fb77b1d72
Use aurInfo() for -G 2018-02-27 02:02:33 +00:00
morganamilo 346a579c23
Add function to wrap rpc.Info with warnings
Warns for orphans, out of date and missing
Respects requestsplitn in config
2018-02-27 02:01:46 +00:00
Jguer e800984e8f Release ready
Signed-off-by: Jguer <me@jguer.space>
2018-02-27 01:51:51 +00:00
J Guerreiro f000afaa42
Merge pull request #168 from seankhliao/master
add config.String() to pretty print default config in valid json
2018-02-27 01:44:45 +00:00
Morgana 16288b3966
Merge pull request #175 from Morganamilo/fix#174
Fix -G being unable to download split packages
2018-02-27 01:35:20 +00:00
Jguer 601f56c348 Update vendor dependencies to latest version. Prepare for stable base
Signed-off-by: Jguer <me@jguer.space>
2018-02-27 01:34:24 +00:00
Morgana 3d34b16357
Merge pull request #177 from Morganamilo/fix#176
No longer split on space in getNameFromDep()
2018-02-22 21:26:48 +00:00
morganamilo b8f2ac0ab3
No longer split on space in getNameFromDep()
This should not make any real difference as pkgnames and pkgvers
should not contain whitespace. But there was a problem where a packagepkg
connected two deps by quoting them.

depends=('make qt5-tools')

Because we split on spaces this caused yay to generate an error saying
it couldn't find 'make' when instead it should say it cant find
'make qt5tools' which was a little confusing.

This commit should fix the misleading error.
2018-02-22 21:17:47 +00:00
morganamilo 501e777aa0
Fix -G being unable to download split packages
this is a quick fix for now so it can be pushed out for the next
release. -G really should get the fancy split package printing that -S
now has `libc++ (libc++ libc++abi)`.
2018-02-22 21:11:41 +00:00
Morgana 2369f6a509
Merge pull request #169 from mvdan/no-color
upgrade: be consistent about no colors
2018-02-21 02:11:26 +00:00
Morgana 6150dd8083
Merge pull request #171 from Morganamilo/fix--
Fix handling of -- in parser
2018-02-20 21:41:34 +00:00
morganamilo 85a99198c3
Fix handling of -- in parser 2018-02-20 17:03:50 +00:00
Daniel Martí 269f6516d8 upgrade: be consistent about no colors
If pacman's color is off, don't use colors to mark the repos of
upgradeable packages.
2018-02-20 15:54:53 +00:00
Sean Liao 3355604910 update manpage for print configs 2018-02-20 23:30:56 +08:00
Sean Liao 56db82ed10 fix stray tab 2018-02-20 23:12:07 +08:00
Sean Liao d12685debc separate printing default and current config 2018-02-20 23:08:29 +08:00
Sean Liao 57773b6c2d add config.String() to pretty print default config in valid json 2018-02-20 22:24:48 +08:00
J Guerreiro 0dc94a2c31
Merge pull request #160 from Morganamilo/fix#158
Give error when failing to parse .SRCINFO
2018-02-18 19:32:16 +00:00
morganamilo 4350752e32
Give error when failing to parse .SRCINFO
Instead of panicking later on.
2018-02-18 15:39:04 +00:00
J Guerreiro 0f3ccbce93
Merge pull request #157 from Morganamilo/fix#156
Fix passing incorrect flags during yay -Sy[s,i]
2018-02-18 01:38:51 +00:00
morganamilo 4298e77632
Fix passing incorrect flags during yay -Sy[s,i] 2018-02-17 23:00:18 +00:00
Jguer f612d89b49 fix Makefile and fix README 2018-02-17 18:27:36 +00:00
Jguer 808248b402 Fixes Versioning 2018-02-17 18:02:53 +00:00
J Guerreiro 2925b8fb0a
Merge pull request #155 from Morganamilo/fixsi
Fix -Si failing when given a non existing package
2018-02-17 18:00:58 +00:00
morganamilo da8538364a
Fix -Si failing when given a non existing package 2018-02-17 17:48:51 +00:00
Jguer 2da25e87d1
Update vendored packages 2018-02-17 16:31:32 +00:00
J Guerreiro 25eb2e2a16
Merge pull request #154 from Morganamilo/handleconflicts
Improve conflict handling
2018-02-17 16:29:45 +00:00
morganamilo e88bf0f5b7
Improve conflict handling
Renable conflict checking, was disabled for testing, forgot to reenable
Use pacman --ask to remove conflicting packages, dont do it directly.
Say what each package conflicts with
Check for conflicts before aking for clean build

Reverse conflict are still not checked
2018-02-16 22:39:46 +00:00
J Guerreiro 344f2441b9
Merge pull request #153 from Morganamilo/fixsudo
Hang on first sudo
2018-02-16 19:49:09 +00:00