diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2013-05-10 05:49:01 +0200 |
---|---|---|
committer | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2013-05-25 16:55:53 +0200 |
commit | c3bb10046bf7633d4da6a7f304c29ab100450994 (patch) | |
tree | 4d0b120da390b8dc44b6b8152d9fbf974b40e268 /crossrepomove.in | |
parent | 7a3f524201f1fe2ec1ba851f595e86aa4a4b8f51 (diff) | |
download | devtools32-c3bb10046bf7633d4da6a7f304c29ab100450994.tar.xz |
crossrepomove: copy packages locally
Nymeria's HTTP mirror is now password-protected and crossrepomove broke.
Diffstat (limited to 'crossrepomove.in')
-rw-r--r-- | crossrepomove.in | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/crossrepomove.in b/crossrepomove.in index b1204af..1d4ae6c 100644 --- a/crossrepomove.in +++ b/crossrepomove.in @@ -30,7 +30,6 @@ case $scriptname in esac server='nymeria.archlinux.org' -mirror="http://${server}" source_svn="svn+ssh://svn-${source_name}@${server}/srv/repos/svn-${source_name}/svn" target_svn="svn+ssh://svn-${target_name}@${server}/srv/repos/svn-${target_name}/svn" source_dbscripts="/srv/repos/svn-${source_name}/dbscripts" @@ -55,10 +54,8 @@ for _arch in ${arch[@]}; do fi for _pkgname in ${pkgname[@]}; do fullver=$(get_full_version $_pkgname) - # FIXME: this only works with .xz packages - ssh "${server}" "cd staging/${target_repo} - curl -O ${mirror}/${source_repo}/os/${repo_arch}/$_pkgname-$fullver-${_arch}.pkg.tar.xz - curl -O ${mirror}/${source_repo}/os/${repo_arch}/$_pkgname-$fullver-${_arch}.pkg.tar.xz.sig" || die + pkgpath="/srv/ftp/$source_repo/os/$repo_arch/$_pkgname-$fullver-${_arch}.pkg.tar.*" + ssh "$server" "cp $pkgpath staging/$target_repo" || die done done |