On 06/29/10 10:05 PM, Norm Jacobs wrote:
On 06/29/10 07:12 PM, Bart Smaalders wrote:
On 06/29/10 13:52, Norm Jacobs wrote:
Is there some magic transform that I can apply to change
file (value) path=path/that/i/am/packaging (attributes ...)
to
file MUMBLE path=path/that/i/am/packaging (attributes ...)
With the latest bits in
From the build 142 pkgmogrify man page:
Several synthetic attributes exist. Two are unique to
pkgmogrify(1):
pkg.manifest.filename and pkg.manifest.lineno. These refer to
the name
of the file in which the action was found and the line on which
it was
found, respectively. Three others are similar to ones used in
pkg(1):
action.hash, action.key, and action.name, which refer to the hash
value of the action if the action carries a payload, the value
of the
key attribute, and the name of the action type, respectively. For
actions with payloads, the "set" operation can change the hash
of the
action by operating on the action.hash attribute.
Thanks. After apparently too many times through, I missed the '"set"
operation can change the hash' in the man page.
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.
-Norm
I know that it can be done in two transforms, but it might also be handy
to be able to do something like:
<transform dir file link hardlink -> \
edit (path|target) "/mumble" "$(MUMBLE)">
for target/path manipulation. Basically, for some of the operation
where pkgmogrify takes in an attribute name, we might consider regular
expressions, though they would probably have to be anchored
automatically or 'path' would match 'apathy'.
-Norm
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss