Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'cargo_wrapper.py')
-rw-r--r--cargo_wrapper.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/cargo_wrapper.py b/cargo_wrapper.py
index 3e8bdef86..85fd874d8 100644
--- a/cargo_wrapper.py
+++ b/cargo_wrapper.py
@@ -32,9 +32,10 @@ cargo_cmd = ['cargo', 'build', '--manifest-path',
if target == 'release':
cargo_cmd.append('--release')
-for e in exclude.split(','):
- cargo_cmd.append('--exclude')
- cargo_cmd.append(e)
+if len(exclude) > 0:
+ for e in exclude.split(','):
+ cargo_cmd.append('--exclude')
+ cargo_cmd.append(e)
try:
subprocess.run(cargo_cmd, env=env, check=True)