These are chat archives for chocolatey/chocolatey-oneget

5th
Mar 2015
Joel Bennett
@Jaykul
Mar 05 2015 03:34
 Id Duration         CommandLine
 -- --------         -----------
302 00:00:00.3490024 Find-Package sublimetext3 -ProviderName Choco # NEW PROVIDER
303 00:00:01.7413637 choco list sublimetext3 # native choco
304 00:00:00.6726037 Find-Package sublimetext3 -ProviderName chocolatey # OLD PROVIDER (with post-query filtering)
305 00:00:00.3042224 Find-Package -Contains sublimetext3 -ProviderName chocolatey # OLD PROVIDER
The absolute values are basically irrelevant, and 304 returns only one item, but the rest of the results are the same, with the exception that choco list sorts, and outputs just boring text ;-)
Just FYI
Rob Reynolds
@ferventcoder
Mar 05 2015 03:41
Haha! :)
I'd be curious to see choco list sublimetext3 against the old POSH client of choco
Joel Bennett
@Jaykul
Mar 05 2015 03:52
ugh
Mapping crap back and forth is boring
And confusing
I can't find the download URL
Rob Reynolds
@ferventcoder
Mar 05 2015 03:53
Download url?
Joel Bennett
@Jaykul
Mar 05 2015 03:54
Well, there are several things that I don't understand about this OneGet API
the built-in Chocolatey repo has a crapload of data in it
But the function I need to call to return is YieldSoftwareIdentity
public abstract bool YieldSoftwareIdentity(string fastPath, string name, string version, string versionScheme, string summary, string source, string searchKey, string fullPath, string packageFileName);
I can't figure out how to get fullPath and packageFileName
Rob Reynolds
@ferventcoder
Mar 05 2015 03:57
Hmm and old provider is not accessible?
Joel Bennett
@Jaykul
Mar 05 2015 04:01
kinda
That's what they seem to returhn
The old one is implemented differently
dono how
But I don't really care very much
I mean, right now I don't want to try to figure out how his gets more information into it
But what I'm trying to figure ...
is how to get the file name from the one I have now ;)
Joel Bennett
@Jaykul
Mar 05 2015 04:07
It turns out the IPackage that we get is actually a NuGet.DataServicePackage
Rob Reynolds
@ferventcoder
Mar 05 2015 04:08
Um okay :)
Joel Bennett
@Jaykul
Mar 05 2015 04:09
which is interesting because it has a DownloadUrl
Rob Reynolds
@ferventcoder
Mar 05 2015 04:11
Yes - but now try that against a local folder pkg source and see if it is still true
Or a simple server - the simple servers are prolly fine since they expose odata
Guessing something like c:\packages is not going to have a downloadurl
Or if it does it will be file:///
Joel Bennett
@Jaykul
Mar 05 2015 04:13
Well, I'm just trying to figure what to return for "fullPath" or "packageFileName
Rob Reynolds
@ferventcoder
Mar 05 2015 04:14
We should ask Garrett - fully aware you prolly already have :)
Joel Bennett
@Jaykul
Mar 05 2015 04:14
I guess I can just leave it blacnk
Meh, he's never online in the evening :D
Does he get email notices that I need his help if I mention @fearthecowboy in here?
I know I do
Rob Reynolds
@ferventcoder
Mar 05 2015 04:15
Prolly - I have the iphone app. I get notices if anyone says anything in the choco rooms
Jaykul @Jaykul nods
Joel Bennett
@Jaykul
Mar 05 2015 04:17
I guess I can just leave it blank
Gary Ewan Park
@gep13
Mar 05 2015 06:58
@Jaykul @ferventcoder given that Garrett is a member of this room, he should get a notification to say what he has missed, but he could have also turned off notifications altogether, so I wouldn't rely solely on mentioning him in here
Joel Bennett
@Jaykul
Mar 05 2015 07:00
Yeah, I usually ask him on the PowerShell slack, and he gets back to me when he gets to the office in the morning
Gary Ewan Park
@gep13
Mar 05 2015 07:02
:+1:
@Jaykul I have been meaning to ask, what command are you typing to do the "nods" thing? I went looking for it the other day, but couldn't find it :-) Yes, it is a completely random question :-D
Jaykul @Jaykul laughs
Joel Bennett
@Jaykul
Mar 05 2015 07:04
it's a /me action
oldschool IRC
I don't know why they center it in the channel, it startles me each time
Gary Ewan Park
@gep13
Mar 05 2015 07:04
ah, that will be why I don't know it, and didn't know what to look for, never used IRC in any real way :-)
lol
Joel Bennett
@Jaykul
Mar 05 2015 07:05
if you type /
there are a bunch of slash commands
just like slack ;-)
Gary Ewan Park
@gep13
Mar 05 2015 07:05
sweet, thanks!
Joel Bennett
@Jaykul
Mar 05 2015 07:05
:clap:
gep13 @gep13 laughs
Gary Ewan Park
@gep13
Mar 05 2015 07:05
hee hee, noice!
Joel Bennett
@Jaykul
Mar 05 2015 07:06
ok, well. I think I give up on install for tonight. I got find package working and supporting version numbers, that's enough for one day
Gary Ewan Park
@gep13
Mar 05 2015 07:07
good job, thanks for all the work you are putting in on this, I know others, i.e. ChocolateyGUI will be building on what you are getting working for the One-Get Provider :-D
Joel Bennett
@Jaykul
Mar 05 2015 07:09
Yeah, I didn't expect to do this much work on chocolatey :-p
I mean, who ever heard of an API of pure void methods!?
Jaykul @Jaykul stares at ferventcoder
Joel Bennett
@Jaykul
Mar 05 2015 07:10
it's all good though. I actually understand what I'm doing now.
Of course, I'll forget it all by the end of the month, but whatever.
Gary Ewan Park
@gep13
Mar 05 2015 07:10
and that is the main thing :-D
Joel Bennett
@Jaykul
Mar 05 2015 07:10
g'night
Gary Ewan Park
@gep13
Mar 05 2015 07:10
s'laters
Rob Reynolds
@ferventcoder
Mar 05 2015 12:07
Ha! Yeah - well I did state that the api was super early