def has_patch(self): """check if a patch exists for this application""" return os.path.isfile(os.path.join(get_patch_directory(), self.name))
def apply_patch(self): os.chdir(self.get_absolute_directory()) p3 = Popen(['patch', '-p2', '-i', os.path.join(get_patch_directory(), self.name)]).communicate()
def apply_patch(self): os.chdir(self.location) p3 = Popen(['patch', self.filename, join(get_patch_directory(), self.name)]).communicate()
def patch_directory(self): return os.path.join(get_patch_directory(), self.name)