Operating System - HP-UX
1847860 Members
3233 Online
104021 Solutions
New Discussion

Re: Repackaging SD-UX depots

 
Duncan Galbraith
Frequent Advisor

Repackaging SD-UX depots

How can I merge 2 SD-UX depots ?
Depot1 has ProductA,revision1 with FilesetA,revision1.
Depot2 has ProductA,revision2 with FilesetB,revision1.

I want to end up with:
Depot3 with ProductA,revision2 with FilesetA,revision1.
and ProductA,revision2 with FilesetB,revision1.

Thanks in advance,

Duncan
4 REPLIES 4
Peggy Fong
Respected Contributor

Re: Repackaging SD-UX depots

Duncan
I believe the easiest way to merge the 2 depots with the products, fileset and revisions you want would be to use the interactive GUI "swcopy". Select a new target /depot3 where you will put the products you want to keep. Select the source depot (depot1) and then select the exactly what you want to copy into depot3 (probably have to drill down and hopefully no dependencies are involved). Once this is done, then change your source to /depot2 and select the software you want to copy into /depot3

Hope this is ok. I don't want to offend you if you've already tried this and it failed for some reason. There are manual commands as well, but I'm not familiar with going down to revision level when using the command line interface.

Hope this helps.
Peggy
Vincent Stedema
Esteemed Contributor

Re: Repackaging SD-UX depots

Duncan,

Peggy's right: go with swcopy. To put the filesets into one depot directory:

swcopy -s /path/to/depot1.depot depot1.filesetA @ /dir/to/merged/depot
swcopy -s /path/to/depot2.depot depot2.filesetB @ /path/to/merged/depot

Then, repackage the depot with swpackage:

swpackage -v -s /path/to/merged/depot -x media_type=tape \* @ /home/duncan/depot3.depot

I've never actually tried re-packaging depots from different sources, so I'm not sure if the swpackage will succeed, but you might want to give it a try.

Hope this helps.

Vincent
Duncan Galbraith
Frequent Advisor

Re: Repackaging SD-UX depots

Thanks for all the replies.

I've found out what I need to do. The command I needed to use was:
swmodify but that can't change product revision numbers so you have
to edit depot_dir/catalog/INDEX. You need to change the first line
that has "revision" in it.
Easy when you know how.

Duncan