diff options
| author | Xin LI <delphij@FreeBSD.org> | 2026-09-03 04:29:02 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2026-09-03 04:30:33 +0000 |
| commit | 7af41682a96bf7058b82665c33bb9b1bfa079c17 (patch) | |
| tree | f5ee10a7573306e2008b4a19f67af4073490ce1f /contrib/file/python | |
| parent | 74c539fd1cefdbc993411274c613434c3f23b4b1 (diff) | |
| parent | 288b27192b2ad4a50fe5bbd6a821aa79739c68bc (diff) | |
MFV: file 5.48
MFC after: 1 week
Diffstat (limited to 'contrib/file/python')
| -rw-r--r-- | contrib/file/python/Makefile.in | 20 | ||||
| -rw-r--r-- | contrib/file/python/magic.py | 6 |
2 files changed, 19 insertions, 7 deletions
diff --git a/contrib/file/python/Makefile.in b/contrib/file/python/Makefile.in index 26c86d23d9fc..92a01d6a5ed7 100644 --- a/contrib/file/python/Makefile.in +++ b/contrib/file/python/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. +# Makefile.in generated by automake 1.18 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2021 Free Software Foundation, Inc. +# Copyright (C) 1994-2025 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -69,6 +69,8 @@ am__make_running_with_option = \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +am__rm_f = rm -f $(am__rm_f_notfound) +am__rm_rf = rm -rf $(am__rm_f_notfound) pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ @@ -203,8 +205,10 @@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ +am__rm_f_notfound = @am__rm_f_notfound@ am__tar = @am__tar@ am__untar = @am__untar@ +am__xargs_n = @am__xargs_n@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ @@ -294,6 +298,7 @@ ctags CTAGS: cscope cscopelist: + distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am @@ -355,8 +360,8 @@ mostlyclean-generic: clean-generic: distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -$(am__rm_f) $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || $(am__rm_f) $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -447,3 +452,10 @@ uninstall-am: # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: + +# Tell GNU make to disable its built-in pattern rules. +%:: %,v +%:: RCS/%,v +%:: RCS/% +%:: s.% +%:: SCCS/s.% diff --git a/contrib/file/python/magic.py b/contrib/file/python/magic.py index 14938281c659..1db4a5d012d5 100644 --- a/contrib/file/python/magic.py +++ b/contrib/file/python/magic.py @@ -127,14 +127,14 @@ _setparam.argtypes = [magic_t, c_int, c_void_p] class Magic(object): def __init__(self, ms): self._magic_t = ms - self._close = _close + self._close = _close def close(self): """ Closes the magic database and deallocates any resources used. """ - if _close: - _close(self._magic_t) + if self._close: + self._close(self._magic_t) @staticmethod def __tostr(s): |
