K 10 svn:author V 5 dougb K 8 svn:date V 27 2010-08-21T04:04:46.774774Z K 7 svn:log V 1733 Roto-rooter some old code in check_for_updates() and check_restart_and_udf(): 1. Add a new function, check_force_multi() which is called from check_for from several places now. It checks whether or not -f is in use, and if not whether the port in question is part of multiport(). 2. Cut some of the stale code in check_for: a. Since the only time check_for is called in a list context is when using -L, rely on that instead of its own variable. b. There is no need to specify the udf file on its own anymore, so eliminate that here (and everywhere else). c. It is not necessary to check URB* related stuff in check_for, all of the callers handle this already. 3. check_pkg_version() does not need to be its own function anymore, so bring that code back in line. 4. Call the new check_force_multi() from all the places that need it. This is new to the --index case (a bug fix), and modified/streamlined when the ports directory is being checked whether $iport and $port_ver are the same or not. 5. If there is no $origin directory but +IGNOREME exists make the result consistent with the MOVED case by adding some white space after the warning message and adding the port to CUR_DEPS so it won't warn again. 6. At the end when no update is available don't create CUR_DEPS if -L 7. In check_restart_and_udf() make the code consistent with other functions that check flags, and just derive the udf file from $iport. 8. In update_port() print more relevant messages on what is going to be done based on whether we are doing an update, or (re-)install. 9. In dependency_check() pass the arg to already_done (really old bug). 10. Correct some spurious whitespace in the code. END