Skip to content

Commit a50e973

Browse files
authored
Merge pull request #638 from jkloetzke/fixes
Random Fixes
2 parents a021322 + 61c2048 commit a50e973

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

pym/bob/archive.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import os.path
3636
import shutil
3737
import signal
38+
import socket
3839
import struct
3940
import subprocess
4041
import tarfile
@@ -450,6 +451,8 @@ def _downloadPackage(self, buildId, suffix, audit, content, caches, workspace):
450451
return (False, self._namedErrorString(e.reason), WARNING)
451452
except ConnectionRefusedError:
452453
return (False, self._namedErrorString("connection failed"), WARNING)
454+
except (socket.herror, socket.gaierror) as e:
455+
return (False, self._namedErrorString(str(e)), WARNING)
453456
except BuildError as e:
454457
raise
455458
except OSError as e:

pym/bob/builder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -725,10 +725,10 @@ async def _runShell(self, step, scriptName, logger, workspaceCreated, cleanWorks
725725
self.__linkDependencies(step)
726726

727727
# write spec
728-
specFile = os.path.join(workspacePath, "..", "step.spec")
729-
envFile = os.path.join(workspacePath, "..", "env")
730-
logFile = os.path.join(workspacePath, "..", "log.txt")
731-
scriptHint = os.path.join(workspacePath, "..", "script")
728+
specFile = os.path.normpath(os.path.join(workspacePath, "..", "step.spec"))
729+
envFile = os.path.normpath(os.path.join(workspacePath, "..", "env"))
730+
logFile = os.path.normpath(os.path.join(workspacePath, "..", "log.txt"))
731+
scriptHint = os.path.normpath(os.path.join(workspacePath, "..", "script"))
732732
spec = StepSpec.fromStep(step, envFile, self.__envWhiteList, logFile,
733733
scriptHint=scriptHint, isJenkins=step.JENKINS,
734734
slimSandbox=self.__slimSandbox)

0 commit comments

Comments
 (0)