These are chat archives for chocolatey/chocolatey-oneget

4th
Mar 2015
Richard Simpson
@RichiCoder1
Mar 04 2015 07:24
:+1: on list discussion
Joel Bennett
@Jaykul
Mar 04 2015 07:28
chocolatey/choco#146
This noticeably improves the speed of choco list ... commands
Richard Simpson
@RichiCoder1
Mar 04 2015 07:36
Nice :)
Joel Bennett
@Jaykul
Mar 04 2015 07:56
Anyone know what this actually means? chocolatey/choco#147
Richard Simpson
@RichiCoder1
Mar 04 2015 08:11
It doesn't appear to actually filter out apps, but rather included apps installed on the machine, but that aren't connected to a choco package. I could be reading this wrong though:
https://github.com/chocolatey/choco/blob/master/src/chocolatey/infrastructure.app/services/ChocolateyPackageService.cs#L93
Gary Ewan Park
@gep13
Mar 04 2015 08:15
that is my understanding as well. One of the new features of Chocolatey vNext is the ability to synchronize applications that have been installed by Chocolatey, and applications that appear in Add/Remove Programs as they have been installed manually. the premise being that Chocolatey can "take over" upgrade/update of those applications that were installed manually
Joel Bennett
@Jaykul
Mar 04 2015 08:25
Yeah, ok, I see that's what it actually does
Only problem is, if you pass that parameter, the list of "installed programs" isn't filtered AT ALL
so you can do like:
choco list SublimeText3 -lp
and it lists ... everything
that's installed locally
Honestly, this feature is screwy, it doesn't belong on the same command
I mean, it's just confusing
choco list SublimeText3 -p # the p does nothing
Gary Ewan Park
@gep13
Mar 04 2015 08:28
I believe I might be right in saying that this particular "feature" isn't complete yet
Joel Bennett
@Jaykul
Mar 04 2015 08:29
choco list SublimeText3 -lp # the "SublimeText3" does nothing
yeah, well, so far, it seems to me like these should be separate commands
That's all I'm saying
In code they basically are
except they're not, so the logic path is really twisted and hard to follow.
Rob Reynolds
@ferventcoder
Mar 04 2015 23:07
@Jaykul @gep13 it's meant to be used only with list -local only
adding a filter like SublimeText3 can produce "interesting" results
Joel Bennett
@Jaykul
Mar 04 2015 23:16
lol
Rob Reynolds
@ferventcoder
Mar 04 2015 23:19
basically it should only be used on list local with no filter - some more validation may be necessary there
Joel Bennett
@Jaykul
Mar 04 2015 23:24
gotcha
I've just been looking at it because I need nuget results, but I don't need your registry feature
And I want to make sure that I don't get it accidentally ;-)
but because the registry lookup is done inside the list method ...
It's not clear whether the list method should return a list for both commands or not
In the end, I decided it should, because ... eventually they all should, for the sake of the API