Permalink
Browse files

Fix detecting if the poudriere ports tree exists

  • Loading branch information...
1 parent abdb3e9 commit 9cff2d82f904a4a5aea7d9dbcced29b632d603fe @kmoore134 kmoore134 committed Nov 20, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 scripts/portbuild.sh
View
5 scripts/portbuild.sh
@@ -136,12 +136,13 @@ do_portsnap()
mv /tmp/.poud.tmp.$$ /usr/local/etc/poudriere.conf
echo "Updating ports collection..."
- poudriere -l | grep -q "^${POUDPORTS}"
+ poudriere ports -l | grep -q "^${POUDPORTS}"
if [ $? -eq 0 ] ; then
+ echo "Removing old ports tree ${POUDPORTS}"
poudriere ports -d -p "$POUDPORTS"
if [ $? -ne 0 ] ; then
- echo "Failed to update ports $POUDPORTS"
+ echo "Failed to delete ports $POUDPORTS"
mv /tmp/.poudriere.conf.$$ /usr/local/etc/poudriere.conf
exit 1
fi

0 comments on commit 9cff2d8

Please sign in to comment.