summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/pkg b/bin/pkg
index 62479da..c79c45d 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -516,6 +516,14 @@ pkg_status () {
}
}
+pkg_check () {
+ check_installed $1
+ cd $PDIR/$1
+ check_deps $1
+ check_conflicts $1
+ checklinks $CL_OPTIONS
+}
+
pkg_update () {
pkg_update_remote
pkg_update_local
@@ -615,6 +623,7 @@ case $1 in
add) pkg_add $2 ;;
changelog) pkg_changelog $2 ;;
changeroot) pkg_changesrc $2 ;;
+ check) wrap pkg_check "$2" "Checking" ;;
delete) pkg_remove $2 ;;
doc) pkg_doc $2 ;;
info) pkg_info $2 ;;