remove-reprepro-codename: check that reprepro configuration file exists

remotes/origin/junit
Michael Prokop 13 years ago
parent 123fed8a2e
commit 723e5dbddc

@ -18,6 +18,11 @@ fi
codename="$1"
if ! [ -r "${REPOSITORY}/conf/distributions" ] ; then
echo "*** Error: could not read ${REPOSITORY}/conf/distributions" >&2
exit 1
fi
echo "*** Removing codename $codename from reprepro configuration in $REPOSITORY ***"
perl -i -00 -pe "if (!\$done && m|$codename|) { \$_=q(); \$done++}" "${REPOSITORY}/conf/distributions"

Loading…
Cancel
Save