[Piuparts-commits] [piuparts] 01/01: dwke.py/-analyze.py/-report.py: quietly exit if another process is still running.
Holger Levsen
holger at layer-acht.org
Fri Oct 27 15:06:47 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit c8d3ed07d79efdd4c6d3989cd64c823e86bdbefc
Author: Holger Levsen <holger at layer-acht.org>
Date: Fri Oct 27 17:06:27 2017 +0200
dwke.py/-analyze.py/-report.py: quietly exit if another process is still running.
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
debian/changelog | 4 ++++
master-bin/detect_well_known_errors.py | 3 +--
piuparts-analyze.py | 2 +-
piuparts-report.py | 2 +-
4 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 0ead926..bce783d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -25,6 +25,10 @@ piuparts (0.83) UNRELEASED; urgency=medium
* master-bin/report_newly_bugged_packages: Remove, merged into
piuparts-analyze.
+ [ Holger Levsen ]
+ * dwke.py/-analyze.py/-report.py: quietly exit if another process is still
+ running.
+
-- Holger Levsen <holger at debian.org> Sat, 07 Oct 2017 17:42:12 +0200
piuparts (0.82) unstable; urgency=medium
diff --git a/master-bin/detect_well_known_errors.py b/master-bin/detect_well_known_errors.py
index 3634244..c796727 100644
--- a/master-bin/detect_well_known_errors.py
+++ b/master-bin/detect_well_known_errors.py
@@ -147,8 +147,7 @@ caching the problems found, by package, into ".kpr" files.
try:
fcntl.flock(lock, fcntl.LOCK_EX | fcntl.LOCK_NB)
except IOError:
- sys.exit("another detect_well_known_errors process is already running")
-
+ sys.exit()
sections = args.sections
if not sections:
sections = conf['sections'].split()
diff --git a/piuparts-analyze.py b/piuparts-analyze.py
index 281d83b..7d3bb02 100644
--- a/piuparts-analyze.py
+++ b/piuparts-analyze.py
@@ -322,7 +322,7 @@ def main():
try:
fcntl.flock(lock, fcntl.LOCK_EX | fcntl.LOCK_NB)
except IOError:
- sys.exit("another piuparts-analyze process is already running")
+ sys.exit()
for section_name in sections:
print(time.strftime("%a %b %2d %H:%M:%S %Z %Y", time.localtime()))
diff --git a/piuparts-report.py b/piuparts-report.py
index 0b80519..21d14a3 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -1783,7 +1783,7 @@ def main():
try:
fcntl.flock(lock, fcntl.LOCK_EX | fcntl.LOCK_NB)
except IOError:
- sys.exit("another piuparts-report process is already running")
+ sys.exit()
packagedb_cache = {}
create_file(os.path.join(output_directory, "sections.yaml"),
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git
More information about the Piuparts-commits
mailing list