On 03/24/10 06:40 PM, Liane Praza wrote:
Here's my review for
15346 need a not_these_pkgs to handle skipping unincorporated packages
in an effort to exhaust more of the option letter space for the importer.
http://cr.opensolaris.org/~lianep/pkg-re/
Comments appreciated, I'm offline for a few hours and will get back to
them later this evening.
I think -J is fine, it's similar to what we do for pkg(1), (-m to add
mirror, -M to remove mirror, etc.).
importer.py:
line 1349: extra newline?
lines 1404-1405: This could traceback if they specified a package
that doesn't actually exist. I know that's unlikely since you're
hardcoding the package names, but, just in case... something like the
following?
unknown = []
for pkg in not_these_pkgs:
try:
del pkgdict[pkg]
except KeyError:
unknown.append(pkg)
if unknown:
emsg("Unknown package(s) specified using -J:\n%s" % \
"\n".join(p for p in unknown))
sys.exit(2)
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss