diff --git a/pssh-2.3.1-py3-min-int-none.patch b/pssh-2.3.1-py3-min-int-none.patch new file mode 100644 index 0000000..c202bc8 --- /dev/null +++ b/pssh-2.3.1-py3-min-int-none.patch @@ -0,0 +1,13 @@ +diff --git a/bin/pssh b/bin/pssh +index 5b6c2a5..dc53a36 100755 +--- a/bin/pssh ++++ b/bin/pssh +@@ -90,7 +90,7 @@ def do_pssh(hosts, cmdline, opts): + except FatalError: + sys.exit(1) + +- if min(statuses) < 0: ++ if None in statuses: + # At least one process was killed. + sys.exit(3) + # The any builtin was introduced in Python 2.5 (so we can't use it yet): diff --git a/pssh.spec b/pssh.spec index a421760..66c5c4d 100644 --- a/pssh.spec +++ b/pssh.spec @@ -1,12 +1,13 @@ Summary: Parallel SSH tools Name: pssh Version: 2.3.1 -Release: 11%{?dist} +Release: 12%{?dist} License: BSD Url: http://code.google.com/p/parallel-ssh/ Group: Applications/Productivity Source0: http://parallel-ssh.googlecode.com/files/pssh-%{version}.tar.gz Patch0: pssh-2.3.1-py3-import.patch +Patch1: pssh-2.3.1-py3-min-int-none.patch Requires: openssh-clients BuildArch: noarch BuildRequires: python3-devel @@ -24,6 +25,7 @@ Parallell version includes: %prep %setup -q %patch0 -p1 +%patch1 -p1 sed -i -e '1 d' psshlib/askpass_{client,server}.py %build @@ -59,6 +61,9 @@ mv %{buildroot}%{_mandir}/man1/pscp.1 %{buildroot}%{_mandir}/man1/pscp.pssh.1 %{python3_sitelib}/%{name}lib %changelog +* Thu Feb 04 2016 Terje Rosten - 2.3.1-12 +- Add patch to fix bz#1294454 + * Thu Feb 04 2016 Fedora Release Engineering - 2.3.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild