]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7338 fix when the build system was deleting the keyring before it was fully finish...
authorWilliam King <william.king@quentustech.com>
Mon, 15 Jun 2015 22:17:18 +0000 (15:17 -0700)
committerWilliam King <william.king@quentustech.com>
Mon, 15 Jun 2015 22:17:18 +0000 (15:17 -0700)
debian/util.sh

index 292ac6b8cbcfc9420e594d8d99c055fb2b9b152c..efeb071a3bc4ee30479c90dca1e7f20a3d8ab4f7 100755 (executable)
@@ -322,10 +322,6 @@ build_debs () {
           --othermirror "$(get_mirrors $distro $custom_sources_file)"
       fi
     }
-    if [ ! -e "$custom_keyring" ]; then
-      # Cleanup script created temporary file
-      rm -f $keyring
-    fi
     if ! [ -d $cow_img ]; then
       announce "Creating base $distro-$arch image..."
       local x=30
@@ -351,6 +347,10 @@ build_debs () {
       --hookdir "$hookdir" \
       --buildresult ../ \
       $cow_build_opts
+    if [ ! -e "$custom_keyring" ]; then
+      # Cleanup script created temporary file
+      rm -f $keyring
+    fi
   } 1>&2
   echo ${dsc%.dsc}_${arch}.changes
 }