* dump_setup.cc (check_package_files): Accommodate postinstall

files in any directory whose name contains "/postinstall/", not
just /etc/postinstall.
This commit is contained in:
Ken Brown 2015-02-17 23:36:23 +00:00
parent b61add2614
commit 1415f18720
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2015-02-17 Ken Brown <kbrown@cornell.edu>
* dump_setup.cc (check_package_files): Accommodate postinstall
files in any directory whose name contains "/postinstall/", not
just /etc/postinstall.
2015-02-03 Corinna Vinschen <corinna@vinschen.de>
* regtool.cc (longopts): Add --force option.

View File

@ -396,7 +396,7 @@ check_package_files (int verbose, char *package)
if (!directory_exists (verbose, filename, package))
result = false;
}
else if (!strncmp (filename, "etc/postinstall/", 16))
else if (strstr (filename, "/postinstall/"))
{
if (!file_exists (verbose, filename, ".done", package))
result = false;