Erm, actually mark the special %license files as RPMFILE_LICENSE
- Somehow I thought this already got done somewhere... the new special %license files need to be marked as RPMFILE_LICENSE for easy querying.
This commit is contained in:
parent
829d922abe
commit
5998b02665
|
@ -1147,7 +1147,7 @@ static void genCpioListAndHeader(FileList fl,
|
||||||
flp->flags |= RPMFILE_DOC;
|
flp->flags |= RPMFILE_DOC;
|
||||||
/* XXX Should directories have %doc/%config attributes? (#14531) */
|
/* XXX Should directories have %doc/%config attributes? (#14531) */
|
||||||
if (S_ISDIR(flp->fl_mode))
|
if (S_ISDIR(flp->fl_mode))
|
||||||
flp->flags &= ~(RPMFILE_CONFIG|RPMFILE_DOC);
|
flp->flags &= ~(RPMFILE_CONFIG|RPMFILE_DOC|RPMFILE_LICENSE);
|
||||||
/* Strip internal parse data */
|
/* Strip internal parse data */
|
||||||
flp->flags &= PARSEATTR_MASK;
|
flp->flags &= PARSEATTR_MASK;
|
||||||
|
|
||||||
|
@ -1780,6 +1780,7 @@ static void processSpecialDir(rpmSpec spec, Package pkg, FileList fl,
|
||||||
/* Reset for %doc */
|
/* Reset for %doc */
|
||||||
FileEntryFree(&fl->cur);
|
FileEntryFree(&fl->cur);
|
||||||
|
|
||||||
|
fl->cur.attrFlags |= sd->sdtype;
|
||||||
fl->cur.verifyFlags = fl->def.verifyFlags;
|
fl->cur.verifyFlags = fl->def.verifyFlags;
|
||||||
dupAttrRec(&(sd->ar), &(fl->cur.ar));
|
dupAttrRec(&(sd->ar), &(fl->cur.ar));
|
||||||
dupAttrRec(&(sd->def_ar), &(fl->def.ar));
|
dupAttrRec(&(sd->def_ar), &(fl->def.ar));
|
||||||
|
|
Loading…
Reference in New Issue