automaint: update to current build server usage
This commit is contained in:
parent
f32788002f
commit
de810c1bd7
26
automaint
26
automaint
@ -203,7 +203,8 @@ for p in ${allpkgs}; do
|
|||||||
for o in ${needportlist[*]}; do
|
for o in ${needportlist[*]}; do
|
||||||
[ "$p" = "$o" ] && { needsport=1; break; }
|
[ "$p" = "$o" ] && { needsport=1; break; }
|
||||||
done
|
done
|
||||||
#[ "$needsport" -a ! "$PORT_REPOSITORY" ] && continue
|
#[ "$needsport" ] && continue
|
||||||
|
[ "$needsport" -a ! "$PORT_REPOSITORY" ] && continue
|
||||||
|
|
||||||
for a in `seq 1 ${#AUTODIST_ARCHS[*]}`; do
|
for a in `seq 1 ${#AUTODIST_ARCHS[*]}`; do
|
||||||
get_pkg_buildinfo $LOCAL_REPS_BASE_DIR/distromatic/$SOURCE_REPOSITORY ${AUTODIST_ARCHS[$a-1]} $p
|
get_pkg_buildinfo $LOCAL_REPS_BASE_DIR/distromatic/$SOURCE_REPOSITORY ${AUTODIST_ARCHS[$a-1]} $p
|
||||||
@ -240,9 +241,9 @@ for p in ${allpkgs}; do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
update_type="minor"
|
update_type="minor"
|
||||||
elif [ $dotdiff -lt 0 ]; then
|
#elif [ $dotdiff -lt 0 ]; then
|
||||||
[ "$VERBOSE" ] && echo "$p: newer version has less dots than older ${#VER[*]} < ${#SVER[*]}; skipping."
|
# [ "$VERBOSE" ] && echo "$p: newer version has less dots than older ${#VER[*]} < ${#SVER[*]}; skipping."
|
||||||
continue
|
# continue
|
||||||
#elif [ "$i" != "${#SVER[*]}" ]; then
|
#elif [ "$i" != "${#SVER[*]}" ]; then
|
||||||
# # e.g. SVER=0.11 -> VER=1.0
|
# # e.g. SVER=0.11 -> VER=1.0
|
||||||
# [ "$VERBOSE" ] && echo "$p: not a minor version update at position $i/${#SVER[*]}: ${SVER[i-1]} != ${VER[i-1]}; skipping."
|
# [ "$VERBOSE" ] && echo "$p: not a minor version update at position $i/${#SVER[*]}: ${SVER[i-1]} != ${VER[i-1]}; skipping."
|
||||||
@ -261,15 +262,18 @@ for p in ${allpkgs}; do
|
|||||||
# continue
|
# continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ "$old_pkg_repository" == "$PORT_REPOSITORY" -o "$old_pkg_repository" == "$DEST_REPOSITORY" ]; then
|
#if [ ! "${needsport}" ]; then
|
||||||
echo "$p: importing from $SOURCE_REPOSITORY to $PORT_REPOSITORY ($pkg_version-$pkg_release -> $old_pkg_version-$old_pkg_release)"
|
if [ "$old_pkg_repository" == "$PORT_REPOSITORY" -o "$old_pkg_repository" == "$DEST_REPOSITORY" ]; then
|
||||||
if [ ! "$TESTMODE" ]; then
|
echo "$p: importing from $SOURCE_REPOSITORY to $PORT_REPOSITORY ($pkg_version-$pkg_release -> $old_pkg_version-$old_pkg_release)"
|
||||||
autodist-repository import $SOURCE_REPOSITORY $p -d $PORT_REPOSITORY -y >/dev/null
|
if [ ! "$TESTMODE" ]; then
|
||||||
if [ $? -eq 0 -a "$WEBBUILD_URL" -a "$WEBBUILD_USER" ]; then
|
autodist-repository import $SOURCE_REPOSITORY $p -d $PORT_REPOSITORY -y >/dev/null
|
||||||
curl -s "$WEBBUILD_URL?REQUEST=message&USER=$WEBBUILD_USER&SECRET=${WEBBUILD_SECRET}&USER_EMAIL=$WEBBUILD_EMAIL&\
|
if [ $? -eq 0 -a "$WEBBUILD_URL" -a "$WEBBUILD_USER" ]; then
|
||||||
|
curl -s "$WEBBUILD_URL?REQUEST=message&USER=$WEBBUILD_USER&SECRET=${WEBBUILD_SECRET}&USER_EMAIL=$WEBBUILD_EMAIL&\
|
||||||
MESSAGE=`cgi_encodevar \"imported <b>$p</b> from <b>$SOURCE_REPOSITORY</b> to <b>$PORT_REPOSITORY</b> for porting\"`" >/dev/null
|
MESSAGE=`cgi_encodevar \"imported <b>$p</b> from <b>$SOURCE_REPOSITORY</b> to <b>$PORT_REPOSITORY</b> for porting\"`" >/dev/null
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
#fi
|
||||||
#elif [ "$old_pkg_repository" == "$DEST_REPOSITORY" ]; then
|
#elif [ "$old_pkg_repository" == "$DEST_REPOSITORY" ]; then
|
||||||
# echo "$p: importing from $SOURCE_REPOSITORY to $DEST_REPOSITORY ($pkg_version-$pkg_release -> $old_pkg_version-$old_pkg_release; update type: $update_type)"
|
# echo "$p: importing from $SOURCE_REPOSITORY to $DEST_REPOSITORY ($pkg_version-$pkg_release -> $old_pkg_version-$old_pkg_release; update type: $update_type)"
|
||||||
# if [ ! "$TESTMODE" ]; then
|
# if [ ! "$TESTMODE" ]; then
|
||||||
@ -281,7 +285,7 @@ MESSAGE=`cgi_encodevar \"imported <b>$p</b> from <b>$SOURCE_REPOSITORY</b> to <b
|
|||||||
# fi
|
# fi
|
||||||
# else
|
# else
|
||||||
# echo "$p: upstream package repository $pkg_repository does not match with $DEST_REPOSITORY; skipping."
|
# echo "$p: upstream package repository $pkg_repository does not match with $DEST_REPOSITORY; skipping."
|
||||||
fi
|
# fi
|
||||||
done
|
done
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user