]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Prevent `make distclean` removing 0 sized file
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 7 May 2018 03:46:13 +0000 (20:46 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 7 May 2018 03:46:13 +0000 (20:46 -0700)
__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 <behlendorf1@llnl.gov>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@osnexus.com>
Closes #7505

contrib/pyzfs/libzfs_core/test/__init__.py

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..617cef7aa2b420bb1ab05cdef6d0f43d6138c356 100644 (file)
@@ -0,0 +1 @@
+# `make distclean` deletes files with size 0. This comment is to avoid that.