diff options
Diffstat (limited to 'checkrepo')
-rwxr-xr-x | checkrepo | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |