On 03/ 2/11 01:48 PM, Peter Schow wrote:
Using pkgmerge(1) from:
    http://src.opensolaris.org/source/raw/pkg/gate/src/util/publish/merge.py

That's not actually pkgmerge(1); that's a merge script used for project builds.

Calling like this:

    python merge.py -r -d /tmp/merge -v sparc,file:pkg_sparc \
           -v i386,file:pkg_i386 arch system/management/nservice-tag

And getting this:

Processing 1 packages
Traceback (most recent call last):
   File "merge.py", line 423, in<module>
     ret = main_func()
   File "merge.py", line 297, in main_func
     merge_fmris(server_list, fmri_list, variant_list, variant, basedir, 
basename, get_files)
   File "merge.py", line 320, in merge_fmris
     action_lists = manifest.Manifest.comm(manifest_list)
   File "/usr/lib/python2.6/vendor-packages/pkg/manifest.py", line 190, in comm
     for m in compare_m
AttributeError: 'list' object has no attribute 'actions'


Anything obviously wrong in the invocation above?

There was an incompatible change made in util/publish/merge.py recently that means you can't use the merge script from there with older versions of the package system.

If you revert the incompatible change it should work again:

-        action_lists = manifest.Manifest.comm(manifest_list)
+        action_lists = manifest.Manifest.comm(*tuple(manifest_list))

-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to