remove-reprepro-codename: run reprepro's clearvanished with --delete option

There might be packages left in the repos:

| # reprepro -b /srv/repository/ clearvanished
| There are still packages in 'foo/bar|main|amd64', not removing (give --delete to do so)!
| There are still packages in 'foo/bar|main|i386', not removing (give --delete to do so)!
| There are still packages in 'foo/bar|main|source', not removing (give --delete to do so)!

So get rid of the repos, no matter what.
remotes/origin/junit
Michael Prokop 13 years ago
parent 5930014a1d
commit 123fed8a2e

@ -22,6 +22,6 @@ echo "*** Removing codename $codename from reprepro configuration in $REPOSITORY
perl -i -00 -pe "if (!\$done && m|$codename|) { \$_=q(); \$done++}" "${REPOSITORY}/conf/distributions"
echo "*** Removing vanished data from reprepro ***"
reprepro --waitforlock 1000 -b "$REPOSITORY" clearvanished
reprepro --waitforlock 1000 -b "$REPOSITORY" --delete clearvanished
# vim:foldmethod=marker ts=2 ft=sh ai expandtab sw=2

Loading…
Cancel
Save