diff options
Diffstat (limited to 'db-remove')
-rwxr-xr-x | db-remove | 22 |
1 files changed, 10 insertions, 12 deletions
@@ -32,18 +32,16 @@ done remove_pkgs=() for pkgbase in ${pkgbases[@]}; do msg "Removing $pkgbase from [$repo]..." - /usr/bin/svn checkout -q "${SVNREPO}/${pkgbase}" "${WORKDIR}/svn/${pkgbase}" >/dev/null - - if [ -d "${WORKDIR}/svn/$pkgbase/repos/$svnrepo" ]; then - remove_pkgs=(${remove_pkgs[@]} $(. "${WORKDIR}/svn/$pkgbase/repos/$svnrepo/PKGBUILD"; echo ${pkgname[@]})) - /usr/bin/svn rm --force -q "${WORKDIR}/svn/$pkgbase/repos/$svnrepo" - /usr/bin/svn commit -q "${WORKDIR}/svn/$pkgbase" -m "${0##*/}: $pkgbase removed by $(id -un)" - else - warning "$pkgbase not found in $svnrepo" - warning "Removing only $pkgbase from the repo" - warning "If it was a split package you have to remove the others yourself!" - remove_pkgs[${#remove_pkgs[*]}]=$pkgbase - fi + + pkgfile="${GITREPO}/${arch}/${repo}/${pkgbase}" + + # FIXME: TODO: get pkgnames from package's git repo + #remove_pkgs=(${remove_pkgs[@]} $(. "${}/svn/$pkgbase/repos/$svnrepo/PKGBUILD"; echo ${pkgname[@]})) + remove_pkgs=$pkgbase + + cd "${GITREPO}" + git rm "${pkgfile}" + git commit -m "db-remove: ${repo}/${pkgbase} by $(id -un)" done for tarch in ${tarches[@]}; do |