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