use architecture specific reprepro removal command for non-arch-all packages

Thanks: Alexander Wirt <formorer@debian.org>
remotes/origin/mika/no_changes
Michael Prokop 14 years ago
parent ba4a640361
commit 473bfa06f3

@ -271,8 +271,14 @@ remove_packages() {
binary_list="${binary_list:-} ${binpackage}"
# note: "removesrc" would remove foreign arch files (of different builds)
echo "*** Removing existing package ${binpackage} from repository ${REPOS} ***"
${SUDO_CMD:-} reprepro -v -b "${REPOSITORY}" --waitforlock 1000 remove "${REPOS}" "${binpackage}"
if echo "$file" | egrep -q '_all.deb$'; then
echo "*** Removing existing package ${binpackage} from repository ${REPOS} ***"
${SUDO_CMD:-} reprepro -v -b "${REPOSITORY}" --waitforlock 1000 remove "${REPOS}" "${binpackage}"
else
echo "*** Removing existing package ${binpackage} from repository ${REPOS} for arch ${ARCH} ***"
${SUDO_CMD:-} reprepro -v -A "${ARCH}" -b "${REPOSITORY}" --waitforlock 1000 remove "${REPOS}" "${binpackage}"
fi
done
}

Loading…
Cancel
Save