v3-4-ctdb: Fix debuginfo builds
authorVolker Lendecke <vl@samba.org>
Fri, 3 Dec 2010 09:13:46 +0000 (02:13 -0700)
committerVolker Lendecke <vl@samba.org>
Fri, 3 Dec 2010 09:43:01 +0000 (10:43 +0100)
packaging/RHEL-CTDB/makerpms.sh

index 74d5f7b3d9508423de27a9e77f8eece20f014626..0de95d2e479421caa3d5567dc2e083cb2d782fdd 100755 (executable)
@@ -41,6 +41,17 @@ case $RPMVER in
        ;;
 esac
 
+##
+## Delete the old debuginfo remnants
+##
+
+echo "Deleting samba-debuginfo and /usr/src/redhat/BUILD/samba*"
+echo "Press Control-C if you want to quit"
+sleep 10
+echo "That was your chance... :-)"
+rpm -e samba-debuginfo
+rm -rf /usr/src/redhat/BUILD/samba*
+
 ##
 ## determine the samba version and create the SPEC file
 ##