|
10 | 10 | import tarfile
|
11 | 11 | import datetime
|
12 | 12 |
|
13 |
| -from urllib.request import urlopen |
14 |
| - |
15 | 13 | from git import Repo
|
16 | 14 |
|
17 |
| -from DIRAC import gLogger, gConfig, S_OK, S_ERROR |
| 15 | +from DIRAC import gLogger, gConfig, S_OK |
18 | 16 | from DIRAC.ConfigurationSystem.Client.ConfigurationData import gConfigurationData
|
19 | 17 | from DIRAC.ConfigurationSystem.Client.Helpers.Operations import Operations
|
20 | 18 | from DIRAC.ConfigurationSystem.Client.Helpers.Path import cfgPath
|
@@ -285,17 +283,6 @@ def syncScripts(self):
|
285 | 283 | scriptDir = os.path.join(pilotLocalRepo, self.pilotScriptPath, "*.py")
|
286 | 284 | for filename in glob.glob(scriptDir):
|
287 | 285 | tarFiles.append(filename)
|
288 |
| - if not os.path.isfile(os.path.join(pilotLocalRepo, self.pilotScriptPath, "dirac-install.py")): |
289 |
| - |
290 |
| - # Download dirac-install.py |
291 |
| - response = urlopen("https://raw.githubusercontent.com/DIRACGrid/management/master/dirac-install.py") |
292 |
| - code = response.getcode() |
293 |
| - if code > 200 or code >= 300: |
294 |
| - return S_ERROR("Failed to download dirac-install.py with code %s" % code) |
295 |
| - with open("dirac-install.py", "wb") as fp: |
296 |
| - fp.write(response.read()) |
297 |
| - |
298 |
| - tarFiles.append("dirac-install.py") |
299 | 286 |
|
300 | 287 | tarPath = os.path.join(self.workDir, "pilot.tar")
|
301 | 288 | with tarfile.TarFile(name=tarPath, mode="w") as tf:
|
|
0 commit comments