summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-05-24 15:37:05 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-05 00:51:11 -0600
commit003288a90c042c56d86258f60ac205b1d3053eab (patch)
tree493b8beb41a821664ab492c988f75c420be2e8d4
parent17a94df0c108f09cada98535138136779b4e13a4 (diff)
Remove cron-jobs/sourceballs2.
It was "simpler" than cron-jobs/sourceballs because it iterated over the files in $SVNREPO directly, rather than getting the list from $FTP_BASE, and then getting the corresponding files from $SVNREPO. This fails with XBS because there is no single `abstree` path, there is one for each architecture.
-rwxr-xr-xcron-jobs/sourceballs262
1 files changed, 0 insertions, 62 deletions
diff --git a/cron-jobs/sourceballs2 b/cron-jobs/sourceballs2
deleted file mode 100755
index e935f86..0000000
--- a/cron-jobs/sourceballs2
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/bin/bash
-# Steps
-# Traverse ABSLibre
-# Makepkg --allsource every package
-# Remove the old sourceballs
-
-dirname="$(dirname "$(readlink -e "$0")")"
-. "${dirname}/../config"
-. "${dirname}/../db-functions"
-. "${MAKEPKGCONF}"
-
-pushd "${WORKDIR}" >/dev/null
-
-script_lock
-
-# Adjust the nice level to run at a lower priority
-renice +10 -p $$ > /dev/null
-
-# Create a list of all available source package file names
-find "${FTP_BASE}/${SRCPOOL}" -xtype f -name "*${SRCEXT}" -printf '%f\n' | sort -u > "${WORKDIR}/available-src-pkgs"
-
-pushd "${SVNREPO}" >/dev/null
-
-for repo in "${PKGREPOS[@]}"; do
- msg "Sourceballing [%s]" "${repo}"
-
- pushd "$repo" >/dev/null
- find -maxdepth 1 -type d | while read pkg; do
- pushd "${SVNREPO}/$repo/$pkg" >/dev/null
-
- [[ ! -e ./PKGBUILD ]] && {
- warning "%s is not a package" "$repo/$pkg"
- continue
- }
-
- # Unset the previous data
- unset pkgbase pkgname pkgver pkgrel
- source PKGBUILD
-
- unset build package url pkgdesc source md5sums depends makedepends \
- optdepends license arch options check mksource
-
- for _pkg in "${pkgname[@]}"; do
- unset "package_${_pkg}" >/dev/null 2>&1
- done
-
- pkgbase=${pkgbase:-$pkgname}
- srcfile="${pkgbase}-${pkgver}-${pkgrel}${SRCEXT}"
-
- echo "${srcfile}" >> "${WORKDIR}/expected-src-pkgs"
-
- # Skip already sourceballed
- [ -e "${SRCPKGDEST}/${srcfile}" ] && continue
-
- makepkg --allsource --ignorearch -c >/dev/null 2>&1
-
- [ $? -ne 0 ] && plain '%s' "${srcfile}"
-
- done # end find pkgs
- popd >/dev/null
-
-done # end repos