summaryrefslogtreecommitdiffstats
path: root/checkrepo
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-07-25 17:13:12 +0200
committerPierre Schmitz <pierre@archlinux.de>2011-07-25 17:13:12 +0200
commit8a4c67602c36f65f0b204a7e4ecfa18016c89803 (patch)
tree5199e1c2018f62c57fa918a7f3153d00c1e85a42 /checkrepo
parentc0c0c83e2715dd7528bc8f0e91b94fdb6b21910e (diff)
downloadrepo-tools-8a4c67602c36f65f0b204a7e4ecfa18016c89803.tar.gz
repo-tools-8a4c67602c36f65f0b204a7e4ecfa18016c89803.tar.xz
fix checkrepo for empty repos
Diffstat (limited to 'checkrepo')
-rwxr-xr-xcheckrepo8
1 files changed, 5 insertions, 3 deletions
diff --git a/checkrepo b/checkrepo
index f2d75b6..ddce82a 100755
--- a/checkrepo
+++ b/checkrepo
@@ -38,9 +38,11 @@ for repo in {core,extra,community,testing,community-testing,staging}; do
mkdir -p ${tmp}/${repo}/${arch}
if [ -r ${target}/${repo}/os/${arch}/${repo}.db ]; then
bsdtar xf ${target}/${repo}/os/${arch}/${repo}.db -C ${tmp}/${repo}/${arch}
- find ${tmp}/${repo}/${arch} -name desc -print0 \
- | xargs -0 awk -f ${tmp}/dbinfo.awk -vpath=${target}/${repo}/os/${arch}/ \
- >> ${tmp}/md5sums-${arch}.txt
+ if [ -z "$(find ${tmp}/${repo}/${arch} -type d -empty)" ]; then
+ find ${tmp}/${repo}/${arch} -name desc -print0 \
+ | xargs -0 awk -f ${tmp}/dbinfo.awk -vpath=${target}/${repo}/os/${arch}/ \
+ >> ${tmp}/md5sums-${arch}.txt
+ fi
fi
done
done