]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-cleanbody.patch
This commit was manufactured by cvs2git to create branch 'rpm-4_5'.
[packages/rpm.git] / rpm-cleanbody.patch
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 @@
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);
12 -       sbp = NULL;     /* XXX skip %clean from spec file. */
13      }
14  
15      /* There are no options to %build, %install, %check, or %clean */
This page took 0.146928 seconds and 4 git commands to generate.