Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tor-reproducer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
briar
tor-reproducer
Commits
e9b900de
Verified
Commit
e9b900de
authored
6 years ago
by
Torsten Grote
Browse files
Options
Downloads
Patches
Plain Diff
Fix minor PEP violations
parent
bba6ca12
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build-tor.py
+8
-6
8 additions, 6 deletions
build-tor.py
verify-tor.py
+2
-1
2 additions, 1 deletion
verify-tor.py
with
10 additions
and
7 deletions
build-tor.py
+
8
−
6
View file @
e9b900de
#!/usr/bin/env python3
import
os
import
sys
from
shutil
import
move
,
copy
,
rmtree
from
subprocess
import
check_call
from
utils
import
REPO_DIR
,
get_sha256
,
fail
,
get_build_versions
,
get_tor_version
,
get_final_file_name
,
get_sources_file_name
,
get_pom_file_name
,
get_version
from
utils
import
REPO_DIR
,
get_sha256
,
fail
,
get_build_versions
,
get_tor_version
,
\
get_final_file_name
,
get_sources_file_name
,
get_pom_file_name
,
get_version
NDK_DIR
=
'
android-ndk
'
...
...
@@ -162,9 +162,11 @@ def create_sources_jar(versions):
external_dir
=
os
.
path
.
join
(
REPO_DIR
,
'
external
'
)
check_call
([
'
git
'
,
'
clean
'
,
'
-dfx
'
],
cwd
=
external_dir
)
jar_files
=
[]
for
root
,
dirnames
,
filenames
in
os
.
walk
(
external_dir
):
for
f
in
filenames
:
jar_files
.
append
(
os
.
path
.
join
(
root
,
f
))
for
file
in
jar_files
:
reset_time
(
file
)
for
root
,
dir_names
,
filenames
in
os
.
walk
(
external_dir
):
for
f
in
filenames
:
jar_files
.
append
(
os
.
path
.
join
(
root
,
f
))
for
file
in
jar_files
:
reset_time
(
file
)
jar_name
=
get_sources_file_name
(
versions
)
jar_path
=
os
.
path
.
abspath
(
os
.
path
.
join
(
REPO_DIR
,
jar_name
))
rel_paths
=
[
os
.
path
.
relpath
(
f
,
external_dir
)
for
f
in
sorted
(
jar_files
)]
...
...
@@ -183,4 +185,4 @@ def create_pom_file(versions):
if
__name__
==
"
__main__
"
:
main
()
main
()
This diff is collapsed.
Click to expand it.
verify-tor.py
+
2
−
1
View file @
e9b900de
...
...
@@ -3,7 +3,8 @@ import os
import
sys
from
subprocess
import
check_call
,
CalledProcessError
from
utils
import
REPO_DIR
,
get_sha256
,
fail
,
get_build_versions
,
get_final_file_name
,
get_version
,
get_tor_version
from
utils
import
REPO_DIR
,
get_sha256
,
fail
,
get_build_versions
,
get_final_file_name
,
\
get_version
,
get_tor_version
def
main
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment