corrected unnoticed bug. Only occured if make was interrupted when the package had xxx-build directory

This commit is contained in:
George Boudreau 2006-08-26 03:19:13 +00:00
parent 1c2d4d7bd8
commit b7654ffcc4

View file

@ -26,7 +26,7 @@ define remove_existing_dirs2
@PKG_PATH=\`ls -t $(SRC)/$(1) | head -n1\` && \
ROOT=`tar -tf $$PKG_PATH | head -n1 | sed -e 's@^./@@;s@/.*@@'` && \
rm -rf $(SRC)/$$ROOT && \
rm -rf $(SRC)/$${ROOT-*}-build
rm -rf $(SRC)/$${ROOT%-*}-build
endef
define remove_build_dirs