DepotSoftware - updateSourceLocation

DepotSoftware - updateSourceLocation

Description :

This command updates the source location for a software installable in the depot.

For information on the acceptable formats for sourceLocation, see updateSourceLocation .

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

objectKey

DBKey

Handle to the software installable whose source location you want to update.

sourceLocation

String

URL for fully qualified NFS, SMB or NSH path to software.

Example

The following example gets a handle to a software installable, then uses this handle to update the installable's source location.

Script





#Get a handle to a software installable called test.rpm. 

INSTALLABLE_KEY=`blcli DepotObject getDBKeyByTypeStringGroupAndName RPM_INSTALLABLE "/MySoftwareGroup" test.rpm` 

#Assign a new source location to this installable. 

NEW_INSTALLABLE_KEY=`blcli DepotSoftware updateSourceLocation "$INSTALLABLE_KEY" //myserver/path/to/test.rpm` 



Was this page helpful? Yes No Submitting... Thank you

Comments