mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-20 14:12:20 -04:00
Fix checkout hook trying to delete chroot pyc files
This commit is contained in:
@@ -25,5 +25,5 @@ if flags == '1': # A branch checkout
|
||||
for dirpath, dirnames, filenames in os.walk('.'):
|
||||
for f in filenames:
|
||||
fpath = os.path.join(dirpath, f)
|
||||
if f.endswith('.pyc'):
|
||||
if f.endswith('.pyc') and '/chroot/' not in fpath:
|
||||
os.remove(fpath)
|
||||
|
||||
Reference in New Issue
Block a user