Skip to content

Commit 27d7c07

Browse files
committed
revert unnecessary changes to patch_step, not needed to call patch_step from ExtensionEasyBlock.run
1 parent 8545231 commit 27d7c07

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

easybuild/framework/easyblock.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1878,27 +1878,25 @@ def extract_step(self):
18781878
else:
18791879
raise EasyBuildError("Unpacking source %s failed", src['name'])
18801880

1881-
def patch_step(self, beginpath=None, extension=False):
1881+
def patch_step(self, beginpath=None):
18821882
"""
18831883
Apply the patches
18841884
"""
18851885
for patch in self.patches:
18861886
self.log.info("Applying patch %s" % patch['name'])
18871887
trace_msg("applying patch %s" % patch['name'])
18881888

1889-
if not extension:
1890-
# patch source at specified index (first source if not specified)
1891-
srcind = patch.get('source', 0)
1889+
# patch source at specified index (first source if not specified)
1890+
srcind = patch.get('source', 0)
18921891
# if patch level is specified, use that (otherwise let apply_patch derive patch level)
18931892
level = patch.get('level', None)
18941893
# determine suffix of source path to apply patch in (if any)
18951894
srcpathsuffix = patch.get('sourcepath', patch.get('copy', ''))
18961895
# determine whether 'patch' file should be copied rather than applied
18971896
copy_patch = 'copy' in patch and 'sourcepath' not in patch
18981897

1899-
if not extension:
1900-
self.log.debug("Source index: %s; patch level: %s; source path suffix: %s; copy patch: %s",
1901-
srcind, level, srcpathsuffix, copy)
1898+
self.log.debug("Source index: %s; patch level: %s; source path suffix: %s; copy patch: %s",
1899+
srcind, level, srcpathsuffix, copy)
19021900

19031901
if beginpath is None:
19041902
try:

easybuild/framework/extensioneasyblock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def run(self, unpack_src=False):
110110
change_dir(self.start_dir)
111111

112112
# patch if needed
113-
EasyBlock.patch_step(self, beginpath=self.ext_dir, extension=True)
113+
EasyBlock.patch_step(self, beginpath=self.ext_dir)
114114

115115
def sanity_check_step(self, exts_filter=None, custom_paths=None, custom_commands=None):
116116
"""

0 commit comments

Comments
 (0)