[Piuparts-devel] [Git][debian/piuparts][develop] Use /usr/bin/python3 everywhere.
Holger Levsen
gitlab at salsa.debian.org
Wed Sep 4 14:21:22 BST 2019
Holger Levsen pushed to branch develop at Debian / piuparts
Commits:
762d7d31 by Holger Levsen at 2019-09-04T13:21:02Z
Use /usr/bin/python3 everywhere.
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
9 changed files:
- debian/changelog
- master-bin/detect_well_known_errors.py
- piuparts-analyze.py
- piuparts-master-backend.py
- piuparts-report.py
- piuparts-slave.py
- piupartslib/pkgsummary.py
- slave-bin/slave_reexec.in
- slave-bin/slave_stop.in
Changes:
=====================================
debian/changelog
=====================================
@@ -32,6 +32,7 @@ piuparts (1.1.0) UNRELEASED; urgency=medium
* docs/README_server.txt, docs/piuparts/piuparts.1.txt and piuparts.py:
update examples for buster being stable and bullseye being the new
testing.
+ * Use /usr/bin/python3 everywhere.
* Bump standards version to 4.4.0, no changes needed.
* d/tests: Add simple smoke-test.
* htdocs/news.tpl: mention new suites bullseye and bullseye-rcmd being
=====================================
master-bin/detect_well_known_errors.py
=====================================
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Copyright 2013 David Steele (dsteele at gmail.com)
=====================================
piuparts-analyze.py
=====================================
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# Copyright 2005 Lars Wirzenius (liw at iki.fi)
=====================================
piuparts-master-backend.py
=====================================
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# Copyright 2005 Lars Wirzenius (liw at iki.fi)
=====================================
piuparts-report.py
=====================================
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# Copyright 2005 Lars Wirzenius (liw at iki.fi)
=====================================
piuparts-slave.py
=====================================
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# Copyright 2005 Lars Wirzenius (liw at iki.fi)
=====================================
piupartslib/pkgsummary.py
=====================================
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# Copyright 2014 David Steele (dsteele at gmail.com)
#
=====================================
slave-bin/slave_reexec.in
=====================================
@@ -21,7 +21,7 @@ set -e
# picking up new code and sections.
#
-for pid in $(pgrep --full '/usr/bin/python @sharedir@/piuparts/piuparts-slave')
+for pid in $(pgrep --full '/usr/bin/python3 @sharedir@/piuparts/piuparts-slave')
do
echo "Sending SIGUSR1 to ${pid}..."
kill -USR1 $pid
=====================================
slave-bin/slave_stop.in
=====================================
@@ -38,14 +38,14 @@ TAILPID=$!
trap "kill $TAILPID" INT TERM EXIT
sleep 0.5
-pkill --signal INT --full '/usr/bin/python @sharedir@/piuparts/piuparts-slave'
+pkill --signal INT --full '/usr/bin/python3 @sharedir@/piuparts/piuparts-slave'
i=1
-while pgrep --full '/usr/bin/python @sharedir@/piuparts/piuparts-slave' > /dev/null ; do
+while pgrep --full '/usr/bin/python3 @sharedir@/piuparts/piuparts-slave' > /dev/null ; do
echo -n "$(date -u +%T) - "
- pgrep --full '/usr/bin/python @sharedir@/piuparts/piuparts-slave' | xargs -r echo -n "slaves running: "
+ pgrep --full '/usr/bin/python3 @sharedir@/piuparts/piuparts-slave' | xargs -r echo -n "slaves running: "
SLEEP=$(( $i * $i ))
- BUSY=$(ps fax | grep -v grep | grep '/usr/bin/python @sbindir@/piuparts' | awk '{print $NF}')
+ BUSY=$(ps fax | grep -v grep | grep '/usr/bin/python3 @sbindir@/piuparts' | awk '{print $NF}')
if [ -n "$BUSY" ] ; then
# really/meaningful busy
echo
@@ -61,7 +61,7 @@ while pgrep --full '/usr/bin/python @sharedir@/piuparts/piuparts-slave' > /dev/n
i=$(( $i + 1 ))
done
echo -n "$(date -u +%T) - "
-pgrep --full '/usr/bin/python @sharedir@/piuparts/piuparts-slave' | xargs echo "slaves running: (should list none) "
+pgrep --full '/usr/bin/python3 @sharedir@/piuparts/piuparts-slave' | xargs echo "slaves running: (should list none) "
trap - INT TERM EXIT
kill $TAILPID
View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/762d7d317465fb20072160449984e1ac897dad38
--
View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/762d7d317465fb20072160449984e1ac897dad38
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20190904/837b7bcf/attachment-0001.html>
More information about the Piuparts-devel
mailing list