]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- let --mr-proper respect builddir
authorBartłomiej Zimoń <cactus@pld-linux.org>
Sat, 1 Oct 2011 16:46:49 +0000 (16:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.654

builder.sh

index 52194792cce261c5097523ed6ffed15fc39fa6e4..d18cfd93908061cc70434c4a3cd3406c1e5964dc 100644 (file)
@@ -2125,11 +2125,13 @@ mr_proper() {
        get_spec
        parse_spec
 
+       local builddir=$(eval $RPM $RPMOPTS --eval '%{_builddir}')
+       
        # remove from CVS/Entries
        cvs_entry_remove $PACKAGE_DIR $SPECFILE $SOURCES $PATCHES
 
        # remove spec and sources
-       $RPMBUILD --clean --rmsource --rmspec --nodeps --define "_specdir $PACKAGE_DIR" --define "_sourcedir $PACKAGE_DIR" $SPECFILE
+       $RPMBUILD --clean --rmsource --rmspec --nodeps --define "_specdir $PACKAGE_DIR" --define "_sourcedir $PACKAGE_DIR" --define "_builddir $builddir" $SPECFILE
 }
 
 #---------------------------------------------
This page took 0.114129 seconds and 4 git commands to generate.