diff --git a/build/commands.py b/build/commands.py index 6c6d92a8..02a26442 100644 --- a/build/commands.py +++ b/build/commands.py @@ -376,11 +376,11 @@ class InternalCommands: print self.find_revision() def find_revision(self): - p = subprocess.Popen(['svn', 'info'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) + p = subprocess.Popen(['svn', 'info'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = p.communicate() if p.returncode != 0: - raise Exception('Could not get revision info with error code code: ' + str(p.returncode)) + raise Exception('Could not get revision - svn info failed with code: ' + str(p.returncode)) m = re.search('.*Revision: (\d+).*', stdout) if not m: diff --git a/hm.py b/hm.py index 21e9619f..80a3e2e1 100644 --- a/hm.py +++ b/hm.py @@ -169,7 +169,7 @@ def run_cmd(cmd, argv = []): except: if not verbose: # print friendly error for users - sys.stderr.write('Error: ' + sys.exc_info()[1].__str__()) + sys.stderr.write('Error: ' + sys.exc_info()[1].__str__() + '\n') exit(1) else: # if user wants to be verbose let python do it's thing