Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37565310
en ru br
ALT Linux repos
S:7.0.3-alt1
5.0: 4.11-alt4
4.1: 4.11-alt3
4.0: 4.8-alt4
3.0: 4.8-alt2

Group :: Publishing
RPM: texinfo

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: texinfo-alt-install-info-rpm.patch
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);
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin