kendarorg / PhpNuget

Php nuget manager supporting complex queries on txt files or MySQL
http://www.kendar.org/?p=/dotnet/phpnuget
Other
23 stars 15 forks source link

Chocolatey usePackageRepositoryOptimizations #71

Closed kendarorg closed 5 years ago

kendarorg commented 5 years ago

feature - usePackageRepositoryOptimizations to control install/upgrade for repositories that don't handle the newer optimizations well - optimizations break LaGet / NuGet Simple Server (PHP) / PHPNuget / Gemfury

The issue seems to be in how packages are requested.

0.10.11 uses

System.Net Information: 0 : [3084] HttpWebRequest#31334997 - Request: GET /api/v2/FindPackagesById()?id='jre6' HTTP/1.1

While 0.10.13 does

System.Net Information: 0 : [5912] HttpWebRequest#6471942 - Request: GET /api/v2/Packages()?$filter=(tolower(Id)%20eq%20'jre6')%20and%20IsLatestVersion HTTP/1.1

kendarorg commented 5 years ago

Tried with PHPNuget (last git version/master) and choco 0.10.15, seems working!

C:\windows\system32>choco install putty.install --source http://localhost:9999/api/v2/ Chocolatey v0.10.15 Installing the following packages: putty.install By installing you accept licenses for the packages.

putty.install v0.71 putty.install package files install completed. Performing other installation steps. The package putty.install wants to run 'chocolateyInstall.ps1'. Note: If you don't run this script, the installation will fail. Note: To confirm automatically next time, use '-y' or consider: choco feature enable -n allowGlobalConfirmation Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): A

Installing 64-bit putty.install... putty.install has been installed. putty.install may be able to be automatically uninstalled. Environment Vars (like PATH) have changed. Close/reopen your shell to see the changes (or in powershell/cmd.exe just type refreshenv). The install of putty.install was successful. Software installed as 'msi', install location is likely default.

Chocolatey installed 1/1 packages. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).