def add_file_dep(self, doc, value):
if self.has_package(doc) and self.has_file(doc):<EOL><INDENT>self.file(doc).add_depend(value)<EOL><DEDENT>else:<EOL><INDENT>raise OrderError('<STR_LIT>')<EOL><DEDENT>
Raises OrderError if no package or file defined.