Support DISABLE_PID_CHECK variable; print job version near job names
This commit is contained in:
parent
b615e12f43
commit
7ea9d02c39
15
autodist
15
autodist
@ -111,7 +111,7 @@ for ((i=1; i<=$#; i++)); do
|
|||||||
SEVERITY=1
|
SEVERITY=1
|
||||||
[ -e $PIDFILE ] && {
|
[ -e $PIDFILE ] && {
|
||||||
PIDCHECK=`cat $PIDFILE`
|
PIDCHECK=`cat $PIDFILE`
|
||||||
[ "$PIDCHECK" -a -e /proc/$PIDCHECK ] && {
|
[ "$PIDCHECK" -a -e /proc/$PIDCHECK -a ! "$DISABLE_PID_CHECK" ] && {
|
||||||
echo "Error: autodist -a already running with PID=$PIDCHECK.Aborting."
|
echo "Error: autodist -a already running with PID=$PIDCHECK.Aborting."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
@ -908,7 +908,6 @@ if [ "$do_autobuild" = "1" ]; then
|
|||||||
done < $srctmpfile
|
done < $srctmpfile
|
||||||
|
|
||||||
echo "%% Total pkgs: $PKGCOUNT, skipped list: $SKIPPEDCOUNT, blacklist: $BLACKLISTCOUNT, success list: $SUCCESSLISTCOUNT"
|
echo "%% Total pkgs: $PKGCOUNT, skipped list: $SKIPPEDCOUNT, blacklist: $BLACKLISTCOUNT, success list: $SUCCESSLISTCOUNT"
|
||||||
|
|
||||||
while read line; do
|
while read line; do
|
||||||
set -- $line
|
set -- $line
|
||||||
PKGNAME=${1}
|
PKGNAME=${1}
|
||||||
@ -917,11 +916,14 @@ if [ "$do_autobuild" = "1" ]; then
|
|||||||
JOBNAME[${#JOBNAME[@]}]=$PKGNAME
|
JOBNAME[${#JOBNAME[@]}]=$PKGNAME
|
||||||
done < $pkgtmpfile
|
done < $pkgtmpfile
|
||||||
|
|
||||||
echo "%% autoupdate jobs: ${JOBNAME[*]}"
|
echo -n "%% autoupdate jobs: "
|
||||||
|
for i in `seq 1 ${#JOBNAME[@]}`; do
|
||||||
|
echo -n "${JOBNAME[$i-1]}(${JOBVER[$i-1]}) "
|
||||||
|
done
|
||||||
|
echo
|
||||||
rm -f $pkgtmpfile $srctmpfile
|
rm -f $pkgtmpfile $srctmpfile
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "%% ${#JOBNAME[*]} job(s) scheduled"
|
echo "%% ${#JOBNAME[*]} job(s) scheduled"
|
||||||
echo "%% Starting main jobs loop"
|
echo "%% Starting main jobs loop"
|
||||||
for JOB_NUM in `seq 1 ${#JOBNAME[*]}`; do
|
for JOB_NUM in `seq 1 ${#JOBNAME[*]}`; do
|
||||||
@ -935,9 +937,8 @@ for JOB_NUM in `seq 1 ${#JOBNAME[*]}`; do
|
|||||||
|
|
||||||
[ "$quiet" ] || echo "
|
[ "$quiet" ] || echo "
|
||||||
== =======================$JOB_NAME============================="
|
== =======================$JOB_NAME============================="
|
||||||
echo -n "%% Doing $JOB_NAME ("
|
echo -n "%% Doing $JOB_NAME (VER=$JOB_VER"
|
||||||
for k in ${JOB_VARNAMES[*]}; do
|
for k in ${JOB_VARNAMES[*]}; do
|
||||||
[ "$k" != "${JOB_VARNAMES[0]}" ] && echo -n " "
|
|
||||||
echo -n " %${k}"
|
echo -n " %${k}"
|
||||||
done
|
done
|
||||||
echo ") job"
|
echo ") job"
|
||||||
@ -1039,7 +1040,7 @@ for JOB_NUM in `seq 1 ${#JOBNAME[*]}`; do
|
|||||||
echo "%% Updating to version ${JOB_VER:1}"
|
echo "%% Updating to version ${JOB_VER:1}"
|
||||||
# WARNING: JOB_VER must be passed to launch_pkgs_loop as the first string in the second parameter
|
# WARNING: JOB_VER must be passed to launch_pkgs_loop as the first string in the second parameter
|
||||||
[ "${AUTOSPEC_ARGS/--changelog}" = "${AUTOSPEC_ARGS}" ] &&
|
[ "${AUTOSPEC_ARGS/--changelog}" = "${AUTOSPEC_ARGS}" ] &&
|
||||||
AUTOSPEC_ARGS="$AUTOSPEC_ARGS --changelog \"automatic update to ${JOB_VER:1} by autodist\""
|
AUTOSPEC_ARGS="$AUTOSPEC_ARGS --changelog \"automatic version update by autodist\""
|
||||||
launch_pkgs_loop update "${JOB_VER:1} $AUTOSPEC_ARGS $SEND_FORCE \
|
launch_pkgs_loop update "${JOB_VER:1} $AUTOSPEC_ARGS $SEND_FORCE \
|
||||||
--define gnomever=$GNOME_VER" || {
|
--define gnomever=$GNOME_VER" || {
|
||||||
if [ ! "$rebuild_packages" ]; then
|
if [ ! "$rebuild_packages" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user