Ubuntu Pastebin

Paste from nacc at Thu, 27 Oct 2016 16:38:04 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/usd/GitRepository.py b/usd/GitRepository.py
index bc07b90..46b781d 100644
--- a/usd/GitRepository.py
+++ b/usd/GitRepository.py
@@ -2,11 +2,13 @@ from enum import Enum, unique
 import copy
 import logging
 import os
+import random
 import re
 import shutil
 import subprocess
 import sys
 import tempfile
+import time
 from usd.version import VERSION
 try:
     pkg = 'python3-debian'
@@ -681,6 +683,7 @@ class USDGitRepository:
                 print("Failed to pull down source (attempt %d/3)" % (i+1))
                 if i >= 2:
                     raise
+                time.sleep((2 ** i) + (random.randint(0, 1000) / 1000))
 
         self.clean_repository_state()
 
Download as text