On 06/30/10 01:49 PM, Norm Jacobs wrote:
On 06/30/10 10:59 AM, Mark J. Nelson wrote:
and is there an easy way to strip all attributes except a supplied set? If delete took regular expressions for attribute name, I could see how
to do it, but it doesn't.
No... what are you trying to do here?
clean up automatically generated mantifests to check into an SCM and use
as a canonical version for comparison.  I was going to just store the
attributes that would be most static.
With Danek's changes in build 142, you could write an "emit" transform
to output only the attributes you want, and then drop the original.

--Mark

Thanks, I'll take a look at that.

This doesn't seem to work.

   $ cat manifest
   file NOHASH path=usr/bin/foo mode=04511 owner=mumble
   $ cat transforms
   <transform file -> edit path "bin" "exe">
   <transform file -> emit file NOHASH path=%(path)>
   $ pkgmogrify -v manifest transforms
   pkgmogrify: File manifest line 1: Transform specified in file
   transforms, line 2 reports maximum recursion depth exceeded while
   calling a Python object
   $

I'm assuming this is a bug.

    -Norm

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

Reply via email to