Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Backport pkg cleanup to 9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Moore committed Nov 18, 2013
1 parent 8506d7a commit f052849
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions src-sh/xtrafiles/local/share/pcbsd/bin/pkg
Expand Up @@ -38,33 +38,8 @@ intercept_pkg_dl()
fullopts="$@"
op="$1"

# Make sure we insert some flags we need
while [ $# -gt 0 ]; do
if [ $count -gt 0 ] ; then
# If we are already using -n, we can skip downloading anything
if [ "$1" = "-n" ] ; then
pkg $fullopts
exit $?
fi
flags="$flags $1"
else
flags="-U -n"
fi
count=`expr $count + 1`
shift
done

# Lets pre-download all packages
download_cache_packages "pkg $op $flags"

# Lets check for any conflicts doing this install
check_pkg_conflicts "${op} -FUy $flags"
if [ $? -ne 0 ] ; then
exit 1
fi

# Time to run pkgng and let it do its thing
pkg $fullopts
pkg-static $fullopts
result=$?

# Nobody likes a litter bug
Expand Down

0 comments on commit f052849

Please sign in to comment.