add ability to query packages from Factory repo locations (useful to
get package counts prior to release). Triggered by setting USE_FACTORY
environment variable.
@@ -29,16 +29,32 @@ echo " "
echo "Querying available package counts: minor_ver=${minor_ver}, micro_ver=${micro_ver}"
echo " "
+
+colon=""
+factory=""
+if [ -n "$USE_FACTORY" ]; then
+ echo "[Querying from Factory repositories]"
+ colon=":"
+ factory="Factory/"
+fi
+
for os in ${oses}; do
- repobase="http://build.openhpc.community/OpenHPC:/${minor_ver}/${os}"
+ repobase="http://build.openhpc.community/OpenHPC:/${minor_ver}${colon}/${factory}${os}"
+ if [[ $micro_ver -gt 0 ]];then
+ repoupdate="http://build.openhpc.community/OpenHPC:/${minor_ver}:/Update${micro_ver}${colon}/${factory}${os}"
+ fi
+
+ echo " "
+ echo "repo base = ${repobase}"
if [[ $micro_ver -gt 0 ]];then
- repoupdate="http://build.openhpc.community/OpenHPC:/${minor_ver}:/Update${micro_ver}/${os}"
+ echo "repo update = ${repoupdate}"
fi
echo "--"
echo "OS=${os}:"
for arch in ${arches}; do
echo -n " ${arch}: "
+
if [[ $micro_ver -eq 0 ]];then
repoquery --archlist=${arch} --repofrompath="ohpc-base,${repobase}" --repoid=ohpc-base '*' | wc -l
else
