Commits

Henri Sivonen  committed 134eb3f

fix exit

  • Participants
  • Parent commits 1e202a1

Comments (0)

Files changed (1)

   print "%s %s" % (cmd, " ".join(args))
   if os.execvp(cmd, [cmd,] + args):
     print "Command failed."
-    exit 2
+    sys.exit(2)
 
 def removeIfExists(filePath):
   if os.path.exists(filePath):
     m = md5.new(data)
     if md5sum != m.hexdigest():
       print "Bad MD5 hash for %s." % url
-      exit(1)
+      sys.exit(1)
   head, tail = os.path.split(path)
   if not os.path.exists(head):
     os.makedirs(head)