From owner-cvs-ports@FreeBSD.ORG Mon Apr 11 06:19:59 2011 Return-Path: Delivered-To: cvs-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C241D106564A; Mon, 11 Apr 2011 06:19:59 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 991EA8FC17; Mon, 11 Apr 2011 06:19:59 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p3B6Jxkk021414; Mon, 11 Apr 2011 06:19:59 GMT (envelope-from dougb@repoman.freebsd.org) Received: (from dougb@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p3B6Jxeb021413; Mon, 11 Apr 2011 06:19:59 GMT (envelope-from dougb) Message-Id: <201104110619.p3B6Jxeb021413@repoman.freebsd.org> From: Doug Barton Date: Mon, 11 Apr 2011 06:19:59 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/ports-mgmt/portmaster Makefile distinfo X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2011 06:19:59 -0000 dougb 2011-04-11 06:19:59 UTC FreeBSD ports repository Modified files: ports-mgmt/portmaster Makefile distinfo Log: New Features: * Add --update-if-newer which will operate on a list of ports given on the command line. If a port list is already up to date, it will be skipped. * Tweak the way INDEX files are downloaded and installed to only require root privileges for the minimum possible number of actions, and do things in a more secure way: 1. If necessary to download the new INDEX.bz2, as a non-root user, do it in a temporary directory created with mktemp 2. If necessary to update the actual INDEX file unzip it in that same temporary directory 3. Only use $PM_SU_CMD to install the file if necessary 4. Unlink both INDEX and INDEX.bz2 in their real locations before installing the new versions * Add the ability to store the portmaster.rc file in the same directory as the script itself. Many improvements to the --index-only/--packages-only code, particularly in the absence of a ports tree. * Make the --index* options more friendly to being duplicated in the rc file and command line. Mixing different options will still trigger an error, however having the same option both places will not. * Don't do the work of handling the INDEX file if we won't need it (-l, --list-origins, -e, -s) * Reorganize the final check of $pd (PORTSDIR) to properly handle the various combinations * For multiple ports and -o, only test for the origin directory if we are not using the INDEX. If we are, check it there instead. * Add some code to --check-depends to explicitly handle --index-only. It worked before by ignoring the origin test if there was no ports directory, but failed if --index-only was also used. This is better both because it doesn't fail with --index-only, but also because it now uses the index to validate $origin. * Since --check-depends now works with --index-only, update usage() Also: * Add some whitespace to the "Installing new +CONTENTS" message * In --clean-packages show the path in the delete prompt for stale packages that are not installed like we do for ones that are * Various internal cleanups and micro-optimizations Revision Changes Path 2.41 +1 -1 ports/ports-mgmt/portmaster/Makefile 2.9 +4 -4 ports/ports-mgmt/portmaster/distinfo