Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/check
diff options
context:
space:
mode:
Diffstat (limited to 'bin/check')
-rwxr-xr-xbin/check9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/check b/bin/check
index 43a047c..f711bc6 100755
--- a/bin/check
+++ b/bin/check
@@ -21,15 +21,18 @@ 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"
-exit 0
+> "${data_dir}/stats"
+echo "packages_state\t${nof_packages}" >> "${data_dir}/stats"
+echo "packages_repos\t${nof_checked_out_packages}" >> "${data_dir}/stats"
# find duplicate entries in state repo
+> "${data_dir}/duplicates"
for duplicate in `find "${state_dir}"/{core,extra}-{any,x86_64} -type f | \
rev | cut -f 1 -d / | rev | sort | uniq -D | uniq`; do
for packages in `ls ${state_dir}/{core,extra}-{any,x86_64}/$duplicate 2>/dev/null`; do
for instance in `echo $packages | rev | cut -f 1,2 -d / | rev`; do
- echo -n "${instance} "
- cat "${state_dir}/$instance"
+ echo -n "${instance} " >> "${data_dir}/duplicates"
+ cat "${state_dir}/$instance" >> "${data_dir}/duplicates"
done
done
done