testing: Remove old SWID tags when building from repository
authorTobias Brunner <tobias@strongswan.org>
Thu, 5 Nov 2015 16:04:29 +0000 (17:04 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 9 Nov 2015 14:18:36 +0000 (15:18 +0100)
This fixes the TNC-PDP scenarios.

testing/scripts/build-strongswan

index c52dddd..b68d3cd 100755 (executable)
@@ -49,6 +49,9 @@ log_action "Mounting $SWANDIR as /root/strongswan"
 execute "bindfs -u $SRCUID -g $SRCGID $SWANDIR $LOOPDIR/root/strongswan"
 do_on_exit umount $LOOPDIR/root/strongswan
 
+log_action "Remove SWID tags of previous versions"
+execute_chroot 'find /usr/local/share/regid.2004-03.org.strongswan -name *.swidtag -delete'
+
 echo "Building and installing strongSwan"
 log_action "Preparing source tree"
 execute_chroot 'autoreconf -i /root/strongswan'