[arvados-dev] updated: 86ae7bd20a9246fe4e3198ae3eb5ba51f5d1a169
git repository hosting
git at public.arvados.org
Tue May 28 15:40:54 UTC 2024
Summary of changes:
jenkins/run_upload_packages.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
via 86ae7bd20a9246fe4e3198ae3eb5ba51f5d1a169 (commit)
from 1b436c2a6d2dfd78a28ff184d35238eb3e515722 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 86ae7bd20a9246fe4e3198ae3eb5ba51f5d1a169
Author: Brett Smith <brett.smith at curii.com>
Date: Tue May 28 11:40:30 2024 -0400
21840: Migrate from pipes.quote to shlex.quote
To avoid the pipes deprecation in modern Python.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith at curii.com>
diff --git a/jenkins/run_upload_packages.py b/jenkins/run_upload_packages.py
index 3d336a8..ee31b10 100755
--- a/jenkins/run_upload_packages.py
+++ b/jenkins/run_upload_packages.py
@@ -11,8 +11,8 @@ import glob
import locale
import logging
import os
-import pipes
import re
+import shlex
import shutil
import subprocess
import sys
@@ -186,8 +186,8 @@ class DistroPackageSuite(PackageSuite):
# self.__class__.__name__ provides $0 for the script, which makes a
# nicer message if there's an error.
subprocess.check_call(self._build_cmd(
- 'ssh', self.ssh_host, 'bash', '-ec', pipes.quote(script),
- self.__class__.__name__, *(pipes.quote(s) for s in args)))
+ 'ssh', self.ssh_host, 'bash', '-ec', shlex.quote(script),
+ self.__class__.__name__, *(shlex.quote(s) for s in args)))
def upload_files(self, paths):
dest_dir = os.path.join(self.REMOTE_DEST_DIR, self.target)
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list