diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-02-04 17:58:58 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-05-27 15:46:04 +0200 |
commit | 367d02076d77937e09d5042c17ed1b27f638aa19 (patch) | |
tree | 32bd8b5b8e3fa2f5adf7b8490f2b7477aea7ccaa | |
parent | 6f06ac7995cbb55a8574cd41b5236c2f5ec43e57 (diff) | |
download | dbscripts-367d02076d77937e09d5042c17ed1b27f638aa19.tar.gz dbscripts-367d02076d77937e09d5042c17ed1b27f638aa19.tar.xz |
remove unused function
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | db-functions | 45 | ||||
-rwxr-xr-x | db-update | 1 |
2 files changed, 0 insertions, 46 deletions
diff --git a/db-functions b/db-functions index fd8fd96..9ee3ee0 100644 --- a/db-functions +++ b/db-functions @@ -361,51 +361,6 @@ check_pkgfile() { fi } -check_splitpkgs() { - local repo="${1}" - shift - local pkgfiles=(${@}) - local pkgfile - local pkgdir - local svnname - - mkdir -p "${WORKDIR}/check_splitpkgs/" - pushd "${WORKDIR}/check_splitpkgs" >/dev/null - - for pkgfile in ${pkgfiles[@]}; do - issplitpkg "${pkgfile}" || continue - local _pkgbase="$(getpkgbase ${pkgfile})" - local _pkgname="$(getpkgname ${pkgfile})" - local _pkgarch="$(getpkgarch ${pkgfile})" - mkdir -p "${repo}/${_pkgarch}/${_pkgbase}" - echo "${_pkgname}" >> "${repo}/${_pkgarch}/${_pkgbase}/staging" - - if [ ! -f "${WORKDIR}/pkgbuilds/${repo}-${_pkgarch}/${_pkgbase}" ]; then - mkdir -p "${WORKDIR}/pkgbuilds/${repo}-${_pkgarch}" - arch_svn export -q "${SVNREPO}/${_pkgbase}/repos/${repo}-${_pkgarch}/PKGBUILD" \ - "${WORKDIR}/pkgbuilds/${repo}-${_pkgarch}/${_pkgbase}" >/dev/null - [ $? -ge 1 ] && return 1 - fi - - local svnnames=($(. "${WORKDIR}/pkgbuilds/${repo}-${_pkgarch}/${_pkgbase}"; echo ${pkgname[@]})) - for svnname in ${svnnames[@]}; do - echo "${svnname}" >> "${repo}/${_pkgarch}/${_pkgbase}/svn" - done - done - popd >/dev/null - - for pkgdir in "${WORKDIR}/check_splitpkgs/${repo}"/*/*; do - [ ! -d "${pkgdir}" ] && continue - sort -u "${pkgdir}/staging" -o "${pkgdir}/staging" - sort -u "${pkgdir}/svn" -o "${pkgdir}/svn" - if [ ! -z "$(comm -13 "${pkgdir}/staging" "${pkgdir}/svn")" ]; then - return 1 - fi - done - - return 0 -} - check_pkgrepos() { local pkgfile=$1 @@ -58,7 +58,6 @@ for repo in ${repos[@]}; do done for repo in ${repos[@]}; do - for pkgfile in $(getpkgfiles "${STAGING}/${repo}/"*${PKGEXT} 2>/dev/null); do arch_add_to_pool "$pkgfile" done |