1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Sort the files to remove

This commit is contained in:
Jannis Leidel 2009-07-02 00:34:44 +02:00
parent 6db22f978e
commit bed024091b

4
pip.py
View file

@ -4185,11 +4185,11 @@ def remove_paths(paths, auto_confirm=False):
if auto_confirm:
response = 'y'
else:
for path in paths:
for path in sorted(paths):
logger.notify(strip_sys_prefix(path))
response = ask('Proceed with removal (y/n)? ', ('y', 'n'))
if response == 'y':
for path in paths:
for path in sorted(paths):
if os.path.isdir(path):
logger.notify('Removing directory %s' % strip_sys_prefix(path))
shutil.rmtree(path)