K 10 svn:author V 5 dougb K 8 svn:date V 27 2010-08-07T19:27:36.677666Z K 7 svn:log V 1579 Step 4 of the internal whitespace cleanup: * if/then/fi clauses with only 1 action get the && treatement * With multiple actions, they get real if/then/fi blocks (generally) * Re-wrap some of the heinously long lines [1] * Properly (4-space) indent lines continued after pipes [1] * Un-wrap some more short clauses (for, case, etc.) * Move the code to fetch distfiles from do_fetch() in line Tweaks to --clean-packages ========================== 1. Check first if a package matches an installed version and if not offer to delete it. 2. Sort the output of find 3. If there are empty directories to delete, notify the user, otherwise tell the user there is nothing to delete New Feature =========== Add the ability to ignore failed backup package creation by setting PM_IGNORE_FAILED_BACKUP_PACKAGE in the environment (rc file, etc.) General cleanups ================ 1. local'ize a couple more variables 2. Add some more tags to fi lines in long blocks 3. When taking user input, use a safer style of accepting the default answer. If the user types the matching option, or nothing, we accept it. Anything else, we don't. 4. Only run check_state() to see if a port is FORBIDDEN, etc. the first time through 5. In the package do_fetch, use meaninful strings for the flag variables instead of just 1 to make debugging easier Bug Fixes ========= 1. For the new logging feature, if $PM_LOG is not writable it needs to be unset so we don't try writing to it later; and fix one more \n from $INSTALLED_LIST 2. Inspired by: brucification [1] (thanks!) END