diff options
author | dougb <dougb@FreeBSD.org> | 2007-10-31 16:57:03 +0800 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2007-10-31 16:57:03 +0800 |
commit | 8923741d8df50a0fe4cfbfc5e5c0d1bde7c9402a (patch) | |
tree | a82f2601c7606dc33b1f11f85be543bfbbc06e11 | |
parent | 6680bb55eb75dfff2b09f10183eb9c3d2d15dbf7 (diff) | |
download | freebsd-ports-gnome-8923741d8df50a0fe4cfbfc5e5c0d1bde7c9402a.tar.gz freebsd-ports-gnome-8923741d8df50a0fe4cfbfc5e5c0d1bde7c9402a.tar.zst freebsd-ports-gnome-8923741d8df50a0fe4cfbfc5e5c0d1bde7c9402a.zip |
Small bug fixes
===============
1. In delete_all_distfiles(), $distdir already contains a trailing slash
2. Only print the "no new versions" message for -L, not -l
Big bug fix
===========
1. cd back to the port directory before trying to run 'make install'
pointy_hat_supply++
Approved by: portmgr (marcus)
-rw-r--r-- | ports-mgmt/portmaster/files/portmaster.sh.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ports-mgmt/portmaster/files/portmaster.sh.in b/ports-mgmt/portmaster/files/portmaster.sh.in index 6c3e706f1ee5..154ff4ecf415 100644 --- a/ports-mgmt/portmaster/files/portmaster.sh.in +++ b/ports-mgmt/portmaster/files/portmaster.sh.in @@ -1,6 +1,6 @@ #!/bin/sh -# Local version: 1.192 +# Local version: 1.193 # $FreeBSD$ # Copyright (c) 2005-2007 Douglas Barton, All rights reserved @@ -866,7 +866,7 @@ delete_all_distfiles () { if [ -n "$do_delete" ]; then delete_stale_distfiles rm -f $distfiles - find ${distdir}/ -type d -empty -delete + find $distdir -type d -empty -delete fi fi } @@ -1083,7 +1083,7 @@ if [ -n "$LIST" -o -n "$LIST_PLUS" ]; then echo " ===>>> $num_updates have new versions available" elif [ "$num_updates" -eq 1 ]; then echo " ===>>> 1 has a new version available" - else + elif [ -n "$LIST_PLUS" ]; then echo " ===>>> There are no new versions available" fi @@ -1767,6 +1767,9 @@ if [ -n "$upg_port" ]; then fi fi +# In case we went elsewhere to create a backup package +cd $pd/$portdir + # Do the install here in case a run dependency has a build dependency on us. # Defining NO_DEPENDS ensures that we will control the installation of the # run depends, not bsd.port.mk. |