| This is the one where a missing "=" causes a traceback.  The exception that
| gets raised is now has a better message, and I'm catching that exception in
| publish.py so that pkgsend will at least print out that better message and
| not traceback unnecessarily.
| 
| It's pretty short, so it's just in bugzilla:
| 
|     http://defect.opensolaris.org/bz/attachment.cgi?id=127&action=diff

wouldn't this be better as,

    try:
         if args[0] in ("file", "license"):
                 action = pkg.actions.fromlist(args[0], args[2:])
                 def opener():
                         return open(args[1])
                 action.data = opener
         else:
                 action = pkg.actions.fromlist(args[0], args[1:])

     except ValueError, e:
          print >> sys.stderr, e[0]
          sys.exit(1)

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

Reply via email to