]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
remove obsolete patchfilevar
authorRoss Burton <ross.burton@arm.com>
Tue, 25 Jun 2024 12:15:16 +0000 (13:15 +0100)
committerRoss Burton <ross.burton@arm.com>
Thu, 12 Feb 2026 18:20:09 +0000 (18:20 +0000)
removed in f5e6183b9557477bef74024a587de0bfcc2b7c0d
    lib/oe/patch: Use git notes to store the filenames for the patches

meta/lib/oe/patch.py

index 9887af4442c59165a73bc2377e722256870f78f5..4b1221247494cc8788f1f948674afd59e40da588 100644 (file)
@@ -572,7 +572,7 @@ class GitApplyTree(PatchTree):
                 check_dirtyness = True
         return check_dirtyness
 
-    def _commitpatch(self, patch, patchfilevar):
+    def _commitpatch(self, patch):
         output = ""
         # Add all files
         shellcmd = ["git", "add", "-f", "-A", "."]
@@ -583,7 +583,6 @@ class GitApplyTree(PatchTree):
         # Commit the result
         (tmpfile, shellcmd) = self.prepareCommit(patch['file'], self.commituser, self.commitemail)
         try:
-            shellcmd.insert(0, patchfilevar)
             output += runcmd(["sh", "-c", " ".join(shellcmd)], self.dir)
         finally:
             os.remove(tmpfile)
@@ -609,7 +608,6 @@ class GitApplyTree(PatchTree):
 
         patch_applied = True
         try:
-            patchfilevar = 'PATCHFILE="%s"' % os.path.basename(patch['file'])
             if self._need_dirty_check():
                 # Check dirtyness of the tree
                 try:
@@ -621,10 +619,10 @@ class GitApplyTree(PatchTree):
                         # The tree is dirty, no need to try to apply patches with git anymore
                         # since they fail, fallback directly to patch
                         output = PatchTree._applypatch(self, patch, force, reverse, run)
-                        output += self._commitpatch(patch, patchfilevar)
+                        output += self._commitpatch(patch)
                         return output
             try:
-                shellcmd = [patchfilevar, "git", "--work-tree=%s" % reporoot]
+                shellcmd = ["git", "--work-tree=%s" % reporoot]
                 self.gitCommandUserOptions(shellcmd, self.commituser, self.commitemail)
                 shellcmd += ["am", "--committer-date-is-author-date",
                              "-3", "--keep-cr", "--no-scissors", "-p%s" % patch['strippath']]
@@ -650,7 +648,7 @@ class GitApplyTree(PatchTree):
                 except CmdError:
                     # Fall back to patch
                     output = PatchTree._applypatch(self, patch, force, reverse, run)
-                output += self._commitpatch(patch, patchfilevar)
+                output += self._commitpatch(patch)
                 return output
         except:
             patch_applied = False