On Thu, Apr 02, 2009 at 12:36:50AM -0500, Shawn Walker wrote: > > > It surprises me that it works ok with the importer. > > > > The line > > > > action.attrs["pkg.size"] = str(os.stat(fname).st_size) > > > > seems to do the trick. Perhaps pkgsend could be enhanced to do the same. > > It shouldn't have to; modules/actions/generic.py already does the same > thing, except it uses os.lstat instead of os.stat.
Are you saying that you shouldn't have been surprised originally, because pkg.size should be set automatically? I remember having to add it. I don't remember exactly how it blew up, but it did. lstat() is probably the wrong thing, since it'll then get the size of the symlink, rather than the target file. Danek _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
