File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -39,15 +39,17 @@ def source(self):
39
39
git .clone (self .url )
40
40
git .checkout (self .branch )
41
41
42
- git = tools .Git (folder = "openssh-distro" )
43
- git .clone ("https://github.com/Devolutions/openssh-distro" )
44
- git .checkout ('openssh-update' )
42
+ git_distro = tools .Git (folder = "openssh-distro" )
43
+ git_distro .clone ("https://github.com/Devolutions/openssh-distro" )
44
+ git_distro .checkout ('openssh-update' )
45
45
version_dir = 'v%s' % (self .version )
46
- patches_dir = os .path .join ("openssh-distro" , "patches" , version_dir )
46
+ patches_dir = os .path .join (os . getcwd (), "openssh-distro" , "patches" , version_dir )
47
47
if os .path .isdir (patches_dir ):
48
- for patch_file in sorted ([f for f in os .listdir (patches_dir ) if f .endswith ('.patch' )]):
48
+ patch_files = sorted ([f for f in os .listdir (patches_dir ) if f .endswith ('.patch' )])
49
+ for patch_file in patch_files :
49
50
patch_path = os .path .join (patches_dir , patch_file )
50
- tools .patch (base_path = folder , patch_file = patch_path )
51
+ git_cmd = 'am --whitespace=nowarn %s' % (patch_path )
52
+ git .run (git_cmd )
51
53
52
54
def build (self ):
53
55
cmake = CMake (self )
You can’t perform that action at this time.
0 commit comments