Message ID | 13a291b79a9fc6a217433a40a7f28d21d8dd3bd5.1663078873.git.steve@sakoman.com |
---|---|
State | Accepted, archived |
Commit | 280ea5a776436eab7e664fccea2df2e7ce47e586 |
Headers | show |
Series | [kirkstone,2.0,01/14] runqueue: Fix unihash cache mismatch issues | expand |
diff --git a/lib/bb/utils.py b/lib/bb/utils.py index 29801765..e92d5feb 100644 --- a/lib/bb/utils.py +++ b/lib/bb/utils.py @@ -694,8 +694,8 @@ def remove(path, recurse=False, ionice=False): return if recurse: for name in glob.glob(path): - if _check_unsafe_delete_path(path): - raise Exception('bb.utils.remove: called with dangerous path "%s" and recurse=True, refusing to delete!' % path) + if _check_unsafe_delete_path(name): + raise Exception('bb.utils.remove: called with dangerous path "%s" and recurse=True, refusing to delete!' % name) # shutil.rmtree(name) would be ideal but its too slow cmd = [] if ionice: