Faulty example in pkgrecv(1)
The existing example in the pkgrecv man page reads like this:
Example 10 Change publisher name Change the publisher name of the package 'foo' and all its dependencies into 'extra' during republishing. $ echo '<transform set name=pkg.fmri -> edit value (pkg://).*?(/.*) \1extra\2>' | \ pkgrecv -s repo1 -d repo2 --mog-file - foo
Trying this on OI produces this error:
Processing packages for publisher userland ... Retrieving and evaluating 1 package(s)... pkgrecv: 'None' is not a valid publisher name.
There are at least two errors in this example. One is that backreferences in transforms do not work, probably as a result of the upgrade to python3.5 . Another is that a package rebuild is required immediately after the example, for new packages to appear in the repository. With those two problems worked around, the example actually succeeds. The workaround for the backreference error is to avoid using backreferences. This solution is already used in OI. The correct solution is to fix pkgrecv so that backreferences work once again. The interm solution is to change the example in the man page so that it at least works.