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/build/parseBuildInstallClean.c
old new 47 47 appendStringBuf(*sbp, s); 48 48 s = _free(s); 49 49 } 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); 51 51 if (s && *s) 52 52 appendStringBuf(*sbp, s); 53 53 s = _free(s);