K 10 svn:author V 5 dougb K 8 svn:date V 27 2010-03-01T07:27:24.860451Z K 7 svn:log V 1100 Begin adding support for the use of the INDEX file alone, including the use of portmaster without any ports tree. 1. Add --index-only option (only works with -L so far) 2. If the values of certain variables are empty (due to the lack of /usr/ports/Mk/bsd.port.mk) fill in sensible defaults, or error out. Right now this includes PORTSDIR, PKG_DBDIR, DISTDIR, PORT_DBDIR, FETCHINDEX, MASTER_SITE_INDEX, INDEXDIR, and INDEXFILE. More to come. 3. Since DISTDIR and PORT_DBDIR are not going to be set unconditionally, and since not having them is only fatal with certain combinations of options, test for them when they are really needed. 4. Introduce check_pkg_version() which has the logic that was previously incarnated within check_for_updates(). This allows it to be called once if the INDEX is in use, and later in check_for() if we get there. 5. Also in check_for(), change the values of some flag variables for easier debugging with -x. Begin the long-overdue process of deprecating the use of /etc/portmaster.rc Minor optimization, only do the bunzip routine with the INDEX file if it is new. END