Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/check25
-rwxr-xr-xbin/genhtml1
-rw-r--r--templates/summary.m419
3 files changed, 44 insertions, 1 deletions
diff --git a/bin/check b/bin/check
index ea8b6de..9e187cf 100755
--- a/bin/check
+++ b/bin/check
@@ -37,5 +37,30 @@ for duplicate in `find "${state_dir}"/{core,extra}-{any,x86_64} -type f | \
done
done
+# find dangling repos which are no longer reference from the state git repo
+# (which should be dropped to the AUR)
+
+> "${data_dir}/missing_state_file"
+for pkgfile in `find "${packages_dir}" -type f -name PKGBUILD`; do
+ repo_in_pkgfile=`echo $pkgfile | rev | cut -f 2-3 -d / | rev`
+ state_file="${state_dir}/${repo_in_pkgfile}"
+ if test ! -f "${state_file}"; then
+ echo "${repo_in_pkgfile}\tnot in state repo anymore" >> "${data_dir}/missing_state_file"
+ fi
+done
+nof_missing_state_files=`cat ${data_dir}/missing_state_file | wc -l`
+echo "missing_state_files\t${nof_missing_state_files}" >> "${data_dir}/stats"
+
+# find dangling references from the state repo not having a package repo
+
+> "${data_dir}/missing_package_repo"
+for pkg in `find "${state_dir}"/{core,extra}-{any,x86_64} -type f | \
+ rev | cut -f 1,2 -d / | rev | sort`; do
+ pkgfile_in_repo=`echo ${packages_dir}/${pkg}/PKGBUILD`
+ if test ! -f "${pkgfile_in_repo}"; then
+ echo "${pkg}\tno git repo" >> "${data_dir}/missing_package_repo"
+ fi
+done
+
# TODO: update all single package directories
# TODO: update all AUR package directories
diff --git a/bin/genhtml b/bin/genhtml
index 8593727..2b22861 100755
--- a/bin/genhtml
+++ b/bin/genhtml
@@ -11,5 +11,6 @@ fi
FILES="summary"
for file in $FILES; do
+ echo "Regenerating $file.html.."
m4 -I "${templates_dir}" -P < "${templates_dir}/${file}.m4" > "${html_dir}/${file}.html"
done
diff --git a/templates/summary.m4 b/templates/summary.m4
index 8eb2845..0f32a97 100644
--- a/templates/summary.m4
+++ b/templates/summary.m4
@@ -6,11 +6,14 @@ _HEADER(`Archlinux32 Consistency Checker',`anb-stats')
m4_define(`_STATISTICS',`Statistics')
m4_define(`_DUPLICATES_STATE_REPO',`Duplicate States in State Repo')
-
+m4_define(`_MISSING_STATE_FILE',`Missing state file')
+m4_define(`_MISSING_PACKAGE_REPO',`Missing git repo')
<h1>Table of Contents</h1>
<ul>
<li>_LINK_TO_LABEL(_STATISTICS)</li>
<li>_LINK_TO_LABEL(_DUPLICATES_STATE_REPO)</li>
+ <li>_LINK_TO_LABEL(_MISSING_STATE_FILE)</li>
+ <li>_LINK_TO_LABEL(_MISSING_PACKAGE_REPO)</li>
</ul>
_SECTION_HEADER(h2,_STATISTICS)
@@ -27,5 +30,19 @@ _TABLE_HEADER(repository,package,version,tag,git)
m4_esyscmd(`../scripts/tsv2tablerow ../data/duplicates')
_TABLE_END()
+_SECTION_HEADER(h2,_MISSING_STATE_FILE)
+<p>Candidates to be transfered to the AUR and to adopt there..</p>
+<p><i>TODO: add description here how to do that..</i>/<p>
+_TABLE_START()
+_TABLE_HEADER(repository,status)
+m4_esyscmd(`../scripts/tsv2tablerow ../data/missing_state_file')
+_TABLE_END()
+
+_SECTION_HEADER(h2,_MISSING_PACKAGE_REPO)
+_TABLE_START()
+_TABLE_HEADER(repository,status)
+m4_esyscmd(`../scripts/tsv2tablerow ../data/missing_package_repo')
+_TABLE_END()
+
_FOOTER()