diff options
author | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-08-03 12:17:20 -0700 |
---|---|---|
committer | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-08-03 12:17:20 -0700 |
commit | 82d742b818f730a0bac008075f1b6fad2758747f (patch) | |
tree | 246b97d8da995eb53408c6dcc41409515b5c3887 /db-remove | |
parent | 69d7089ab3bec9953877f20b008e7b7dd99a3459 (diff) | |
parent | d438ff5d25372ba32e42f89c808f5b33a25042f3 (diff) |
Merge branch 'master' of http://projects.parabolagnulinux.org/dbscripts into stable
Diffstat (limited to 'db-remove')
-rwxr-xr-x | db-remove | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -12,9 +12,6 @@ pkgbase="$1" repo="$2" arch="$3" -ftppath="$FTP_BASE/$repo/os" -svnrepo="$repo-$arch" - if ! check_repo_permission $repo; then die "You don't have permission to remove packages from ${repo}" fi @@ -30,14 +27,14 @@ for tarch in ${tarches[@]}; do done 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 - pkgnames=($(. "${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 "$(basename $0): $pkgbase removed by $(id -un)" +if [ -d "${SVNREPO}/$repo/$pkgbase" ]; then + pkgnames=($(. "${SVNREPO}/$repo/$pkgbase/PKGBUILD"; echo ${pkgname[@]})) else - warning "$pkgbase not found in $svnrepo" + warning "$pkgbase not found in $repo" + warning "Removing only $pkgbase from the repo" + warning "If it was a split package you have to remove the others yourself!" + pkgnames=($pkgbase) fi for tarch in ${tarches[@]}; do |