[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible: ignore header from ps

Holger Levsen holger at moszumanska.debian.org
Fri Jan 8 12:44:19 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit d434a7621b66d9f48f179b2208256b73de8b163d
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Jan 8 13:44:04 2016 +0100

    reproducible: ignore header from ps
---
 bin/reproducible_maintenance.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 851384b..d6ec25f 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -280,7 +280,7 @@ for i in $PBUIDS ; do
 	done
 done
 if [ -s $RESULT ] ; then
-	for PROCESS in $(cat $RESULT | cut -d " " -f1 | xargs echo) ; do
+	for PROCESS in $(cat $RESULT | cut -d " " -f1 | grep -v ^UID | xargs echo) ; do
 		AGE=$(ps -p $PROCESS -o etimes= || echo 0)
 		# a single build may only take half a day, so...
 		if [ $AGE -gt $(( 12*60*60 )) ] ; then

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list