Changeset 20648


Ignore:
Timestamp:
2009-09-21T12:23:38+12:00 (15 years ago)
Author:
oranfry
Message:

don't check for existence of files before deleting in uninstaller, as symlinks show up as non-existent if their targets are non-existent (which is likely if you're halfway through an uninstall)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/shared/core/uninstaller/Uninstaller.java

    r18073 r20648  
    442442        //log.append( "Processing: " + f.getAbsolutePath() + "\n" );
    443443
    444         // Make sure the file or directory exists
    445         if (!f.exists()) {
    446             log( Strings.replaceAll( bundle.getString("uninstaller.warning.nonexistent"), "{file}", f.getAbsolutePath() ) + "\n" );
    447             return;
    448         }
    449 
    450444        // if this is an exception, return
    451445        if ( exceptions != null ) {
     
    464458        }
    465459
    466         //check existance
    467         if ( !f.exists() ) {
    468             log( Strings.replaceAll( bundle.getString("uninstaller.error.nonexistent"), "{file}", f.getAbsolutePath() ) + "\n" );
    469             return;
    470         }
    471 
    472460        //if it is a directory, recurse
    473461        if (f.isDirectory()) {
     
    493481        if ( doDelete ) {
    494482
    495             Object[] options = null;
    496             int n = 0;
    497483            log( Strings.replaceAll( bundle.getString("uninstaller.deleting"), "{file}", f.getAbsolutePath() ) + "\n" );
    498484
Note: See TracChangeset for help on using the changeset viewer.