Changeset 952:9ebb7d1ef494


Ignore:
Timestamp:
05/07/19 18:32:19 (6 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
version_0.39_maint
Phase:
public
transplant_source:
#Træ]á&A³*úõ°¯À0T
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

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