michal-grzedzicki / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone
0e3b59
--- rpm-4.11.3/doc/rpm.8.old	2018-05-25 09:24:59.329885663 +0200
0e3b59
+++ rpm-4.11.3/doc/rpm.8	2018-05-25 09:25:19.598901802 +0200
0e3b59
@@ -76,7 +76,7 @@
0e3b59
  [\fB--nodigest\fR] [\fB--nosignature\fR]
0e3b59
  [\fB--nolinkto\fR] [\fB--nofiledigest\fR] [\fB--nosize\fR] [\fB--nouser\fR]
0e3b59
  [\fB--nogroup\fR] [\fB--nomtime\fR] [\fB--nomode\fR] [\fB--nordev\fR]
0e3b59
- [\fB--nocaps\fR] [\fB--noconfig\fR]
0e3b59
+ [\fB--nocaps\fR] [\fB--noconfig\fR] [\fB--noghost\fR]
0e3b59
 
0e3b59
 .SS "install-options"
0e3b59
 .PP
0e3b59
@@ -683,6 +683,9 @@
0e3b59
 \fB--noconfig\fR
0e3b59
 Don't verify config files.
0e3b59
 .TP
0e3b59
+\fB--noghost\fR
0e3b59
+Don't display ghost files.
0e3b59
+.TP
0e3b59
 \fB--noscripts\fR
0e3b59
 Don't execute the \fB%verifyscript\fR scriptlet (if any).
0e3b59
 .TP
0e3b59
--- rpm-4.11.3/lib/poptQV.c.old	2018-05-10 12:29:26.716304826 +0200
0e3b59
+++ rpm-4.11.3/lib/poptQV.c	2018-05-11 14:08:36.389255974 +0200
0e3b59
@@ -182,7 +182,7 @@
0e3b59
 	N_("list files in package"), NULL },
0e3b59
 
0e3b59
  /* Duplicate file attr flags from packages into command line options. */
0e3b59
- { "noghost", '\0', POPT_BIT_CLR|POPT_ARGFLAG_DOC_HIDDEN,
0e3b59
+ { "noghost", '\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
0e3b59
 	&rpmQVKArgs.qva_fflags, RPMFILE_GHOST,
0e3b59
         N_("skip %%ghost files"), NULL },
0e3b59
  { "noconfig", '\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
0e3b59
--- rpm-4.11.3/lib/verify.c.old	2018-05-10 12:29:26.715304826 +0200
0e3b59
+++ rpm-4.11.3/lib/verify.c	2018-05-11 14:17:16.474959233 +0200
0e3b59
@@ -453,6 +453,11 @@
0e3b59
 	    rpmlog(RPMLOG_NOTICE, "%s\n", buf);
0e3b59
 	    buf = _free(buf);
0e3b59
 	}
0e3b59
+	
0e3b59
+	/* Filter out missing %ghost/%missingok errors from final result */
0e3b59
+	if (fileAttrs & (RPMFILE_MISSINGOK|RPMFILE_GHOST))
0e3b59
+	    verifyResult &= ~RPMVERIFY_LSTATFAIL;
0e3b59
+
0e3b59
     }
0e3b59
     rpmfiFree(fi);
0e3b59