Skip to content

Commit

Permalink
try patching differently
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-André Moreau committed Feb 6, 2024
1 parent b8a48e9 commit c992342
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions recipes/openssh/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,17 @@ def source(self):
git.clone(self.url)
git.checkout(self.branch)

git = tools.Git(folder="openssh-distro")
git.clone("https://github.com/Devolutions/openssh-distro")
git.checkout('openssh-update')
git_distro = tools.Git(folder="openssh-distro")
git_distro.clone("https://github.com/Devolutions/openssh-distro")
git_distro.checkout('openssh-update')
version_dir = 'v%s' % (self.version)
patches_dir = os.path.join("openssh-distro", "patches", version_dir)
patches_dir = os.path.join(os.getcwd(), "openssh-distro", "patches", version_dir)
if os.path.isdir(patches_dir):
for patch_file in sorted([f for f in os.listdir(patches_dir) if f.endswith('.patch')]):
patch_files = sorted([f for f in os.listdir(patches_dir) if f.endswith('.patch')])
for patch_file in patch_files:
patch_path = os.path.join(patches_dir, patch_file)
tools.patch(base_path=folder, patch_file=patch_path)
git_cmd = 'am --whitespace=nowarn %s' % (patch_path)
git.run(git_cmd)

def build(self):
cmake = CMake(self)
Expand Down

0 comments on commit c992342

Please sign in to comment.