diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-08-17 10:04:06 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-08-17 10:04:06 +0200 |
commit | 22783de203914f219ab50cb6e6f316c9b26be64b (patch) | |
tree | a3133a23ddf39809c597522f570c8c67e057b22d | |
parent | f0faecd4d0f37575781865e8dfe82f8eadec135d (diff) | |
download | repo-tools-22783de203914f219ab50cb6e6f316c9b26be64b.tar.gz repo-tools-22783de203914f219ab50cb6e6f316c9b26be64b.tar.xz |
add [staging] repository
-rwxr-xr-x | checkrepo | 12 | ||||
-rwxr-xr-x | syncrepo | 3 |
2 files changed, 9 insertions, 6 deletions
@@ -33,13 +33,15 @@ echo ' ' > ${tmp}/dbinfo.awk echo 'Checking repository...' -for repo in {core,extra,community,testing,community-testing}; do +for repo in {core,extra,community,testing,community-testing,staging}; do for arch in {i686,x86_64}; do mkdir -p ${tmp}/${repo}/${arch} - bsdtar xf ${target}/${repo}/os/${arch}/${repo}.db.tar.gz -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 [ -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 + fi done done @@ -5,7 +5,7 @@ target="${home}/repo" tmp="${home}/tmp" lock='/tmp/mirrorsync.lck' source='-e ssh gerolde.archlinux.org:/srv/ftp' -repos='core,extra,testing,community,community-testing' +repos='core,extra,testing,community,community-testing,staging,pool' [ ! -d "${target}" ] && mkdir -p "${target}" [ ! -d "${tmp}" ] && mkdir -p "${tmp}" @@ -16,6 +16,7 @@ trap "rm -f '${lock}'" EXIT INT TERM rsync -rtlvH --safe-links --delete-after --progress -h \ --delay-updates \ --temp-dir="${tmp}" \ + --exclude='*.db.tar.gz*' \ --exclude='*.abs.tar.gz*' \ --exclude='*.files.tar.gz*' \ --exclude='*.links.tar.gz*' \ |