feat(ST2.GitPackages): bump up all packages

- Refresh PackageCache with latest versions of everything
This commit is contained in:
Iristyle
2013-09-16 22:32:31 -04:00
parent fad58909f7
commit 3a0c5ce9e2
43 changed files with 6367 additions and 1395 deletions

View File

@@ -6,6 +6,12 @@ import subprocess
class BinaryNotFoundError(Exception):
pass
class CommandExecutionError(Exception):
def __init__(self, errorcode):
self.errorcode = errorcode
def __str__(self):
return repr('An error has occurred while executing the command')
def find_binary(name):
dirs = ['/usr/local/sbin', '/usr/local/bin', '/usr/sbin', '/usr/bin',
@@ -24,5 +30,8 @@ def execute(args):
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
output = proc.stdout.read()
proc.wait()
return output
if proc.wait() == 0:
return output
raise CommandExecutionError(proc.returncode)