2008/6/29 Roland Mainz <[EMAIL PROTECTED]>: > Danek Duvall wrote: >> >> The in-flight transactions shouldn't matter. We don't do any sort of >> cleanup if publication fails, so all the failed attempts stack up. If you >> want, you can do >> >> pkgsend close -A >> >> with the appropriate PKG_TRANS_ID set (or specified with -t). More >> expediently, you can just remove the contents of the "trans" directory in >> the repo. >> >> I can reproduce the bug with >> >> eval $(pkgsend open [EMAIL PROTECTED]) > [snip] > > Why is "eval" needed in this case (note that applications should not > rely on the existance of "eval" since we try to get rid of "eval" in the > shell standard in the future - it's a constant pain which causes too > much trouble than it's worth... ;-/ ) ?
Because the output from pkgsend open is a set of shell variables that set the transaction id for the actions you perform after that. You don't have to eval the return output, but you might as well. If you don't, you'd have to grab the printed output from pkgsend open and manually set the PKG_TRANS_ID or specify it with -t. -- Shawn Walker _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
