]>
Commit | Line | Data |
---|---|---|
f4881189 ER |
1 | --- rpm-4.4.9/build/parseBuildInstallClean.c 2008-01-30 23:16:55.347346942 +0200 |
2 | +++ rpm-4.4.9/build/parseBuildInstallClean.c 2008-01-30 23:22:24.241459876 +0200 | |
3 | @@ -47,11 +47,10 @@ | |
9e649049 ER |
4 | appendStringBuf(*sbp, s); |
5 | s = _free(s); | |
6 | } else if (parsePart == PART_CLEAN) { | |
7 | - const char * s = rpmExpand("%{?buildroot:rm -rf '%{buildroot}'\n}", NULL); | |
8 | + const char * s = rpmExpand("%{?__spec_clean_body}%{!?__spec_clean_body:%{?buildroot:rm -rf '%{buildroot}'\n}}\n", NULL); | |
9 | if (s && *s) | |
10 | appendStringBuf(*sbp, s); | |
11 | s = _free(s); | |
f4881189 ER |
12 | - sbp = NULL; /* XXX skip %clean from spec file. */ |
13 | } | |
14 | ||
15 | /* There are no options to %build, %install, %check, or %clean */ |