mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix checkout hook trying to delete chroot pyc files
This commit is contained in:
parent
34b86d8227
commit
57eaee584d
@ -25,5 +25,5 @@ if flags == '1': # A branch checkout
|
|||||||
for dirpath, dirnames, filenames in os.walk('.'):
|
for dirpath, dirnames, filenames in os.walk('.'):
|
||||||
for f in filenames:
|
for f in filenames:
|
||||||
fpath = os.path.join(dirpath, f)
|
fpath = os.path.join(dirpath, f)
|
||||||
if f.endswith('.pyc'):
|
if f.endswith('.pyc') and '/chroot/' not in fpath:
|
||||||
os.remove(fpath)
|
os.remove(fpath)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user