Ñò TONc @s}ddkZddkZddkZddkZddkZddkZddkZdeii fd„ƒYZ d„Z dS(iÿÿÿÿNtDirectoryBundlecBs5eZdZdd„Zd„Zd„Zd„ZRS(s1The DirectoryBundle class assists in the conversion of a directory tree to a pkg(5) package by traversing the tree and emitting actions for all files, directories, and links found therein. Paths are published relative to the given directory. Hardlinks are resolved as long as their companions are in the tree as well. All owners are set to "root" and groups to "bin", as the ownership information is not considered to be valid. These can be set by the caller once the action has been emitted. cCs[tii|ƒ}||_||_tii|iƒ|_d|_||_ d|_ dS(N( tostpathtnormpathtfilenametrootdirtbasenametpkgnametNonetinodest targetpathstpkg(tselfRR ((s@/usr/lib/python2.6/vendor-packages/pkg/bundle/DirectoryBundle.pyt__init__1s    c csÊ|idjoXh|_xL|iD]=}tii|i|ƒ}ti|ƒ}||i|is       O