diff options
author | Petr Rockai <prockai@redhat.com> | 2013-12-15 21:12:06 +0100 |
---|---|---|
committer | Petr Rockai <me@mornfall.net> | 2014-02-28 11:23:51 +0100 |
commit | d567d0d307f0e4200dc4a5138ce4079cc1560092 (patch) | |
tree | 9556341ad197ffb3bef8810b88057f478a972568 /spec/build.inc | |
parent | 00dee59702009db28ce34249c7fb287d2fe0ca3f (diff) | |
download | lvm2-d567d0d307f0e4200dc4a5138ce4079cc1560092.tar.gz |
spec: Make it possible for %check_commands to prevent %clean-ing.
Diffstat (limited to 'spec/build.inc')
-rw-r--r-- | spec/build.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/build.inc b/spec/build.inc index fd455bbd5..95c9b8357 100644 --- a/spec/build.inc +++ b/spec/build.inc @@ -45,4 +45,5 @@ test -e %{_sourcedir}/source.inc || cp source.inc build.inc packages.inc macros. %{?check_commands} %clean -rm -rf $RPM_BUILD_ROOT +pwd +test -n rpm-no-clean || rm -rf $RPM_BUILD_ROOT |