Ρς ξα†Lc@sˆdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd „ƒYZd efd „ƒYZd S( tIndexingExceptioncBs eZdZd„Zd„ZRS(s@The base class for all exceptions that can occur while indexing.cCs ||_dS(N(tcause(tselfR((s7/usr/lib/python2.6/vendor-packages/pkg/search_errors.pyt__init__$scCs t|ƒS(N(tstr(R((s7/usr/lib/python2.6/vendor-packages/pkg/search_errors.pyt __unicode__'s(t__name__t __module__t__doc__RR(((s7/usr/lib/python2.6/vendor-packages/pkg/search_errors.pyR!s tInconsistentIndexExceptioncBseZdZd„ZRS(sTThis is used when the existing index is found to have inconsistent versions.cCs d|iS(NshIndex corrupted, remove all files and rebuild from scratch by clearing out %s and restarting the depot.(R(R((s7/usr/lib/python2.6/vendor-packages/pkg/search_errors.pyt__str__2s(RRRR (((s7/usr/lib/python2.6/vendor-packages/pkg/search_errors.pyR .stIndexLockedExceptioncBs&eZdZddd„Zd„ZRS(sdThis is used when an attempt to modify an index locked by another thread or process is made.cCs&ti|dƒ||_||_dS(N(RRtNonethostnametpid(RR R((s7/usr/lib/python2.6/vendor-packages/pkg/search_errors.pyR<s cCs=|idj o#tdƒh|id6|id6StdƒS(NsjThe search index cannot be modified as it is currently in use by another process: pid %(pid)s on %(host)s.RthostsQThe search index cannot be modified as it is currently in use by another process.(RR t_R (R((s7/usr/lib/python2.6/vendor-packages/pkg/search_errors.pyR As  N(RRRR RR (((s7/usr/lib/python2.6/vendor-packages/pkg/search_errors.pyR 8st$ProblematicPermissionsIndexExceptioncBseZdZd„ZRS(suThis is used when the indexer is unable to create, move, or remove files or directories it should be able to.cCs d|iS(NsqCould not remove or create %s because of incorrect permissions. Please correct this issue then rebuild the index.(R(R((s7/usr/lib/python2.6/vendor-packages/pkg/search_errors.pyR Ps(RRRR (((s7/usr/lib/python2.6/vendor-packages/pkg/search_errors.pyRLstNoIndexExceptioncBs)eZdZd„Zd„Zd„ZRS(s=This is used when a search is executed while no index exists.cCs ||_dS(N(t index_dir(RR((s7/usr/lib/python2.6/vendor-packages/pkg/search_errors.pyRYscCs t|ƒS(N(R(R((s7/usr/lib/python2.6/vendor-packages/pkg/search_errors.pyR\scCs d|iS(Ns-Could not find index to search, looked in: %s(R(R((s7/usr/lib/python2.6/vendor-packages/pkg/search_errors.pyR bs(RRRRRR (((s7/usr/lib/python2.6/vendor-packages/pkg/search_errors.pyRVs  tIncorrectIndexFileHashcBs)eZdZd„Zd„Zd„ZRS(smThis is used when the index hash value doesn't match the hash of the packages installed in the image.cCs#ti|ƒ||_||_dS(N(t ExceptionRtevtiv(Rt existing_valt incoming_val((s7/usr/lib/python2.6/vendor-packages/pkg/search_errors.pyRjs  cCs t|ƒS(N(R(R((s7/usr/lib/python2.6/vendor-packages/pkg/search_errors.pyRoscCsd|i|ifS(Ns'existing_val was:%s incoming_val was:%s(RR(R((s7/usr/lib/python2.6/vendor-packages/pkg/search_errors.pyR us(RRRRRR (((s7/usr/lib/python2.6/vendor-packages/pkg/search_errors.pyRfs  N(RRR R RRR(((s7/usr/lib/python2.6/vendor-packages/pkg/search_errors.pyt!s