Adding multiple layouts to an existing deb package

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding multiple layouts to an existing deb package

zdvickery
Hi, I have a debian repo hosted in Artifactory.  Per the instructions at https://www.jfrog.com/confluence/display/RTF/Debian+Repositories, I can upload deb packages successfully.  When I upload, I can specify either single or multiple values for properties like deb.component.  Everything works as expected here.

Something I'd like to do is later alter the layout of the repo, such as taking an existing artifact (deb package) and assigning it to multiple components.  However, if I attempt to update or re-create the deb.component property of the artifact, a string like "component1,component2" gets interpreted as a string literal rather than the multiple components as intended.  It seems like it is only possible to specify multiple components at the time of upload, not at any time after that.

Am I missing something that would allow updatng the component list of a deb artifact within Artifactory?
Reply | Threaded
Open this post in threaded view
|

Re: Adding multiple layouts to an existing deb package

zdvickery
In case anyone is wondering, using the storage API endpoint like below solves this problem:

curl -s -u 'user:pass' -XPUT "https://myhost/artifactory/api/storage/repo-name/pool/myfile.deb?properties=deb.component=one,two,three"