summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-11-23 11:15:39 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-11-23 11:15:39 +0100
commit47ac9945977bca8af2e5edf3b004add851e54df3 (patch)
tree3577f16db25e473c26dc3ed066a6f7c9167623c7 /bin/pkg
parent463bb31b7579cfe48cf7274aa9cf28f2a79e925d (diff)
pkg refresh: Run make clean and make as well
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/pkg b/bin/pkg
index 20fd721..03fe38c 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -590,6 +590,12 @@ function pkg_status {
function pkg_refresh {
check_installed $1
cd $PDIR/$1
+ if [[ -r Makefile ]] {
+ clear_line
+ info "$1: re-building with make\n"
+ make clean
+ make
+ }
populate_collected $1
checklinks $CL_OPTIONS
check_prereqs $1