Esempio n. 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))
Esempio n. 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()
Esempio n. 3
0
 def apply_patch(self):
     os.chdir(self.location)
     p3 = Popen(['patch', self.filename, join(get_patch_directory(), self.name)]).communicate()
Esempio n. 4
0
 def patch_directory(self):
     return os.path.join(get_patch_directory(), self.name)