diff options
author | Tomohiro Kusumi <[email protected]> | 2018-05-06 20:46:13 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-05-06 20:46:13 -0700 |
commit | e1245d83e9c0d556272c3f3c874adab49a1e088c (patch) | |
tree | 5738a7fd408e1412266ddd285f3de5ade97820c9 /contrib | |
parent | fb0da71fd96c37ff86c4d55e53b5a56e050bcfc9 (diff) |
Prevent `make distclean` removing 0 sized file
__init__.py used by Python packages typically has nothing in it
including contrib/pyzfs/libzfs_core/test/__init__.py, however this
causes `make distclean` to delete the file.
This is the only file with size 0, and it seems reasonable to have
a comment to avoid being deleted, rather than trying to modify
distclean behavior.
# find . -size 0
./contrib/pyzfs/libzfs_core/test/__init__.py
# ./autogen.sh ; ./configure ; make -j8
# make distclean
# ls contrib/pyzfs/libzfs_core/test/__init__.py
ls: cannot access 'contrib/pyzfs/libzfs_core/test/__init__.py':
No such file or directory
# git diff
diff --git a/contrib/pyzfs/libzfs_core/test/__init__.py
b/contrib/pyzfs/libzfs_core/test/__init__.py
deleted file mode 100644
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Tomohiro Kusumi <[email protected]>
Closes #7505
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/pyzfs/libzfs_core/test/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/pyzfs/libzfs_core/test/__init__.py b/contrib/pyzfs/libzfs_core/test/__init__.py index e69de29bb..617cef7aa 100644 --- a/contrib/pyzfs/libzfs_core/test/__init__.py +++ b/contrib/pyzfs/libzfs_core/test/__init__.py @@ -0,0 +1 @@ +# `make distclean` deletes files with size 0. This comment is to avoid that. |