Skip to content

Commit

Permalink
Merge pull request haiwen#112 from Gustl22/108-seaserv
Browse files Browse the repository at this point in the history
Transform every python3 version
  • Loading branch information
jobenvil authored Mar 6, 2022
2 parents e5f5f35 + 41cb93f commit 1fb1188
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ seafile-server-pkgs/
# build artefacts
.build.sh.swp

# MacOS
.DS_Store

# IntelliJ
.idea

# VSCode
.vscode
4 changes: 2 additions & 2 deletions build-server.py.patch
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ index a479b6c75..ad60b4d46 100755
excludes = ' '.join(excludes_list)

- tar_cmd = 'tar czf %(tarball_name)s %(versioned_serverdir)s %(excludes)s' \
+ # tar will copy the content the directory python3.[7-9]/ to python3.6/
+ transform = '--transform=\'s,python3.[7-9]/,python3/,\''
+ # tar will copy the content the directory python3.[0-9]+/ to python3/
+ transform = '--transform=\'s,python3\.[0-9]\+/,python3/,\''
+
+ tar_cmd = 'tar czf %(tarball_name)s %(transform)s %(versioned_serverdir)s %(excludes)s' \
% dict(tarball_name=tarball_name,
Expand Down

0 comments on commit 1fb1188

Please sign in to comment.