Group :: Publishing
RPM: texinfo
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: texinfo-alt-install-info-rpm.patch
Download
Download
--- texinfo/install-info/install-info.c
+++ texinfo/install-info/install-info.c
@@ -2253,6 +2253,21 @@ There is NO WARRANTY, to the extent permitted by law.\n"),
if (!dirfile)
fatal (_("No dir file specified; try --help for more information."));
+ {
+ const char *var = getenv ("RPM_EXCLUDEDOCS");
+ while (var && *var && isspace(*var))
+ ++var;
+ if (var && *var)
+ exit (EXIT_SUCCESS);
+ var = getenv ("RPM_INSTALL_NAME");
+ while (var && *var && isspace(*var))
+ ++var;
+ if (var && *var) {
+ warning ("Direct invocation from %s %%post* script ignored.", var, NULL);
+ exit (EXIT_SUCCESS);
+ }
+ }
+
/* Now read in the Info dir file. */
if (debug_flag)
printf ("debug: reading dir file %s\n", dirfile);