ó k~NOc@sÖddlZddlZddljZddlmZmZddlTddlm Z ddl m Z idej 6dej 6dej6d ej6d ej6d ej6d ej6Zd e fd„ƒYZd„ZdS(iÿÿÿÿN(tSolarisPackagetMultiPackageDatastreamException(t*(tSolarisPackageDirBundle(tInvalidBundleExceptions block-specialscharacter-specialt directorytfifotlinktfiletsockettSolarisPackageDatastreamBundlecBs5eZdZdd„Zd„Zd„Zd„ZRS(sXXX Need a class comment.cCsUtjj|ƒ}t|ƒ|_|jjd|_||_i|_t ƒ|_ t ƒ|_ |jjj ddƒj ƒdk|_|j|jjƒ|_i|_x¨|jjD]š}|jdkr'|jddkräd}nd }||j||j<|j|j|j<|j j|jƒq³|jd kr³||jd |jR?Rt FileActiont extractfileR&tmiscttime_to_timestamptinttmodtimeRtDirectoryActionRt LinkActionRCthardlinktHardLinkActionRFt LicenseActionRthasht startswithtreplaceRRR(R R0t hollow_attr(R)R#tciRtmaplineR4tscript((sO/usr/lib/python2.7/vendor-packages/pkg/bundle/SolarisPackageDatastreamBundle.pyR7‰sX     ((t__name__t __module__t__doc__R-R5R9R7(((sO/usr/lib/python2.7/vendor-packages/pkg/bundle/SolarisPackageDatastreamBundle.pyR .s  '  cCsYtjj|ƒstSyt|ƒtSWn*tk rMttdƒƒ‚ntSXdS(Ns‚Multi-package datastreams are not supported. Please use pkgtrans(1) to convert this bundle to multiple filesystem format packages.( RRtisfiletFalseRtTrueRRt_(R((sO/usr/lib/python2.7/vendor-packages/pkg/bundle/SolarisPackageDatastreamBundle.pyttestÃs  (Rtstattpkg.miscRMt pkg.sysvpkgRRt pkg.actionst"pkg.bundle.SolarisPackageDirBundleRt pkg.bundleRtS_IFBLKtS_IFCHRtS_IFDIRtS_IFIFOtS_IFLNKtS_IFREGtS_IFSOCKttypemapR Rd(((sO/usr/lib/python2.7/vendor-packages/pkg/bundle/SolarisPackageDatastreamBundle.pyts          •