Skip to content
Snippets Groups Projects
Unverified Commit 63915613 authored by Peter Josef Scheibel's avatar Peter Josef Scheibel Committed by Todd Gamblin
Browse files

Patch fetching: remove unnecessary argument

parent 587c650b
No related branches found
No related tags found
No related merge requests found
......@@ -1086,7 +1086,7 @@ def do_fetch(self, mirror_only=False):
self.stage.cache_local()
for patch in self.spec.patches:
patch.fetch(self.stage)
patch.fetch()
if patch.cache():
patch.cache().cache_local()
......
......@@ -64,11 +64,8 @@ def __init__(self, pkg, path_or_url, level, working_dir):
self.level = level
self.working_dir = working_dir
def fetch(self, stage):
def fetch(self):
"""Fetch the patch in case of a UrlPatch
Args:
stage: stage for the package that needs to be patched
"""
def clean(self):
......@@ -185,8 +182,7 @@ def __init__(self, pkg, url, level=1, working_dir='.', ordering_key=None,
if not self.sha256:
raise PatchDirectiveError("URL patches require a sha256 checksum")
# TODO: this function doesn't use the stage arg
def fetch(self, stage):
def fetch(self):
"""Retrieve the patch in a temporary stage and compute self.path
Args:
......
......@@ -79,7 +79,7 @@ def test_url_patch(mock_patch_stage, filename, sha256, archive_sha256):
third line
""")
# apply the patch and compare files
patch.fetch(stage)
patch.fetch()
patch.apply(stage)
patch.clean()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment