Example #1
0
 def patch(self, section):
     what_patches = self.get_option('patches', section)
     (_from_uri, target_dir) = self._get_download_location()
     if not what_patches:
         what_patches = []
     canon_what_patches = []
     for path in what_patches:
         if sh.isdir(path):
             canon_what_patches.extend(sh.listdir(path, files_only=True))
         elif sh.isfile(path):
             canon_what_patches.append(path)
     if canon_what_patches:
         patcher.apply_patches(canon_what_patches, target_dir)
Example #2
0
 def patch(self, section):
     what_patches = self.get_option('patches', section)
     (_from_uri, target_dir) = self._get_download_location()
     if not what_patches:
         what_patches = []
     canon_what_patches = []
     for path in what_patches:
         if sh.isdir(path):
             canon_what_patches.extend(sorted(sh.listdir(path, files_only=True)))
         elif sh.isfile(path):
             canon_what_patches.append(path)
     if canon_what_patches:
         patcher.apply_patches(canon_what_patches, target_dir)
Example #3
0
 def patch(self, section):
     canon_what_patches = self.list_patches(section)
     if canon_what_patches:
         (_from_uri, target_dir) = self._get_download_location()
         patcher.apply_patches(canon_what_patches, target_dir)
Example #4
0
 def patch(self, section):
     what_patches = self.get_option("patches", section)
     (_from_uri, target_dir) = self._get_download_location()
     patcher.apply_patches(what_patches, target_dir)
Example #5
0
 def patch(self, section):
     canon_what_patches = self.list_patches(section)
     if canon_what_patches:
         target_dir = self.get_option('app_dir')
         patcher.apply_patches(canon_what_patches, target_dir)
Example #6
0
 def patch(self, section):
     canon_what_patches = self.list_patches(section)
     if canon_what_patches:
         (_from_uri, target_dir) = self._get_download_location()
         patcher.apply_patches(canon_what_patches, target_dir)
Example #7
0
 def patch(self, section):
     what_patches = self.get_option('patches', section)
     (_from_uri, target_dir) = self._get_download_location()
     patcher.apply_patches(what_patches, target_dir)