Skip to contentSkip to conversation

master - spec: Make it possible for %check_commands to prevent %clean-ing.

PATCH Petr Rockai 1 participant 1 message Feb 28, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=d567d0d307f0e4200dc4a5138ce4079cc1560092
Commit:        d567d0d307f0e4200dc4a5138ce4079cc1560092
Parent:        00dee59702009db28ce34249c7fb287d2fe0ca3f
Author:        Petr Rockai <[email protected]>
AuthorDate:    Sun Dec 15 21:12:06 2013 +0100
Committer:     Petr Rockai <[email protected]>
CommitterDate: Fri Feb 28 11:23:51 2014 +0100

spec: Make it possible for %check_commands to prevent %clean-ing.

---
 spec/build.inc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
spec/build.inc +2 -1
index fd455bb..95c9b83 100644
@@ -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