<s> from conary . deps import deps <EOL> from conary . errors import ConaryError <EOL> class UpdateError ( ConaryError ) : <EOL> pass <EOL> class DirectoryInWayError ( UpdateError ) : <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" "<STR_LIT>" % ( self . path , self . name , str ( self . version ) , <EOL> deps . formatFlavor ( self . flavor ) ) <EOL> def __init__ ( self , path , name , version , flavor ) : <EOL> self . path = path <EOL> self . name = name <EOL> self . version = version <EOL> self . flavor = flavor <EOL> class FileInWayError ( UpdateError ) : <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % ( self . path , self . name , str ( self . version ) , <EOL> deps . formatFlavor ( self . flavor ) ) <EOL> def __init__ ( self , path , name , version , flavor ) : <EOL> self . path = path <EOL> self . name = name <EOL> self . version = version <EOL> self . flavor = flavor <EOL> class DatabasePathConflictError ( UpdateError ) : <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % ( self . path , self . name , str ( self . version ) , <EOL> deps . formatFlavor ( self . flavor ) ) <EOL> def __init__ ( self , path , name , version , flavor ) : <EOL> self . path = path <EOL> self . name = name <EOL> self . version = version <EOL> self . flavor = flavor <EOL> class PathConflictError ( UpdateError ) : <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % ( self . fsPath , headPath ) <EOL> def __init__ ( self , fsPath , headPath ) : <EOL> self . fsPath = fsPath <EOL> self . headPath = headPath <EOL> class DirectoryToSymLinkError ( UpdateError ) : <EOL> def __str__ ( self ) : <EOL> return '<STR_LIT>' '<STR_LIT>' '<STR_LIT>' % ( self . finalPath , self . finalPath , self . newLocation , <EOL> self . headPath , self . finalPath ) <EOL> def __init__ ( self , finalPath , newLocation , headPath ) : <EOL> self . finalPath = finalPath <EOL> self . newLocation = newLocation <EOL> self . headPath = headPath <EOL> class DirectoryToNonDirectoryError ( UpdateError ) : <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % self . path <EOL> def __init__ ( self , path ) : <EOL> self . path = path <EOL> class FileTypeChangedError ( UpdateError ) : <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % self . path <EOL> def __init__ ( self , path ) : <EOL> self . path = path <EOL> class FileAttributesConflictError ( UpdateError ) : <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % self . path <EOL> def __init__ ( self , path ) : <EOL> self . path = path <EOL> class FileContentsConflictError ( UpdateError ) : <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % self . path <EOL> def __init__ ( self , path ) : <EOL> self . path = path <EOL> class DuplicatePath ( UpdateError ) : <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % self . path <EOL> def __init__ ( self , path ) : <EOL> self . path = path </s>
