diff options
-rwxr-xr-x | archPackagesUpdate | 2 | ||||
-rwxr-xr-x | upload | 64 |
2 files changed, 1 insertions, 65 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate index f3171937b..082aa24a1 100755 --- a/archPackagesUpdate +++ b/archPackagesUpdate @@ -86,7 +86,7 @@ then cd "${tmpDir}/${paket}" rm -f ${paket}-*.pkg.tyr.xz makepkg -fcsr || exit $? - ${upload} && scp ${tmpDir}/${paket}/${paket}-*.pkg.tyr.xz paule@127.0.0.1:${pkgDir}/ + ${upload} && scp ${tmpDir}/${paket}/${paket}-*.pkg.tar.xz paule@127.0.0.1:${pkgDir}/ done # upload packages diff --git a/upload b/upload deleted file mode 100755 index f01399353..000000000 --- a/upload +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash - -cd $(dirname $0) - -err=false - -for paket in */PKGBUILD -do - . $paket - - echo "${source}" | \ - grep -q "opensources\.eckner\.net" || \ - continue - - remSum="$(curl -o - "${source#*::}&post=sha256sum" 2> /dev/null)" - if [ ! "${remSum}" == "${sha256sums}" ] - then - echo "sha256sum von ${pkgname} stimmt nicht: ${remSum} vs. ${sha256sums}." - err=true - fi -done - -${err} && exit 1 - -pakete="$( \ - for paket in $( \ - echo */PKGBUILD | \ - sed "s|/PKGBUILD||g" \ - ) - do - ls ${paket}/${paket}*.pkg.tar.xz | \ - sort -V | \ - tail -n1 - done - )" - -scp ${pakete} paule@jeti100:/srv/arch-mirror/arch/arch/archlinuxewe/os/x86_64/ - -ssh paule@jeti100 \ -'\ - cd /srv/arch-mirror/arch/arch/archlinuxewe/os/x86_64/ - for paket in $( \ - ls *.pkg.tar.xz | \ - sed "s|\(-[^-]*\)\{3\}\$||" | \ - uniq \ - ) - do - alles="$(ls ${paket}*.pkg.tar.xz)" - anz="$(echo "${alles}" | wc -l)" - for version in $( \ - echo "${alles}" | \ - sed "s|^.*-\([^-]*-[^-]*\)-[^-]*\$|\1|" | \ - sort -V | \ - head -n$[${anz}-1] \ - ) - do - rm ${paket}-${version}-*.pkg.tar.xz - done - done - - repo-add \ - /srv/arch-mirror/arch/arch/archlinuxewe/os/x86_64/archlinuxewe.db.tar.gz \ - /srv/arch-mirror/arch/arch/archlinuxewe/os/x86_64/*.pkg.tar.xz -' |