index : checker | |
Archlinux32 consistency checker | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2024-09-28 12:41:30 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2024-09-28 12:41:30 +0200 |
commit | 42408f1ec1c1a5474429845641f62349c34cc621 (patch) | |
tree | 5f5c9cdacbb3dcfc9adfe1161d4450c064c90737 /bin | |
parent | d44ce5005d4b5e8de141a4069aca118404225b6f (diff) |
-rwxr-xr-x | bin/update | 27 |
@@ -80,17 +80,8 @@ if test "${UPDATE_UPSTREAM}" = 1; then find "${state_dir}"/{core,extra}-{any,x86_64} -type f > /tmp/update_packages.$$ - if test "${STATS}" = 1; then - echo "Checking statistics.." - - nof_packages=`cat /tmp/update_packages.$$ | wc -l` - nof_checked_out_packages=`find "${packages_dir}" -type f -name PKGBUILD | wc -l` - - echo "${nof_packages} packages in state repo" - echo "${nof_checked_out_packages} packages are checked out" - - sleep 10 - fi + nof_checked_out_packages=0 + nof_updated_packages=0 for pkgfile in `cat /tmp/update_packages.$$`; do repo=`echo "${pkgfile}" | rev | cut -f 2 -d / | rev` @@ -106,6 +97,7 @@ if test "${UPDATE_UPSTREAM}" = 1; then fi cd "${packages_dir}/${repo}" || exit 1 pkgctl repo clone --protocol=https "${pkgname}" + nof_updated_packages=`expr ${nof_updated_packages} + 1` sleep 10 else # get all revisions from the package repo, check if @@ -126,6 +118,7 @@ if test "${UPDATE_UPSTREAM}" = 1; then echo ".. updating .." fi git -C "${packages_dir}/${repo}/${pkgname}" pull + nof_checked_out_packages=`expr ${nof_checked_out_packages} + 1` sleep 10 fi rm -f /tmp/update_package_revisions.$$ /tmp/update_package_revision_found.$$ @@ -133,6 +126,18 @@ if test "${UPDATE_UPSTREAM}" = 1; then done < $pkgfile IFS="$OLDIFS" done + + if test "${STATS}" = 1; then + echo "Checking statistics.." + + nof_packages=`cat /tmp/update_packages.$$ | wc -l` + nof_checked_out_packages=`find "${packages_dir}" -type f -name PKGBUILD | wc -l` + + echo "${nof_packages} packages in state repo" + echo "${nof_checked_out_packages} packages are checked out" + echo "${nof_checked_out_packages} packages have been checked out" + echo "${nof_updated_packages} packages have been updated" + fi fi rm -f /tmp/update_packages.$$ |