Ticket #12017: rpm-4.4.9-clean.patch

File rpm-4.4.9-clean.patch, 539 bytes (added by afb@…, 17 years ago)

rpm-4.4.9-clean.patch

  • rpm-4.4.9/build/parseBuildInstallClean.c

    old new  
    4747            appendStringBuf(*sbp, s);
    4848        s = _free(s);
    4949    } else if (parsePart == PART_CLEAN) {
    50         const char * s = rpmExpand("%{?buildroot:rm -rf '%{buildroot}'\n}", NULL);
     50        const char * s = rpmExpand("%{?__spec_clean_body}%{!?__spec_clean_body:%{?buildroot:rm -rf '%{buildroot}'\n}}\n", NULL);
    5151        if (s && *s)
    5252            appendStringBuf(*sbp, s);
    5353        s = _free(s);