Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite72d514

Browse files
author
Anton Pogonets
committed
Fix rsyncing empty list
1 parentb8ba354 commite72d514

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

‎src/main/scripts/collect-dependencies.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ def _traverse(node, func, is_root = False):
2020
_traverse(root_node,func,True)
2121

2222
defcopytree(src,dst,symlinks=False,ignore=None):
23-
print(subprocess.check_output(["rsync","-r"]+glob.glob(src)+ [dst]))
23+
src_files=glob.glob(src)
24+
25+
iflen(src_files)==0:
26+
return
27+
28+
subprocess.call(["rsync","-r"]+src_files+ [dst])
2429

2530

2631
defcopy_prebuilt(src,dst):

‎src/main/scripts/run-tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ def push(dst, name):
2424
adb_push(dst, [".build/debug/"+name])
2525

2626
defadb_push(dst,files):
27-
subprocess.call(["adb","push"]+files+ [dst])
27+
forfinfiles:
28+
subprocess.call(["adb","push",f,dst])
2829

2930
defadb_shell(args):
3031
returnsubprocess.call(["adb","shell"]+args)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp