On Wed, 2009-04-01 at 22:29 -0700, Danek Duvall wrote: > On Thu, Apr 02, 2009 at 12:20:52AM -0500, Shawn Walker wrote: > > > > > On Wed, 2009-04-01 at 22:10 -0700, Danek Duvall wrote: > > > Here 'tis: > > > > > > http://cr.opensolaris.org/~dduvall/pkg-nohash/ > > > > Looks right, but I would note that this syntax won't work with pkgsend > > unless you also specify pkg.size. > > > > 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. And confusingly, publish.py sets pkg.size after the file action is created if it isn't set using os.stat... Sigh, -- Shawn Walker _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
