On 08/10/2010 21:43, Bart Smaalders wrote:
We've been making do with a non-productized merge command
in the packaging gate; it's now time to finish this piece of
functionality.
Yeah!
> -s variant_value,uri
This looks very strange in the way you run the command.
I would much rather it wasn't just the variant_value,uri but
that it was variant=value,uri if that really has to be passed
as a single option. Better yet would be a syntax that didn't require
using a comma separation at all.
Given this is not likely to be something run from the CLI frequently
why not have it take input from a description file instead, for example:
variant debug.osnet=false
repository file:///mybuild/packages/sparc/nightly-nd/repo.redist
variant debug.osnet=true
repository file:///mybuild/packages/sparc/nightly/repo.redist
target file:///mybuild/packages/sparc/merge/repo.redist
fmri consolidation/osnet/osnet-incorporation
This might also allow for doing all of the following example in
a single description file instead of having to call multiple times.
Example 3: Merge debug and non-debug builds for both sparc and
x86 builds together to form a single repo that
supports debug and non-debug sparc and x86 packages.
pkgmerge -r -s false,file:///mybuild/packages/sparc/nightly-nd/repo.redist\
-s true,file:///mybuild/packages/sparc/nightly/repo.redist \
-d file:///mybuild/packages/sparc/merge/repo.redist debug.osnet \
consolidation/osnet/osnet-incorporation
pkgmerge -r -s false,file:///mybuild/packages/i386/nightly-nd/repo.redist\
-s true,file:///mybuild/packages/i386/nightly/repo.redist \
-d file:///mybuild/packages/i386/merge/repo.redist debug.osnet \
consolidation/osnet/osnet-incorporation
pkgmerge -r -s sparc,file:///mybuild/packages/sparc/merge/repo.redist\
-s i386,file:///mybuild/packages/i386/merge/repo.redist\
-d file:///mybuild/packages/merge/repo.redist arch \
consolidation/osnet/osnet-incorporation
--
Darren J Moffat
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss