Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
uploading debian package with plurl still required distrubtion
-
Working:
http://localhost:8624/api/packages/my-debian/upload?purl=pkg%3Adeb%2Fnano%409.0-1%3Farch%3Di386%26distro%3Dwtf&distribution=xNot working:
http://localhost:8624/api/packages/my-debian/upload?purl=pkg%3Adeb%2Fnano%409.0-1%3Farch%3Damd64%26distro%3Dwtf Write-Error: Upload failed for pkg:deb/nano@9.0-1?arch=amd64&distro=wtf Distribution must be specified when adding a Debian package.So the actual distribution doesn't matter since it's already part of the purl but upload fails when omitted.
-
It looks like the HTTP Endpoint documentation for the pgutil packages upload command was not accurate. A
purlis not used here. I've updated the docs as follows...
To upload a package, simply
PUTto the URL with a feed name, an appropriate API Key and a package in eitherZIP,JARorTARformat depending on the value of theContent-Typeheader.PUT /api/packages/«feed-name»/upload[/«package-file-name»]The
«package-file-name»part of the URL is only required for the PyPI and RPM feed types, while Debian feeds will require adistributionargument and an optionalcomponent. See the corresponding upload package method on ProGetClient.cs for the most accurate and up-to-datepgutiland HTTP endpoint argument mapping.
Hope that helps!
-- Dean