summaryrefslogtreecommitdiff
path: root/mesonbuild/msubprojects.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2024-02-16 10:13:51 -0800
committerDylan Baker <dylan@pnwbakers.com>2024-02-22 09:05:33 -0800
commit39e1bf19fb653ac4f040e48b9a33aaa59dea1196 (patch)
treec7c9b3913d18051fa64c32f91382792d28be07b1 /mesonbuild/msubprojects.py
parent0abc8729bfd0e12cc28f0e3958b232a1a6a0d98c (diff)
downloadmeson-39e1bf19fb653ac4f040e48b9a33aaa59dea1196.tar.gz
wrap: remove Resolver.packagename
Instead of being instance state, it's passed around. This isn't a big deal internally since most of the users are protected, and the only time an external change is required is a couple of places in msubprojects, which is fine because the information is available. Fixes: #12869
Diffstat (limited to 'mesonbuild/msubprojects.py')
-rwxr-xr-xmesonbuild/msubprojects.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/msubprojects.py b/mesonbuild/msubprojects.py
index d8afd92dd..15db3f928 100755
--- a/mesonbuild/msubprojects.py
+++ b/mesonbuild/msubprojects.py
@@ -250,7 +250,7 @@ class Runner:
# avoid any data lost by mistake.
self.git_stash()
self.git_output(['reset', '--hard', 'FETCH_HEAD'])
- self.wrap_resolver.apply_patch()
+ self.wrap_resolver.apply_patch(self.wrap.name)
self.wrap_resolver.apply_diff_files()
except GitException as e:
self.log(' -> Could not reset', mlog.bold(self.repo_dir), 'to', mlog.bold(revision))
@@ -603,7 +603,7 @@ class Runner:
if not os.path.isdir(self.repo_dir):
self.log(' -> Not downloaded yet')
return True
- self.wrap_resolver.apply_patch()
+ self.wrap_resolver.apply_patch(self.wrap.name)
return True
if options.save:
if 'patch_directory' not in self.wrap.values: