I'm making my first attempt to use "pkgsend send" on a package from Sun Studio compilers and I get this:
bash-3.2$ pkgsend -s http://localhost:8080/ send SPROdwrfs Traceback (most recent call last): File "/usr/bin/pkgsend", line 226, in send_bundles_forever send_bundle(config, filename) File "/usr/bin/pkgsend", line 237, in send_bundle for action in bundle: File "/usr/lib/python2.4/vendor-packages/pkg/bundle/SolarisPackageDirBundle.py", line 54, in __iter__ cf = CpioFile.open(os.path.join( File "/usr/lib/python2.4/vendor-packages/pkg/cpiofile.py", line 655, in open return func(name, "r", fileobj) File "/usr/lib/python2.4/vendor-packages/pkg/cpiofile.py", line 671, in cpioopen return cls(name, mode, fileobj) File "/usr/lib/python2.4/vendor-packages/pkg/cpiofile.py", line 545, in __init__ fileobj = file(self.name, self.mode) IOError: [Errno 2] No such file or directory: 'SPROdwrfs/archive/none.bz2' Instead of none.bz2 in my packages, I only have a file called "none" which is a ZIP file. How hard would it be to patch SolarisPackageDirBundle.py to handle internal ZIP files? I jumped in and started hacking, but it looks like I have to conjur up an "Extraction file object" that's based on the ZipFile class. That's where it turned into real work instead of hacking. :-) I verified that if I hack my package to convert the "none" file into "none.bz2" by unzipping, cpioing, bziping, then it seems to publish the package (yay!). But I don't really want to have to copy all my packages and munge them up every time I export a new set of packages. --chris _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
