Changeset 949:235472e65d0f


Ignore:
Timestamp:
05/07/19 18:32:19 (5 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

File names differing only in case are handled properly during update (re #347).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/update.py

    r948 r949  
    120120                modifiedAndNew.append((path, otherSize, otherSum))
    121121
    122         removed = [path for path in self._files if path not in other._files]
     122        if os.name=="nt":
     123            otherFiles = [path.lower() for path in other._files]
     124        else:
     125            otherFiles = other._files
     126
     127        removed = [path for path in self._files if
     128                   (path.lower() if os.name=="nt" else path) not in otherFiles]
    123129       
    124130        return (modifiedAndNew, removed)
Note: See TracChangeset for help on using the changeset viewer.