aboutsummaryrefslogtreecommitdiff
path: root/devel/ice37/files/patch-scripts-Glacier2Util.py
blob: 5fb0e391ce03ae5f4b64727e15590645dbd846e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- scripts/Glacier2Util.py.orig	2022-01-15 23:22:20 UTC
+++ scripts/Glacier2Util.py
@@ -17,10 +17,13 @@ class Glacier2Router(ProcessFromBinDir, ProcessIsRelea
         return self.exe + "_32" if current.config.buildPlatform == "ppc" else self.exe
 
     def setup(self, current):
+        glacier2router = self.getMapping(current).getCommandLine(current, self, self.exe, "")
+        if not os.path.exists(self.exe) and os.path.exists("%%LOCALBASE%%/bin/glacier2router"):
+            self.exe = "%%LOCALBASE%%/bin/glacier2router"
         if self.passwords:
             path = os.path.join(current.testsuite.getPath(), "passwords")
             with open(path, "w") as file:
-                command = "\"%s\" %s" % (sys.executable,
+                command = "\"%s\" %s 2>/dev/null" % (sys.executable,
                                      os.path.abspath(os.path.join(toplevel, "scripts", "icehashpassword.py")))
 
                 #