Skip to content

Instantly share code, notes, and snippets.

@vain
Created October 25, 2014 13:35
Show Gist options
  • Save vain/96c62cc5d6fd720211ea to your computer and use it in GitHub Desktop.
Save vain/96c62cc5d6fd720211ea to your computer and use it in GitHub Desktop.
diff --git a/src/bundlewrap/utils/remote.py b/src/bundlewrap/utils/remote.py
index 3fa606e..d36b7de 100644
--- a/src/bundlewrap/utils/remote.py
+++ b/src/bundlewrap/utils/remote.py
@@ -13,7 +13,8 @@ def _parse_file_output(file_output):
return ('nonexistent', "")
elif file_output in ("directory", "sticky directory"):
return ('directory', file_output)
- elif file_output in ("block special", "character special"):
+ elif file_output.startswith("block special ") or \
+ file_output.startswith("character special "):
return ('other', file_output)
elif file_output.startswith("symbolic link to ") or \
file_output.startswith("broken symbolic link to "):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment