[pitivi] bin: Fix download command in verbose mode



commit ce17d59813a6bf1ee0a7586a3175bfaa97c06864
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Wed Sep 30 18:05:35 2015 +0200

    bin: Fix download command in verbose mode
    
    Reviewers: thiblahute
    
    Projects: #pitivi
    
    Differential Revision: https://phabricator.freedesktop.org/D291

 bin/pitivi-git-environment.sh |    1 +
 bin/pitivi-git-prebuilt-env   |   10 ++++++----
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/bin/pitivi-git-environment.sh b/bin/pitivi-git-environment.sh
index ff24ba4..ed54f31 100755
--- a/bin/pitivi-git-environment.sh
+++ b/bin/pitivi-git-environment.sh
@@ -178,6 +178,7 @@ $PITIVI/gstreamer/plugins\
 :$PITIVI/farsight2/transmitters\
 :$PITIVI/libnice/gst\
 :$PITIVI/gst-editing-services/plugins/nle/\
+:$PITIVI/gst-editing-services/plugins/ges/\
 :${GST_PLUGIN_PATH:+:$GST_PLUGIN_PATH}"
 
     # don't use any system-installed plug-ins at all
diff --git a/bin/pitivi-git-prebuilt-env b/bin/pitivi-git-prebuilt-env
index 6430b9b..1584990 100755
--- a/bin/pitivi-git-prebuilt-env
+++ b/bin/pitivi-git-prebuilt-env
@@ -86,10 +86,12 @@ class Bundle:
     def download(self):
         printf("Downloading bundle... ", end="")
         self.tarball = tempfile.NamedTemporaryFile(suffix="pitivi_bundle")
-        res = subprocess.call(["wget", self.uri, "-O", self.tarball.name,
-                               "" if self.verbose else "-q"]) == 0
-        printf("done")
-        return res
+        command = ["wget", self.uri, "-O", self.tarball.name]
+        if not self.verbose:
+            command.append("-q")
+        res = subprocess.call(command)
+        printf("done (%s)" % res)
+        return res == 0
 
     def extract_devroot(self, prefix):
         printf("Setting up paths into the bundle...", end="")


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]